Theme Options $options = get_option('visualmodo'); $header_levels = $options['header_levels'] ?? array('main'); $header_boxed_or_stretched = $options['header_boxed_or_stretched'] ?? 'container'; $body_boxed_or_stretched = $options['body_boxed_or_stretched'] ?? 'container-fluid p-0'; $header_color_theming = $options['header_color_theming'] ?? 'light-theme'; $corners = 'rounded-corners'; // Remove on next Version // Custom Code $custom_css_header = $options['custom_css_header'] ?? ''; $custom_js_header = $options['custom_js_header'] ?? ''; $google_analytics = $options['google_analytics'] ?? ''; $google_adsense = $options['google_adsense'] ?? ''; // Component - Buttons $buttons_color = $options['buttons_color'] ?? 'component-button-primary-color'; $buttons_shape = $options['buttons_shape'] ?? 'component-button-rounded'; // Component - Cards $cards_shape = $options['cards_shape'] ?? 'component-card-rounded'; // Component - Text Fields $text_fields_shape = $options['text_fields_shape'] ?? 'component-text-fields-rounded'; $top_header_layout_fit_content = $main_header_layout_fit_content = $bottom_header_layout_fit_content = $mobile_header_layout_fit_content = $level_header_cells_total = ''; foreach ( $header_levels as $level ) { ${$level.'_header_layout_fit_content'} = $options[$level.'_header_layout_fit_content'] ?? 'top-header-layout-no-fit-content'; ${$level.'_header_layout'} = $options[$level.'_header_layout'] ?? array( "left" => array( "logo" => 'Logo' ), "center" => array( "primary_nav" => 'Primary Nav' ), "right" => array( "search" => 'Search', "toggle" => 'Toggle Navigation' ) ); ${$level.'_header_show'} = $options[$level.'_header_show'] ?? array('2', '3'); ${$level.'_header_left_content_position'} = $options[$level.'_header_left_content_position'] ?? 'justify-start'; ${$level.'_header_center_content_position'} = $options[$level.'_header_center_content_position'] ?? 'justify-center'; ${$level.'_header_right_content_position'} = $options[$level.'_header_right_content_position'] ?? 'justify-end'; } ?> >
'. $custom_css_header .''; ?> '. $custom_js_header .''; ?> >