'.iq-breadcrumb-one', 'property' => 'display', 'value' => 'none !important' ); $dynamic_css[] = array( 'elements' => '.content-area .site-main', 'property' => 'padding', 'value' => '0 !important' ); } } else if (isset($iq_option['display_banner'])) { if ($iq_option['display_banner'] == 'no') { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one', 'property' => 'display', 'value' => 'none !important' ); $dynamic_css[] = array( 'elements' => '.content-area .site-main', 'property' => 'padding', 'value' => '0 !important' ); } } $key = get_field('key_pjros'); if ($key['display_title'] != 'default' && $key['display_title'] == 'no') { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one .title', 'property' => 'display', 'value' => 'none !important' ); } else if (isset($iq_option['display_title'])) { if ($iq_option['display_title'] == 'no') { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one .title', 'property' => 'display', 'value' => 'none !important' ); } } $key = get_field('key_pjros'); if ($key['display_breadcumb'] != 'default' && $key['display_breadcumb'] == 'no') { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one .breadcrumb', 'property' => 'display', 'value' => 'none !important' ); } else if (isset($iq_option['display_breadcumb'])) { if ($iq_option['display_breadcumb'] == 'no') { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one .breadcrumb', 'property' => 'display', 'value' => 'none !important' ); } } if (isset($iq_option['bg_title_color'])) { if ($iq_option['bg_title_color'] == 'no') { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one .title', 'property' => 'color', 'value' => $iq_option['bg_title_color'] . '!important' ); } } $key = get_field('key_banner_back'); if ($key['banner_background_type'] != 'default') { if ($key['banner_background_type'] == 'color') { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one', 'property' => 'background', 'value' => $key['banner_background_color'] . ' !important' ); } if ($key['banner_background_type'] == 'image') { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one', 'property' => 'background-image', 'value' => 'url(' . $key['banner_background_image']['url'] . ') !important' ); if (!empty($key['banner_background_size'])) { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one', 'property' => 'background-size', 'value' => $key['banner_background_size'] . ' !important' ); } if (!empty($key['banner_background_repeat'])) { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one', 'property' => 'background-repeat', 'value' => $key['banner_background_repeat'] . ' !important' ); } } } else if (isset($iq_option['bg_type'])) { $opt = $iq_option['bg_type']; if ($opt == '1') { if (isset($iq_option['bg_color'])) { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one', 'property' => 'background', 'value' => $iq_option['bg_color'] . ' !important' ); } } if ($opt == '2') { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one img', 'property' => 'display', 'value' => 'none' ); if (isset($iq_option['banner_image']['url'])) { $dynamic_css[] = array( 'elements' => '.iq-breadcrumb-one', 'property' => 'background-image', 'value' => 'url(' . $iq_option['banner_image']['url'] . ') !important' ); } } } if (count($dynamic_css) > 0) { echo "'; } } function babyme_banner_class() { $iq_option = get_option('babyme_options'); $classes = array(); array_push($classes, ' iq-bg-over'); if (isset($iq_option['bg_opacity'])) { $opt = $iq_option['bg_opacity']; if ($opt == '1') { array_push($classes, ' black'); } if ($opt == '2') { array_push($classes, ' iq-over-dark-80'); } if ($opt == '3') { array_push($classes, ' breadcrumb-bg breadcrumb-ui'); } } echo esc_attr(implode(' ', $classes)); }