<?php /* * Template Name: Contact Page */ get_header(); $aUniAllowedHtmlWoA = uni_allowed_html_wo_a(); $aUniAllowedHtmlWithA = uni_allowed_html_with_a(); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); $aPostCustom = get_post_custom($post->ID); } } wp_reset_postdata(); ?> <section class="container"> <script type="text/javascript"> // BauHaus style var BauHaus = [ { "featureType": "road.highway", "stylers": [ { "visibility": "off" } ] },{ "featureType": "landscape", "stylers": [ { "visibility": "off" } ] },{ "featureType": "transit", "stylers": [ { "visibility": "off" } ] },{ "featureType": "poi", "stylers": [ { "visibility": "off" } ] },{ "featureType": "poi.park", "stylers": [ { "visibility": "on" } ] },{ "featureType": "poi.park", "elementType": "labels", "stylers": [ { "visibility": "off" } ] },{ "featureType": "poi.park", "elementType": "geometry.fill", "stylers": [ { "color": "#d3d3d3" }, { "visibility": "on" } ]
<?php /* * Template Name: Home page */ get_header(); $aUniAllowedHtmlCustomGrid = uni_allowed_html_wo_a(); ?> <section class="container"> <?php if (ot_get_option('uni_home_slider_enable') == 'on') { ?> <?php $aHomeSlidesArgs = array('post_type' => 'uni_home_slides', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => 'menu_order', 'order' => 'asc'); $oHomeSlides = new WP_Query($aHomeSlidesArgs); if ($oHomeSlides->have_posts()) { $i = 0; ?> <div id="homeSlider" class="homeSlider"> <ul> <?php while ($oHomeSlides->have_posts()) { $oHomeSlides->the_post(); $aPostCustom = get_post_custom($post->ID); $sThumbId = get_post_thumbnail_id($post->ID); $aImage = wp_get_attachment_image_src($sThumbId, 'full'); $sBackgroundStyle = ''; $sSlideTextsColour = !empty($aPostCustom['uni_slide_text_colour'][0]) ? $aPostCustom['uni_slide_text_colour'][0] : 'white'; if ($sSlideTextsColour == 'black') {