HEX
Server: Apache
System: Linux p3plzcpnl489499.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: dwauav0tm6jp (6177017)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/dwauav0tm6jp/hosted/gazzocpa_com/wp-content/themes/theme1429/page-testi.php
<?php
/**
 * Template Name: Testimonials
 */

get_header(); ?>

	<div class="<?php if (of_get_option('blog_sidebar_pos') == "right" ) {echo "line-ver-1";} else {echo "line-ver-2";} ?>">

	<div id="content" class="grid_14 <?php if (of_get_option('blog_sidebar_pos') == "right" ) {echo "alpha";} else {echo "omega";} ?> <?php echo of_get_option('blog_sidebar_pos') ?>">
	  <div class="indent">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      <h2><span><strong><?php the_title(); ?></strong></span></h2>
      <div id="page-content"><?php the_content(); ?></div>
      <?php endwhile; else: ?>
      <div class="no-results">
        <p><strong>There has been an error.</strong></p>
        <p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p>
        <?php get_search_form(); ?> <!-- outputs the default Wordpress search form-->
      </div><!--noResults-->
    <?php endif; ?>
      <?php
      $temp = $wp_query;
      $wp_query= null;
      $wp_query = new WP_Query();
      $wp_query->query('post_type=testi&showposts=8&paged='.$paged);
      ?>
      <?php if (have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
      	<?php 
				$custom = get_post_custom($post->ID);
				$testiname = $custom["testimonial-name"][0];
				$testiinfo = $custom["testimonial-info"][0];
				?>
        <article id="post-<?php the_ID(); ?>" class="testimonial">
          <div class="post-content">
          	<?php echo '<div class="testi-pic">'; the_post_thumbnail('testi-thumbnail'); echo '</div>'; ?>
            <?php the_content(); ?>
            <span class="name-testi">
              <span class="user"><?php echo $testiname; ?></span>
              <?php echo $testiinfo; ?>
            </span>
          </div>
        </article>
        
      <?php endwhile; else: ?>
        <div class="no-results">
          <p><strong>There has been an error.</strong></p>
          <p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p>
          <?php get_search_form(); ?> <!-- outputs the default Wordpress search form-->
        </div><!--noResults-->
      <?php endif; ?>
      
      <?php if ( $wp_query->max_num_pages > 1 ) : ?>
        <nav class="oldernewer">
          <div class="older">
            <?php next_posts_link('&laquo; Older Entries') ?>
          </div><!--.older-->
          <div class="newer">
            <?php previous_posts_link('Newer Entries &raquo;') ?>
          </div><!--.newer-->
        </nav><!--.oldernewer-->
      <?php endif; ?>
      
      <?php $wp_query = null; $wp_query = $temp;?>
    </div>
	</div>
<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>