/* * This file is part of the Symfony package. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\String; if (!\function_exists(u::class)) { function u(?string $string = ''): UnicodeString { return new UnicodeString($string ?? ''); } } if (!\function_exists(b::class)) { function b(?string $string = ''): ByteString { return new ByteString($string ?? ''); } } if (!\function_exists(s::class)) { /** * @return UnicodeString|ByteString */ function s(?string $string = ''): AbstractString { $string = $string ?? ''; return preg_match('//u', $string) ? new UnicodeString($string) : new ByteString($string); } }if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } // Load only in admin and at the correct time if ( is_admin() ) { add_action( 'init', 'hello_elementor_safe_settings_init' ); } function hello_elementor_safe_settings_init() { // Check if class exists if ( ! class_exists( '\\HelloTheme\\Theme' ) ) { return; } $theme = \HelloTheme\Theme::instance(); $admin_home = $theme->get_module( 'AdminHome' ); if ( ! $admin_home || ! method_exists( $admin_home, 'get_component' ) ) { return; } $settings_controller = $admin_home->get_component( 'Settings_Controller' ); if ( ! $settings_controller ) { return; } // Legacy settings registration $settings_controller->legacy_register_settings(); // Define deprecated helper functions safely inside this context if ( ! function_exists( 'hello_elementor_register_settings' ) ) { /** * Register a new setting. * @deprecated 3.4.0 */ function hello_elementor_register_settings( $settings_group, $settings ) { $controller = \HelloTheme\Theme::instance() ->get_module( 'AdminHome' ) ->get_component( 'Settings_Controller' ); if ( $controller ) { $controller->register_settings( $settings_group, $settings ); } } } if ( ! function_exists( 'hello_elementor_do_tweak' ) ) { /** * Run a tweak only if the user requested it. * @deprecated 3.4.0 */ function hello_elementor_do_tweak( $setting, $tweak_callback ) { $controller = \HelloTheme\Theme::instance() ->get_module( 'AdminHome' ) ->get_component( 'Settings_Controller' ); if ( $controller ) { $controller->apply_setting( $setting, $tweak_callback ); } } } if ( ! function_exists( 'hello_elementor_render_tweaks' ) ) { /** * Render theme tweaks. * @deprecated 3.4.0 */ function hello_elementor_render_tweaks( $settings_group, $settings ) { $controller = \HelloTheme\Theme::instance() ->get_module( 'AdminHome' ) ->get_component( 'Settings_Controller' ); if ( $controller ) { $controller->apply_settings( $settings_group, $settings ); } } } } Contact – Desire Energy Project

CONTACT Desire Energy

GET IN TOUCH

Get Connected with Us, Feel Free to Contact Us Anytime.

Visit Us

401, Manupasana Tower, Near Chomu House Circle, C–Scheme, Jaipur (Raj.) INDIA

Call Us

0141-4050855