A_NextGen_Basic_Tagcloud_Form

Class A_NextGen_Basic_Tagcloud_Form.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_basic_tagcloud/package.module.nextgen_basic_tagcloud.php  
  1. class A_NextGen_Basic_Tagcloud_Form extends Mixin_Display_Type_Form 
  2. function get_display_type_name() 
  3. return NGG_BASIC_TAGCLOUD; 
  4. function _get_field_names() 
  5. return array('nextgen_basic_tagcloud_number', 'nextgen_basic_tagcloud_display_type'); 
  6. function enqueue_static_resources() 
  7. $path = 'photocrati-nextgen_basic_tagcloud#settings.css'; 
  8. wp_enqueue_style('nextgen_basic_tagcloud_settings-css', $this->get_static_url($path), FALSE, NGG_SCRIPT_VERSION); 
  9. $atp = C_Attach_Controller::get_instance(); 
  10. if (!is_null($atp)) { 
  11. $atp->mark_script($path); 
  12. function _render_nextgen_basic_tagcloud_number_field($display_type) 
  13. return $this->_render_number_field($display_type, 'number', __('Maximum number of tags', 'nggallery'), $display_type->settings['number']); 
  14. function _render_nextgen_basic_tagcloud_display_type_field($display_type) 
  15. $types = array(); 
  16. $skip_types = array(NGG_BASIC_TAGCLOUD, NGG_BASIC_SINGLEPIC, NGG_BASIC_COMPACT_ALBUM, NGG_BASIC_EXTENDED_ALBUM); 
  17. if (!isset($display_type->settings['gallery_type'])) { 
  18. $display_type->settings['gallery_display_type'] = isset($display_type->settings['display_type']) ? $display_type->settings['display_type'] : ''; 
  19. $skip_types = apply_filters('ngg_basic_tagcloud_excluded_display_types', $skip_types); 
  20. $mapper = C_Display_Type_Mapper::get_instance(); 
  21. $display_types = $mapper->find_all(); 
  22. foreach ($display_types as $dt) { 
  23. if (in_array($dt->name, $skip_types)) { 
  24. continue; 
  25. $types[$dt->name] = $dt->title; 
  26. return $this->_render_select_field($display_type, 'gallery_display_type', __('Display type', 'nggallery'), $types, $display_type->settings['gallery_display_type'], __('The display type that the tagcloud will point its results to', 'nggallery'));