/**
  * Creates or returns an instance of this class.
  *
  * @return Tweeple_Theme_Blvd A single instance of this class.
  *
  * @since 0.4.0
  */
 public static function get_instance()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Run plugin.
  *
  * @since 0.1.0
  */
 private function __construct()
 {
     // Library files
     if (!class_exists('tmhOAuth')) {
         include_once TWEEPLE_PLUGIN_DIR . '/lib/tmhOAuth/tmhOAuth.php';
     }
     if (!class_exists('tmhUtilities')) {
         include_once TWEEPLE_PLUGIN_DIR . '/lib/tmhOAuth/tmhUtilities.php';
     }
     // Plugin files
     include_once TWEEPLE_PLUGIN_DIR . '/inc/class-tweeple-admin.php';
     include_once TWEEPLE_PLUGIN_DIR . '/inc/class-tweeple-feed-widget.php';
     include_once TWEEPLE_PLUGIN_DIR . '/inc/class-tweeple-feed.php';
     include_once TWEEPLE_PLUGIN_DIR . '/inc/class-tweeple-theme-blvd.php';
     include_once TWEEPLE_PLUGIN_DIR . '/inc/functions.php';
     // Register text domain for localization
     $this->localize();
     // Save plugin version
     add_action('admin_init', array($this, 'update_version'));
     // Twitter Feeds
     add_action('init', array($this, 'register_post_types'));
     // Admin
     if (is_admin()) {
         $this->admin = new Tweeple_Admin();
         add_filter('plugin_action_links_' . TWEEPLE_PLUGIN_BASENAME, array($this, 'settings_link'));
     }
     // Frontend
     add_action('widgets_init', array($this, 'register_widgets'));
     add_shortcode('tweeple_feed', array($this, 'feed_shortcode'));
     // Theme Blvd Integration
     Tweeple_Theme_Blvd::get_instance();
 }