A_NextGen_Basic_SinglePic_Form

Class A_NextGen_Basic_SinglePic_Form.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_basic_singlepic/package.module.nextgen_basic_singlepic.php  
  1. class A_NextGen_Basic_SinglePic_Form extends Mixin_Display_Type_Form 
  2. /** 
  3. * Returns the name of the display type 
  4. * @return string 
  5. */ 
  6. function get_display_type_name() 
  7. return NGG_BASIC_SINGLEPIC; 
  8. /** 
  9. * Returns the name of the fields to render for the SinglePic 
  10. */ 
  11. function _get_field_names() 
  12. return array('nextgen_basic_singlepic_dimensions', 'nextgen_basic_singlepic_link', 'nextgen_basic_singlepic_link_target', 'nextgen_basic_singlepic_float', 'nextgen_basic_singlepic_quality', 'nextgen_basic_singlepic_crop', 'nextgen_basic_singlepic_display_watermark', 'nextgen_basic_singlepic_display_reflection', 'nextgen_basic_templates_template'); 
  13. function _render_nextgen_basic_singlepic_dimensions_field($display_type) 
  14. return $this->object->render_partial('photocrati-nextgen_basic_singlepic#nextgen_basic_singlepic_settings_dimensions', array('display_type_name' => $display_type->name, 'dimensions_label' => __('Thumbnail dimensions', 'nggallery'), 'width_label' => __('Width'), 'width' => $display_type->settings['width'], 'height_label' => __('Height'), 'height' => $display_type->settings['height']), True); 
  15. function _render_nextgen_basic_singlepic_link_field($display_type) 
  16. return $this->object->render_partial('photocrati-nextgen_basic_singlepic#nextgen_basic_singlepic_settings_link', array('display_type_name' => $display_type->name, 'link_label' => __('Link'), 'link' => $display_type->settings['link']), True); 
  17. function _render_nextgen_basic_singlepic_link_target_field($display_type) 
  18. return $this->_render_select_field($display_type, 'link_target', __('Link target', 'nggallery'), array('_self' => __('Self', 'nggallery'), '_blank' => __('Blank', 'nggallery'), '_parent' => __('Parent', 'nggallery'), '_top' => __('Top', 'nggallery')), $display_type->settings['link_target']); 
  19. function _render_nextgen_basic_singlepic_quality_field($display_type) 
  20. return $this->object->render_partial('photocrati-nextgen_basic_singlepic#nextgen_basic_singlepic_settings_quality', array('display_type_name' => $display_type->name, 'quality_label' => __('Image quality', 'nggallery'), 'quality' => $display_type->settings['quality']), True); 
  21. function _render_nextgen_basic_singlepic_display_watermark_field($display_type) 
  22. return $this->_render_radio_field($display_type, 'display_watermark', __('Display watermark', 'nggallery'), $display_type->settings['display_watermark']); 
  23. function _render_nextgen_basic_singlepic_display_reflection_field($display_type) 
  24. return $this->_render_radio_field($display_type, 'display_reflection', __('Display reflection', 'nggallery'), $display_type->settings['display_reflection']); 
  25. function _render_nextgen_basic_singlepic_crop_field($display_type) 
  26. return $this->_render_radio_field($display_type, 'crop', __('Crop thumbnail', 'nggallery'), $display_type->settings['crop']); 
  27. function _render_nextgen_basic_singlepic_float_field($display_type) 
  28. return $this->_render_select_field($display_type, 'float', __('Float', 'nggallery'), array('' => __('None', 'nggallery'), 'left' => __('Left', 'nggallery'), 'right' => __('Right', 'nggallery')), $display_type->settings['float']);