Mixin_Widget

The NextGEN Gallery Mixin Widget class.

Defined (1)

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

/products/photocrati_nextgen/modules/widget/package.module.widget.php  
  1. class Mixin_Widget extends Mixin 
  2. /** 
  3. * Function for templates without widget support 
  4. * @return echo the widget content 
  5. */ 
  6. function echo_widget_random($number, $width = '75', $height = '50', $exclude = 'all', $list = '', $show = 'thumbnail') 
  7. $options = array('title' => FALSE, 'items' => $number, 'show' => $show, 'type' => 'random', 'width' => $width, 'height' => $height, 'exclude' => $exclude, 'list' => $list, 'webslice' => FALSE); 
  8. $widget = new C_Widget_Gallery(); 
  9. $widget->widget($args = array('widget_id' => 'sidebar_1'), $options); 
  10. /** 
  11. * Function for templates without widget support 
  12. * @return echo the widget content 
  13. */ 
  14. function echo_widget_recent($number, $width = '75', $height = '50', $exclude = 'all', $list = '', $show = 'thumbnail') 
  15. $options = array('title' => FALSE, 'items' => $number, 'show' => $show, 'type' => 'recent', 'width' => $width, 'height' => $height, 'exclude' => $exclude, 'list' => $list, 'webslice' => FALSE); 
  16. $widget = new C_Widget_Gallery(); 
  17. $widget->widget($args = array('widget_id' => 'sidebar_1'), $options); 
  18. /** 
  19. * Function for templates without widget support 
  20. * @param integer $galleryID 
  21. * @param string $width 
  22. * @param string $height 
  23. * @return echo the widget content 
  24. */ 
  25. function echo_widget_slideshow($galleryID, $width = '', $height = '') 
  26. $widget = new C_Widget_Slideshow(); 
  27. $widget->render_slideshow($galleryID, $width, $height);