page-practices.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. if ( !defined('ABSPATH') ){ die(); }
  3. global $avia_config;
  4. get_header();
  5. do_action( 'ava_after_main_title' );
  6. ?>
  7. <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
  8. <div id='av_section_1' class='avia-section main_color avia-section-default avia-no-shadow avia-full-stretch avia-bg-style-scroll avia-builder-el-0 avia-builder-el-no-sibling av-minimum-height av-minimum-height-custom container_wrap sidebar_right' style = 'background-repeat: no-repeat; background-image: url(<?php echo get_stylesheet_directory_uri() ?>/img/provider-home-header-background.jpg); background-attachment: scroll; background-position: center left; ' data-section-bg-repeat='stretch' >
  9. <div class='container'>
  10. <main role="main" itemprop="mainContentOfPage" class='template-page content av-content-small alpha units'>
  11. <div class='post-entry post-entry-type-page post-entry-708'>
  12. <div class='entry-content-wrapper clearfix'>
  13. <div style='padding-bottom:10px;color:#fff;font-size:40px;' class='av-special-heading av-special-heading-h3 custom-color-heading blockquote modern-quote modern-centered avia-builder-el-1 avia-builder-el-no-sibling av-inherit-size'>
  14. <h3 class='av-special-heading-tag provider-directory' itemprop="headline">Practices</h3>
  15. <div class='special-heading-border'>
  16. <div class='special-heading-inner-border' style='border-color:#0d77bd'></div>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. </main><!-- close content main element -->
  22. </div>
  23. </div>
  24. <div id='after_section_1' class='main_color av_default_container_wrap container_wrap sidebar_right'></div>
  25. <div class='container'>
  26. <main class='template-page content av-content-full <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
  27. <?php
  28. $terms = get_terms( 'location' );
  29. if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
  30. foreach ( $terms as $term ) {
  31. echo '<div class="flex_column av_one_half flex_column_div first avia-builder-el-3 el_after_av_hr el_before_av_one_half" style="font-size:18px;clear:none;margin:0 0 15px">';
  32. echo '<a style="font-size:20px" href="' . esc_url( get_term_link( $term ) ) . '" alt="' . esc_attr( sprintf( __( '%s', 'location' ), $term->name ) ) . '">' . $term->name . '</a><br />';
  33. $office = get_term_meta( $term->term_id, 'address', true );
  34. echo '' . $office . '<br />';
  35. $phone = get_term_meta( $term->term_id, 'phone', true );
  36. echo '' . $phone . '<br />';
  37. echo '<br /></div>';
  38. }
  39. }
  40. ?>
  41. </main>
  42. </div><!--end container-->
  43. </div><!-- close default .container_wrap element -->
  44. <?php get_footer(); ?>