예제 #1
0
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? __('Popular Ads Overall', APP_TD) : $instance['title']);
     if (empty($instance['number']) || !($number = absint($instance['number']))) {
         $number = 10;
     }
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     cp_todays_overall_count_widget(APP_POST_TYPE, $number);
     echo $after_widget;
 }
예제 #2
0
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['title']) ? __('Popular Ads Overall', 'appthemes') : $instance['title']);
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     //echo '<div>';
     cp_todays_overall_count_widget(APP_POST_TYPE, 5);
     //echo "</div>\n";
     echo $after_widget;
 }
예제 #3
0
파일: widgets.php 프로젝트: kalushta/darom
 public function content($instance)
 {
     $instance = array_merge($this->defaults, (array) $instance);
     if (empty($instance['number']) || !($number = absint($instance['number']))) {
         $number = 10;
     }
     cp_todays_overall_count_widget(APP_POST_TYPE, $number);
 }