load_dependencies(); add_action( 'brandy_header', array( $this, 'render_header' ) ); add_action( 'brandy_render_header_placement', array( $this, 'render_placement' ), 10, 2 ); } private function load_dependencies() { ToggleOffCanvasBuilder::get_instance(); } public function render_header() { get_template_part( 'template-parts/builder/header/header-layout' ); } public function render_placement( string $row, $device ) { $current_template = brandy_get_header_template(); $columns = $current_template['placements'][ 'tablet' === $device ? 'mobile' : $device ][ $row ]; foreach ( $columns as $index => $col_elements ) { if ( empty( $col_elements ) ) { continue; } $is_center = count( $columns ) % 2 !== 0 && intval( count( $columns ) / 2 ) == $index; ?>