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/author.php
<?php 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') ?>">
	<?php
    if(isset($_GET['author_name'])) :
      $curauth = get_userdatabylogin($author_name);
      else :
      $curauth = get_userdata(intval($author));
    endif;
  ?>
  <div class="author-info">
    <h2><span><strong>About: <?php echo $curauth->display_name; ?></strong></span></h2>
    <p class="avatar">
      <?php if(function_exists('get_avatar')) { echo get_avatar( $curauth->user_email, $size = '120' ); } /* Displays the Gravatar based on the author's email address. Visit Gravatar.com for info on Gravatars */ ?>
    </p>
    
    <?php if($curauth->description !="") { /* Displays the author's description from their Wordpress profile */ ?>
      <p><?php echo $curauth->description; ?></p>
    <?php } ?>
  </div><!--.author-->
  <div id="recent-author-posts">
    <h2><span><strong>Recent Posts by <?php echo $curauth->display_name; ?></strong></span></h2>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); /* Displays the most recent posts by that author. Note that this does not display custom content types */ ?>
      <?php static $count = 0;
        if ($count == "5") // Number of posts to display
                { break; }
        else { ?>
          <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      	
			<div class="post-block">
         	
            <div class="post-header">
            	<strong><?php comments_popup_link('0', '1', '%', 'comments-link', 'x'); ?></strong>
            	<h4><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
					<?php $post_meta = of_get_option('post_meta'); ?>
						<?php if ($post_meta=='true' || $post_meta=='') { ?>
                  <em>Submitted by <?php the_author_posts_link() ?> on <?php the_time('D, d/m/Y - G:i'); ?></em>
               <?php } ?>
            </div>

			  <?php $post_image_size = of_get_option('post_image_size'); ?>
               <?php if($post_image_size=='' || $post_image_size=='normal'){ ?>
             <?php if(has_post_thumbnail()) {
               echo '<figure class="featured-thumbnail"><span class="img-wrap"><a href="'; the_permalink(); echo '">';
               echo the_post_thumbnail('big-post-thumbnail');
               echo '</a></span></figure>';
               }
             ?>
           <?php } else { ?>
             <?php if(has_post_thumbnail()) {
               echo '<figure class="featured-thumbnail large"><span class="img-wrap clearfix"><span class="f-thumb-wrap"><a href="'; the_permalink(); echo '">';
               echo the_post_thumbnail('post-thumbnail-xl');
               echo '</a></span></span></figure>';
               }
             ?>
           <?php } ?>
        
            <div class="post-content">
					<?php $post_excerpt = of_get_option('post_excerpt'); ?>
						<?php if ($post_excerpt=='true' || $post_excerpt=='') { ?>
                  <div class="excerpt"><?php $excerpt = get_the_excerpt(); echo my_string_limit_words($excerpt,59);?></div>
               <?php } ?>
            </div>
            
            <div class="link"><a href="<?php the_permalink() ?>">more</a></div>
            
         </div>
         
          </article>
      <?php $count++; } ?>
      <?php endwhile; else: ?>
        <p>
          No posts by <?php echo $curauth->display_name; ?> yet.
        </p>
    <?php endif; ?>
	<?php if(function_exists('wp_pagenavi')) : ?>
      <?php wp_pagenavi(); ?>
   <?php else : ?>
     <?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 endif; ?>
   <!-- Page navigation -->
  </div><!--#recentPosts-->
  <div id="recent-author-comments">
    <h2><span>Recent Comments by <?php echo $curauth->display_name; ?></span></h2>
      <?php
        $number=5; // number of recent comments to display
        $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '1' and comment_author_email='$curauth->user_email' ORDER BY comment_date_gmt DESC LIMIT $number");
      ?>
      <ul>
        <?php
          if ( $comments ) : foreach ( (array) $comments as $comment) :
          echo  '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_date(), '<a href="'. get_comment_link($comment->comment_ID) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';
        endforeach; else: ?>
                  <p>
                    No comments by <?php echo $curauth->display_name; ?> yet.
                  </p>
        <?php endif; ?>
            </ul>
  </div><!--#recentAuthorComments-->

  
</div><!--#content-->
<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>