PluginProbe
Extendify / 1.13.1
Extendify v1.13.1
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.13.1, at extendify.php

77 lines 2.7 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.13.1
9 * License: GPL-2.0-or-later
10 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11 * Text Domain: extendify-local
12 * Domain Path: /languages
13 *
14 * Extendify is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 2 of the License, or
17 * any later version.
18 *
19 * Extendify is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 */
24
25 if (!defined('ABSPATH')) {
26 exit;
27 }
28
29 /** ExtendifySdk is the previous class name used */
30 if (!class_exists('ExtendifySdk') && !class_exists('Extendify')) :
31
32 /**
33 * The Extendify Library
34 */
35 // phpcs:ignore Squiz.Classes.ClassFileName.NoMatch,Squiz.Commenting.ClassComment.Missing,PEAR.Commenting.ClassComment.Missing
36 final class Extendify
37 {
38 /**
39 * Var to make sure we only load once
40 *
41 * @var boolean $loaded
42 */
43 public static $loaded = false;
44
45 /**
46 * Set up the Library
47 *
48 * @return void
49 */
50 public function __invoke()
51 {
52 // Allow users to disable the libary. The latter is left in for historical reasons.
53 if (!apply_filters('extendify_load_library', true) || !apply_filters('extendifysdk_load_library', true)) {
54 return;
55 }
56
57 if (version_compare(PHP_VERSION, '7.0', '<') || version_compare($GLOBALS['wp_version'], '6.0', '<')) {
58 return;
59 }
60
61 if (!self::$loaded) {
62 self::$loaded = true;
63 require dirname(__FILE__) . '/bootstrap.php';
64 if (!defined('EXTENDIFY_BASE_URL')) {
65 define('EXTENDIFY_BASE_URL', plugin_dir_url(__FILE__));
66 }
67 }
68 }
69 // phpcs:ignore Squiz.Classes.ClassDeclaration.SpaceBeforeCloseBrace
70 }
71
72 add_action('plugins_loaded', function () {
73 $extendify = new Extendify();
74 $extendify();
75 });
76 endif;
77