Astra_Addon_Builder_Header::__construct()
Constructor
Description
Source
File: classes/builder/markup/class-astra-addon-builder-header.php
public function __construct() { if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $component_limit = astra_addon_builder_helper()->component_limit; for ( $index = 1; $index <= $component_limit; $index++ ) { add_action( 'astra_header_divider_' . $index, array( $this, 'header_divider_' . $index ) ); self::$methods[] = 'header_divider_' . $index; } add_action( 'astra_header_language_switcher', array( $this, 'header_language_switcher' ) ); add_action( 'astra_desktop_header_content', array( $this, 'render_desktop_column' ), 10, 2 ); add_action( 'astra_render_desktop_popup', array( $this, 'render_desktop_column' ), 10, 2 ); } }
Expand full source code Collapse full source code View on Trac