コード例 #1
0
ファイル: class.widget.php プロジェクト: namwoody/curry
 /**
  * Function for templates without widget support
  *
  * @return echo the widget content
  */
 function echo_widget_recent($number, $width = '75', $height = '50', $exclude = 'all', $list = '', $show = 'thumbnail')
 {
     wp_enqueue_style('nextgen_widgets_style', $this->get_static_url('photocrati-widget#widgets.css'));
     wp_enqueue_style('nextgen_basic_thumbnails_style', $this->get_static_url('nextgen_basic_thumbnails#nextgen_basic_thumbnails.css'));
     $options = array('title' => FALSE, 'items' => $number, 'show' => $show, 'type' => 'recent', 'width' => $width, 'height' => $height, 'exclude' => $exclude, 'list' => $list, 'webslice' => FALSE);
     $widget = new C_Widget_Gallery();
     $widget->widget($args = array('widget_id' => 'sidebar_1'), $options);
 }
コード例 #2
0
 /**
  * Function for templates without widget support
  *
  * @return echo the widget content
  */
 function echo_widget_recent($number, $width = '75', $height = '50', $exclude = 'all', $list = '', $show = 'thumbnail')
 {
     $options = array('title' => FALSE, 'items' => $number, 'show' => $show, 'type' => 'recent', 'width' => $width, 'height' => $height, 'exclude' => $exclude, 'list' => $list, 'webslice' => FALSE);
     $widget = new C_Widget_Gallery();
     $widget->widget($args = array('widget_id' => 'sidebar_1'), $options);
 }