data-icon-latitude="<?php echo esc_attr($icon_latitude); ?> " data-icon-longitude="<?php echo esc_attr($icon_longitude); ?> " data-icon-image="<?php echo $icon_image; ?> "></div><?php } $map_dim_class = ''; if (has_post_thumbnail()) { $map_dim_class = ' class="dim-image"'; $bg_image = it_get_post_thumbnail(get_the_ID(), 'gp-max'); ?> <div class="contacts-background" style="background-image: url(<?php echo esc_url($bg_image); ?> )"></div><?php } ?> <div id="map-dim"<?php echo $map_dim_class; ?> ></div> <div id="content" class="site-content">
<?php /* T-MMM-emplate Name: Page with Background */ gp_add_html_class('horizontal-page no-scroll'); get_header(); if (have_posts()) { the_post(); $data = gp_background_get_data(get_the_ID()); $slide_attr = array('class' => array('slide'), 'id' => 'slide-' . get_the_ID(), 'data-image' => has_post_thumbnail() ? it_get_post_thumbnail(get_the_ID(), 'gp-max') : '', 'style' => array('background-position: ' . $data['background_position'])); $slide_info_attr = array('class' => array('info', $data['text_color'], 'no-fade', 'style-page-with-background'), 'style' => array(), 'data-position' => $data['content_position'], 'data-top' => $data['top'], 'data-left' => $data['left']); if ($data['dim_background'] == '1') { $slide_info_attr['class'][] = 'dim-background'; } ?> <div id="main" class="site"> <div class="slider"> <div<?php echo it_array_to_attributes($slide_attr); ?> > <article<?php echo it_array_to_attributes($slide_info_attr); ?> > <div class="viewport"> <h1 class="entry-title"><?php the_title(); ?> </h1>