| @@ -1,0 +1,35 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Plugin Name: Templately | |
| 4 | + * Description: The Best Templates Cloud for Elementor & Gutenberg. Get access to stunning templates, WorkSpace, Cloud Library & many more. | |
| 5 | + * Plugin URI: https://templately.com | |
| 6 | + * Author: Templately | |
| 7 | + * Version: 1.3.1 | |
| 8 | + * Author URI: https://templately.com/ | |
| 9 | + * Text Domain: templately | |
| 10 | + * Domain Path: /languages | |
| 11 | + */ | |
| 12 | + | |
| 13 | +define('TEMPLATELY_FILE', __FILE__); | |
| 14 | +define('TEMPLATELY_VERSION', '1.3.1'); | |
| 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 | + | |
| 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 | +/** | |
| 27 | + * Templately Class will be instantiated by function. | |
| 28 | + * @return Templately\Plugin | |
| 29 | + */ | |
| 30 | +function templately(){ | |
| 31 | + if ( class_exists('Templately\Plugin') ) { | |
| 32 | + return Templately\Plugin::get_instance(); | |
| 33 | + } | |
| 34 | +} | |
| 35 | +templately(); | |