Theme Options $options = get_option('visualmodo'); $header_level = $header_level ?? 'main'; $search_layout = $options[$header_level.'_search_layout'] ?? '1'; $search_button = $options[$header_level.'_search_button'] ?? '3'; $search_placeholder_text = $options[$header_level.'_search_placeholder_text'] ?? ''; $search_button_text = $options[$header_level.'_search_button_text'] ?? ''; $show_search = $options[$header_level.'_show_search'] ?? array('1', '2', '3'); if (empty($search_placeholder_text)) { $search_placeholder_text = esc_attr__( 'Search …', 'allcom' ); } if (empty($search_button_text)) { $search_button_text = esc_attr__( 'Search', 'allcom' ); } // Start Show Breakpoint $sm = 'd-none d-sm-none'; $md = 'd-md-none'; $lg = 'd-lg-none'; foreach ($show_search as $key => $value) { switch($value) { case '1': $sm = 'd-sm-flex'; break; case '2': $md = 'd-md-flex'; break; case '3': $lg = 'd-lg-flex'; break; } } $show_search = $sm.' '.$md.' '.$lg; // End Show Breakpoint $search_icon = ''; ?>