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/palmetto_old/wp-content/themes/palmettomain/author.php
<?php get_header(); ?>
<div id="content" class="grid_14 alpha">
	<div class="indent">
  	<?php
			if(isset($_GET['author_name'])) :
				$curauth = get_userdatabylogin($author_name);
				else :
				$curauth = get_userdata(intval($author));
			endif;
		?>
		<div class="author-info">
			<h1>About: <?php echo $curauth->display_name; ?></h1>
			<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">
      <h3>Recent Posts by <?php echo $curauth->display_name; ?></h3>
      <?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 class="post-block">
         <h2>
         	<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a>
         </h2>
         <div class="post-excerpt">
           <?php $excerpt = get_the_excerpt(); echo my_string_limit_words($excerpt,100);?>
         </div>
         <div class="link">
         	<a href="<?php the_permalink(); ?>">Read More</a>
         </div>
      </article>
      
        <?php $count++; } ?>
      <?php endwhile; else: ?>
          <p>
            No posts by <?php echo $curauth->display_name; ?> yet.
          </p>
      <?php endif; ?>
    </div><!--#recentPosts-->
	
		<div id="recent-author-comments">
      <h3>Recent Comments by <?php echo $curauth->display_name; ?></h3>
        <?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>
</div><!--#content-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>