Advertisement
darrenbachan

Untitled

Jun 8th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.02 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php $user_id = get_query_var( 'author' ) ?>
  4.  
  5.     <?php get_template_part('content', 'featured-banner'); ?>
  6.  
  7.         <div class="blog-post-featured-banner">
  8.             <?php if(!empty($clan_member_info->cover_photo)) echo '<img src="'.$clan_member_info->cover_photo.'"/>'; ?>
  9.  
  10.             <div class="texture-container bottom">
  11.                 <div class="texture texture-white-bottom"></div>
  12.             </div>
  13.         </div>
  14.  
  15.     <div class="container">
  16.         <section>
  17.             <div class="row">
  18.                 <div class="col-sm-12 col-md-12">
  19.                
  20.                     <article>
  21.                         <div class="row">
  22.                        
  23.                             <article class="roster-list">
  24.                                                        
  25.                                 <?php $clan_member_info = get_userdata($user_id); ?>
  26.                                 <?php $avatar = get_avatar( $user_id, 250 ); ?>
  27.                                                                                                                            
  28.                                 <div class="clan-member col-md-4">
  29.                                    
  30.                                     <?php echo $avatar; ?>
  31.                                    
  32.                                     <p class="syau-name">
  33.                                         <?php echo $clan_member_info->first_name; ?> <?php echo $clan_member_info->last_name; ?>
  34.                                     </p>
  35.  
  36.                                     <div class="syau-description">
  37.                                         <?php if(!empty($clan_member_info->description)) echo '<p>'.$clan_member_info->description.'</p>'; ?>
  38.                                     </div>
  39.  
  40.                                     <div class="blog-post-featured-banner">
  41.                                         <?php
  42.                                         echo '<pre>';
  43.                                         var_dump($clan_member_info->cover_photo);
  44.                                         echo '</pre>';
  45.                                         ?>
  46.  
  47.                                         <img src="<?php echo the_field('$clan_member_info->cover_photo'); ?>" />
  48.  
  49.                                         <?php echo '<img src="' . $clan_member_info->cover_photo . '"/>'; ?>
  50.                                         <?php echo $clan_member_info->cover_photo; ?>
  51.  
  52.                                         <div class="texture-container bottom">
  53.                                             <div class="texture texture-white-bottom"></div>
  54.                                         </div>
  55.                                     </div><!-- playground -->
  56.  
  57.                                     <ul class="syau-platform">
  58.                                         <?php if(!empty($clan_member_info->psn_id)) echo '<li>' . $clan_member_info->psn_id . '</li>'; ?>
  59.                                         <?php if(!empty($clan_member_info->xbox_one_gamertag)) echo '<li>' . $clan_member_info->xbox_one_gamertag . '</li>'; ?>
  60.                                         <?php if(!empty($clan_member_info->wii_u_id)) echo '<li>' . $clan_member_info->wii_u_id . '</li>'; ?>
  61.                                         <?php if(!empty($clan_member_info->steam_username)) echo '<li>' . $clan_member_info->steam_username . '</li>'; ?>
  62.                                         <?php if(!empty($clan_member_info->battle_net_username)) echo '<li>' . $clan_member_info->battle_net_username . '</li>'; ?>
  63.                                         <?php if(!empty($clan_member_info->facebook_url)) echo '<li>' . $clan_member_info->facebook_url . '</li>'; ?>
  64.                                     </ul>
  65.                                    
  66.                                     <div class="syau-description">
  67.                                         <?php echo apply_filters('the_content', $clan_member_info->description); ?>
  68.                                     </div>
  69.                                    
  70.                                 </div><!-- end clan member -->
  71.  
  72.                                 <div class="author-articles col-md-8">
  73.                                     <div class="page-header">
  74.                                         <h2><?php _e('All Posts', 'wp-upcoming-games'); ?></h2>
  75.                                     </div>
  76.                                     <?php
  77.                                         $args = array(
  78.                                             'posts_per_page'                => 4
  79.                                         );
  80.                                     ?>
  81.                                     <?php if(have_posts($args)) : ?>
  82.                                         <?php while(have_posts()) : the_post(); ?>
  83.                                            
  84.                                             <?php get_template_part('content'); ?>
  85.  
  86.                                         <?php endwhile; ?>
  87.  
  88.                                         <?php wp_custom_pagination([
  89.                                             'prev_text' => __( '<i class="fa fa-long-arrow-left"></i> Prev Page', 'textdomain' ),
  90.                                             'next_text' => __( 'Next Page <i class="fa fa-long-arrow-right"></i>', 'textdomain' )
  91.                                             ]);
  92.                                         ?>  
  93.  
  94.                                     <?php else : ?>
  95.                                         <p><?php __('You never made any posts!!!'); ?></p>
  96.                                     <?php endif; ?>
  97.                                 </div>
  98.                                    
  99.                                
  100.                             </article>
  101.                         </div>
  102.                        
  103.                     <!-- <?php the_content(); ?> -->
  104.    
  105.                     </article>
  106.  
  107.                 </div><!-- end column -->
  108.             </div><!--end row-->
  109.         </section>
  110.     </div><!--end container-->
  111.    
  112. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement