Advertisement
darrenbachan

Untitled

Jun 8th, 2016
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.99 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.                                     <div class="platforms box">
  58.                                         <div class="title">
  59.                                             <h5>Platforms</h5>
  60.                                         </div>
  61.                                        
  62.                                         <ul class="syau-platform">
  63.                                             <?php if(!empty($clan_member_info->psn_id)) echo '<li>' . '<span>' . 'PSN: ' . '</span>' . $clan_member_info->psn_id . '</li>'; ?>
  64.                                             <?php if(!empty($clan_member_info->xbox_one_gamertag)) echo '<li>' . '<span>' . 'Xbox One: ' . '</span>' . $clan_member_info->xbox_one_gamertag . '</li>'; ?>
  65.                                             <?php if(!empty($clan_member_info->wii_u_id)) echo '<li>' . '<span>' . 'Wii U: ' . '</span>' . $clan_member_info->wii_u_id . '</li>'; ?>
  66.                                             <?php if(!empty($clan_member_info->steam_username)) echo '<li>' . '<span>' . 'Steam: ' . '</span>' . $clan_member_info->steam_username . '</li>'; ?>
  67.                                             <?php if(!empty($clan_member_info->battle_net_username)) echo '<li>' . '<span>' . 'Battle.net: ' . '</span>' . $clan_member_info->battle_net_username . '</li>'; ?>
  68.                                         </ul>
  69.                                     </div><!-- end platforms -->
  70.  
  71.                                     <div class="channels box">
  72.                                         <div class="title">
  73.                                             <h5>Channels</h5>
  74.                                         </div>
  75.                                         <div class="inner-box">
  76.                                             <?php if(!empty($clan_member_info->youtube_url)) echo '<a class="btn btn-brand-youtube btn-md" target="_blank" href="' . $clan_member_info->youtube_url . '">' . 'YouTube Channel' . '</a>'; ?>
  77.                                             <?php if(!empty($clan_member_info->twitch_url)) echo '<a class="btn btn-brand-twitch btn-md" target="_blank" href="' . $clan_member_info->twitch_url . '">' . 'Twitch Channel' . '</a>'; ?>
  78.                                         </div>
  79.                                     </div>
  80.  
  81.                                     <div class="syau-description">
  82.                                         <?php echo apply_filters('the_content', $clan_member_info->description); ?>
  83.                                     </div>
  84.                                    
  85.                                 </div><!-- end clan member -->
  86.  
  87.                                 <div class="author-articles col-md-8">
  88.                                     <div class="page-header">
  89.                                         <h2><?php _e('All Posts', 'wp-upcoming-games'); ?></h2>
  90.                                     </div>
  91.                                     <?php if(have_posts()) : ?>
  92.                                         <?php while(have_posts()) : the_post(); ?>
  93.                                            
  94.                                             <?php get_template_part('content'); ?>
  95.  
  96.                                         <?php endwhile; ?>
  97.  
  98.                                         <?php wp_custom_pagination([
  99.                                             'prev_text' => __( '<i class="fa fa-long-arrow-left"></i> Prev Page', 'textdomain' ),
  100.                                             'next_text' => __( 'Next Page <i class="fa fa-long-arrow-right"></i>', 'textdomain' )
  101.                                             ]);
  102.                                         ?>  
  103.  
  104.                                     <?php else : ?>
  105.                                         <p><?php __('You never made any posts!!!'); ?></p>
  106.                                     <?php endif; ?>
  107.                                 </div>
  108.                                    
  109.                                
  110.                             </article>
  111.                         </div>
  112.                        
  113.                     <!-- <?php the_content(); ?> -->
  114.    
  115.                     </article>
  116.  
  117.                 </div><!-- end column -->
  118.             </div><!--end row-->
  119.         </section>
  120.     </div><!--end container-->
  121.    
  122. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement