예제 #1
0
<?php

getPageSlider(false);
/* Check Title Enabled
==============================*/
if (tt_getmeta('title_show') != '0') {
    $title_style = '';
    $title_classes = '';
    /* prepare variables
    	==============================*/
    $teaser = tt_getmeta('teaser');
    $title_bg_color = tt_getmeta('title_bg_color');
    $title_bg = get_bg_values(tt_getmeta('title_bg'));
    $title_align = tt_getmeta('title_align');
    $title_dark = tt_getmeta('title_color');
    $title_padding = (int) tt_getmeta('title_padding');
    $title_padding_bottom = (int) tt_getmeta('title_padding_bottom');
    $title_attr = '';
    $title_overlay = '';
    $title_overlay_color = tt_getmeta('title_overlay_color');
    $title_overlay_opacity = tt_getmeta('title_overlay_opacity');
    /* set title background color
    	==============================*/
    if ($title_bg_color != '') {
        $title_style .= 'background-color: ' . $title_bg_color . ';';
    }
    /* set background image
    	==============================*/
    if ($title_bg['url'] != '') {
        $title_style .= 'background-image: url(' . $title_bg['url'] . ');';
        $title_style .= 'background-position: ' . $title_bg['position'] . ';';
예제 #2
0
   	<?php 
wp_head();
?>

</head>
<body <?php 
body_class($body_classes);
?>
>


	<div class="layout-wrapper">

		<?php 
/* Page Top Slider */
getPageSlider(true);
?>

		<div id="header_spacing" class="hidden-xs hidden-sm" style="height: 80px;"></div>
		<!-- Start Header
		================================================== -->
		<header id="header" class="header active-section navbar-inverse <?php 
echo $nav_fixed . ' ' . $header_transparent;
?>
" role="banner">

			<?php 
if (isset($smof_data['top_bar']) && $smof_data['top_bar'] == 1 && tt_getmeta('hide_topbar') != '1' && $header_transparent == '') {
    ?>
			<div id="top_bar" class="top-bar">
				<div class="container">