/**
  * Renders the markup for the template selector.
  *
  * @since 1.0
  * @return void
  */
 public static function render_template_selector()
 {
     if (file_exists(FL_BUILDER_DIR . 'includes/template-selector.php')) {
         $enabled_templates = FLBuilderModel::get_enabled_templates();
         $user_templates = FLBuilderModel::get_user_templates();
         $templates = FLBuilderModel::get_template_selector_data();
         include FL_BUILDER_DIR . 'includes/template-selector.php';
         if (defined('DOING_AJAX')) {
             die;
         }
     }
 }
Esempio n. 2
0
 /**
  * Renders the markup for the template selector.
  *
  * @since 1.0
  * @return array
  */
 public static function render_template_selector()
 {
     if (file_exists(FL_BUILDER_DIR . 'includes/template-selector.php')) {
         $enabled_templates = FLBuilderModel::get_enabled_templates();
         $user_templates = FLBuilderModel::get_user_templates();
         $templates = FLBuilderModel::get_template_selector_data();
         ob_start();
         include FL_BUILDER_DIR . 'includes/template-selector.php';
         $html = ob_get_clean();
         return array('html' => $html);
     }
 }