D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
public_html
/
a3legalservices.site
/
wp-content
/
themes
/
aeen
/
Filename :
functions.php
back
Copy
<?php /** * @author RadiusTheme * @since 1.0 * @version 1.0 */ add_editor_style( 'style-editor.css' ); if ( !isset( $content_width ) ) { $content_width = 1200; } class Aeen_Main { public $theme = 'aeen'; public $action = 'aeen_theme_init'; public function __construct() { add_action( 'after_setup_theme', array( $this, 'load_textdomain' ) ); add_action( 'admin_notices', array( $this, 'plugin_update_notices' ) ); $this->includes(); } public function load_textdomain(){ load_theme_textdomain( $this->theme, get_template_directory() . '/languages' ); } public function includes(){ do_action( $this->action ); require_once get_template_directory() . '/inc/constants.php'; require_once get_template_directory() . '/inc/includes.php'; } public function plugin_update_notices() { $plugins = array(); if ( defined( 'AEEN_CORE' ) ) { if ( version_compare( AEEN_CORE, '1.0', '<' ) ) { $plugins[] = 'Aeen Core'; } } foreach ( $plugins as $plugin ) { $notice = '<div class="error"><p>' . sprintf( __( "Please update plugin <b><i>%s</b></i> to the latest version otherwise some functionalities will not work properly. You can update it from <a href='%s'>here</a>", 'aeen' ), $plugin, menu_page_url( 'aeen-install-plugins', false ) ) . '</p></div>'; echo wp_kses( $notice, 'alltext_allow' ); } } } new Aeen_Main; //Elementor Header Footer Support //============================================== if ( ! function_exists( 'aeen_register_elementor_locations' ) ) { /** * Register Elementor Locations. * * @param ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager $elementor_theme_manager theme manager. * * @return void */ function aeen_register_elementor_locations( $elementor_theme_manager ) { $hook_result = apply_filters_deprecated( 'elementor_hello_theme_register_elementor_locations', [ true ], '2.0', 'aeen_register_elementor_locations' ); if ( apply_filters( 'aeen_register_elementor_locations', $hook_result ) ) { $elementor_theme_manager->register_all_core_location(); } } } add_action( 'elementor/theme/register_locations', 'aeen_register_elementor_locations' );