/** @see WP_Widget::widget */
 function widget($args, $instance)
 {
     global $wpdb;
     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', 'stereo');
     wppa_bump_mocc();
     extract($args);
     $instance = wp_parse_args((array) $instance, array('title' => __('3D Stereo Settings', 'wp-photo-album-plus')));
     $widget_title = apply_filters('widget_title', $instance['title']);
     $widget_content = "\n" . '<!-- WPPA+ stereo Widget start -->';
     $widget_content .= wppa_get_stereo_html();
     $widget_content .= '<div style="clear:both"></div>';
     $widget_content .= "\n" . '<!-- WPPA+ stereo Widget end -->';
     echo "\n" . $before_widget;
     if (!empty($widget_title)) {
         echo $before_title . $widget_title . $after_title;
     }
     echo $widget_content . $after_widget;
     wppa('in_widget', false);
 }
Ejemplo n.º 2
0
function wppa_stereo_box()
{
    // Init
    $result = '';
    // No search box on feeds
    if (is_feed()) {
        return;
    }
    // Open container
    wppa_container('open');
    // Open wrapper
    $result .= "\n";
    $result .= '<div' . ' id="wppa-stereo-' . wppa('mocc') . '"' . ' class="wppa-box wppa-stereo"' . ' style="' . __wcs('wppa-box') . __wcs('wppa-stereo') . '"' . ' >';
    // The search html
    $result .= wppa_get_stereo_html();
    // Clear both
    $result .= '<div class="wppa-clear" style="' . __wis('clear:both;') . '" ></div>';
    // Close wrapper
    $result .= '</div>';
    // Output
    wppa_out($result);
    // Close container
    wppa_container('close');
}