/** @see WP_Widget::widget */ function widget($args, $instance) { global $widget_content; global $wppa; 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(); $wppa['in_widget'] = 'tagcloud'; $wppa['mocc']++; extract($args); $instance = wp_parse_args((array) $instance, array('title' => __('Photo Tags', 'wppa'), 'tags' => array())); if (empty($instance['tags'])) { $instance['tags'] = array(); } $widget_title = apply_filters('widget_title', $instance['title']); // Display the widget echo $before_widget; if (!empty($widget_title)) { echo $before_title . $widget_title . $after_title; } echo '<div class="wppa-tagcloud-widget" >' . wppa_get_tagcloud_html(implode(',', $instance['tags'])) . '</div>'; echo '<div style="clear:both"></div>'; echo $after_widget; }
function wppa_tagcloud_box($seltags = '', $minsize = '8', $maxsize = '24') { if (is_feed()) { return; } wppa_container('open'); wppa_out('<div' . ' id="wppa-tagcloud-' . wppa('mocc') . '"' . ' class="wppa-box wppa-tagcloud"' . ' style="' . __wcs('wppa-box') . __wcs('wppa-tagcloud') . '"' . ' >' . wppa_get_tagcloud_html($seltags, $minsize, $maxsize) . '<div class="wppa-clear" style="' . __wis('clear:both;') . '" >' . '</div>' . '</div>'); wppa_container('close'); }