PluginProbe
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! / 1.1.6
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! v1.1.6
3.8.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 All 112 releases
← All changes | templately.php +18 -12 3.8.01.1.6 View file →
@@ -1,29 +1,35 @@
1 1 <?php
2 -
3 2 /**
4 3 * Plugin Name: Templately
5 4 * Description: The Best Templates Cloud for Elementor & Gutenberg. Get access to stunning templates, WorkSpace, Cloud Library & many more.
6 5 * Plugin URI: https://templately.com
7 6 * Author: Templately
8 - * Version: 3.8.0
7 + * Version: 1.1.6
9 8 * Author URI: https://templately.com/
10 - * Requires at least: 5.0
11 - * Requires PHP: 7.2
12 9 * Text Domain: templately
13 10 * Domain Path: /languages
14 11 */
15 -defined( 'ABSPATH' ) or die( 'Access denied!' ); // Avoid direct file request
16 12
17 -define( 'TEMPLATELY_FILE', __FILE__ );
18 -define( 'TEMPLATELY_PATH', plugin_dir_path( TEMPLATELY_FILE ) );
19 -require TEMPLATELY_PATH . 'vendor/autoload.php';
13 +define('TEMPLATELY_FILE', __FILE__);
14 +define('TEMPLATELY_VERSION', '1.1.6');
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/');
20 18
21 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 +/**
22 27 * Templately Class will be instantiated by function.
23 28 * @return Templately\Plugin
24 29 */
25 -function templately() {
26 - return Templately\Plugin::get_instance();
30 +function templately(){
31 + if ( class_exists('Templately\Plugin') ) {
32 + return Templately\Plugin::get_instance();
33 + }
27 34 }
28 -
29 -templately();
35 +templately();