File manager - Edit - /home2/zetasolve/arya.zetasolve.agency/themes.tar
Back
index.php 0000644 00000000034 15226066667 0006401 0 ustar 00 <?php // Silence is golden. hello-elementor/vendor/elementor/wp-notifications-package/src/V120/Notifications.php 0000644 00000015235 15226066667 0024603 0 ustar 00 <?php namespace Elementor\WPNotificationsPackage\V120; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Notifications { const PACKAGE_VERSION = '1.2.0'; private string $app_name; private string $app_version; private string $short_app_name; private string $transient_key; private array $app_data = []; private string $api_endpoint = 'https://my.elementor.com/api/v1/notifications'; public function __construct( array $config ) { $this->app_name = sanitize_title( $config['app_name'] ); $this->app_version = $config['app_version']; $this->short_app_name = $config['short_app_name'] ?? 'plugin'; $this->app_data = $config['app_data'] ?? []; $this->transient_key = "_{$this->app_name}_notifications"; add_action( 'admin_init', [ $this, 'refresh_notifications' ] ); add_filter( 'body_class', [ $this, 'add_body_class' ] ); if ( ! empty( $this->app_data['plugin_basename'] ) ) { register_deactivation_hook( $this->app_data['plugin_basename'], [ $this, 'on_plugin_deactivated' ] ); } if ( ! empty( $this->app_data['theme_name'] ) ) { add_action( 'switch_theme', [ $this, 'on_theme_deactivated' ], 10, 3 ); } } public function refresh_notifications(): void { $this->get_notifications(); } public function add_body_class( array $classes ): array { $classes[] = $this->short_app_name . '-default'; return $classes; } public function get_notifications_by_conditions( $force_request = false ) { $notifications = $this->get_notifications( $force_request ); $filtered_notifications = []; foreach ( $notifications as $notification ) { if ( empty( $notification['conditions'] ) ) { $filtered_notifications = $this->add_to_array( $filtered_notifications, $notification ); continue; } if ( ! $this->check_conditions( $notification['conditions'] ) ) { continue; } $filtered_notifications = $this->add_to_array( $filtered_notifications, $notification ); } return $filtered_notifications; } private function get_notifications( $force_update = false, $additional_status = false ): array { $notifications = static::get_transient( $this->transient_key ); if ( false === $notifications || $force_update ) { $notifications = $this->fetch_data( $additional_status ); static::set_transient( $this->transient_key, $notifications ); } return $notifications; } private function add_to_array( $filtered_notifications, $notification ) { foreach ( $filtered_notifications as $filtered_notification ) { if ( $filtered_notification['id'] === $notification['id'] ) { return $filtered_notifications; } } $filtered_notifications[] = $notification; return $filtered_notifications; } private function check_conditions( $groups ): bool { foreach ( $groups as $group ) { if ( $this->check_group( $group ) ) { return true; } } return false; } private function check_group( $group ) { $is_or_relation = ! empty( $group['relation'] ) && 'OR' === $group['relation']; unset( $group['relation'] ); $result = false; foreach ( $group as $condition ) { // Reset results for each condition. $result = false; switch ( $condition['type'] ) { case 'wordpress': // phpcs:ignore WordPress.WP.CapitalPDangit // include an unmodified $wp_version include ABSPATH . WPINC . '/version.php'; $result = version_compare( $wp_version, $condition['version'], $condition['operator'] ); break; case 'multisite': $result = is_multisite() === $condition['multisite']; break; case 'language': $in_array = in_array( get_locale(), $condition['languages'], true ); $result = 'in' === $condition['operator'] ? $in_array : ! $in_array; break; case 'plugin': if ( ! function_exists( 'is_plugin_active' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $is_plugin_active = is_plugin_active( $condition['plugin'] ); if ( empty( $condition['operator'] ) ) { $condition['operator'] = '=='; } $result = '==' === $condition['operator'] ? $is_plugin_active : ! $is_plugin_active; break; case 'theme': $theme = wp_get_theme(); if ( wp_get_theme()->parent() ) { $theme = wp_get_theme()->parent(); } if ( $theme->get_template() === $condition['theme'] ) { $version = $theme->version; } else { $version = ''; } $result = version_compare( $version, $condition['version'], $condition['operator'] ); break; default: $result = apply_filters( "$this->app_name/notifications/condition/{$condition['type']}", $result, $condition ); break; } if ( ( $is_or_relation && $result ) || ( ! $is_or_relation && ! $result ) ) { return $result; } } return $result; } private function fetch_data( $additional_status = false ): array { $body_request = [ 'api_version' => self::PACKAGE_VERSION, 'app_name' => $this->app_name, 'app_version' => $this->app_version, 'site_lang' => get_bloginfo( 'language' ), 'site_key' => $this->get_site_key(), ]; $timeout = 10; if ( ! empty( $additional_status ) ) { $body_request['status'] = $additional_status; $timeout = 3; } $response = wp_remote_get( $this->api_endpoint, [ 'timeout' => $timeout, 'body' => $body_request, ] ); if ( is_wp_error( $response ) || 200 !== (int) wp_remote_retrieve_response_code( $response ) ) { return []; } $data = \json_decode( wp_remote_retrieve_body( $response ), true ); if ( empty( $data['notifications'] ) || ! is_array( $data['notifications'] ) ) { return []; } return $data['notifications']; } private function get_site_key() { $site_key = get_option( 'elementor_connect_site_key' ); if ( ! $site_key ) { $site_key = md5( uniqid( wp_generate_password() ) ); update_option( 'elementor_connect_site_key', $site_key ); } return $site_key; } private static function get_transient( $cache_key ) { $cache = get_option( $cache_key ); if ( empty( $cache['timeout'] ) ) { return false; } if ( time() > $cache['timeout'] ) { return false; } return json_decode( $cache['value'], true ); } private static function set_transient( $cache_key, $value, $expiration = '+12 hours' ) { $data = [ 'timeout' => strtotime( $expiration, time() ), 'value' => wp_json_encode( $value ), ]; return update_option( $cache_key, $data, false ); } public function on_plugin_deactivated(): void { $this->get_notifications( true, 'deactivated' ); } public function on_theme_deactivated( string $new_name, \WP_Theme $new_theme, \WP_Theme $old_theme ): void { if ( $old_theme->get_template() === $this->app_data['theme_name'] ) { $this->get_notifications( true, 'deactivated' ); } } } hello-elementor/vendor/elementor/wp-notifications-package/plugin-example.php 0000644 00000006122 15226066667 0023475 0 ustar 00 <?php /** * Plugin Name: WP Notifications Package * Description: ... * Plugin URI: https://elementor.com/ * Author: Elementor.com * Version: 1.0.0 * License: GPL-3 * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html * * Text Domain: wp-notifications-package */ use Elementor\WPNotificationsPackage\V120\Notifications; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Plugin_Example { public Notifications $notifications; public function __construct() { $this->init(); } private function init() { require __DIR__ . '/vendor/autoload.php'; $this->notifications = new Notifications( [ 'app_name' => 'wp-notifications-package', 'app_version' => '1.2.0', 'short_app_name' => 'wppe', 'app_data' => [ 'plugin_basename' => plugin_basename( __FILE__ ), ], ] ); add_action( 'admin_notices', [ $this, 'display_notifications' ] ); add_action( 'admin_footer', [ $this, 'display_dialog' ] ); } public function display_notifications() { $notifications = $this->notifications->get_notifications_by_conditions(); if ( empty( $notifications ) ) { return; } ?> <div class="notice notice-info is-dismissible"> <h3><?php esc_html_e( 'What\'s new:', 'wp-notifications-package' ); ?></h3> <ul> <?php foreach ( $notifications as $item ) : ?> <li><a href="<?php echo esc_url( $item['link'] ?? '#' ); ?>" target="_blank"><?php echo esc_html( $item['title'] ); ?></a></li> <?php endforeach; ?> </ul> </div> <?php // Example with HTML Dialog modal ?> <div class="notice notice-info is-dismissible"> <button class="plugin-example-notifications-dialog-open">Open Notification</button> </div> <?php } public function display_dialog() { $notifications = $this->notifications->get_notifications_by_conditions(); if ( empty( $notifications ) ) { return; } ?> <style> #plugin-example-notifications-dialog { padding: 20px; border: 1px solid #ccc; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } #plugin-example-notifications-dialog::backdrop { background: rgba(0, 0, 0, 0.5); } </style> <dialog id="plugin-example-notifications-dialog"> <h3><?php esc_html_e( 'What\'s new:', 'wp-notifications-package' ); ?></h3> <ul> <?php foreach ( $notifications as $item ) : ?> <li><a href="<?php echo esc_url( $item['link'] ?? '#' ); ?>" target="_blank"><?php echo esc_html( $item['title'] ); ?></a></li> <?php endforeach; ?> </ul> <button class="close">Close</button> </dialog> <script> document.addEventListener( 'DOMContentLoaded', function() { const openDialogBtn = document.querySelector( '.plugin-example-notifications-dialog-open' ); const closeDialogBtn = document.querySelector( '#plugin-example-notifications-dialog button.close' ); const dialog = document.getElementById( 'plugin-example-notifications-dialog' ); openDialogBtn.addEventListener( 'click', function() { dialog.showModal(); } ); closeDialogBtn.addEventListener( 'click', function() { dialog.close(); } ); } ); </script> <?php } } new Plugin_Example(); hello-elementor/vendor/composer/autoload_psr4.php 0000644 00000000361 15226066667 0016274 0 ustar 00 <?php // autoload_psr4.php @generated by Composer $vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( 'Elementor\\WPNotificationsPackage\\' => array($vendorDir . '/elementor/wp-notifications-package/src'), ); hello-elementor/vendor/composer/installed.php 0000644 00000002252 15226066667 0015474 0 ustar 00 <?php return array( 'root' => array( 'name' => 'elementor/hello-theme', 'pretty_version' => '3.4.x-dev', 'version' => '3.4.9999999.9999999-dev', 'reference' => 'f4e4ae4193ef7cd2e82d5552d3377ba9f3274235', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev' => false, ), 'versions' => array( 'elementor/hello-theme' => array( 'pretty_version' => '3.4.x-dev', 'version' => '3.4.9999999.9999999-dev', 'reference' => 'f4e4ae4193ef7cd2e82d5552d3377ba9f3274235', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => false, ), 'elementor/wp-notifications-package' => array( 'pretty_version' => '1.2.0', 'version' => '1.2.0.0', 'reference' => 'dd25ca9dd79402c3bb51fab112aa079702eb165e', 'type' => 'library', 'install_path' => __DIR__ . '/../elementor/wp-notifications-package', 'aliases' => array(), 'dev_requirement' => false, ), ), ); hello-elementor/vendor/composer/InstalledVersions.php 0000644 00000041763 15226066667 0017177 0 ustar 00 <?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer; use Composer\Autoload\ClassLoader; use Composer\Semver\VersionParser; /** * This class is copied in every Composer installed project and available to all * * See also https://getcomposer.org/doc/07-runtime.md#installed-versions * * To require its presence, you can require `composer-runtime-api ^2.0` * * @final */ class InstalledVersions { /** * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to * @internal */ private static $selfDir = null; /** * @var mixed[]|null * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null */ private static $installed; /** * @var bool */ private static $installedIsLocalDir; /** * @var bool|null */ private static $canGetVendors; /** * @var array[] * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> */ private static $installedByVendor = array(); /** * Returns a list of all package names which are present, either by being installed, replaced or provided * * @return string[] * @psalm-return list<string> */ public static function getInstalledPackages() { $packages = array(); foreach (self::getInstalled() as $installed) { $packages[] = array_keys($installed['versions']); } if (1 === \count($packages)) { return $packages[0]; } return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); } /** * Returns a list of all package names with a specific type e.g. 'library' * * @param string $type * @return string[] * @psalm-return list<string> */ public static function getInstalledPackagesByType($type) { $packagesByType = array(); foreach (self::getInstalled() as $installed) { foreach ($installed['versions'] as $name => $package) { if (isset($package['type']) && $package['type'] === $type) { $packagesByType[] = $name; } } } return $packagesByType; } /** * Checks whether the given package is installed * * This also returns true if the package name is provided or replaced by another package * * @param string $packageName * @param bool $includeDevRequirements * @return bool */ public static function isInstalled($packageName, $includeDevRequirements = true) { foreach (self::getInstalled() as $installed) { if (isset($installed['versions'][$packageName])) { return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false; } } return false; } /** * Checks whether the given package satisfies a version constraint * * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: * * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') * * @param VersionParser $parser Install composer/semver to have access to this class and functionality * @param string $packageName * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package * @return bool */ public static function satisfies(VersionParser $parser, $packageName, $constraint) { $constraint = $parser->parseConstraints((string) $constraint); $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); return $provided->matches($constraint); } /** * Returns a version constraint representing all the range(s) which are installed for a given package * * It is easier to use this via isInstalled() with the $constraint argument if you need to check * whether a given version of a package is installed, and not just whether it exists * * @param string $packageName * @return string Version constraint usable with composer/semver */ public static function getVersionRanges($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } $ranges = array(); if (isset($installed['versions'][$packageName]['pretty_version'])) { $ranges[] = $installed['versions'][$packageName]['pretty_version']; } if (array_key_exists('aliases', $installed['versions'][$packageName])) { $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); } if (array_key_exists('replaced', $installed['versions'][$packageName])) { $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); } if (array_key_exists('provided', $installed['versions'][$packageName])) { $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); } return implode(' || ', $ranges); } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } /** * @param string $packageName * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present */ public static function getVersion($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } if (!isset($installed['versions'][$packageName]['version'])) { return null; } return $installed['versions'][$packageName]['version']; } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } /** * @param string $packageName * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present */ public static function getPrettyVersion($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } if (!isset($installed['versions'][$packageName]['pretty_version'])) { return null; } return $installed['versions'][$packageName]['pretty_version']; } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } /** * @param string $packageName * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference */ public static function getReference($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } if (!isset($installed['versions'][$packageName]['reference'])) { return null; } return $installed['versions'][$packageName]['reference']; } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } /** * @param string $packageName * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. */ public static function getInstallPath($packageName) { foreach (self::getInstalled() as $installed) { if (!isset($installed['versions'][$packageName])) { continue; } return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; } throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); } /** * @return array * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool} */ public static function getRootPackage() { $installed = self::getInstalled(); return $installed[0]['root']; } /** * Returns the raw installed.php data for custom implementations * * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. * @return array[] * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} */ public static function getRawData() { @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); if (null === self::$installed) { // only require the installed.php file if this file is loaded from its dumped location, // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 if (substr(__DIR__, -8, 1) !== 'C') { self::$installed = include __DIR__ . '/installed.php'; } else { self::$installed = array(); } } return self::$installed; } /** * Returns the raw data of all installed.php which are currently loaded for custom implementations * * @return array[] * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> */ public static function getAllRawData() { return self::getInstalled(); } /** * Lets you reload the static array from another file * * This is only useful for complex integrations in which a project needs to use * this class but then also needs to execute another project's autoloader in process, * and wants to ensure both projects have access to their version of installed.php. * * A typical case would be PHPUnit, where it would need to make sure it reads all * the data it needs from this class, then call reload() with * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure * the project in which it runs can then also use this class safely, without * interference between PHPUnit's dependencies and the project's dependencies. * * @param array[] $data A vendor/composer/installed.php data set * @return void * * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data */ public static function reload($data) { self::$installed = $data; self::$installedByVendor = array(); // when using reload, we disable the duplicate protection to ensure that self::$installed data is // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, // so we have to assume it does not, and that may result in duplicate data being returned when listing // all installed packages for example self::$installedIsLocalDir = false; } /** * @return string */ private static function getSelfDir() { if (self::$selfDir === null) { self::$selfDir = strtr(__DIR__, '\\', '/'); } return self::$selfDir; } /** * @return array[] * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}> */ private static function getInstalled() { if (null === self::$canGetVendors) { self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); } $installed = array(); $copiedLocalDir = false; if (self::$canGetVendors) { $selfDir = self::getSelfDir(); foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { $vendorDir = strtr($vendorDir, '\\', '/'); if (isset(self::$installedByVendor[$vendorDir])) { $installed[] = self::$installedByVendor[$vendorDir]; } elseif (is_file($vendorDir.'/composer/installed.php')) { /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ $required = require $vendorDir.'/composer/installed.php'; self::$installedByVendor[$vendorDir] = $required; $installed[] = $required; if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { self::$installed = $required; self::$installedIsLocalDir = true; } } if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { $copiedLocalDir = true; } } } if (null === self::$installed) { // only require the installed.php file if this file is loaded from its dumped location, // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 if (substr(__DIR__, -8, 1) !== 'C') { /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ $required = require __DIR__ . '/installed.php'; self::$installed = $required; } else { self::$installed = array(); } } if (self::$installed !== array() && !$copiedLocalDir) { $installed[] = self::$installed; } return $installed; } } hello-elementor/vendor/composer/installed.json 0000644 00000003003 15226066667 0015651 0 ustar 00 { "packages": [ { "name": "elementor/wp-notifications-package", "version": "1.2.0", "version_normalized": "1.2.0.0", "source": { "type": "git", "url": "https://github.com/elementor/wp-notifications-package.git", "reference": "dd25ca9dd79402c3bb51fab112aa079702eb165e" }, "dist": { "type": "zip", "url": "https://api.github.com/repos/elementor/wp-notifications-package/zipball/dd25ca9dd79402c3bb51fab112aa079702eb165e", "reference": "dd25ca9dd79402c3bb51fab112aa079702eb165e", "shasum": "" }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^v1.0.0", "squizlabs/php_codesniffer": "^3.10.2", "wp-coding-standards/wpcs": "^3.1.0" }, "time": "2025-04-28T12:27:21+00:00", "type": "library", "installation-source": "dist", "autoload": { "psr-4": { "Elementor\\WPNotificationsPackage\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", "support": { "source": "https://github.com/elementor/wp-notifications-package/tree/1.2.0" }, "install-path": "../elementor/wp-notifications-package" } ], "dev": false, "dev-package-names": [] } hello-elementor/vendor/composer/ClassLoader.php 0000644 00000037772 15226066667 0015730 0 ustar 00 <?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Autoload; /** * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. * * $loader = new \Composer\Autoload\ClassLoader(); * * // register classes with namespaces * $loader->add('Symfony\Component', __DIR__.'/component'); * $loader->add('Symfony', __DIR__.'/framework'); * * // activate the autoloader * $loader->register(); * * // to enable searching the include path (eg. for PEAR packages) * $loader->setUseIncludePath(true); * * In this example, if you try to use a class in the Symfony\Component * namespace or one of its children (Symfony\Component\Console for instance), * the autoloader will first look for the class under the component/ * directory, and it will then fallback to the framework/ directory if not * found before giving up. * * This class is loosely based on the Symfony UniversalClassLoader. * * @author Fabien Potencier <fabien@symfony.com> * @author Jordi Boggiano <j.boggiano@seld.be> * @see https://www.php-fig.org/psr/psr-0/ * @see https://www.php-fig.org/psr/psr-4/ */ class ClassLoader { /** @var \Closure(string):void */ private static $includeFile; /** @var string|null */ private $vendorDir; // PSR-4 /** * @var array<string, array<string, int>> */ private $prefixLengthsPsr4 = array(); /** * @var array<string, list<string>> */ private $prefixDirsPsr4 = array(); /** * @var list<string> */ private $fallbackDirsPsr4 = array(); // PSR-0 /** * List of PSR-0 prefixes * * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) * * @var array<string, array<string, list<string>>> */ private $prefixesPsr0 = array(); /** * @var list<string> */ private $fallbackDirsPsr0 = array(); /** @var bool */ private $useIncludePath = false; /** * @var array<string, string> */ private $classMap = array(); /** @var bool */ private $classMapAuthoritative = false; /** * @var array<string, bool> */ private $missingClasses = array(); /** @var string|null */ private $apcuPrefix; /** * @var array<string, self> */ private static $registeredLoaders = array(); /** * @param string|null $vendorDir */ public function __construct($vendorDir = null) { $this->vendorDir = $vendorDir; self::initializeIncludeClosure(); } /** * @return array<string, list<string>> */ public function getPrefixes() { if (!empty($this->prefixesPsr0)) { return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); } return array(); } /** * @return array<string, list<string>> */ public function getPrefixesPsr4() { return $this->prefixDirsPsr4; } /** * @return list<string> */ public function getFallbackDirs() { return $this->fallbackDirsPsr0; } /** * @return list<string> */ public function getFallbackDirsPsr4() { return $this->fallbackDirsPsr4; } /** * @return array<string, string> Array of classname => path */ public function getClassMap() { return $this->classMap; } /** * @param array<string, string> $classMap Class to filename map * * @return void */ public function addClassMap(array $classMap) { if ($this->classMap) { $this->classMap = array_merge($this->classMap, $classMap); } else { $this->classMap = $classMap; } } /** * Registers a set of PSR-0 directories for a given prefix, either * appending or prepending to the ones previously set for this prefix. * * @param string $prefix The prefix * @param list<string>|string $paths The PSR-0 root directories * @param bool $prepend Whether to prepend the directories * * @return void */ public function add($prefix, $paths, $prepend = false) { $paths = (array) $paths; if (!$prefix) { if ($prepend) { $this->fallbackDirsPsr0 = array_merge( $paths, $this->fallbackDirsPsr0 ); } else { $this->fallbackDirsPsr0 = array_merge( $this->fallbackDirsPsr0, $paths ); } return; } $first = $prefix[0]; if (!isset($this->prefixesPsr0[$first][$prefix])) { $this->prefixesPsr0[$first][$prefix] = $paths; return; } if ($prepend) { $this->prefixesPsr0[$first][$prefix] = array_merge( $paths, $this->prefixesPsr0[$first][$prefix] ); } else { $this->prefixesPsr0[$first][$prefix] = array_merge( $this->prefixesPsr0[$first][$prefix], $paths ); } } /** * Registers a set of PSR-4 directories for a given namespace, either * appending or prepending to the ones previously set for this namespace. * * @param string $prefix The prefix/namespace, with trailing '\\' * @param list<string>|string $paths The PSR-4 base directories * @param bool $prepend Whether to prepend the directories * * @throws \InvalidArgumentException * * @return void */ public function addPsr4($prefix, $paths, $prepend = false) { $paths = (array) $paths; if (!$prefix) { // Register directories for the root namespace. if ($prepend) { $this->fallbackDirsPsr4 = array_merge( $paths, $this->fallbackDirsPsr4 ); } else { $this->fallbackDirsPsr4 = array_merge( $this->fallbackDirsPsr4, $paths ); } } elseif (!isset($this->prefixDirsPsr4[$prefix])) { // Register directories for a new namespace. $length = strlen($prefix); if ('\\' !== $prefix[$length - 1]) { throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); } $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; $this->prefixDirsPsr4[$prefix] = $paths; } elseif ($prepend) { // Prepend directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( $paths, $this->prefixDirsPsr4[$prefix] ); } else { // Append directories for an already registered namespace. $this->prefixDirsPsr4[$prefix] = array_merge( $this->prefixDirsPsr4[$prefix], $paths ); } } /** * Registers a set of PSR-0 directories for a given prefix, * replacing any others previously set for this prefix. * * @param string $prefix The prefix * @param list<string>|string $paths The PSR-0 base directories * * @return void */ public function set($prefix, $paths) { if (!$prefix) { $this->fallbackDirsPsr0 = (array) $paths; } else { $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; } } /** * Registers a set of PSR-4 directories for a given namespace, * replacing any others previously set for this namespace. * * @param string $prefix The prefix/namespace, with trailing '\\' * @param list<string>|string $paths The PSR-4 base directories * * @throws \InvalidArgumentException * * @return void */ public function setPsr4($prefix, $paths) { if (!$prefix) { $this->fallbackDirsPsr4 = (array) $paths; } else { $length = strlen($prefix); if ('\\' !== $prefix[$length - 1]) { throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); } $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; $this->prefixDirsPsr4[$prefix] = (array) $paths; } } /** * Turns on searching the include path for class files. * * @param bool $useIncludePath * * @return void */ public function setUseIncludePath($useIncludePath) { $this->useIncludePath = $useIncludePath; } /** * Can be used to check if the autoloader uses the include path to check * for classes. * * @return bool */ public function getUseIncludePath() { return $this->useIncludePath; } /** * Turns off searching the prefix and fallback directories for classes * that have not been registered with the class map. * * @param bool $classMapAuthoritative * * @return void */ public function setClassMapAuthoritative($classMapAuthoritative) { $this->classMapAuthoritative = $classMapAuthoritative; } /** * Should class lookup fail if not found in the current class map? * * @return bool */ public function isClassMapAuthoritative() { return $this->classMapAuthoritative; } /** * APCu prefix to use to cache found/not-found classes, if the extension is enabled. * * @param string|null $apcuPrefix * * @return void */ public function setApcuPrefix($apcuPrefix) { $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; } /** * The APCu prefix in use, or null if APCu caching is not enabled. * * @return string|null */ public function getApcuPrefix() { return $this->apcuPrefix; } /** * Registers this instance as an autoloader. * * @param bool $prepend Whether to prepend the autoloader or not * * @return void */ public function register($prepend = false) { spl_autoload_register(array($this, 'loadClass'), true, $prepend); if (null === $this->vendorDir) { return; } if ($prepend) { self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; } else { unset(self::$registeredLoaders[$this->vendorDir]); self::$registeredLoaders[$this->vendorDir] = $this; } } /** * Unregisters this instance as an autoloader. * * @return void */ public function unregister() { spl_autoload_unregister(array($this, 'loadClass')); if (null !== $this->vendorDir) { unset(self::$registeredLoaders[$this->vendorDir]); } } /** * Loads the given class or interface. * * @param string $class The name of the class * @return true|null True if loaded, null otherwise */ public function loadClass($class) { if ($file = $this->findFile($class)) { $includeFile = self::$includeFile; $includeFile($file); return true; } return null; } /** * Finds the path to the file where the class is defined. * * @param string $class The name of the class * * @return string|false The path if found, false otherwise */ public function findFile($class) { // class map lookup if (isset($this->classMap[$class])) { return $this->classMap[$class]; } if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { return false; } if (null !== $this->apcuPrefix) { $file = apcu_fetch($this->apcuPrefix.$class, $hit); if ($hit) { return $file; } } $file = $this->findFileWithExtension($class, '.php'); // Search for Hack files if we are running on HHVM if (false === $file && defined('HHVM_VERSION')) { $file = $this->findFileWithExtension($class, '.hh'); } if (null !== $this->apcuPrefix) { apcu_add($this->apcuPrefix.$class, $file); } if (false === $file) { // Remember that this class does not exist. $this->missingClasses[$class] = true; } return $file; } /** * Returns the currently registered loaders keyed by their corresponding vendor directories. * * @return array<string, self> */ public static function getRegisteredLoaders() { return self::$registeredLoaders; } /** * @param string $class * @param string $ext * @return string|false */ private function findFileWithExtension($class, $ext) { // PSR-4 lookup $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; $first = $class[0]; if (isset($this->prefixLengthsPsr4[$first])) { $subPath = $class; while (false !== $lastPos = strrpos($subPath, '\\')) { $subPath = substr($subPath, 0, $lastPos); $search = $subPath . '\\'; if (isset($this->prefixDirsPsr4[$search])) { $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); foreach ($this->prefixDirsPsr4[$search] as $dir) { if (file_exists($file = $dir . $pathEnd)) { return $file; } } } } } // PSR-4 fallback dirs foreach ($this->fallbackDirsPsr4 as $dir) { if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { return $file; } } // PSR-0 lookup if (false !== $pos = strrpos($class, '\\')) { // namespaced class name $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); } else { // PEAR-like class name $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; } if (isset($this->prefixesPsr0[$first])) { foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { if (0 === strpos($class, $prefix)) { foreach ($dirs as $dir) { if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { return $file; } } } } } // PSR-0 fallback dirs foreach ($this->fallbackDirsPsr0 as $dir) { if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { return $file; } } // PSR-0 include paths. if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { return $file; } return false; } /** * @return void */ private static function initializeIncludeClosure() { if (self::$includeFile !== null) { return; } /** * Scope isolated include. * * Prevents access to $this/self from included files. * * @param string $file * @return void */ self::$includeFile = \Closure::bind(static function($file) { include $file; }, null, null); } } hello-elementor/vendor/composer/autoload_static.php 0000644 00000002154 15226066670 0016667 0 ustar 00 <?php // autoload_static.php @generated by Composer namespace Composer\Autoload; class ComposerStaticInit34f09cb5b1b6fe16179f501dbe335b80 { public static $prefixLengthsPsr4 = array ( 'E' => array ( 'Elementor\\WPNotificationsPackage\\' => 33, ), ); public static $prefixDirsPsr4 = array ( 'Elementor\\WPNotificationsPackage\\' => array ( 0 => __DIR__ . '/..' . '/elementor/wp-notifications-package/src', ), ); public static $classMap = array ( 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', ); public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { $loader->prefixLengthsPsr4 = ComposerStaticInit34f09cb5b1b6fe16179f501dbe335b80::$prefixLengthsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit34f09cb5b1b6fe16179f501dbe335b80::$prefixDirsPsr4; $loader->classMap = ComposerStaticInit34f09cb5b1b6fe16179f501dbe335b80::$classMap; }, null, ClassLoader::class); } } hello-elementor/vendor/composer/autoload_real.php 0000644 00000002077 15226066670 0016327 0 ustar 00 <?php // autoload_real.php @generated by Composer class ComposerAutoloaderInit34f09cb5b1b6fe16179f501dbe335b80 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } } /** * @return \Composer\Autoload\ClassLoader */ public static function getLoader() { if (null !== self::$loader) { return self::$loader; } spl_autoload_register(array('ComposerAutoloaderInit34f09cb5b1b6fe16179f501dbe335b80', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); spl_autoload_unregister(array('ComposerAutoloaderInit34f09cb5b1b6fe16179f501dbe335b80', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; call_user_func(\Composer\Autoload\ComposerStaticInit34f09cb5b1b6fe16179f501dbe335b80::getInitializer($loader)); $loader->register(true); return $loader; } } hello-elementor/vendor/composer/autoload_classmap.php 0000644 00000000336 15226066670 0017203 0 ustar 00 <?php // autoload_classmap.php @generated by Composer $vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', ); hello-elementor/vendor/composer/LICENSE 0000644 00000002056 15226066670 0014005 0 ustar 00 Copyright (c) Nils Adermann, Jordi Boggiano Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. hello-elementor/vendor/composer/autoload_namespaces.php 0000644 00000000213 15226066670 0017511 0 ustar 00 <?php // autoload_namespaces.php @generated by Composer $vendorDir = dirname(__DIR__); $baseDir = dirname($vendorDir); return array( ); hello-elementor/vendor/autoload.php 0000644 00000001354 15226066670 0013472 0 ustar 00 <?php // autoload.php @generated by Composer if (PHP_VERSION_ID < 50600) { if (!headers_sent()) { header('HTTP/1.1 500 Internal Server Error'); } $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; if (!ini_get('display_errors')) { if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { fwrite(STDERR, $err); } elseif (!headers_sent()) { echo $err; } } throw new RuntimeException($err); } require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInit34f09cb5b1b6fe16179f501dbe335b80::getLoader(); hello-elementor/header.php 0000644 00000002662 15226066670 0011620 0 ustar 00 <?php /** * The template for displaying the header * * This is the template that displays all of the <head> section, opens the <body> tag and adds the site's header. * * @package HelloElementor */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } $viewport_content = apply_filters( 'hello_elementor_viewport_content', 'width=device-width, initial-scale=1' ); $enable_skip_link = apply_filters( 'hello_elementor_enable_skip_link', true ); $skip_link_url = apply_filters( 'hello_elementor_skip_link_url', '#content' ); ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="<?php echo esc_attr( $viewport_content ); ?>"> <link rel="profile" href="https://gmpg.org/xfn/11"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <?php wp_body_open(); ?> <?php if ( $enable_skip_link ) { ?> <a class="skip-link screen-reader-text" href="<?php echo esc_url( $skip_link_url ); ?>"><?php echo esc_html__( 'Skip to content', 'hello-elementor' ); ?></a> <?php } ?> <?php if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'header' ) ) { if ( hello_elementor_display_header_footer() ) { if ( did_action( 'elementor/loaded' ) && hello_header_footer_experiment_active() ) { get_template_part( 'template-parts/dynamic-header' ); } else { get_template_part( 'template-parts/header' ); } } } hello-elementor/comments.php 0000644 00000002721 15226066670 0012211 0 ustar 00 <?php /** * The template for displaying the list of comments and the comment form. * * @package HelloElementor */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if ( ! post_type_supports( get_post_type(), 'comments' ) ) { return; } if ( ! have_comments() && ! comments_open() ) { return; } // Comment Reply Script. if ( comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } ?> <section id="comments" class="comments-area"> <?php if ( have_comments() ) : ?> <h2 class="title-comments"> <?php $comments_number = get_comments_number(); if ( '1' === $comments_number ) { printf( esc_html_x( 'One Response', 'comments title', 'hello-elementor' ) ); } else { printf( /* translators: %s: Number of comments. */ esc_html( _nx( '%s Response', '%s Responses', $comments_number, 'comments title', 'hello-elementor' ) ), esc_html( number_format_i18n( $comments_number ) ) ); } ?> </h2> <?php the_comments_navigation(); ?> <ol class="comment-list"> <?php wp_list_comments( [ 'style' => 'ol', 'short_ping' => true, 'avatar_size' => 42, ] ); ?> </ol> <?php the_comments_navigation(); ?> <?php endif; ?> <?php comment_form( [ 'title_reply_before' => '<h2 id="reply-title" class="comment-reply-title">', 'title_reply_after' => '</h2>', ] ); ?> </section> hello-elementor/index.php 0000644 00000001747 15226066670 0011502 0 ustar 00 <?php /** * The site's entry point. * * Loads the relevant template part, * the loop is executed (when needed) by the relevant template part. * * @package HelloElementor */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } get_header(); $is_elementor_theme_exist = function_exists( 'elementor_theme_do_location' ); if ( is_singular() ) { if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'single' ) ) { get_template_part( 'template-parts/single' ); } } elseif ( is_archive() || is_home() ) { if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'archive' ) ) { get_template_part( 'template-parts/archive' ); } } elseif ( is_search() ) { if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'archive' ) ) { get_template_part( 'template-parts/search' ); } } else { if ( ! $is_elementor_theme_exist || ! elementor_theme_do_location( 'single' ) ) { get_template_part( 'template-parts/404' ); } } get_footer(); hello-elementor/theme.json 0000644 00000001025 15226066670 0011644 0 ustar 00 { "$schema": "https://schemas.wp.org/trunk/theme.json", "version": 3, "settings": { "appearanceTools": true, "layout": { "contentSize": "800px", "wideSize": "1200px" }, "color": { "custom": true, "link": true }, "typography": { "customFontSize": true, "lineHeight": true }, "spacing": { "defaultSpacingSizes": false, "margin": true, "padding": true, "units": [ "%", "px", "em", "rem", "vh", "vw" ] } } } hello-elementor/modules/admin-home/components/settings-controller.php 0000644 00000007626 15226066670 0022271 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Components; use HelloTheme\Includes\Script; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Settings_Controller { const SETTINGS_FILTER_NAME = 'hello-plus-theme/settings'; const SETTINGS_PAGE_SLUG = 'hello-elementor-settings'; const SETTING_PREFIX = 'hello_elementor_settings'; const SETTINGS = [ 'DESCRIPTION_META_TAG' => '_description_meta_tag', 'SKIP_LINK' => '_skip_link', 'HEADER_FOOTER' => '_header_footer', 'PAGE_TITLE' => '_page_title', 'HELLO_STYLE' => '_hello_style', 'HELLO_THEME' => '_hello_theme', ]; public static function get_settings_mapping(): array { return array_map( function ( $key ) { return self::SETTING_PREFIX . $key; }, self::SETTINGS ); } public static function get_settings(): array { $settings = array_map( function ( $key ) { return self::get_option( $key ) === 'true'; }, self::get_settings_mapping() ); return apply_filters( self::SETTINGS_FILTER_NAME, $settings ); } protected static function get_option( string $option_name, $default_value = false ) { $option = get_option( $option_name, $default_value ); return apply_filters( self::SETTINGS_FILTER_NAME . '/' . $option_name, $option ); } public function legacy_register_settings() { $this->register_settings(); $this->apply_settings(); } public function apply_setting( $setting, $tweak_callback ) { $option = get_option( $setting ); if ( isset( $option ) && ( 'true' === $option ) && is_callable( $tweak_callback ) ) { $tweak_callback(); } } public function apply_settings( $settings_group = self::SETTING_PREFIX, $settings = self::SETTINGS ) { $this->apply_setting( $settings_group . $settings['DESCRIPTION_META_TAG'], function () { remove_action( 'wp_head', 'hello_elementor_add_description_meta_tag' ); } ); $this->apply_setting( $settings_group . $settings['SKIP_LINK'], function () { add_filter( 'hello_elementor_enable_skip_link', '__return_false' ); } ); $this->apply_setting( $settings_group . $settings['HEADER_FOOTER'], function () { add_filter( 'hello_elementor_header_footer', '__return_false' ); } ); $this->apply_setting( $settings_group . $settings['PAGE_TITLE'], function () { add_filter( 'hello_elementor_page_title', '__return_false' ); } ); $this->apply_setting( $settings_group . $settings['HELLO_STYLE'], function () { add_filter( 'hello_elementor_enqueue_style', '__return_false' ); } ); $this->apply_setting( $settings_group . $settings['HELLO_THEME'], function () { add_filter( 'hello_elementor_enqueue_theme_style', '__return_false' ); } ); } public function register_settings( $settings_group = self::SETTING_PREFIX, $settings = self::SETTINGS ) { foreach ( $settings as $setting_value ) { register_setting( $settings_group, $settings_group . $setting_value, [ 'default' => '', 'show_in_rest' => true, 'type' => 'string', ] ); } } public function enqueue_hello_plus_settings_scripts() { $screen = get_current_screen(); if ( ! str_ends_with( $screen->id, '_page_' . self::SETTINGS_PAGE_SLUG ) ) { return; } $script = new Script( 'hello-elementor-settings', [ 'wp-util' ] ); $script->enqueue(); } public function register_settings_page( $parent_slug ): void { add_submenu_page( $parent_slug, __( 'Settings', 'hello-elementor' ), __( 'Settings', 'hello-elementor' ), 'manage_options', self::SETTINGS_PAGE_SLUG, [ $this, 'render_settings_page' ] ); } public function render_settings_page(): void { echo '<div id="ehe-admin-settings"></div>'; } public function __construct() { add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_hello_plus_settings_scripts' ] ); add_action( 'hello-plus-theme/admin-menu', [ $this, 'register_settings_page' ], 10, 1 ); } } hello-elementor/modules/admin-home/components/finder.php 0000644 00000001331 15226066670 0017502 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Components; if ( ! defined( 'ABSPATH' ) ) { exit; } class Finder { public function add_hello_theme_finder_entry( $categories_data ) { if ( isset( $categories_data['site'] ) && isset( $categories_data['site']['items'] ) ) { $categories_data['site']['items']['hello-elementor-home'] = [ 'title' => esc_html__( 'Hello Theme Home', 'hello-elementor' ), 'icon' => 'paint-brush', 'url' => admin_url( 'admin.php?page=hello-elementor' ), 'keywords' => [ 'theme', 'hello', 'home', 'plus', '+' ], ]; } return $categories_data; } public function __construct() { add_filter( 'elementor/finder/categories', [ $this, 'add_hello_theme_finder_entry' ] ); } } hello-elementor/modules/admin-home/components/conversion-banner.php 0000644 00000013117 15226066670 0021670 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Components; use HelloTheme\Includes\Script; use HelloTheme\Includes\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Conversion_Banner { const DEFAULT_SELECTOR = '.wrap h1, .wrap h2'; const SCRIPT_HANDLE = 'hello-conversion-banner'; const NONCE_ACTION = 'ehe_cb_nonce'; const OBJECT_NAME = 'ehe_cb'; const USER_META_KEY = '_hello_elementor_install_notice'; const AJAX_ACTION = 'ehe_dismiss_theme_notice'; private function render_conversion_banner() { ?> <div id="ehe-admin-cb" style="width: calc(100% - 48px)"> </div> <?php } private function get_allowed_admin_pages(): array { return [ 'dashboard' => [ 'selector' => '#wpbody #wpbody-content .wrap h1' ], 'update-core' => [ 'selector' => self::DEFAULT_SELECTOR ], 'edit-post' => [ 'selector' => self::DEFAULT_SELECTOR ], 'edit-category' => [ 'selector' => self::DEFAULT_SELECTOR ], 'edit-post_tag' => [ 'selector' => self::DEFAULT_SELECTOR ], 'upload' => [ 'selector' => self::DEFAULT_SELECTOR ], 'media' => [ 'selector' => self::DEFAULT_SELECTOR ], 'edit-page' => [ 'selector' => self::DEFAULT_SELECTOR ], 'elementor_page_elementor-settings' => [ 'selector' => self::DEFAULT_SELECTOR ], 'edit-elementor_library' => [ 'selector' => self::DEFAULT_SELECTOR, 'before' => true, ], 'elementor_page_elementor-tools' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'elementor_page_elementor-role-manager' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'elementor_page_elementor-element-manager' => [ 'selector' => '.wrap h1, .wrap h3.wp-heading-inline', ], 'elementor_page_elementor-system-info' => [ 'selector' => '#wpbody #wpbody-content #elementor-system-info .elementor-system-info-header', 'before' => true, ], 'elementor_library_page_e-floating-buttons' => [ 'selector' => '#wpbody-content .e-landing-pages-empty, .wrap h2', 'before' => true, ], 'edit-e-floating-buttons' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'edit-elementor_library_category' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'themes' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'nav-menus' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'theme-editor' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'plugins' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'plugin-install' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'plugin-editor' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'users' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'user' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'profile' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'tools' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'import' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'export' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'site-health' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'export-personal-data' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'erase-personal-data' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'options-general' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'options-writing' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'options-reading' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'options-discussion' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'options-media' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'options-permalink' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'options-privacy' => [ 'selector' => self::DEFAULT_SELECTOR, ], 'privacy-policy-guide' => [ 'selector' => self::DEFAULT_SELECTOR, ], ]; } private function is_allowed_admin_page(): array { $current_screen = get_current_screen(); if ( ! $current_screen ) { return []; } $allowed_pages = $this->get_allowed_admin_pages(); $current_page = $current_screen->id; return $allowed_pages[ $current_page ] ?? []; } private function is_conversion_banner_active(): array { if ( get_user_meta( get_current_user_id(), self::USER_META_KEY, true ) ) { return []; } if ( Utils::has_pro() && Utils::is_elementor_active() ) { return []; } return $this->is_allowed_admin_page(); } private function enqueue_scripts( array $conversion_banner_active ) { $script = new Script( self::SCRIPT_HANDLE, [ 'wp-util' ] ); $script->enqueue(); $is_installing_plugin_with_uploader = 'upload-plugin' === filter_input( INPUT_GET, 'action', FILTER_UNSAFE_RAW ); wp_localize_script( self::SCRIPT_HANDLE, self::OBJECT_NAME, [ 'nonce' => wp_create_nonce( self::NONCE_ACTION ), 'beforeWrap' => $is_installing_plugin_with_uploader, 'data' => $conversion_banner_active, ] ); } public function dismiss_theme_notice() { check_ajax_referer( self::NONCE_ACTION, 'nonce' ); update_user_meta( get_current_user_id(), self::USER_META_KEY, true ); wp_send_json_success( [ 'message' => __( 'Notice dismissed.', 'hello-elementor' ) ] ); } public function __construct() { add_action( 'wp_ajax_' . self::AJAX_ACTION, [ $this, 'dismiss_theme_notice' ] ); add_action( 'current_screen', function () { $conversion_banner_active = $this->is_conversion_banner_active(); if ( ! $conversion_banner_active ) { return; } add_action( 'in_admin_header', function () { $this->render_conversion_banner(); }, 11 ); add_action( 'admin_enqueue_scripts', function () use ( $conversion_banner_active ) { $this->enqueue_scripts( $conversion_banner_active ); } ); } ); } } hello-elementor/modules/admin-home/components/admin-top-bar.php 0000644 00000002235 15226066670 0020671 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Components; use HelloTheme\Includes\Script; use HelloTheme\Includes\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Admin_Top_Bar { private function render_admin_top_bar() { ?> <div id="ehe-admin-top-bar-root" style="height: 50px"> </div> <?php } private function is_top_bar_active() { $current_screen = get_current_screen(); return ( false !== strpos( $current_screen->id ?? '', EHP_THEME_SLUG ) ); } private function enqueue_scripts() { $script = new Script( 'hello-elementor-topbar', ); $script->enqueue(); } public function __construct() { if ( ! is_admin() ) { return; } add_action( 'current_screen', function () { if ( ! $this->is_top_bar_active() ) { return; } add_action( 'in_admin_header', function () { $this->render_admin_top_bar(); } ); add_action( 'admin_enqueue_scripts', function () { $this->enqueue_scripts(); } ); if ( defined( 'ELEMENTOR_VERSION' ) && version_compare( ELEMENTOR_VERSION, '3.34.2', '<' ) ) { add_action( 'elementor/admin-top-bar/is-active', '__return_false' ); } } ); } } hello-elementor/modules/admin-home/components/scripts-controller.php 0000644 00000001054 15226066670 0022105 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Components; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } use HelloTheme\Includes\Script; class Scripts_Controller { public function __construct() { add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] ); } public function admin_enqueue_scripts() { $screen = get_current_screen(); if ( 'toplevel_page_' . EHP_THEME_SLUG !== $screen->id ) { return; } $script = new Script( 'hello-home-app', [ 'wp-util' ] ); $script->enqueue(); } } hello-elementor/modules/admin-home/components/ajax-handler.php 0000644 00000000527 15226066670 0020577 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Components; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Ajax_Handler { public function __construct() { add_action( 'wp_ajax_ehe_install_elementor', [ $this, 'install_elementor' ] ); } public function install_elementor() { wp_ajax_install_plugin(); } } hello-elementor/modules/admin-home/components/admin-menu-controller.php 0000644 00000004434 15226066670 0022455 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Components; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } use HelloTheme\Includes\Script; use HelloTheme\Includes\Utils; class Admin_Menu_Controller { const MENU_PAGE_ICON = 'dashicons-plus-alt'; const MENU_PAGE_POSITION = 59.9; const AI_SITE_PLANNER_SLUG = '-ai-site-planner'; const THEME_BUILDER_SLUG = '-theme-builder'; public function admin_menu(): void { add_menu_page( __( 'Hello', 'hello-elementor' ), __( 'Hello', 'hello-elementor' ), 'manage_options', EHP_THEME_SLUG, [ $this, 'render_home' ], self::MENU_PAGE_ICON, self::MENU_PAGE_POSITION ); add_submenu_page( EHP_THEME_SLUG, __( 'Home', 'hello-elementor' ), __( 'Home', 'hello-elementor' ), 'manage_options', EHP_THEME_SLUG, [ $this, 'render_home' ] ); do_action( 'hello-plus-theme/admin-menu', EHP_THEME_SLUG ); $theme_builder_slug = Utils::get_theme_builder_slug(); add_submenu_page( EHP_THEME_SLUG, __( 'Theme Builder', 'hello-elementor' ), __( 'Theme Builder', 'hello-elementor' ), 'manage_options', empty( $theme_builder_slug ) ? EHP_THEME_SLUG . self::THEME_BUILDER_SLUG : $theme_builder_slug, [ $this, 'render_home' ] ); add_submenu_page( EHP_THEME_SLUG, __( 'AI Site Planner', 'hello-elementor' ), __( 'AI Site Planner', 'hello-elementor' ), 'manage_options', EHP_THEME_SLUG . self::AI_SITE_PLANNER_SLUG, [ $this, 'render_home' ] ); } public function render_home(): void { echo '<div id="ehe-admin-home"></div>'; } public function redirect_menus(): void { $page = sanitize_key( filter_input( INPUT_GET, 'page', FILTER_UNSAFE_RAW ) ); switch ( $page ) { case EHP_THEME_SLUG . self::AI_SITE_PLANNER_SLUG: wp_redirect( Utils::get_ai_site_planner_url() ); exit; case EHP_THEME_SLUG . self::THEME_BUILDER_SLUG: wp_redirect( Utils::get_theme_builder_url() ); exit; default: break; } } public function admin_enqueue_scripts() { $script = new Script( 'hello-elementor-menu', ); $script->enqueue(); } public function __construct() { add_action( 'admin_menu', [ $this, 'admin_menu' ] ); add_action( 'admin_init', [ $this, 'redirect_menus' ] ); add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] ); } } hello-elementor/modules/admin-home/components/notificator.php 0000644 00000003070 15226066670 0020556 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Components; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Notificator { private ?\Elementor\WPNotificationsPackage\V120\Notifications $notificator = null; public function get_notifications_by_conditions( $force_request = false ) { if ( null === $this->notificator ) { return []; } return $this->notificator->get_notifications_by_conditions( $force_request ); } public function __construct() { if ( ! $this->ensure_notifications_class_loaded() ) { return; } $this->notificator = new \Elementor\WPNotificationsPackage\V120\Notifications( [ 'app_name' => 'hello-elementor', 'app_version' => HELLO_ELEMENTOR_VERSION, 'short_app_name' => 'hello-elementor', 'app_data' => [ 'theme_name' => 'hello-elementor', ], ] ); } private function ensure_notifications_class_loaded(): bool { if ( class_exists( 'Elementor\WPNotificationsPackage\V120\Notifications' ) ) { return true; } $elementor_autoload = defined( 'ELEMENTOR_PATH' ) ? ELEMENTOR_PATH . 'vendor/autoload.php' : WP_PLUGIN_DIR . '/elementor/vendor/autoload.php'; if ( file_exists( $elementor_autoload ) ) { require_once $elementor_autoload; } if ( class_exists( 'Elementor\WPNotificationsPackage\V120\Notifications' ) ) { return true; } $hello_theme_autoload = HELLO_THEME_PATH . '/vendor/autoload.php'; if ( file_exists( $hello_theme_autoload ) ) { require_once $hello_theme_autoload; } return class_exists( 'Elementor\WPNotificationsPackage\V120\Notifications' ); } } hello-elementor/modules/admin-home/components/api-controller.php 0000644 00000001212 15226066670 0021163 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Components; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } use HelloTheme\Modules\AdminHome\Rest\Admin_Config; use HelloTheme\Modules\AdminHome\Rest\Promotions; use HelloTheme\Modules\AdminHome\Rest\Theme_Settings; use HelloTheme\Modules\AdminHome\Rest\Whats_New; class Api_Controller { protected $endpoints = []; public function __construct() { $this->endpoints['promotions'] = new Promotions(); $this->endpoints['admin-config'] = new Admin_Config(); $this->endpoints['theme-settings'] = new Theme_Settings(); $this->endpoints['whats-new'] = new Whats_New(); } } hello-elementor/modules/admin-home/module.php 0000644 00000001226 15226066670 0015336 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome; use HelloTheme\Includes\Module_Base; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * class Module * * @package HelloPlus * @subpackage HelloPlusModules */ class Module extends Module_Base { /** * @inheritDoc */ public static function get_name(): string { return 'admin-home'; } /** * @inheritDoc */ protected function get_component_ids(): array { return [ 'Admin_Menu_Controller', 'Scripts_Controller', 'Api_Controller', 'Ajax_Handler', 'Conversion_Banner', 'Admin_Top_Bar', 'Settings_Controller', 'Notificator', 'Finder', ]; } } hello-elementor/modules/admin-home/rest/whats-new.php 0000644 00000001216 15226066670 0016742 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Rest; use HelloTheme\Modules\AdminHome\Module; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Whats_New extends Rest_Base { public function get_notifications() { $notificator = Module::instance()->get_component( 'Notificator' ); return $notificator->get_notifications_by_conditions(); } public function register_routes() { register_rest_route( self::ROUTE_NAMESPACE, '/whats-new', [ 'methods' => \WP_REST_Server::READABLE, 'callback' => [ $this, 'get_notifications' ], 'permission_callback' => [ $this, 'permission_callback' ], ] ); } } hello-elementor/modules/admin-home/rest/promotions.php 0000644 00000006102 15226066670 0017235 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Rest; use HelloTheme\Includes\Utils; use WP_REST_Server; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Promotions extends Rest_Base { public function get_promotions() { $action_links_data = []; if ( ! defined( 'ELEMENTOR_PRO_VERSION' ) && Utils::is_elementor_active() ) { $action_links_data[] = [ 'type' => 'go-pro', 'image' => HELLO_THEME_IMAGES_URL . 'go-pro.svg', 'url' => 'https://go.elementor.com/hello-upgrade-epro/', 'alt' => __( 'Elementor Pro', 'hello-elementor' ), 'title' => __( 'Bring your vision to life', 'hello-elementor' ), 'messages' => [ __( 'Get complete design flexibility for your website with Elementor Pro’s advanced tools and premium features.', 'hello-elementor' ), ], 'button' => __( 'Upgrade Now', 'hello-elementor' ), 'upgrade' => true, 'features' => [ __( 'Popup Builder', 'hello-elementor' ), __( 'Custom Code & CSS', 'hello-elementor' ), __( 'E-commerce Features', 'hello-elementor' ), __( 'Collaborative Notes', 'hello-elementor' ), __( 'Form Submission', 'hello-elementor' ), __( 'Form Integrations', 'hello-elementor' ), __( 'Customs Attribute', 'hello-elementor' ), __( 'Role Manager', 'hello-elementor' ), ], ]; } if ( ! defined( 'ELEMENTOR_IMAGE_OPTIMIZER_VERSION' ) && ! defined( 'IMAGE_OPTIMIZATION_VERSION' ) ) { $action_links_data[] = [ 'type' => 'go-image-optimizer', 'image' => HELLO_THEME_IMAGES_URL . 'image-optimizer.svg', 'url' => Utils::get_plugin_install_url( 'image-optimization' ), 'alt' => __( 'Elementor Image Optimizer', 'hello-elementor' ), 'title' => '', 'messages' => [ __( 'Optimize Images.', 'hello-elementor' ), __( 'Reduce Size.', 'hello-elementor' ), __( 'Improve Speed.', 'hello-elementor' ), __( 'Try Image Optimizer for free', 'hello-elementor' ), ], 'button' => __( 'Install', 'hello-elementor' ), 'width' => 72, 'height' => 'auto', 'target' => '_self', 'backgroundImage' => HELLO_THEME_IMAGES_URL . 'image-optimization-bg.svg', ]; } if ( ! defined( 'ELEMENTOR_AI_VERSION' ) && Utils::is_elementor_installed() ) { $action_links_data[] = [ 'type' => 'go-ai', 'image' => HELLO_THEME_IMAGES_URL . 'ai.png', 'url' => 'https://go.elementor.com/hello-site-planner', 'alt' => __( 'Elementor AI', 'hello-elementor' ), 'title' => __( 'Elementor AI', 'hello-elementor' ), 'messages' => [ __( 'Boost creativity with Elementor AI. Craft & enhance copy, create custom CSS & Code, and generate images to elevate your website.', 'hello-elementor' ), ], 'button' => __( 'Let\'s Go', 'hello-elementor' ), ]; } return rest_ensure_response( [ 'links' => $action_links_data ] ); } public function register_routes() { register_rest_route( self::ROUTE_NAMESPACE, '/promotions', [ 'methods' => WP_REST_Server::READABLE, 'callback' => [ $this, 'get_promotions' ], 'permission_callback' => [ $this, 'permission_callback' ], ] ); } } hello-elementor/modules/admin-home/rest/theme-settings.php 0000644 00000003123 15226066670 0017764 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Rest; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } use HelloTheme\Modules\AdminHome\Components\Settings_Controller; use WP_REST_Server; class Theme_Settings extends Rest_Base { public function register_routes() { register_rest_route( self::ROUTE_NAMESPACE, '/theme-settings', [ 'methods' => WP_REST_Server::READABLE, 'callback' => [ $this, 'get_theme_settings' ], 'permission_callback' => [ $this, 'permission_callback' ], ] ); register_rest_route( self::ROUTE_NAMESPACE, '/theme-settings', [ 'methods' => WP_REST_Server::EDITABLE, 'callback' => [ $this, 'set_theme_settings' ], 'permission_callback' => [ $this, 'permission_callback' ], ] ); } public function get_theme_settings() { return rest_ensure_response( [ 'settings' => Settings_Controller::get_settings(), ] ); } public function set_theme_settings( \WP_REST_Request $request ) { $settings = $request->get_param( 'settings' ); if ( ! is_array( $settings ) ) { return new \WP_Error( 'invalid_settings', esc_html__( 'Settings must be an array', 'hello-elementor' ), [ 'status' => 400 ] ); } $settings_map = Settings_Controller::get_settings_mapping(); foreach ( $settings as $key => $value ) { if ( ! array_key_exists( $key, $settings_map ) ) { continue; } $value = $value ? 'true' : 'false'; update_option( $settings_map[ $key ], $value ); } return rest_ensure_response( [ 'settings' => $settings ] ); } } hello-elementor/modules/admin-home/rest/rest-base.php 0000644 00000001005 15226066670 0016706 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Rest; use HelloTheme\Modules\AdminHome\Module; use WP_REST_Server; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } abstract class Rest_Base { const ROUTE_NAMESPACE = 'elementor-hello-elementor/v1'; abstract public function register_routes(); public function permission_callback(): bool { return current_user_can( 'manage_options' ); } public function __construct() { add_action( 'rest_api_init', [ $this, 'register_routes' ] ); } } hello-elementor/modules/admin-home/rest/admin-config.php 0000644 00000026510 15226066670 0017364 0 ustar 00 <?php namespace HelloTheme\Modules\AdminHome\Rest; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } use Elementor\Core\DocumentTypes\Page; use HelloTheme\Includes\Utils; use WP_REST_Server; class Admin_Config extends Rest_Base { public function register_routes() { register_rest_route( self::ROUTE_NAMESPACE, '/admin-settings', [ 'methods' => WP_REST_Server::READABLE, 'callback' => [ $this, 'get_admin_config' ], 'permission_callback' => [ $this, 'permission_callback' ], ] ); } public function get_admin_config() { $elementor_page_id = Utils::is_elementor_active() ? $this->ensure_elementor_page_exists() : null; $config = $this->get_welcome_box_config( [] ); $config = $this->get_site_parts( $config, $elementor_page_id ); $config = $this->get_resources( $config ); $config = apply_filters( 'hello-plus-theme/rest/admin-config', $config ); $config['config'] = [ 'nonceInstall' => wp_create_nonce( 'updates' ), 'slug' => 'elementor', ]; return rest_ensure_response( [ 'config' => $config ] ); } private function ensure_elementor_page_exists(): int { $existing_page = \Elementor\Core\DocumentTypes\Page::get_elementor_page(); if ( $existing_page ) { return $existing_page->ID; } $page_data = [ 'post_title' => 'Hello Theme page', 'post_content' => '', 'post_status' => 'draft', 'post_type' => 'page', 'meta_input' => [ '_elementor_edit_mode' => 'builder', '_elementor_template_type' => 'wp-page', ], ]; $page_id = wp_insert_post( $page_data ); if ( is_wp_error( $page_id ) ) { throw new \RuntimeException( 'Failed to create Elementor page: ' . esc_html( $page_id->get_error_message() ) ); } if ( ! $page_id ) { throw new \RuntimeException( 'Page creation returned invalid ID' ); } wp_update_post([ 'ID' => $page_id, 'post_title' => 'Hello Theme #' . $page_id, ]); return $page_id; } private function get_elementor_editor_url( ?int $page_id, string $active_tab ): string { $active_kit_id = Utils::elementor()->kits_manager->get_active_id(); $url = add_query_arg( [ 'post' => $page_id, 'action' => 'elementor', 'active-tab' => $active_tab, 'active-document' => $active_kit_id, ], admin_url( 'post.php' ) ); return $url . '#e:run:panel/global/open'; } public function get_resources( array $config ) { $config['resourcesData'] = [ 'community' => [ [ 'title' => __( 'Facebook', 'hello-elementor' ), 'link' => 'https://www.facebook.com/groups/Elementors/', 'icon' => 'BrandFacebookIcon', 'target' => '_blank', ], [ 'title' => __( 'YouTube', 'hello-elementor' ), 'link' => 'https://www.youtube.com/@Elementor', 'icon' => 'BrandYoutubeIcon', 'target' => '_blank', ], [ 'title' => __( 'Discord', 'hello-elementor' ), 'link' => 'https://discord.com/servers/elementor-official-community-1164474724626206720', 'target' => '_blank', ], [ 'title' => __( 'Rate Us', 'hello-elementor' ), 'link' => 'https://wordpress.org/support/theme/hello-elementor/reviews/#new-post', 'icon' => 'StarIcon', 'target' => '_blank', ], ], 'resources' => [ [ 'title' => __( 'Help Center', 'hello-elementor' ), 'link' => ' https://go.elementor.com/hello-help/', 'icon' => 'HelpIcon', 'target' => '_blank', ], [ 'title' => __( 'Blog', 'hello-elementor' ), 'link' => 'https://go.elementor.com/hello-blog/', 'icon' => 'SpeakerphoneIcon', 'target' => '_blank', ], [ 'title' => __( 'Platinum Support', 'hello-elementor' ), 'link' => 'https://go.elementor.com/platinum-support', 'icon' => 'BrandElementorIcon', 'target' => '_blank', ], ], ]; return $config; } public function get_site_parts( array $config, ?int $elementor_page_id = null ): array { $last_five_pages_query = new \WP_Query( [ 'posts_per_page' => 5, 'post_type' => 'page', 'post_status' => 'publish', 'orderby' => 'post_date', 'order' => 'DESC', 'fields' => 'ids', 'no_found_rows' => true, 'lazy_load_term_meta' => true, 'update_post_meta_cache' => false, ] ); $site_pages = []; if ( $last_five_pages_query->have_posts() ) { $elementor_active = Utils::is_elementor_active(); $edit_with_elementor = $elementor_active ? '&action=elementor' : ''; while ( $last_five_pages_query->have_posts() ) { $last_five_pages_query->the_post(); $site_pages[] = [ 'title' => get_the_title(), 'link' => get_edit_post_link( get_the_ID(), 'admin' ) . $edit_with_elementor, 'icon' => 'PagesIcon', ]; } } $general = [ [ 'title' => __( 'Add New Page', 'hello-elementor' ), 'link' => self_admin_url( 'post-new.php?post_type=page' ), 'icon' => 'PageTypeIcon', ], [ 'title' => __( 'Settings', 'hello-elementor' ), 'link' => self_admin_url( 'admin.php?page=hello-elementor-settings' ), ], ]; $common_parts = []; $customizer_header_footer_url = $this->get_open_homepage_with_tab( $elementor_page_id, '', null, [ 'autofocus[section]' => 'hello-options' ] ); $header_part = [ 'id' => 'header', 'title' => __( 'Header', 'hello-elementor' ), 'link' => $customizer_header_footer_url, 'icon' => 'HeaderTemplateIcon', 'sublinks' => [], ]; $footer_part = [ 'id' => 'footer', 'title' => __( 'Footer', 'hello-elementor' ), 'link' => $customizer_header_footer_url, 'icon' => 'FooterTemplateIcon', 'sublinks' => [], ]; if ( Utils::is_elementor_active() ) { $common_parts = [ [ 'title' => __( 'Theme Builder', 'hello-elementor' ), 'link' => Utils::get_theme_builder_url(), 'icon' => 'ThemeBuilderIcon', ], ]; $header_part['link'] = $this->get_open_homepage_with_tab( $elementor_page_id, 'hello-settings-header' ); $footer_part['link'] = $this->get_open_homepage_with_tab( $elementor_page_id, 'hello-settings-footer' ); if ( Utils::has_pro() ) { $header_part = $this->update_pro_part( $header_part, 'header' ); $footer_part = $this->update_pro_part( $footer_part, 'footer' ); } } $site_parts = [ 'siteParts' => array_merge( [ $header_part, $footer_part, ], $common_parts ), 'sitePages' => $site_pages, 'general' => $general, ]; $config['siteParts'] = apply_filters( 'hello-plus-theme/template-parts', $site_parts ); return $this->get_quicklinks( $config, $elementor_page_id ); } private function update_pro_part( array $part, string $location ): array { $theme_builder_module = \ElementorPro\Modules\ThemeBuilder\Module::instance(); $conditions_manager = $theme_builder_module->get_conditions_manager(); $documents = $conditions_manager->get_documents_for_location( $location ); if ( ! empty( $documents ) ) { $first_document_id = array_key_first( $documents ); $edit_link = get_edit_post_link( $first_document_id, 'admin' ) . '&action=elementor'; } else { $edit_link = $this->get_open_homepage_with_tab( null, 'hello-settings-' . $location ); } $part['sublinks'] = [ [ 'title' => __( 'Edit', 'hello-elementor' ), 'link' => $edit_link, ], [ 'title' => __( 'Add New', 'hello-elementor' ), 'link' => \Elementor\Plugin::instance()->app->get_base_url() . '#/site-editor/templates/' . $location, ], ]; return $part; } public function get_open_homepage_with_tab( ?int $page_id, $action, $section = null, $customizer_fallback_args = [] ): string { if ( Utils::is_elementor_active() ) { $url = $page_id ? $this->get_elementor_editor_url( $page_id, $action ) : Page::get_site_settings_url_config( $action )['url']; if ( $section ) { $url = add_query_arg( 'active-section', $section, $url ); } return $url; } return add_query_arg( $customizer_fallback_args, self_admin_url( 'customize.php' ) ); } public function get_quicklinks( $config, ?int $elementor_page_id = null ): array { $config['quickLinks'] = [ 'site_name' => [ 'title' => __( 'Site Name', 'hello-elementor' ), 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'settings-site-identity', null, [ 'autofocus[section]' => 'title_tagline' ] ), 'icon' => 'TextIcon', ], 'site_logo' => [ 'title' => __( 'Site Logo', 'hello-elementor' ), 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'settings-site-identity', null, [ 'autofocus[section]' => 'title_tagline' ] ), 'icon' => 'PhotoIcon', ], 'site_favicon' => [ 'title' => __( 'Site Favicon', 'hello-elementor' ), 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'settings-site-identity', null, [ 'autofocus[section]' => 'title_tagline' ] ), 'icon' => 'AppsIcon', ], ]; if ( Utils::is_elementor_active() ) { $config['quickLinks']['site_colors'] = [ 'title' => __( 'Site Colors', 'hello-elementor' ), 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'global-colors' ), 'icon' => 'BrushIcon', ]; $config['quickLinks']['site_fonts'] = [ 'title' => __( 'Site Fonts', 'hello-elementor' ), 'link' => $this->get_open_homepage_with_tab( $elementor_page_id, 'global-typography' ), 'icon' => 'UnderlineIcon', ]; } return $config; } public function get_welcome_box_config( array $config ): array { $is_elementor_installed = Utils::is_elementor_installed(); $is_elementor_active = Utils::is_elementor_active(); $has_pro = Utils::has_pro(); if ( ! $is_elementor_active ) { $link = $is_elementor_installed ? Utils::get_elementor_activation_link() : 'install'; $action_link_type = Utils::get_action_link_type(); if ( 'activate-elementor' === $action_link_type ) { $cta_text = __( 'Activate Elementor', 'hello-elementor' ); } else { $cta_text = __( 'Install Elementor', 'hello-elementor' ); } $config['welcome'] = [ 'title' => __( 'Thanks for installing the Hello Theme!', 'hello-elementor' ), 'text' => __( 'Welcome to Hello Theme—a lightweight, blank canvas designed to integrate seamlessly with Elementor, the most popular, no-code visual website builder. By installing and activating Elementor, you\'ll unlock the power to craft a professional website with advanced features and functionalities.', 'hello-elementor' ), 'buttons' => [ [ 'linkText' => $cta_text, 'variant' => 'contained', 'link' => $link, 'color' => 'primary', ], ], 'image' => [ 'src' => HELLO_THEME_IMAGES_URL . 'install-elementor.png', 'alt' => $cta_text, ], ]; return $config; } if ( $is_elementor_active && ! $has_pro ) { $config['welcome'] = [ 'title' => __( 'Go Pro, Go Limitless', 'hello-elementor' ), 'text' => __( 'Unlock the theme builder, popup builder, 100+ widgets and more advanced tools to take your website to the next level.', 'hello-elementor' ), 'buttons' => [ [ 'linkText' => __( 'Upgrade now', 'hello-elementor' ), 'variant' => 'contained', 'link' => 'https://go.elementor.com/hello-upgrade-epro/', 'color' => 'primary', 'target' => '_blank', ], ], ]; return $config; } $config['welcome'] = []; return $config; } } hello-elementor/readme.txt 0000644 00000041075 15226066670 0011656 0 ustar 00 === Hello Elementor === Contributors: elemntor, KingYes, ariel.k, bainternet Requires at least: 6.0 Tested up to: 6.8 Stable tag: 3.4.9 Version: 3.4.9 Requires PHP: 7.4 License: GNU General Public License v3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html A lightweight and minimalist WordPress theme for Elementor site builder. == Description == Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme's main focus is on providing a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. It is optimized for speed and performance, and its simplicity and flexibility make it a great choice for both beginners and experienced website designers. The theme supports common WordPress features which can be extended using a child-theme. In addition, there are several ways to add custom styles. It can be done from **Elementor**, using a child-theme, or with an external plugin. To customize the theme further, visit [Elementor developers docs](https://developers.elementor.com/docs/hello-elementor-theme/). == Copyright == This theme, like WordPress, is distributed under the terms of GPL. Use it as your springboard to building a site with ***Elementor***. Hello Elementor bundles the following third-party resources: Font Awesome icons for theme screenshot License: SIL Open Font License, version 1.1. Source: https://fontawesome.com/v4.7.0/ Image for theme screenshot, Copyright Jason Blackeye License: CC0 1.0 Universal (CC0 1.0) Source: https://stocksnap.io/photo/4B83RD7BV9 == Changelog == = 3.4.9 - 2026-05-20 * Fix: CSS improvements for Elementor widgets = 3.4.8 - 2026-05-20 * Fix: CSS improvements for Elementor widgets = 3.4.7 - 2026-03-16 * Tweak: Updated theme home page = 3.4.6 - 2026-01-21 * Tweak: Updated Elementor assets = 3.4.5 - 2025-10-27 * New: Add theme home to Finder * Tweak: Improve banner behavior after clicking on action button * Fix: Load styles correctly in Gutenberg pages * Fix: Do not change menu name after Elementor activation * Fix: Ensure quicklinks works correctly from home page = 3.4.4 - 2025-06-08 = * Tweak: Improve Header/Footer edit access from theme Home = 3.4.3 - 2025-05-26 = * Fix: Settings page empty after 3.4.0 in translated sites * Fix: PHP 8.4 deprecation notice = 3.4.2 - 2025-05-19 = * Tweak: Set Home links font weight to regular * Tweak: Dart SASS 3.0.0 - resolve scss deprecated warnings * Fix: Settings page empty after 3.4.0 = 3.4.1 - 2025-05-08 = * Fix: Critical Error after theme update [critical-error-on-website-54/#post-18454740](https://wordpress.org/support/topic/critical-error-on-website-54/#post-18454740) = 3.4.0 - 2025-05-05 = * New: Add Theme Home * Tweak: Theme settings page style = 3.3.0 - 2025-01-21 = * Tweak: Added changelog link in theme settings * Tweak: Updated minimum required Safari version to 15.5 * Tweak: Update autoprefixer to latest versions = 3.2.1 - 2024-12-16 = * Fix: Gutenberg editor expanded disproportionately after adding support for `theme.json` ([#430](https://github.com/elementor/hello-theme/issues/430)) * Fix: Use CSS logical properties in the theme * Fix: Add ARIA attributes to header nav menu = 3.2.0 - 2024-12-15 = * Tweak: Convert classic to hybrid theme with block-editor support * Tweak: Added new design options to header/footer * Tweak: Update `Tested up to 6.7` * Fix: Minify JS files ([#419](https://github.com/elementor/hello-theme/issues/419)) = 3.1.1 - 2024-07-30 = * Fix: Use consistent `<h2>` for comments title and comment form = 3.1.0 - 2024-06-19 = * Tweak: Update `Requires PHP 7.4` * Tweak: Update `Tested up to 6.5` * Tweak: Add the ability to style the brand layout * Tweak: Remove deprecated Elementor code * Tweak: Restore default focus styling inside the theme * Tweak: Add `aria-label` attribute to various `<nav>` elements * Tweak: Improve mobile menu keyboard accessibility * Tweak: Semantic mobile menu toggle button * Fix: The header renders redundant `<p>` when tagline is empty * Fix: Single post renders redundant wrapping `<div>` when it has no tags * Fix: Remove redundant wrapping `<div>` from `wp_nav_menu()` output * Fix: Wrap page `<h1>` with `<div>`, not `<header>` * Fix: Use consistent `<h3>` for comments title and comment form * Fix: Remove heading tags from dynamic header/footer * Fix: Mobile Menu hamburger is not visible for logged-out users in some cases ([#369](https://github.com/elementor/hello-theme/issues/369)) * Fix: Remove duplicate ID attributes in the header mobile menu * Fix: Remove redundant table styles ([#311](https://github.com/elementor/hello-theme/issues/311)) * Fix: Remove redundant space bellow Site Logo in the header/footer * Fix: Remove redundant CSS from dynamic header/footer layout * Fix: Separate post tags in single post ([#304](https://github.com/elementor/hello-theme/issues/304)) * Fix: Display `the_tags()` after `wp_link_pages()` * Fix: Remove page break navigation from archives when using `<!--nextpage-->` * Fix: Style posts pagination component layout * Fix: Add RTL support to pagination arrows in archive pages * Fix: Update pagination prev/next labels and positions ([#404](https://github.com/elementor/hello-theme/issues/404)) * Fix: Check if Elementor is loaded when using dynamic header & footer = 3.0.2 - 2024-05-28 = * Internal: Version bump release to refresh WordPress repository = 3.0.1 - 2024-01-24 = * Fix: Harden security for admin notice dismiss button * Fix: Add `alt` attribute to all the images in the dashboard = 3.0.0 - 2023-12-26 = * New: Option to disable cross-site header & footer * Tweak: Update `Requires PHP 7.3` * Tweak: Update `Tested up to 6.4` * Tweak: Move cross-site header & footer styles to a separate CSS file * Tweak: Don't load `header-footer.min.css` when disabling header & footer * Tweak: Don't load `hello-frontend.min.js` when disabling header & footer * Tweak: Replace jQuery code with vanilla JS in the frontend * Tweak: Replace jQuery code with vanilla JS in WordPress admin * Tweak: Remove unused JS code from the frontend * Tweak: Remove unused CSS code from the editor * Tweak: Remove unnecessary `role` attributes from HTML landmark elements * Tweak: Link from Elementor Site Settings to Hello Theme Settings * Fix: Dynamic script version for better caching = 2.9.0 - 2023-10-25 = * New: Introducing the new settings page for the theme * New: Option to disable description meta tag * New: Option to disable skip link * New: Option to disable page title * New: Option to unregister Hello style.css * New: Option to unregister Hello theme.css * Tweak: Update `Requires at least 6.0` * Tweak: Update `Tested up to 6.3` = 2.8.1 - 2023-07-05 = * Tweak: Added additional CSS selectors to apply RTL on comments * Fix: Comment area style regression = 2.8.0 - 2023-07-04 = * Tweak: Update `Requires PHP 7.0` * Tweak: Added description meta tag with excerpt text * Tweak: Use CSS logical properties rather than physical properties * Tweak: Replace legacy `page-break-*` CSS properties with `break-*` properties * Tweak: Remove duplicate CSS classes for screen readers * Tweak: Merge similar translation strings (i18n) = 2.7.1 - 2023-03-27 = * Tweak: Add excerpt support for pages * Tweak: When post comments are closed, display it to the user * Fix: Empty "Skip to content" href ([#276](https://github.com/elementor/hello-theme/issues/276)) * Fix: Child themes using `hello_elementor_body_open()` no longer working ([#278](https://github.com/elementor/hello-theme/issues/278)) = 2.7.0 - 2023-03-26 = * Tweak: Update `Requires at least 5.9` * Tweak: Update `Tested up to 6.2` * Tweak: Remove backwards compatibility support for `wp_body_open()` * Tweak: Match `search.php` markup to `archive.php` markup * Tweak: Check if posts have featured images set * Tweak: Remove unnecessary `role` attributes from HTML landmark elements * Tweak: Escape translation strings for secure HTML output * Tweak: Use i18n function to make the "Menu" string translatable * Tweak: Minify SVG assets * Tweak: Make header nav-menu keyboard accessible * Tweak: Add `role="button"` to the nav-menu toggle for better accessibility * Tweak: Toggle mobile nav-menu with `Enter` & `Space` keyboard keys * Tweak: Add `hello_elementor_enable_skip_link` filter to enable/disable the skip link * Tweak: Add `hello_elementor_skip_link_url` filter to change skip link URL * Tweak: Use theme CSS not Elementor plugins CSS * Tweak: Added support for the new Elementor version * Tweak: Update autoprefixer to exclude dead browsers * Tweak: Delete deprecated `elementor_hello_theme_load_textdomain` filter hook * Tweak: Delete deprecated `elementor_hello_theme_register_menus` filter hook * Tweak: Delete deprecated `elementor_hello_theme_add_theme_support` filter hook * Tweak: Delete deprecated `elementor_hello_theme_add_woocommerce_support` filter hook * Tweak: Delete deprecated `elementor_hello_theme_enqueue_style` filter hook * Tweak: Delete deprecated `elementor_hello_theme_register_elementor_locations` filter hook * Tweak: Added additional and `custom` units to header & footer panels * Tweak: Link to Elementor "Site Identity" panel from the header & footer panels * Tweak: Delete the `hello_elementor_load_textdomain` filter hook = 2.6.1 - 2022-07-11 = * Tweak: Tables looks weird on dark backgrounds ([#126](https://github.com/elementor/hello-theme/issues/126)) * Fix: Remove unnecessary PHP tags ([#213](https://github.com/elementor/hello-theme/issues/213)) = 2.6.0 - 2022-07-10 = * Tweak: Added `theme_support` for `script` and `style` to avoid validation warnings ([#184](https://github.com/elementor/hello-theme/issues/184)) * Tweak: Sanitized content for allowed HTML tags in post title ([#118](https://github.com/elementor/hello-theme/issues/118)) * Tweak: Changed the containers to `max-width: 1140px` instead of `960px` to align with the header-footer width * Tweak: Centering the page title for better consistency in all cases * Tweak: Added link between the customizer to Elementor global settings * Tweak: Added Skip Links to custom or dynamic header for better accessibility * Fix: Added output escaping in several places ([#194](https://github.com/elementor/hello-theme/issues/194)) * Fix: Post Password Form Submit button alignment (Props [@romanbondar](https://github.com/romanbondar)) * Fix: Fatal error when kit doesn't exist or needs to be recreated ([#175](https://github.com/elementor/hello-theme/issues/175)) = 2.5.0 - 2022-01-26 = * Tweak: Added keyboard navigation to Hello Elementor theme menus * Tweak: Added Skip Links and `#content` for the main wrapper for better accessibility ([#133](https://github.com/elementor/hello-theme/issues/133)) * Tweak: Added underline for text links in Post Content for better accessibility * Tweak: Removed `outline: none` from inputs for better accessibility * Fix: Footer menu location is not being presented on sites that are not running Elementor = 2.4.2 - 2021-12-20 = * Tweak: Use HTTPS in XFN profile link to prevent mixed content error ([Topic](https://wordpress.org/support/topic/url-scheme-in-xfn-profile-link/)) * Tweak: Remove comments in `style.min.css` output ([#179](https://github.com/elementor/hello-theme/issues/179)) * Tweak: Promoted Hello Elementor theme Header & Footer experiment status to Stable * Tweak: Added compatibility for upcoming WordPress version 5.9 = 2.4.1 - 2021-07-07 = * Fix: Hello Elementor theme Header & Footer experiment should be inactive for existing sites = 2.4.0 - 2021-06-29 = * New: Introducing Header and Footer site elements as an Elementor Experiment * Tweak: Updated Elementor admin notices UI = 2.3.1 - 2020-12-28 = * Tweak: Improved UI for table elements * Tweak: Added support for Gutenberg Wide and Full image formats (Props [@ramiy](https://github.com/ramiy)) * Tweak: Added font smoothing * Tweak: Update `Tested up to 5.6` * Tweak: Update `Requires PHP 5.6` * Fix: Adjusted font-family in `code`, `pre`, `kbd` and `samp` elements (Props [@75th](https://github.com/75th)) = 2.3.0 - 2020-04-19 = * Tweak: Removed caption centering by default to allow alignment using Elementor (Props [@cirkut](https://github.com/cirkut)) * Tweak: Removed `text-align` property from table elements to avoid alignment issue in RTL websites (Props [@ramiy](https://github.com/ramiy)) * Tweak: Added `input[type="url"]` to CSS reset rules ([#109](https://github.com/elementor/hello-theme/issues/109)) * Tweak: Update `Tested up to 5.4` = 2.2.2 - 2019-12-23 = * Fix: Conflicts with minifier `cssnano` and CSS animations (Props [@CeliaRozalenM](https://github.com/CeliaRozalenM)) * Fix: Max-width property is missing in `_archive.scss` (Props [@redpik](https://github.com/redpik)) = 2.2.1 - 2019-09-10 = * Tweak: Added max width to `wp-caption` ([#91](https://github.com/elementor/hello-theme/issues/91)) * Tweak: Added support of `wp_body_open` = 2.2.0 - 2019-07-22 = * Tweak: Added viewport content filter ([#49](https://github.com/elementor/hello-theme/issues/49)) * Tweak: Added support Hide Title in Elementor * Tweak: Adhere to TRT's Theme Sniffer = 2.1.2 - 2019-06-19 = * Tweak: Added theme version to enqueued styles * Tweak: Remove header tags with `hello_elementor_page_title` filter = 2.1.1 - 2019-06-13 = * Tweak: Rename `Install Elementor Now` button to `Install Elementor` = 2.1.0 - 2019-06-12 = * New: Added basic theme styling * New: Added tagline under the site name in header * New: Added `hello_elementor_page_title` filter for show\hide page title * New: Added `hello_elementor_enqueue_theme_style` filter for enqueue theme-specific style * Tweak: Hide site name & tagline if logo file is exist * Tweak: Hide default page list when there is no primary menu * Tweak: Removed `#main` in `archive.php`, `single.php`, `search.php` & `404.php` files * Tweak: Removed `#site-header` in `header.php` file * Tweak: Replaced `#top-menu` with `.site-navigation` * Tweak: Removed custom SCSS directory, it is recommended to use child theme instead of editing parent theme = 2.0.7 - 2019-06-04 = * Tweak: Added nextpage support to `single.php` * Tweak: Keep both original and minified css files * Tweak: Removed `flexible-header`, `custom-colors`, `editor-style` tags = 2.0.6 - 2019-05-08 = * Tweak: Removed irrelevant font family from `$font-family-base` * Fix: Minified `style.css` for better optimization = 2.0.5 - 2019-05-21 = * New: Introducing [Hello Theme Child](https://github.com/elementor/hello-theme-child) * Tweak: Enqueue only parent theme stylesheet * Tweak: Added admin notice box for recommending Elementor plugin = 2.0.4 - 2019-05-20 = * Tweak: Removed `accessibility-ready` tag from `style.css` = 2.0.3 - 2019-05-19 = * Tweak: Removed `accessibility-ready` tag = 2.0.2 - 2019-05-13 = * Tweak: Added `hello_elementor_content_width` filter, as per WordPress best practice = 2.0.1 - 2019-05-12 = * Tweak: Updated theme screenshot (following comment by WP Theme Review team) = 2.0.0 - 2019-05-12 = * Tweak: Updated theme screenshot (following comment by WP Theme Review team) * Tweak: Add Copyright & Image and Icon License sections in readme (following comment by WP Theme Review team) * Tweak: Remove duplicated call to `add_theme_support( 'custom-logo')` * Tweak: Readme file grammar & spelling * Tweak: Update `Tested up to 5.2` * Tweak: Change functions.php methods names prefix from `hello_elementor_theme_` to `hello_elementor_` * Tweak: Change hook names to fit theme's name. Old hooks are deprecated, users are urged to update their code where needed * Tweak: Update style for `img`, `textarea`, 'label' = 1.2.0 - 2019-02-12 = * New: Added classic-editor.css for Classic editor * Tweak: A lot of changes to match theme review guidelines * Tweak: Updated theme screenshot = 1.1.1 - 2019-01-28 = * Tweak: Removed padding reset for lists = 1.1.0 - 2018-12-26 = * New: Added SCSS & do thorough style reset * New: Added readme file * New: Added `elementor_hello_theme_load_textdomain` filter for load theme's textdomain * New: Added `elementor_hello_theme_register_menus` filter for register the theme's default menu location * New: Added `elementor_hello_theme_add_theme_support` filter for register the various supported features * New: Added `elementor_hello_theme_add_woocommerce_support` filter for register woocommerce features, including product-gallery zoom, swipe & lightbox features * New: Added `elementor_hello_theme_enqueue_style` filter for enqueue style * New: Added `elementor_hello_theme_register_elementor_locations` filter for register elementor settings * New: Added child-theme preparations * New: Added template part search * New: Added translation support * Tweak: Re-write of already existing template parts = 1.0.0 - 2018-03-19 = * Initial Public Release hello-elementor/screenshot.png 0000644 00000330340 15226066670 0012537 0 ustar 00 �PNG IHDR � � ��8� �PLTE��� �cG����������������ן����ۚ�����zzy ��������Ґ��Xp����z��������u����ɂ����͉�����Un�qx����ex�������p�������Ћ��� ;@8&���lu�������:3 ��� ����ڽ���y��()k|�v���������`t���������� ����������MD6}�����./!F=-������8/���������1+w{���Oj�������fr����rrrRQN%`WP���-&^K5B6�֊#& 35*SK?�ŊSE+�������Ѯ7/��͆�⧺��������9=2jS=&'!���_q�K;������AC4���FHA_OCB6�ʑl[U㵗ѡ����갖 櫝���wL0ڥ�[Y?[< �ܑި����{]RN<\9 vDlaHyUAab`ǟ�kB%cB�U5���*2*6Q/ ���kjh5A"�[J�L#ugZ���缝�R2�ä��l``H%ө��W$4KW>x{]�T%�LᮩA(�ݷ£���SX-_jOAO0���DJ�zs���ڲ�|kE.UIdw\�C��mqN����~]��h����uk�ͥ5? �ʦƫ�����V<hW%t�l�yNvb0p?��y��p���������RdJ���cf9�ҭ��b�wM��t�]?�ѻw}�����X=�Hɰ��l4��ۼ������éÍiɚ|��o�Ǽ�z�q?�qX�~T�a��)Y���Ȁ��L�<