/**
  * Retrieves the attach to post controller
  */
 public function get_attach_to_post()
 {
     if (is_null($this->attach_to_post)) {
         $this->attach_to_post = C_Attach_Controller::get_instance();
     }
     return $this->attach_to_post;
 }
 function enqueue_static_resources()
 {
     wp_enqueue_script($this->object->get_display_type_name() . '-js', $this->get_static_url('photocrati-nextgen_pro_film#settings.js'));
     $atp = C_Attach_Controller::get_instance();
     if ($atp != null && $atp->has_method('mark_script')) {
         $atp->mark_script($this->object->get_display_type_name() . '-js');
     }
 }
 /**
  * Enqueues static resources required by this form
  */
 function enqueue_static_resources()
 {
     wp_enqueue_script('nextgen_pro_albums_settings_script', $this->object->get_static_url('photocrati-nextgen_pro_albums#settings.js'), array('jquery.nextgen_radio_toggle'));
     $atp = C_Attach_Controller::get_instance();
     if ($atp != null && $atp->has_method('mark_script')) {
         $atp->mark_script('nextgen_pro_albums_settings_script');
     }
 }
 public function enqueue_static_resources()
 {
     $path = 'photocrati-nextgen_basic_tagcloud#settings.css';
     wp_enqueue_style('nextgen_basic_tagcloud_settings-css', $this->get_static_url($path), FALSE, NGG_SCRIPT_VERSION);
     $atp = C_Attach_Controller::get_instance();
     if (!is_null($atp)) {
         $atp->mark_script($path);
     }
 }
 /**
  * Enqueues static resources required by this form
  */
 public function enqueue_static_resources()
 {
     wp_enqueue_script('nextgen_basic_compact_albums_settings_script', $this->object->get_static_url('photocrati-nextgen_basic_album#compact_settings.js'), array('jquery.nextgen_radio_toggle'));
     $atp = C_Attach_Controller::get_instance();
     if ($atp != null) {
         $atp->mark_script('nextgen_basic_compact_albums_settings_script');
     }
 }
 /**
  * Enqueues static resources required by this form
  */
 function enqueue_static_resources()
 {
     wp_enqueue_style('nextgen_basic_thumbnails_settings', $this->object->get_static_url('photocrati-nextgen_basic_gallery#thumbnails/nextgen_basic_thumbnails_settings.css'), FALSE, NGG_SCRIPT_VERSION);
     wp_enqueue_script('nextgen_basic_thumbnails_settings', $this->object->get_static_url('photocrati-nextgen_basic_gallery#thumbnails/nextgen_basic_thumbnails_settings.js'), array('jquery.nextgen_radio_toggle'), NGG_SCRIPT_VERSION);
     $atp = C_Attach_Controller::get_instance();
     if ($atp != null) {
         $atp->mark_script('nextgen_basic_thumbnails_settings');
     }
 }
 function enqueue_static_resources()
 {
     wp_enqueue_style('ngg_template_settings', $this->get_static_url('photocrati-nextgen_basic_templates#ngg_template_settings.css'), FALSE, NGG_SCRIPT_VERSION);
     wp_enqueue_script('ngg_template_settings', $this->get_static_url('photocrati-nextgen_basic_templates#ngg_template_settings.js'), array('ngg_select2'), NGG_SCRIPT_VERSION, TRUE);
     wp_localize_script('ngg_template_settings', 'ngg_template_settings', array('placeholder_text' => __('No template selected')));
     $atp = C_Attach_Controller::get_instance();
     if ($atp != null) {
         $atp->mark_script('ngg_template_settings');
     }
 }
 /**
  * Route the IGW requests using wp-admin
  * @throws E_Clean_Exit
  */
 function route_insert_gallery_window()
 {
     if (isset($_REQUEST[NGG_ATTACH_TO_POST_SLUG])) {
         $controller = C_Attach_Controller::get_instance();
         if ($_REQUEST[NGG_ATTACH_TO_POST_SLUG] == 'js') {
             $controller->display_tab_js_action();
         } elseif (strpos($_REQUEST[NGG_ATTACH_TO_POST_SLUG], '/preview') !== FALSE) {
             $controller->preview_action();
         } else {
             $controller->index_action();
         }
         throw new E_Clean_Exit();
     }
 }
 function preview_action()
 {
     return C_Attach_Controller::get_instance(FALSE)->preview_action();
 }