PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 1.1.3
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v1.1.3
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 +19 -11 3.6.21.1.3 View file →
@@ -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();