Beispiel #1
0
 function widget($args, $instance)
 {
     extract($args, EXTR_SKIP);
     $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
     $settings = array('type' => $instance['type'], 'cat' => $instance['cat'], 'postnum' => $instance['postnum'], 'width' => $instance['width'], 'height' => $instance['height'], 'excerpt' => $instance['excerpt']);
     echo $before_widget;
     if (!empty($title)) {
         echo $before_title . $title . $after_title;
     } else {
         echo '<h1 class="assistive-text">Featured slideshow</h1>';
     }
     pw_slideshow($settings);
     echo $after_widget;
 }
Beispiel #2
0
/**
 * Adds the new slideshow function to the top of the index poage
 *
 * @since PressWork 1.0
 */
function pw_index_top_slideshow()
{
    echo pw_function_handle(__FUNCTION__);
    pw_slideshow('type=faderota');
}