PluginProbe
Extendify / 0.11.1
Extendify v0.11.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 0.11.1, at extendify.php

75 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: 0.11.1
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 /**
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, '5.6', '<') || version_compare($GLOBALS['wp_version'], '5.5', '<')) {
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 $extendify = new Extendify();
73 $extendify();
74 endif;
75