PluginProbe
Extendify / 1.6.3
Extendify v1.6.3
3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 0.8.0 All 125 releases
extendify / extendify.php

extendify.php in Extendify 1.6.3, at extendify.php

74 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Extendify
4 * Description: Extendify is the platform of site design and creation tools for people that want to build a beautiful WordPress website with a library of patterns and full page layouts for the Gutenberg block editor.
5 * Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6 * Author: Extendify
7 * Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
8 * Version: 1.6.3
9 * License: GPL-2.0-or-later
10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11 * Text Domain: extendify
12 *
13 * Extendify is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 2 of the License, or
16 * any later version.
17 *
18 * Extendify is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 */
23
24 if (!defined('ABSPATH')) {
25 exit;
26 }
27
28 /** ExtendifySdk is the previous class name used */
29 if (!class_exists('ExtendifySdk') && !class_exists('Extendify')) :
30
31 /**
32 * The Extendify Library
33 */
34 // phpcs:ignore Squiz.Classes.ClassFileName.NoMatch,Squiz.Commenting.ClassComment.Missing,PEAR.Commenting.ClassComment.Missing
35 final class Extendify
36 {
37 /**
38 * Var to make sure we only load once
39 *
40 * @var boolean $loaded
41 */
42 public static $loaded = false;
43
44 /**
45 * Set up the Library
46 *
47 * @return void
48 */
49 public function __invoke()
50 {
51 // Allow users to disable the libary. The latter is left in for historical reasons.
52 if (!apply_filters('extendify_load_library', true) || !apply_filters('extendifysdk_load_library', true)) {
53 return;
54 }
55
56 if (version_compare(PHP_VERSION, '5.6', '<') || version_compare($GLOBALS['wp_version'], '5.5', '<')) {
57 return;
58 }
59
60 if (!self::$loaded) {
61 self::$loaded = true;
62 require dirname(__FILE__) . '/bootstrap.php';
63 if (!defined('EXTENDIFY_BASE_URL')) {
64 define('EXTENDIFY_BASE_URL', plugin_dir_url(__FILE__));
65 }
66 }
67 }
68 // phpcs:ignore Squiz.Classes.ClassDeclaration.SpaceBeforeCloseBrace
69 }
70
71 $extendify = new Extendify();
72 $extendify();
73 endif;
74