PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 1.2.0
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v1.2.0
3.7.5 3.7.4 3.7.3 3.7.2 1-final 3.7.1 3.7.0 3.6.8 3.6.7 3.6.6 3.6.5 3.6.4 3.6.3 3.6.2 3.6.1 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.10 All 111 releases
← All changes | templately.php +17 -8 3.0.91.2.0 View file →
@@ -3,24 +3,33 @@
3 3 * Plugin Name: Templately
4 4 * Description: The Best Templates Cloud for Elementor & Gutenberg. Get access to stunning templates, WorkSpace, Cloud Library & many more.
5 5 * Plugin URI: https://templately.com
6 6 * Author: Templately
7 - * Version: 3.0.9
7 + * Version: 1.2.0
8 8 * Author URI: https://templately.com/
9 9 * Text Domain: templately
10 10 * Domain Path: /languages
11 11 */
12 -defined( 'ABSPATH' ) or die( 'Access denied!' ); // Avoid direct file request
13 12
14 -define( 'TEMPLATELY_FILE', __FILE__ );
15 -define( 'TEMPLATELY_PATH', plugin_dir_path( TEMPLATELY_FILE ) );
16 -require TEMPLATELY_PATH . 'vendor/autoload.php';
13 +define('TEMPLATELY_FILE', __FILE__);
14 +define('TEMPLATELY_VERSION', '1.2.0');
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/');
17 18
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 +/**
19 27 * Templately Class will be instantiated by function.
20 28 * @return Templately\Plugin
21 29 */
22 -function templately() {
23 - return Templately\Plugin::get_instance();
30 +function templately(){
31 + if ( class_exists('Templately\Plugin') ) {
32 + return Templately\Plugin::get_instance();
33 + }
24 34 }
25 -
26 35 templately();