Guest User

2013 - WordPress Customization

a guest
Jul 19th, 2017
11
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2. <div id="primary" class="content-area">
  3. <div id="content" class="site-content" role="main">
  4. <?php        
  5. if(isset($_GET['author_name'])) :
  6.   $curauth = get_userdatabylogin($author_name);
  7.    else :
  8.     $curauth = get_userdata(intval($author));
  9.   endif;
  10.   ?>
  11.   <div class="author ">
  12.     <h1><?php echo $curauth->display_name; ?></h1>
  13.     <p class="avatar">
  14.       <?php if(function_exists('get_avatar')) { echo get_avatar( $curauth->user_email, $size = '180' ); } ?>
  15.     </p>
  16.  
  17.     <?php if($curauth->description != "") { ?>
  18.       <p><?php echo $curauth->description; ?></a></p>
  19.       <?php } ?>
  20.     </div>
  21.     <!-- continua -->
  22.     <div id="recent-author-posts">
  23.       <h3><?php esc_html_e('Post recent', 'luigiamorfini'); ?></h3>
  24.       <?php if ( have_posts() ) : while ( have_posts() ) : the_post();?>
  25.         <?php static $count = 0;
  26.         if ($count == '10') // Numero di post da visualizzare
  27.         { break; }
  28.         else { ?>
  29.           <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>
  30.           <div class="post-excerpt"><?php the_excerpt(); ?></div>
  31.           <?php $count++; } ?>
  32.         <?php endwhile; else: ?>
  33.           <p><?php esc_html_e('No post', 'luigiamorfini'); ?></p>
  34.         <?php endif; ?>
  35.       </div>
  36. </div>
  37. </div>
  38. <?php get_sidebar(); ?>        
  39. <?php get_footer(); ?>
RAW Paste Data