function cb_get_sticky_option() { $cb_output = NULL; if (ot_get_option('cb_sticky_nav', 'on') == 'on') { $cb_output = ' cb-sticky-mm'; if (ot_get_option('cb_nav_when_sticky', 'cb-sticky-menu') == 'cb-sticky-menu-up') { $cb_output .= ' cb-sticky-menu-up'; } } if (ot_get_option('cb_logo_in_nav', 'off') == 'on') { $cb_logo_in_nav_when = ot_get_option('cb_logo_in_nav_when', 'cb-logo-nav-sticky'); $cb_output .= ' cb-nav-logo-on ' . $cb_logo_in_nav_when; $cb_show_header = NULL; if (is_single()) { if (cb_show_header() == 'on') { $cb_output .= ' cb-logo-nav-always'; } } } if (ot_get_option('cb_sticky_sb', 'on') == 'on') { $cb_output .= ' cb-sticky-sb-on'; } return $cb_output; }
$cb_responsive_style = ot_get_option('cb_responsive_style', 'on'); $cb_logo_position = 'cb-logo-' . ot_get_option('cb_logo_position', 'left'); $cb_body_class = $cb_tm_wrap = $cb_hd_wrap = $cb_menu_wrap = $cb_hd_wrap_s = $cb_bg_to_margin_top = $cb_main_menu_wrap = $cb_hd_wrap_s_2 = $cb_bg_attr = NULL; $cb_main_wrap = 'wrap '; $cb_body_class .= cb_get_body_classes(); $cb_review_checkbox = $cb_bg_to_img = $cb_bg_ad = NULL; $cb_bg_to = ot_get_option('cb_bg_to', 'off'); $cb_logo = ot_get_option('cb_logo_url', NULL); $cb_show_header = $cb_show_m_header = NULL; if (cb_header_banner() != NULL) { $cb_hd_wrap_s = ' cb-with-block'; } if (is_singular()) { $cb_body_class .= cb_get_post_fis($post->ID); $cb_body_class .= cb_get_singular_fs($post->ID); $cb_show_header = cb_show_header(); } if (is_single()) { $cb_review_checkbox = get_post_meta($post->ID, 'cb_review_checkbox', true); $cb_body_class .= cb_get_dropcap($post->ID) . ' ' . cb_get_fis_tl($post->ID); $cb_post_format = get_post_format($post->ID); if ($cb_post_format == 'gallery') { $cb_bg_to = NULL; } } if (is_category() || is_home()) { $cb_body_class .= cb_get_featured_block(); } if (ot_get_option('cb_h_logo_mobile', 'on') == 'off') { $cb_body_class .= ' cb-h-logo-off'; }