__( 'Recent Posts Widget for the sidebar.', themeofwp ), ) // Args ); } public function widget( $args, $instance ) { $title = $instance['title']; $count = $instance['count']; echo $args['before_widget']; echo $args['before_title'] . $title . $args['after_title']; $posts = get_posts( array( 'numberposts' => $count ) ); foreach ($posts as $key => $value) { ?>
ID, array(90,90) ); ?>
post_title; ?> post_date) ); ?>

__( 'Works Widget for the sidebar.', themeofwp ), ) // Args ); } public function widget( $args, $instance ) { $title = $instance['title']; $count = $instance['count']; echo $args['before_widget']; echo $args['before_title'] . $title . $args['after_title']; $posts = get_posts( array( 'post_type' => 'works', 'posts_per_page' => $count ) ); foreach ($posts as $key => $value) { ?> ID, array(50,50) ); ?>

__( 'Products Widget for the sidebar.', themeofwp ), ) // Args ); } public function widget( $args, $instance ) { $title = $instance['title']; $count = $instance['count']; echo $args['before_widget']; echo $args['before_title'] . $title . $args['after_title']; $posts = get_posts( array( 'post_type' => 'product', 'posts_per_page' => $count ) ); foreach ($posts as $key => $value) { ?>
ID, array(90,90) ); ?>
post_title; ?>

__( 'Displays 125x125 ads with link for the sidebar.', themeofwp ), ) // Args ); } public function widget( $args, $instance ) { $title = $instance['title']; $url = $instance['url']; $url2 = $instance['url2']; $url3 = $instance['url3']; $url4 = $instance['url4']; $img_src = $instance['img_src']; $img_src2 = $instance['img_src2']; $img_src3 = $instance['img_src3']; $img_src4 = $instance['img_src4']; echo $args['before_widget']; $title = $instance['title']; echo $args['before_widget']; echo $args['before_title'] . $title . $args['after_title']; ?>






" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" />



" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" />



" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" />
'contact_us', 'description' => __('Add your contact info with map.', 'themeofwp')); $control_ops = array('id_base' => 'contact_us-widget'); $this->WP_Widget('contact_us-widget', __('TWP Contact Us', 'themeofwp'), $widget_ops, $control_ops); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if($title) { echo $before_title.$title.$after_title; } ?>

'OUR LOCATION'); $instance = wp_parse_args((array) $instance, $defaults); ?>



" style="margin:0;padding:0;max-width:100%;float:left;display:inline-block" />







'header_contact_us', 'description' => __('Add your contact info to the header area.', 'themeofwp')); $control_ops = array('id_base' => 'header_contact_us-widget'); $this->WP_Widget('header_contact_us-widget', __('TWP Header Contact', 'themeofwp'), $widget_ops, $control_ops); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if($title) { echo $before_title.$title.$after_title; } ?> ''); $instance = wp_parse_args((array) $instance, $defaults); ?>



'header_social_us', 'description' => __('Add your social info to the header area.', 'themeofwp')); $control_ops = array('id_base' => 'header_social_us-widget'); $this->WP_Widget('header_social_us-widget', __('TWP Header Social', 'themeofwp'), $widget_ops, $control_ops); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); echo $before_widget; if($title) { echo $before_title.$title.$after_title; } ?> ''); $instance = wp_parse_args((array) $instance, $defaults); ?>






'widget_flickr', 'description' => 'Display your latest Flickr Photos.' ); $this->WP_Widget('themeofwp_flickr', 'ThemeofWP Flickr', $widget_ops); } /** @see WP_Widget::widget */ function widget($args, $instance) { extract( $args ); $flickr_title = $instance["flickr_title"]; $flickr_key = $instance["flickr_id"]; $flickr_count = $instance["flickr_count"]; $flickr_src = "http://www.flickr.com/badge_code_v2.gne?count=".$flickr_count."&display=latest&size=s&layout=x&source=user&user=".$flickr_key; ?>

idGettr http://idgettr.com