Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Template Name: "Contact" Page
- */
- //$social_buttons = get_field('social_buttons', 'options');
- ?>
- <?php get_header(); ?>
- <?php get_template_part('part-page-slider') ?>
- <div class="row">
- <div class="large-12 medium-12 small-12 columns">
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- <article <?php post_class(); ?>>
- <?php if(has_post_thumbnail()) : ?>
- <div title="<?php the_title_attribute(); ?>" class="th">
- <?php the_post_thumbnail(); ?>
- </div>
- <?php endif; ?>
- <div class="page-content">
- <?php the_content(); ?>
- </div>
- </article>
- <?php endwhile; ?>
- <?php endif; ?>
- <?php if(have_rows('contact_information')): ?>
- <?php while(have_rows('contact_information')): the_row(); ?>
- <div class="row one-contact-info">
- <div class="large-3 medium-4 small-12 columns">
- <?php if(get_sub_field('logo')) : ?>
- <a href="<?= get_sub_field('link'); ?>" target="_blank">
- <img src="<?= get_sub_field('logo'); ?>" alt="company-logo">
- </a>
- <?php endif; ?>
- </div>
- <div class="large-9 medium-8 small-12 columns">
- <?php if(get_sub_field('contact_info')) : ?>
- <div class="contact-info">
- <?= get_sub_field('contact_info'); ?>
- </div>
- <?php endif; ?>
- </div>
- </div>
- <?php endwhile; ?>
- <?php endif; ?>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement