/** * nggDisplayRecentImages($number,$width,$height,$exclude,$list,$show) * Function for templates without widget support * * @return echo the widget content */ function nggDisplayRecentImages($number, $width = '75', $height = '50', $exclude = 'all', $list = '', $show = 'thumbnail') { $options[1] = array('title' => '', 'items' => $number, 'show' => $show, 'type' => 'recent', 'width' => $width, 'height' => $height, 'exclude' => $exclude, 'list' => $list); nggWidget::ngg_widget_output($args = array(), 1, $options); }
/** * nggDisplayRecentImages($number,$width,$height,$exclude,$list,$show) * Function for templates without widget support * * @return echo the widget content */ function nggDisplayRecentImages($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); $ngg_widget = new nggWidget(); $ngg_widget->widget($args = array('widget_id' => 'sidebar_1'), $options); }