frontend = new Aghai_AC_Frontend(); $this->customizer = new Aghai_AC_Customizer(); $this->settings = new Aghai_AC_Settings(); } public function backwards_compatibility() { if ( false === get_option( AGHAI_AC_CUSTOMIZER_OPTIONS, false ) ) { $customizer_fields = $this->customizer->get_customizer_fields(); $options = array(); $mods = get_theme_mods(); foreach ( $customizer_fields as $field ) { if ( isset( $mods[ $field['id'] ] ) ) { $options[ $field['id'] ] = $mods[ $field['id'] ]; } else { $options[ $field['id'] ] = $field['std']; } } update_option( AGHAI_AC_CUSTOMIZER_OPTIONS, $options ); } } public function add_elementor_support() { require( 'includes/aghai-ac-elementor.php' ); new Aghai_AC_Elementor(); } private function __construct() { add_action( 'init', array( &$this, 'bootstrap' ) ); add_action( 'admin_init', array( &$this, 'backwards_compatibility' ) ); add_action( 'plugins_loaded', array( &$this, 'load_textdomain' ) ); add_action( 'elementor/init', array( $this, 'add_elementor_support' ) ); } } Aghai_Accessibility::instance();