A_NextGen_Basic_Slideshow_Form

Provides the display settings form for the NextGen Basic Slideshow.

Defined (1)

The class is defined in the following location(s).

/products/photocrati_nextgen/modules/nextgen_basic_gallery/package.module.nextgen_basic_gallery.php  
  1. class A_NextGen_Basic_Slideshow_Form extends Mixin_Display_Type_Form 
  2. function get_display_type_name() 
  3. return NGG_BASIC_SLIDESHOW; 
  4. function enqueue_static_resources() 
  5. wp_enqueue_script('nextgen_basic_slideshow_settings-js', $this->get_static_url('photocrati-nextgen_basic_gallery#slideshow/nextgen_basic_slideshow_settings.js'), array('jquery.nextgen_radio_toggle'), NGG_SCRIPT_VERSION); 
  6. $atp = C_Attach_Controller::get_instance(); 
  7. if ($atp != null) { 
  8. $atp->mark_script('nextgen_basic_slideshow_settings-js'); 
  9. /** 
  10. * Returns a list of fields to render on the settings page 
  11. */ 
  12. function _get_field_names() 
  13. return array('nextgen_basic_slideshow_gallery_dimensions', 'nextgen_basic_slideshow_cycle_effect', 'nextgen_basic_slideshow_cycle_interval', 'nextgen_basic_slideshow_show_thumbnail_link', 'nextgen_basic_slideshow_thumbnail_link_text'); 
  14. function _render_nextgen_basic_slideshow_cycle_interval_field($display_type) 
  15. return $this->_render_number_field($display_type, 'cycle_interval', __('Interval', 'nggallery'), $display_type->settings['cycle_interval'], '', FALSE, __('# of seconds', 'nggallery'), 1); 
  16. function _render_nextgen_basic_slideshow_cycle_effect_field($display_type) 
  17. return $this->_render_select_field($display_type, 'cycle_effect', 'Effect', array('fade' => 'fade', 'blindX' => 'blindX', 'cover' => 'cover', 'scrollUp' => 'scrollUp', 'scrollDown' => 'scrollDown', 'shuffle' => 'shuffle', 'toss' => 'toss', 'wipe' => 'wipe'), $display_type->settings['cycle_effect'], '', FALSE); 
  18. function _render_nextgen_basic_slideshow_gallery_dimensions_field($display_type) 
  19. return $this->render_partial('photocrati-nextgen_basic_gallery#slideshow/nextgen_basic_slideshow_settings_gallery_dimensions', array('display_type_name' => $display_type->name, 'gallery_dimensions_label' => __('Maximum dimensions', 'nggallery'), 'gallery_dimensions_tooltip' => __('Certain themes may allow images to flow over their container if this setting is too large', 'nggallery'), 'gallery_width' => $display_type->settings['gallery_width'], 'gallery_height' => $display_type->settings['gallery_height']), True); 
  20. /** 
  21. * Renders the show_thumbnail_link settings field 
  22. * @param C_Display_Type $display_type 
  23. * @return string 
  24. */ 
  25. function _render_nextgen_basic_slideshow_show_thumbnail_link_field($display_type) 
  26. return $this->_render_radio_field($display_type, 'show_thumbnail_link', __('Show thumbnail link', 'nggallery'), $display_type->settings['show_thumbnail_link']); 
  27. /** 
  28. * Renders the thumbnail_link_text settings field 
  29. * @param C_Display_Type $display_type 
  30. * @return string 
  31. */ 
  32. function _render_nextgen_basic_slideshow_thumbnail_link_text_field($display_type) 
  33. return $this->_render_text_field($display_type, 'thumbnail_link_text', __('Thumbnail link text', 'nggallery'), $display_type->settings['thumbnail_link_text'], '', !empty($display_type->settings['show_thumbnail_link']) ? FALSE : TRUE);