Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. <?php /* Template Name: Why us */ ?>
  2.  
  3. <?php get_header(); ?>
  4.  
  5. <div id="primary" class="content-area">
  6. <main id="main" class="site-main">
  7.  
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <header class="entry-header">
  10. <?php the_title('<h2 class="entry-title">', '</h2>'); ?>
  11. </header><!-- .entry-header -->
  12.  
  13.  
  14. <div class="entry-content">
  15. <section class="wu-text">
  16. <?php
  17. the_content();
  18.  
  19. wp_link_pages(array(
  20. 'before' => '<div class="page-links">' . esc_html__('Pages:', 'pitayaworks'),
  21. 'after' => '</div>',
  22. ));
  23. ?>
  24. </section>
  25. <?php if (have_rows('wu-clients')): ?>
  26. <section class="wu-testimonials">
  27. <h2 class="wu-test-title">testimonials</h2>
  28. <div class="wu-clients">
  29.  
  30. <?php
  31. while (have_rows('wu-clients')) :
  32. the_row();
  33. ?>
  34. <div class="wu-client">
  35. <div class="client-img"
  36. style="background-image: url(<?php the_sub_field('wu-client-image'); ?>)">
  37. <!-- <img src="--><?php //the_sub_field('section_image');
  38. ?><!--">-->
  39. </div>
  40. <h4 class="client-name"><?php the_sub_field('wu-client-name'); ?></h4>
  41. <p class="client-info"><?php the_sub_field('wu-client-info'); ?></p>
  42. <div class="client-message">
  43. <span class="quote open"
  44. style="background-image: url(<?php bloginfo('template_url'); ?>/img/quote_open.png)"></span>
  45. <span><?php the_sub_field('wu-client-message'); ?></span>
  46. <span class="quote close"
  47. style="background-image: url(<?php bloginfo('template_url'); ?>/img/quote_close.png)"></span>
  48. </div>
  49. </div>
  50. <?php
  51. endwhile;
  52. ?>
  53.  
  54. </div>
  55. </section>
  56. <?php endif; ?>
  57. </div><!-- .entry-content -->
  58.  
  59.  
  60. <?php if (get_edit_post_link()) : ?>
  61. <footer class="entry-footer">
  62. <?php
  63. edit_post_link(
  64. sprintf(
  65. wp_kses(
  66. /* translators: %s: Name of current post. Only visible to screen readers */
  67. __('Edit <span class="screen-reader-text">%s</span>', 'pitayaworks'),
  68. array(
  69. 'span' => array(
  70. 'class' => array(),
  71. ),
  72. )
  73. ),
  74. get_the_title()
  75. ),
  76. '<span class="edit-link">',
  77. '</span>'
  78. );
  79. ?>
  80. </footer><!-- .entry-footer -->
  81. <?php endif; ?>
  82. </article><!-- #post-<?php the_ID(); ?> -->
  83.  
  84. </main><!-- #main -->
  85. </div><!-- #primary -->
  86.  
  87. <?php
  88. get_sidebar();
  89. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement