PATH:
home
/
ediuae
/
petalwellnessspa.com
/
wp-content
/
plugins
/
colibri-page-builder
<?php /* * Plugin Name: Colibri Page Builder * Plugin URI: https://colibriwp.com/ * Author: ExtendThemes * Description: Colibri Page Builder adds drag and drop page builder functionality to the ColibriWP theme. * * License: GPLv3 or later * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html * Version: 1.0.360 * Text Domain: colibri-page-builder */ $colibri_page_builder_supported_themes = array('colibri-wp', 'colibri', 'teluro', 'one-page-express', 'brite', 'althea-wp', 'hugo-wp', 'hillstar', "linnet", "peregrine", 'digitala', "skylink", "silverstorm", "synclet", "ecliptica"); if (!in_array(get_option('template'), $colibri_page_builder_supported_themes)) { require_once 'utils/survey.php'; require_once 'recommendations/colibri-wp.php'; return; } else { //phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound, WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized $is_customize_page = (is_admin() && 'customize.php' == basename($_SERVER['PHP_SELF'])); //phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $theme = get_template(); //phpcs:ignore WordPress.Security.NonceVerification.Recommended if (isset($_GET['theme']) && $_GET['theme'] != get_stylesheet()) { //phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.NonceVerification.Recommended, WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $theme = sanitize_text_field($_GET['theme']); } //if is theme preview if ($is_customize_page && !in_array($theme, $colibri_page_builder_supported_themes)) { return; } } //phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $current_file = basename(__FILE__); //is free //phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $is_free = $current_file === 'colibri-page-builder.php'; if ($is_free) { //phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $pro_builder_is_active = false; add_action('shutdown', function () { if (!is_admin() || get_option('colibri_page_builder_activation_time')) { return; } $time = get_option(\ColibriWP\PageBuilder\Notify\NotificationsManager::INITIALIZATION_NOTIFICATIONS_OPTION, time()); update_option('colibri_page_builder_activation_time', $time); }); //phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $active_plugins = get_option('active_plugins'); //phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound foreach ($active_plugins as $active_plugin) { if (strpos($active_plugin, 'colibri-page-builder-pro') !== false) { //phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound $pro_builder_is_active = true; } } } //checks on free if the pro plugin is active if (class_exists('\ColibriWP\PageBuilder\PageBuilder') || $is_free && $pro_builder_is_active) { return; } // Make sure that the companion is not already active from another theme if (!defined("COLIBRI_PAGE_BUILDER_AUTOLOAD")) { require_once __DIR__ . "/vendor/autoload.php"; define("COLIBRI_PAGE_BUILDER_AUTOLOAD", true); } if (!defined("COLIBRI_PAGE_BUILDER_VERSION")) { define("COLIBRI_PAGE_BUILDER_VERSION", "1.0.360"); } require_once 'support/wp-5.8.php'; \ColibriWP\PageBuilder\PageBuilder::load(__FILE__); \ColibriWP\PageBuilder\GoogleFontsLocalLoader::registerFontResolver(); add_filter('colibri_page_builder/installed', '__return_true'); require_once 'extend-builder/extend-builder.php'; require_once 'recommendations/wpmu.php'; if (!function_exists('colibriwp_check_builder_activation_source')) { function colibriwp_check_builder_activation_source() { $theme = get_template(); $option = "{$theme}_start-source"; $start_source = get_option($option); if (!$start_source) { update_option($option, 'manual'); } } add_action('colibri_page_builder/activated', 'colibriwp_check_builder_activation_source'); }
[+]
..
[+]
assets
[+]
support
[+]
utils
[+]
extend-builder
[-] composer.json
[edit]
[+]
recommendations
[+]
src
[-] composer.lock
[edit]
[+]
vendor
[+]
demo-importer
[-] colibri-page-builder.php
[edit]
[-] readme.txt
[edit]