equal
deleted
inserted
replaced
557 header('Content-type: application/json'); |
557 header('Content-type: application/json'); |
558 |
558 |
559 $return = array(); |
559 $return = array(); |
560 foreach ( $template->theme_list as $theme ) |
560 foreach ( $template->theme_list as $theme ) |
561 { |
561 { |
|
562 if ( $theme['enabled'] != 1 ) |
|
563 continue; |
|
564 |
562 $return[] = array( |
565 $return[] = array( |
563 'theme_name' => $theme['theme_name'], |
566 'theme_name' => $theme['theme_name'], |
564 'theme_id' => $theme['theme_id'], |
567 'theme_id' => $theme['theme_id'], |
565 'have_thumb' => file_exists(ENANO_ROOT . "/themes/{$theme['theme_id']}/preview.png") |
568 'have_thumb' => file_exists(ENANO_ROOT . "/themes/{$theme['theme_id']}/preview.png") |
566 ); |
569 ); |