Exemplo n.º 1
0
 function widget($args, $instance)
 {
     extract($args);
     $widget_title = apply_filters('widget_title', $instance['title'], $instance, $args);
     echo $before_widget;
     echo $instance['title'] != '' ? $widget_title : '';
     echo my_calendar_searchform('simple');
     echo $after_widget;
 }
 function widget($args, $instance)
 {
     extract($args);
     $widget_title = apply_filters('widget_title', $instance['title'], $instance, $args);
     $widget_title = $widget_title != '' ? $before_title . $widget_title . $after_title : '';
     $widget_url = isset($instance['url']) ? $instance['url'] : false;
     echo $before_widget;
     echo $instance['title'] != '' ? $widget_title : '';
     echo my_calendar_searchform('simple', $widget_url);
     echo $after_widget;
 }
Exemplo n.º 3
0
function my_calendar_search($atts)
{
    extract(shortcode_atts(array('type' => 'simple', 'url' => ''), $atts, 'my_calendar_search'));
    return my_calendar_searchform($type, $url);
}