/**
 * Returns the main instance of WordPress_Plugin_Template to prevent the need to use globals.
 *
 * @since  1.0.0
 * @return object WordPress_Plugin_Template
 */
function WordPress_Plugin_Template()
{
    $instance = WordPress_Plugin_Template::instance(__FILE__, '1.0.0');
    if (is_null($instance->settings)) {
        $instance->settings = WordPress_Plugin_Template_Settings::instance($instance);
    }
    return $instance;
}
 /**
  * Main WordPress_Plugin_Template Instance
  *
  * Ensures only one instance of WordPress_Plugin_Template is loaded or can be loaded.
  *
  * @since 1.0.0
  * @static
  * @see WordPress_Plugin_Template()
  * @return Main WordPress_Plugin_Template instance
  */
 public static function instance($file = '', $version = '1.0.0')
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self($file, $version);
     }
     return self::$_instance;
 }