$opt_headline, 'caption' => $opt_caption, 'purpose_class' => $opt_color, 'align_class' => $opt_align, 'is_dismissable' => $opt_dismissable ); echo tag_alert( $args ); } /** * Displays the top bar with respect to Customizer options. */ function display_top() { // OPTION: Display this component $opt_display = get_theme_mod( 'bpq_opt_format_display_top', 1 ); if ( empty( $opt_display ) ) return; // OPTION: Bleed or boxed - this affects the inner container type $opt_span = settings::format_span(); // OPTION: Text alignment $opt_align = get_theme_mod( 'bpq_opt_top_alignment', 'mc' ); // Put together the call to the template tag. $args = array( 'span_class' => $opt_span, 'align_class' => $opt_align ); echo tag_top( $args ); } /** * Displays the masthead with respect to Customizer options. */ function display_masthead() { // OPTION: Display this component $opt_display = get_theme_mod( 'bpq_opt_format_display_masthead', 1 ); if ( empty( $opt_display ) ) return; // OPTION: Bleed or boxed - this affects the inner container type $opt_span = settings::format_span(); // OPTION: Show image or text $opt_purpose = get_theme_mod( 'bpq_opt_masthead_purpose', ( ( BPQ_EDITION >= 2 ) ? 'image' : 'text' ) ); //WP-DIR // OPTION: Display on a single line $opt_single_line = get_theme_mod( 'bpq_opt_masthead_single_line', 0 ); // OPTION: Hide on mobile $opt_hide_mobile = get_theme_mod( 'bpq_opt_masthead_hide_mobile', '' ); // OPTION: Split for widgets $opt_use_widgets = get_theme_mod( 'bpq_opt_masthead_use_widgets', '' ); // OPTION: Image $opt_image = get_theme_mod( 'bpq_opt_masthead_image', '' ); // Put together the call to the template tag. $args = array( 'purpose' => $opt_purpose, 'span_class' => $opt_span, 'image_url' => $opt_image, 'hide_mobile' => $opt_hide_mobile, 'use_widgets' => $opt_use_widgets, 'single_line' => $opt_single_line ); echo tag_masthead( $args ); } /** * Displays the navbar with respect to Customizer options. */ function display_navigation() { // OPTION: Display this component $opt_display = get_theme_mod( 'bpq_opt_format_display_navigation', 1); if ( empty( $opt_display ) ) return; // OPTION: Bleed or boxed - this affects the inner container type $opt_span = settings::format_span(); // OPTION: Hide on mobile $opt_hide_mobile = get_theme_mod( 'bpq_opt_navigation_hide_mobile', '' ); // OPTION: Brand $opt_brand_purpose = get_theme_mod( 'bpq_opt_navigation_purpose', 'logo' ); $opt_brand_text = get_theme_mod( 'bpq_opt_navigation_brand_text', '' ); $opt_brand_logo = get_theme_mod( 'bpq_opt_navigation_logo', '' ); $opt_brand_logo_offset = get_theme_mod( 'bpq_opt_navigation_logo_offset', 0 ); $brand = ( ( $opt_brand_purpose == 'logo' ) ? $opt_brand_logo : $opt_brand_text ); // OPTION: Menu $opt_menu = get_theme_mod( 'bpq_opt_navigation_menu', 'none' ); // OPTION: Additional buttons $opt_cart = get_theme_mod( 'bpq_opt_navigation_display_cart', 0 ); $opt_login = get_theme_mod( 'bpq_opt_navigation_display_login', 1 ); $opt_search = get_theme_mod( 'bpq_opt_navigation_display_search', 1 ); // OPTION: Scheme $opt_scheme = get_theme_mod( 'bpq_opt_navigation_scheme', 'tone' ); // OPTION: Animate $opt_animate = get_theme_mod( 'bpq_opt_navigation_animate', 1 ); // Put together the call to the template tag. $args = array( 'span_class' => $opt_span, 'hide_mobile' => $opt_hide_mobile, 'brand_purpose' => $opt_brand_purpose, 'brand_value' => $brand, 'offset' => $opt_brand_logo_offset, 'menu' => $opt_menu, 'show_cart' => $opt_cart, 'show_login' => $opt_login, 'show_search' => $opt_search, 'scheme' => $opt_scheme, 'animate' => $opt_animate ); echo tag_navigation( $args ); } /** * Displays none, one, or both of the sidebars * that appear to the left of the main content. */ function display_sidebars_left() { // OPTION: Sidebar layout $opt_sidebar_layout = settings::format_sidebars(); // OPTION: Sidebar mobile display $opt_sidebar_mobile = get_theme_mod( 'bpq_opt_sidebars_hide_mobile_left', 0 ); // OPTION: Sidebar size $opt_sidebar_size = get_theme_mod( 'bpq_opt_sidebars_size', 3 ); $opt_sidebar_size = intval( $opt_sidebar_size ); // OPTION: Sidebar alignment $opt_align_sidebar = get_theme_mod( 'bpq_opt_sidebars_alignment', 'ml' ); // Put together the call to the sidebar template tag. $args = array( 'sidebar_align_class' => $opt_align_sidebar, 'sidebar_layout' => $opt_sidebar_layout, 'sidebar_size' => $opt_sidebar_size, 'hide_mobile' => $opt_sidebar_mobile, ); echo tag_sidebars_left( $args ); } /** * Displays the start of the framing for the main content. */ function display_article_scaffolding_left() { // OPTION: Sidebar layout $opt_sidebar_layout = settings::format_sidebars(); // OPTION: Article alignment $opt_align_content = get_theme_mod( 'bpq_opt_content_article_alignment', 'ml' ); // OPTION: Sidebar size $opt_sidebar_size = get_theme_mod( 'bpq_opt_sidebars_size', 3 ); $opt_sidebar_size = intval( $opt_sidebar_size ); // And now for the tag that starts off the content. $args = array( 'content_align_class' => $opt_align_content, 'sidebar_layout' => $opt_sidebar_layout, 'sidebar_size' => $opt_sidebar_size, ); echo tag_article_scaffolding_left( $args ); } /** * Displays the end of the framing for the main content. */ function display_article_scaffolding_right() { // Put together the call that ends the content. $args = array( // N/A right now ); echo tag_article_scaffolding_right( $args ); } /** * Displays none, one, or both of the sidebars * that appear to the right of the main content. */ function display_sidebars_right() { // OPTION: Sidebar layout $opt_sidebar_layout = settings::format_sidebars(); // OPTION: Sidebar mobile display $opt_sidebar_mobile = get_theme_mod( 'bpq_opt_sidebars_hide_mobile_right', 0 ); // OPTION: Sidebar size $opt_sidebar_size = get_theme_mod( 'bpq_opt_sidebars_size', 3 ); $opt_sidebar_size = intval( $opt_sidebar_size ); // OPTION: Alignment $opt_align = get_theme_mod( 'bpq_opt_sidebars_alignment', 'ml' ); // And now for the sidebar template tag. $args = array( 'sidebar_align_class' => $opt_align, 'sidebar_layout' => $opt_sidebar_layout, 'sidebar_size' => $opt_sidebar_size, 'hide_mobile' => $opt_sidebar_mobile, ); echo tag_sidebars_right( $args ); } /** * Displays the pedestal with respect to Customizer options. */ function display_pedestal() { // OPTION: Display this component $opt_display = get_theme_mod( 'bpq_opt_format_display_pedestal', 1 ); if ( empty( $opt_display ) ) return; // OPTION: Bleed or boxed - this affects the inner container type $opt_span = settings::format_span(); // OPTION: Alignment $opt_align = get_theme_mod( 'bpq_opt_pedestal_align', 'mc' ); // OPTION: Number of pedestal sections $opt_pedestals = get_theme_mod( 'bpq_opt_pedestal_sections', '3' ); // Put together the call to the template tag. $args = array( 'span_class' => $opt_span, 'align_class' => $opt_align, 'num_pedestals' => $opt_pedestals ); echo tag_pedestal( $args ); } /** * Displays the bottom bar with respect to Customizer options. * Note: The bottom bar is always displayed in the LITE * edition with credits for BluePrint-Q. */ function display_bottom() { // OPTION: Display this component - always display if freebie $opt_display = get_theme_mod( 'bpq_opt_format_display_bottom', 1 ); if ( ( BPQ_EDITION >= 2 ) && empty( $opt_display ) ) return; // OPTION: Bleed or boxed - this affects the inner container type $opt_span = settings::format_span(); // OPTION: Text alignment $opt_align = get_theme_mod( 'bpq_opt_bottom_alignment', 'mc' ); // Put together the call to the template tag. $args = array( 'span_class' => $opt_span, 'align_class' => $opt_align ); echo tag_bottom( $args ); } ?>