function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', $instance['title']);
     // Before widget
     echo $before_widget;
     // Title of widget
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     // the widget content
     wpcis_enqueue_front_scripts($instance['slider_id']);
     echo $cis_rendered_content = wpcis_render_slider($instance['slider_id']);
     // After widget
     echo $after_widget;
 }
Beispiel #2
0
function wpcis_creativeslider_shortcode_function($atts)
{
    extract(shortcode_atts(array('id' => 0), $atts));
    wpcis_enqueue_front_scripts($id);
    return wpcis_render_slider($id);
}