Example #1
0
 /**
  * Render settings page. This function should echo the HTML form of the settings page.
  */
 public function render_page()
 {
     $settings_data = $this->data->get_settings_page_data();
     $templates = $this->data->get_all_templates();
     $settings_data['load_templates'] = $this->data->get_enabled_templates($settings_data, $templates);
     // Filter load templates
     $vars = array();
     $vars['page_title'] = $this->settings_page_properties['page_title'];
     $vars['screen_icon'] = $this->get_screen_icon('options-general');
     $vars['textdomain'] = $this->textdomain;
     $vars['settings_fields'] = $this->settings_fields($this->settings_page_properties['option_group']);
     $vars['option_name'] = $this->settings_page_properties['option_name'];
     $vars['templates'] = $templates;
     $vars['settings_data'] = $settings_data;
     $vars['debug'] = $this->debug ? cyclone_slider_debug($vars['settings_data']) : '';
     $this->view->render('settings-page.php', $vars);
 }
Example #2
0
 /**
  * Render settings page. This function should echo the HTML form of the settings page.
  */
 public function render_settings_page($post)
 {
     $settings_data = $this->get_settings_data();
     $templates = $this->plugin['templates_manager']->get_all_templates();
     $settings_data['load_templates'] = $this->plugin['templates_manager']->get_active_templates($settings_data);
     // Filter load templates
     $vars = array();
     $vars['page_title'] = $this->plugin['settings_page.page_title'];
     $vars['screen_icon'] = $this->get_screen_icon('options-general');
     $vars['textdomain'] = $this->plugin['textdomain'];
     $vars['settings_fields'] = $this->settings_fields($this->plugin['settings_page.option_group']);
     $vars['option_name'] = $this->plugin['settings_page.option_name'];
     $vars['templates'] = $templates;
     $vars['settings_data'] = $settings_data;
     $vars['debug'] = $this->plugin['debug'] ? cyclone_slider_debug($vars['settings_data']) : '';
     $this->plugin['view']->render('settings-page.php', $vars);
 }
 /**
  * Render settings page. This function should echo the HTML form of the settings page.
  */
 public function render_settings_page($post)
 {
     $this->view->set_view_file(CYCLONE_PATH . 'views/settings-page.php');
     $settings_data = $this->get_settings_data();
     $templates = $this->templates_manager->get_all_templates();
     $settings_data['load_templates'] = $this->templates_manager->get_active_templates($settings_data);
     // Filter load templates
     $vars = array();
     $vars['page_title'] = $this->page_title;
     $vars['screen_icon'] = get_screen_icon('options-general');
     $vars['settings_fields'] = $this->settings_fields($this->option_group);
     $vars['option_name'] = $this->option_name;
     $vars['templates'] = $templates;
     $vars['settings_data'] = $settings_data;
     $vars['debug'] = CYCLONE_DEBUG ? cyclone_slider_debug($vars['settings_data']) : '';
     $this->view->set_vars($vars);
     $this->view->render();
 }
Example #4
0
 /**
  * Hook to admin footer
  */
 public function admin_footer()
 {
     // JS skeleton for adding a slide
     if (get_post_type() == 'cycloneslider') {
         // Empty Slide
         $vars = array();
         $vars['box_title'] = __('Slide *', $this->textdomain);
         $vars['image_url'] = '';
         $vars['i'] = '{id}';
         $vars['slide'] = $this->data->get_slide_defaults();
         foreach ($vars['slide'] as $key => $value) {
             $vars['slide'][$key] = '';
         }
         $vars['slide']['type'] = 'image';
         $vars['effects'] = $this->data->get_slide_effects();
         $vars['debug'] = $this->debug ? cyclone_slider_debug($vars['slide']) : '';
         $empty_slide = $this->view->get_render('slide-edit.php', $vars);
         // Main skeleton container
         $vars = array();
         $vars['empty_slide'] = $empty_slide;
         $this->view->render('slides-skeleton.php', $vars);
     }
 }
        <a class="nav-tab" href="<?php 
echo $import_page_url;
?>
"><?php 
_e('Import', 'cycloneslider');
?>
</a>
    </h2>
    <h2><?php 
_e('Cyclone Slider Export', 'cycloneslider');
?>
</h2>
    <div class="intro">
        <?php 
if (CYCLONE_DEBUG) {
    echo cyclone_slider_debug($cycloneslider_export);
}
?>
    </div>
    <form method="post" action="<?php 
echo $form_url;
?>
">
        <input type="hidden" name="<?php 
echo $nonce_name;
?>
" value="<?php 
echo $nonce;
?>
" />
        <input type="hidden" name="cycloneslider_export_step" value="1" />