Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.10 KB | None | 0 0
  1. <?php
  2. /*
  3.  * Template Name: "Contact" Page
  4.  */
  5.  
  6. //$social_buttons = get_field('social_buttons', 'options');
  7. ?>
  8.  
  9. <?php get_header(); ?>
  10. <?php get_template_part('part-page-slider') ?>
  11.  
  12.     <div class="row">
  13.         <div class="large-12 medium-12 small-12 columns">
  14.  
  15.             <?php if(have_posts()) : ?>
  16.                 <?php while(have_posts()) : the_post(); ?>
  17.  
  18.                     <article <?php post_class(); ?>>
  19.                         <?php if(has_post_thumbnail()) : ?>
  20.                             <div title="<?php the_title_attribute(); ?>" class="th">
  21.                                 <?php the_post_thumbnail(); ?>
  22.                             </div>
  23.                         <?php endif; ?>
  24.                         <div class="page-content">
  25.                             <?php the_content(); ?>
  26.                         </div>
  27.                     </article>
  28.  
  29.                 <?php endwhile; ?>
  30.             <?php endif; ?>
  31.  
  32.             <?php if(have_rows('contact_information')): ?>
  33.                 <?php while(have_rows('contact_information')): the_row(); ?>
  34.  
  35.                     <div class="row one-contact-info">
  36.                         <div class="large-3 medium-4 small-12 columns">
  37.                             <?php if(get_sub_field('logo')) : ?>
  38.                                 <a href="<?= get_sub_field('link'); ?>" target="_blank">
  39.                                     <img src="<?= get_sub_field('logo'); ?>" alt="company-logo">
  40.                                 </a>
  41.                             <?php endif; ?>
  42.                         </div>
  43.                         <div class="large-9 medium-8 small-12 columns">
  44.                             <?php if(get_sub_field('contact_info')) : ?>
  45.                                 <div class="contact-info">
  46.                                     <?= get_sub_field('contact_info'); ?>
  47.                                 </div>
  48.                             <?php endif; ?>
  49.                         </div>
  50.                     </div>
  51.  
  52.                 <?php endwhile; ?>
  53.             <?php endif; ?>
  54.  
  55.         </div>
  56.     </div>
  57.  
  58. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement