'Popular Search Terms', 'limit' => 10, 'list' => '1', 'search' => '0' ); } echo $before_widget; echo $before_title; echo $options['title']; echo $after_title; echo stt_popular_terms_widget($options); echo $after_widget; } function popular_terms_control() { $options = get_option("widget_popular_terms"); if (!is_array( $options )) { $options = array( 'title' => 'Popular Search Terms', 'limit' => 10, 'list' => '1', 'search' => '0' ); } if ($_POST['popularterms-submit']) { $options['title'] = htmlspecialchars($_POST['popularterms-widgettitle']); $options['limit'] = intval($_POST['popularterms-widgetlimit']); $options['list'] = $_POST['popularterms-widgetlist']; $options['search'] = $_POST['popularterms-widgetsearch']; update_option("widget_popular_terms", $options); } ?>
/>No />Yes
'Recent Search Terms', 'limit' => 10, 'list' => '1', 'search' => '0' ); } echo $before_widget; echo $before_title; echo $options['title']; echo $after_title; echo stt_recent_terms_widget($options); echo $after_widget; } function recent_terms_control() { $options = get_option("widget_recent_terms"); if (!is_array( $options )) { $options = array( 'title' => 'Recent Search Terms', 'limit' => 10, 'list' => '1', 'search' => '0' ); } if ($_POST['recentterms-submit']) { $options['title'] = htmlspecialchars($_POST['recentterms-widgettitle']); $options['limit'] = intval($_POST['recentterms-widgetlimit']); $options['list'] = $_POST['recentterms-widgetlist']; $options['search'] = $_POST['recentterms-widgetsearch']; update_option("widget_recent_terms", $options); } ?>
/>No />Yes
'Popular Terms in Category', 'limit' => 10, 'list' => '1', 'search' => '0' ); } if (is_category()) { echo $before_widget; echo $before_title; echo $options['title']; echo $after_title; echo stt_popular_terms_in_category_widget( $options ); echo $after_widget; } } function popular_terms_cat_control() { $options = get_option("widget_popular_terms_cat"); if (!is_array( $options )) { $options = array( 'title' => 'Popular Terms in Category', 'limit' => 10, 'list' => '1', 'search' => '0' ); } if ($_POST['populartermscat-submit']) { $options['title'] = htmlspecialchars($_POST['populartermscat-widgettitle']); $options['limit'] = intval($_POST['populartermscat-widgetlimit']); $options['list'] = $_POST['populartermscat-widgetlist']; $options['search'] = $_POST['populartermscat-widgetsearch']; update_option("widget_popular_terms_cat", $options); } ?>
/>No />Yes
'Random Search Terms', 'limit' => 10, 'list' => '1', 'search' => '0' ); } echo $before_widget; echo $before_title; echo $options['title']; echo $after_title; echo stt_random_terms_widget($options); echo $after_widget; } function pk_random_terms_control() { $options = get_option("pk_widget_random_terms"); if (!is_array( $options )){ $options = array( 'title' => 'Random Search Terms', 'limit' => 10, 'list' => '1', 'search' => '0' ); } if ($_POST['randomterms-submit']) { $options['title'] = htmlspecialchars($_POST['randomterms-widgettitle']); $options['limit'] = intval($_POST['randomterms-widgetlimit']); $options['list'] = $_POST['randomterms-widgetlist']; $options['search'] = $_POST['randomterms-widgetsearch']; update_option("pk_widget_random_terms", $options); } ?>
/>No />Yes
' : ''; foreach($searchterms as $term){ $toReturn .= ( $list ) ? '