Mixin_NextGen_Basic_Album_Form

Class Mixin_NextGen_Basic_Album_Form.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_basic_album/package.module.nextgen_basic_album.php  
  1. class Mixin_NextGen_Basic_Album_Form extends Mixin_Display_Type_Form 
  2. public function _get_field_names() 
  3. return array('nextgen_basic_album_gallery_display_type', 'nextgen_basic_album_galleries_per_page', 'nextgen_basic_album_enable_breadcrumbs', 'nextgen_basic_templates_template', 'nextgen_basic_album_enable_descriptions'); 
  4. /** 
  5. * Renders the Gallery Display Type field 
  6. * @param C_Display_Type $display_type 
  7. */ 
  8. public function _render_nextgen_basic_album_gallery_display_type_field($display_type) 
  9. $mapper = C_Display_Type_Mapper::get_instance(); 
  10. return $this->render_partial('photocrati-nextgen_basic_album#nextgen_basic_album_gallery_display_type', array('display_type_name' => $display_type->name, 'gallery_display_type_label' => __('Display galleries as', 'nggallery'), 'gallery_display_type_help' => __('How would you like galleries to be displayed?', 'nggallery'), 'gallery_display_type' => $display_type->settings['gallery_display_type'], 'galleries_per_page_label' => __('Galleries per page', 'nggallery'), 'galleries_per_page' => $display_type->settings['galleries_per_page'], 'display_types' => $mapper->find_by_entity_type('image')), TRUE); 
  11. /** 
  12. * Renders the Galleries Per Page field 
  13. * @param C_Display_Type $display_type 
  14. */ 
  15. public function _render_nextgen_basic_album_galleries_per_page_field($display_type) 
  16. return $this->_render_number_field($display_type, 'galleries_per_page', __('Items per page', 'nggallery'), $display_type->settings['galleries_per_page'], __('Maximum number of galleries or sub-albums to appear on a single page', 'nggallery'), FALSE, '', 0); 
  17. public function _render_nextgen_basic_album_enable_breadcrumbs_field($display_type) 
  18. return $this->_render_radio_field($display_type, 'enable_breadcrumbs', __('Enable breadcrumbs', 'nggallery'), isset($display_type->settings['enable_breadcrumbs']) ? $display_type->settings['enable_breadcrumbs'] : FALSE); 
  19. public function _render_nextgen_basic_album_enable_descriptions_field($display_type) 
  20. return $this->_render_radio_field($display_type, 'enable_descriptions', __('Display descriptions', 'nggallery'), $display_type->settings['enable_descriptions']);