| @@ -1,27 +1,35 @@ | ||
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | /** |
| 4 | 3 | * Plugin Name: Templately |
| 5 | - * Description: The Best Templates Cloud for Elementor & Gutenberg. Get access to stunning templates, WorkSpace, Cloud Library & many more. | |
| 4 | + * Description: Ultimate Templates Cloud for WordPress | |
| 6 | 5 | * Plugin URI: https://templately.com |
| 7 | 6 | * Author: Templately |
| 8 | - * Version: 3.6.2 | |
| 7 | + * Version: 1.1.3 | |
| 9 | 8 | * Author URI: https://templately.com/ |
| 10 | 9 | * Text Domain: templately |
| 11 | 10 | * Domain Path: /languages |
| 12 | 11 | */ |
| 13 | -defined( 'ABSPATH' ) or die( 'Access denied!' ); // Avoid direct file request | |
| 14 | 12 | |
| 15 | -define( 'TEMPLATELY_FILE', __FILE__ ); | |
| 16 | -define( 'TEMPLATELY_PATH', plugin_dir_path( TEMPLATELY_FILE ) ); | |
| 17 | -require TEMPLATELY_PATH . 'vendor/autoload.php'; | |
| 13 | +define('TEMPLATELY_FILE', __FILE__); | |
| 14 | +define('TEMPLATELY_VERSION', '1.1.3'); | |
| 15 | +define('TEMPLATELY_PATH', plugin_dir_path(TEMPLATELY_FILE)); | |
| 16 | +define('TEMPLATELY_URL', plugin_dir_url(TEMPLATELY_FILE)); | |
| 17 | +define('TEMPLATELY_ASSETS', TEMPLATELY_URL . 'assets/'); | |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | + * Initiate Autoloader for Class Load | |
| 21 | + */ | |
| 22 | +if (!class_exists('Templately\Autoloader')) { | |
| 23 | + require TEMPLATELY_PATH . 'core/autoloader.php'; | |
| 24 | + Templately\Autoloader::init(); | |
| 25 | +} | |
| 26 | +/** | |
| 20 | 27 | * Templately Class will be instantiated by function. |
| 21 | 28 | * @return Templately\Plugin |
| 22 | 29 | */ |
| 23 | -function templately() { | |
| 24 | - return Templately\Plugin::get_instance(); | |
| 30 | +function templately(){ | |
| 31 | + if ( class_exists('Templately\Plugin') ) { | |
| 32 | + return Templately\Plugin::get_instance(); | |
| 33 | + } | |
| 25 | 34 | } |
| 26 | - | |
| 27 | -templately(); | |
| 35 | +templately(); | |