Popular Ads - adding city and state to the widget
How do I add the city and state to the popular ad widget...please help...
// classipress sidebar top ads widget
class CP_Widget_Top_Ads_Today extends WP_Widget {
function CP_Widget_Top_Ads_Today() {
$widget_ops = array( 'description' => __( 'Your sidebar top ads today', 'appthemes') );
$this->WP_Widget('top_ads', 'CP ' . __('Top Ads Today', 'appthemes'), $widget_ops);
}
function widget( $args, $instance ) {
extract($args);
$title = apply_filters('widget_title', empty($instance['title']) ? __('Popular Ads Today', 'appthemes') : $instance['title']);
echo $before_widget;
if ( $title )
echo $before_title . $title . $after_title;
cp_todays_count_widget('ad_listing', 10);
echo $after_widget;
}
function update($new_instance, $old_instance) {
$instance['title'] = strip_tags(stripslashes($new_instance['title']));
return $instance;
}
function form($instance) {
?>
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'appthemes') ?></label>
<input type="text" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php if (isset ($instance['title'])) {echo esc_attr( $instance['title']);} ?>" /></p>
<?php
}
}