/** @see WP_Widget::widget */ function widget($args, $instance) { global $wpdb; global $widget_content; require_once dirname(__FILE__) . '/wppa-links.php'; require_once dirname(__FILE__) . '/wppa-styles.php'; require_once dirname(__FILE__) . '/wppa-functions.php'; require_once dirname(__FILE__) . '/wppa-thumbnails.php'; require_once dirname(__FILE__) . '/wppa-boxes-html.php'; require_once dirname(__FILE__) . '/wppa-slideshow.php'; wppa_initialize_runtime(); extract($args); $instance = wp_parse_args((array) $instance, array('title' => '', 'root' => '0', 'sort' => true)); $widget_title = apply_filters('widget_title', $instance['title']); $album_root = $instance['root']; $sort = $instance['sort']; wppa('in_widget', 'superview'); wppa_bump_mocc(); $widget_content = wppa_get_superview_html($album_root, $sort); wppa('in_widget', false); echo $before_widget . $before_title . $widget_title . $after_title . $widget_content . $after_widget; }
function wppa_superview_box($album_root = '0', $sort = true) { if (is_feed()) { return; } wppa_container('open'); wppa_out('<div' . ' id="wppa-superview-' . wppa('mocc') . '"' . ' class="wppa-box wppa-superview"' . ' style="' . __wcs('wppa-box') . __wcs('wppa-superview') . '"' . ' >' . wppa_get_superview_html($album_root, $sort) . '<div class="wppa-clear" style="' . __wis('clear:both;') . '" >' . '</div>' . '</div>'); wppa_container('close'); }