コード例 #1
0
 function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', empty($instance['popular-searches-title']) ? __('Popular Searches') : $instance['popular-searches-title']);
     $count = (int) (empty($instance['popular-searches-number']) ? 5 : $instance['popular-searches-number']);
     echo $before_widget;
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     sm_list_popular_searches('', '', sm_constrain_widget_search_count($count));
     echo $after_widget;
 }
コード例 #2
0
ファイル: sidebar.php プロジェクト: AlexKosarim/site123321
	<input type="hidden" value="<?php 
echo $opt['blog_title'];
?>
" name="title" />
	<input type="hidden" name="loc" value="<?php 
echo $opt['location'];
?>
" />
	</fieldset>
	</form>
	</div>

	
	<div class="search">
		<?php 
sm_list_popular_searches('<h2>Что у нас искали..</h2>');
?>
	</div>
	
	<?php 
include TEMPLATEPATH . "/sidebar_c.php";
?>
	<?php 
include TEMPLATEPATH . "/sidebar_l.php";
?>
	<?php 
include TEMPLATEPATH . "/sidebar_r.php";
?>
	<div class="clear"></div>