Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /* Template Name: Why us */ ?>
- <?php get_header(); ?>
- <div id="primary" class="content-area">
- <main id="main" class="site-main">
- <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <?php the_title('<h2 class="entry-title">', '</h2>'); ?>
- </header><!-- .entry-header -->
- <div class="entry-content">
- <section class="wu-text">
- <?php
- the_content();
- wp_link_pages(array(
- 'before' => '<div class="page-links">' . esc_html__('Pages:', 'pitayaworks'),
- 'after' => '</div>',
- ));
- ?>
- </section>
- <?php if (have_rows('wu-clients')): ?>
- <section class="wu-testimonials">
- <h2 class="wu-test-title">testimonials</h2>
- <div class="wu-clients">
- <?php
- while (have_rows('wu-clients')) :
- the_row();
- ?>
- <div class="wu-client">
- <div class="client-img"
- style="background-image: url(<?php the_sub_field('wu-client-image'); ?>)">
- <!-- <img src="--><?php //the_sub_field('section_image');
- ?><!--">-->
- </div>
- <h4 class="client-name"><?php the_sub_field('wu-client-name'); ?></h4>
- <p class="client-info"><?php the_sub_field('wu-client-info'); ?></p>
- <div class="client-message">
- <span class="quote open"
- style="background-image: url(<?php bloginfo('template_url'); ?>/img/quote_open.png)"></span>
- <span><?php the_sub_field('wu-client-message'); ?></span>
- <span class="quote close"
- style="background-image: url(<?php bloginfo('template_url'); ?>/img/quote_close.png)"></span>
- </div>
- </div>
- <?php
- endwhile;
- ?>
- </div>
- </section>
- <?php endif; ?>
- </div><!-- .entry-content -->
- <?php if (get_edit_post_link()) : ?>
- <footer class="entry-footer">
- <?php
- edit_post_link(
- sprintf(
- wp_kses(
- /* translators: %s: Name of current post. Only visible to screen readers */
- __('Edit <span class="screen-reader-text">%s</span>', 'pitayaworks'),
- array(
- 'span' => array(
- 'class' => array(),
- ),
- )
- ),
- get_the_title()
- ),
- '<span class="edit-link">',
- '</span>'
- );
- ?>
- </footer><!-- .entry-footer -->
- <?php endif; ?>
- </article><!-- #post-<?php the_ID(); ?> -->
- </main><!-- #main -->
- </div><!-- #primary -->
- <?php
- get_sidebar();
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement