/**
  * 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();
 }
/**
 * Add backwards compat to any version of Builder
 * or framework using the themeblvd_tweet function.
 *
 * @since 0.4.0
 */
function themeblvd_tweet($id, $options)
{
    $tweeple = Tweeple_Theme_Blvd::get_instance();
    ob_start();
    $tweeple->tweet_element($id, $options);
    return ob_get_clean();
}