Пример #1
0
							</div>	
						</form>
					</div>
				</div>
			</div>
		</div>
	<?php 
}
?>

    <?php 
$content_class = "";
if (get_post_meta($id, "qode_revolution-slider", true) == "" && qode_is_title_hidden() && !is_category() && !is_tag() && !is_author() && (isset($qode_options_proya['enable_google_map']) && ($header_transparency === '' || $header_transparency == 1)) || qode_is_content_below_header()) {
    if ($qode_options_proya['header_bottom_appearance'] == "fixed" || $qode_options_proya['header_bottom_appearance'] == "fixed fixed_minimal") {
        $content_class = "content_top_margin";
    } elseif (qode_is_content_below_header() && $qode_options_proya['header_bottom_appearance'] == "fixed_hiding") {
        $content_class = "content_top_margin";
    } else {
        $content_class = "content_top_margin_none";
    }
}
if (get_post_meta($id, "qode_revolution-slider", true) != "") {
    $content_class .= " has_slider";
}
?>

	<?php 
if (isset($qode_options_proya['header_bottom_appearance']) && ($qode_options_proya['header_bottom_appearance'] == "stick" || $qode_options_proya['header_bottom_appearance'] == "stick menu_bottom" || $qode_options_proya['header_bottom_appearance'] == "stick_with_left_right_menu")) {
    if (get_post_meta(qode_get_page_id(), "qode_page_hide_initial_sticky", true) !== '') {
        if (get_post_meta(qode_get_page_id(), "qode_page_hide_initial_sticky", true) == 'yes') {
            $content_class = " ";
Пример #2
0
} else {
    $animate_title_area = $qode_options['animate_title_area'];
}
if ($animate_title_area == "text_right_left") {
    $animate_title_class = "animate_title_text";
} elseif ($animate_title_area == "area_top_bottom") {
    $animate_title_class = "animate_title_area";
} else {
    $animate_title_class = "title_without_animation";
}
//is border bottom color for header set in Qode Options?
if (isset($qode_options['header_bottom_border_color']) && !empty($qode_options['header_bottom_border_color'])) {
    $header_bottom_border = $qode_options['header_bottom_border_color'];
}
//is header solid?
if ($title_type == "breadcrumbs_title" && !$is_header_solid && qode_is_content_below_header() == false) {
    //is header semi-transparent?
    if (!$is_header_transparent) {
        $title_calculated_height = $title_height - $header_height_padding;
        if ($title_calculated_height < 0) {
            $title_calculated_height = 0;
        }
        //center title between border and end of title section
        $title_holder_height = 'style="padding-top:' . $header_height_padding . 'px;height:' . $title_calculated_height . 'px;"';
        $title_subtitle_padding = 'style="padding-top:' . $header_height_padding . 'px;"';
    } else {
        //header is transparent
        $title_holder_height = 'style="padding-top:' . $header_height_padding . 'px;height:' . ($title_height - $header_height_padding) . 'px;"';
        $title_subtitle_padding = 'style="padding-top:' . $header_height_padding . 'px;"';
    }
} else {
Пример #3
0
if (get_post_meta($id, "qode_header_color_transparency_per_page", true) === "") {
    //take global value set in Qode Options
    $header_transparency = $qode_options_proya['header_background_transparency_initial'];
} else {
    //take value set for current page
    $header_transparency = get_post_meta($id, "qode_header_color_transparency_per_page", true);
}
//is border bottom color for header set in Qode Options?
if (isset($qode_options_proya['header_bottom_border_color']) && !empty($qode_options_proya['header_bottom_border_color'])) {
    $header_bottom_border = $qode_options_proya['header_bottom_border_color'];
}
//is header completely transparent?
$is_header_transparent = in_array($header_transparency, $transparent_values_array);
//is header solid?
$is_header_solid = in_array($header_transparency, $solid_values_array);
if ($qode_options_proya['header_bottom_appearance'] == 'fixed_top_header' || $is_header_initially_hidden || qode_is_content_below_header()) {
    // because this header type never goes over slider, title or content (content top margin is 0, title padding is 0)
    $title_holder_height = 'style="padding-top:0;height:' . $title_height . 'px;"';
    $title_subtitle_padding = 'style="padding-top:0;"';
} else {
    //is header solid?
    if ($is_header_solid) {
        $title_holder_height = 'style="padding-top:' . $header_height_padding . 'px;height:' . ($title_height - $header_height_padding) . 'px;"';
        $title_subtitle_padding = 'style="padding-top:' . $header_height_padding . 'px;"';
    } else {
        //is border for header bottom set?
        if ($header_bottom_border != '') {
            //center title between header and end of title section
            $title_holder_height = 'style="padding-top:' . $header_height_padding . 'px;height:' . ($title_height - $header_height_padding) . 'px;"';
            $title_subtitle_padding = 'style="padding-top:' . $header_height_padding . 'px;"';
        } else {
Пример #4
0
} elseif (get_post_meta($id, "qode_show-page-title", true) == 'no') {
    $is_title_area_visible = false;
} elseif (get_post_meta($id, "qode_show-page-title", true) == '' && (isset($qode_options['show_page_title']) && $qode_options['show_page_title'] == 'yes')) {
    $is_title_area_visible = true;
} elseif (get_post_meta($id, "qode_show-page-title", true) == '' && (isset($qode_options['show_page_title']) && $qode_options['show_page_title'] == 'no')) {
    $is_title_area_visible = false;
} elseif (isset($qode_options['show_page_title']) && $qode_options['show_page_title'] == 'yes') {
    $is_title_area_visible = true;
}
$header_transparency_search = true;
if ((is_search() || is_404()) && isset($qode_options['header_background_transparency_initial']) && $qode_options['header_background_transparency_initial'] !== "" && $qode_options['header_background_transparency_initial'] !== "1") {
    $header_transparency_search = false;
}
//this isn't used because contact page map isn't on top anymore.
$is_contact_page_with_solid_header_and_map = qode_is_contact_page_template() && $qode_options['enable_google_map'] === 'yes' && ($header_transparency === '' || $header_transparency == 1);
if (qode_is_content_below_header()) {
    if ($qode_options['header_bottom_appearance'] == "stick_with_left_right_menu" || $qode_options['header_bottom_appearance'] == "regular" || $qode_options['header_bottom_appearance'] == "stick" || $qode_options['header_bottom_appearance'] == "stick menu_bottom") {
        $content_class = "content_top_margin_none";
    } else {
        $content_class = "content_top_margin";
    }
} else {
    if (get_post_meta($id, "qode_revolution-slider", true) == "" && $is_title_area_visible && ($header_transparency === '' || $header_transparency == 1) || (is_search() || is_404()) && $is_title_area_visible && $header_transparency_search) {
        if ($qode_options['header_bottom_appearance'] == "fixed" || $qode_options['header_bottom_appearance'] == "fixed_hiding") {
            $content_class = "content_top_margin";
        } else {
            $content_class = "content_top_margin_none";
        }
    }
}
?>