public function __construct()
 {
     $widget_opts = array('classname' => 'youxi-rotating-quotes-widget', 'description' => __('Use this widget to display a set of rotating quotes.', 'youxi'));
     $control_opts = array('width' => '400px');
     // Initialize WP_Widget
     parent::__construct('rotating-quotes-widget', __('Youxi » Rotating Quotes', 'youxi'), $widget_opts, $control_opts);
 }
 public function __construct()
 {
     $widget_opts = array('classname' => 'youxi-google-maps-widget', 'description' => __('Use this widget to display a Google Map.', 'youxi'));
     $control_opts = array('width' => '400px');
     // Initialize WP_Widget
     parent::__construct('google-maps-widget', __('Youxi » Google Maps', 'youxi'), $widget_opts, $control_opts);
 }
 public function __construct()
 {
     $widget_opts = array('classname' => 'youxi-recent-posts-widget', 'description' => __('Use this widget to display your recent posts', 'youxi'));
     $control_opts = array();
     // Initialize WP_Widget
     parent::__construct('recent-posts-widget', __('Youxi » Recent Posts', 'youxi'), $widget_opts, $control_opts);
 }
 public function __construct()
 {
     $widget_opts = array('classname' => 'youxi-flickr-widget', 'description' => __('Use this widget to display your Flickr feed.', 'youxi'));
     $control_opts = array();
     // Initialize WP_Widget
     parent::__construct('flickr-widget', __('Youxi » Flickr', 'youxi'), $widget_opts, $control_opts);
 }
 public function __construct()
 {
     $widget_opts = array('classname' => 'youxi-social-widget', 'description' => __('Use this widget to link your social profiles using a set of retina ready icons.', 'youxi'));
     $control_opts = array('width' => '400px');
     // Initialize WP_Widget
     parent::__construct('social-widget', __('Youxi » Social', 'youxi'), $widget_opts, $control_opts);
 }
 public function __construct()
 {
     $widget_opts = array('classname' => 'youxi-posts-widget', 'description' => __('Use this widget to display your posts based on a specific criteria.', 'youxi'));
     $control_opts = array();
     // Initialize WP_Widget
     parent::__construct('posts-widget', __('Youxi » Posts', 'youxi'), $widget_opts, $control_opts);
 }
 public function __construct()
 {
     $widget_opts = array('classname' => 'youxi-instagram-widget', 'description' => __('Use this widget to display your Instagram feed.', 'youxi'));
     $control_opts = array();
     // Initialize WP_Widget
     parent::__construct('instagram-widget', __('Youxi » Instagram', 'youxi'), $widget_opts, $control_opts);
     if (!self::$ajax_hook_registered) {
         $ajax_action = apply_filters('youxi_widgets_instagram_ajax_action', 'youxi_widgets_get_instagram_feed');
         if (!has_action("wp_ajax_{$ajax_action}")) {
             add_action("wp_ajax_{$ajax_action}", array('Youxi_Instagram_Widget', 'get_feed'));
         }
         if (!has_action("wp_ajax_nopriv_{$ajax_action}")) {
             add_action("wp_ajax_nopriv_{$ajax_action}", array('Youxi_Instagram_Widget', 'get_feed'));
         }
         self::$ajax_hook_registered = true;
     }
 }