/**
  * Return an instance of this class.
  *
  * @since     1.0.0
  *
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Return an instance of this class.
  *
  * @since     1.0.0
  *
  * @return    object    A single instance of this class.
  */
 public static function get_instance()
 {
     /*
      * @TODO :
      *
      * - Uncomment following lines if the admin class should only be available for super admins
      */
     /* if( ! is_super_admin() ) {
     	  return;
     	  } */
     // If the single instance hasn't been set, set it now.
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
define('PT_CV_PATH', plugin_dir_path(__FILE__));
include_once PT_CV_PATH . 'includes/defines.php';
// Include library files
include_once PT_CV_PATH . 'includes/assets.php';
include_once PT_CV_PATH . 'includes/functions.php';
include_once PT_CV_PATH . 'includes/hooks.php';
include_once PT_CV_PATH . 'includes/html-viewtype.php';
include_once PT_CV_PATH . 'includes/html.php';
include_once PT_CV_PATH . 'includes/settings.php';
include_once PT_CV_PATH . 'includes/update.php';
include_once PT_CV_PATH . 'includes/values.php';
// Main file
include_once PT_CV_PATH . 'public/content-views.php';
// Register hooks when the plugin is activated or deactivated.
register_activation_hook(__FILE__, array('PT_Content_Views', 'activate'));
register_deactivation_hook(__FILE__, array('PT_Content_Views', 'deactivate'));
// Load plugin
PT_Content_Views::get_instance();
// For Admin
if (is_admin()) {
    include_once PT_CV_PATH . 'admin/includes/options.php';
    include_once PT_CV_PATH . 'admin/includes/plugin.php';
    include_once PT_CV_PATH . 'admin/content-views-admin.php';
    PT_Content_Views_Admin::get_instance();
}
// Support for post thumbnails
add_theme_support('post-thumbnails');
// Enable shortcode in content
add_filter('the_content', 'do_shortcode', 15);
// Enable shortcodes in text widgets.
add_filter('widget_text', 'do_shortcode', 15);