File manager - Edit - /home/carfac/public_html/REPhotoUtah/wp-content/themes/outdoor/author.php
Back
<?php get_header(); $sb_w = outdoor_global_var('blog-sidebar-width') ? outdoor_global_var('blog-sidebar-width') : 4; $blog_header_image = ''; if( get_user_meta(get_the_author_meta('ID'), '_cmb_user_header_img' ,true) ){ $blog_header_image = get_user_meta(get_the_author_meta('ID'), '_cmb_user_header_img' ,true); } ?> <div class="content"> <?php if(!empty($blog_header_image)) :?> <section class="parallax-section"> <div class="overlay"></div> <div class="bg" style="background-image: url(<?php echo esc_url($blog_header_image );?>);" data-top-bottom="transform: translateY(200px);" data-bottom-top="transform: translateY(-200px);"></div> <div class="container"> <h2><?php the_archive_title(); ?></h2> <div class="separator"></div> </div> <?php if(outdoor_global_var('show_scrolldown')) :?> <a class="custom-scroll-link sect-scroll" href="#blog_sec1"><i class="fa fa-angle-double-down"></i></a> <?php endif;?> </section> <?php endif;?> <div class="sections-bg blog-sections-bg bg-for-sidebar-cols-<?php echo esc_attr( $sb_w );?><?php if(outdoor_global_var('blog_layout')==='fullwidth'){echo ' bg-fullwidth';}elseif(outdoor_global_var('blog_layout')==='left_sidebar'){echo ' bg-leftsidebar';}?>"></div> <section id="blog_sec1"> <div class="container column-container for-cal-bg-width" data-sidebarcols="<?php echo esc_attr( $sb_w );?>"> <!--================= articles ================--> <div class="row"> <?php if(outdoor_global_var('blog_layout') ==='left_sidebar'):?> <div class="col-md-<?php echo esc_attr( $sb_w );?> left-sidebar"> <div class="sidebar"> <?php get_sidebar(); ?> </div> </div> <?php endif;?> <?php if(outdoor_global_var('blog_layout') ==='fullwidth'):?> <div class="col-md-12 display-posts"> <?php elseif(outdoor_global_var('blog_layout') ==='left_sidebar'):?> <div class="col-md-<?php echo (12 - $sb_w);?> cols-md-offset-1 display-posts"> <?php else:?> <div class="col-md-<?php echo (12 - $sb_w);?> display-posts"> <?php endif;?> <?php if(empty($blog_header_image)) :?> <h1 class="page-title author-page-title"><?php the_archive_title() ;?></h1> <?php endif;?> <div class="post-author"> <div class="author-img"> <?php //echo get_avatar( get_the_author_meta('user_email'), 74 ); echo get_avatar(get_the_author_meta('user_email'),$size='100',$default='http://0.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536?s=100' ); ?> </div> <div class="author-content"> <h5><a href="<?php echo esc_url(get_the_author_meta('user_url' ));?>"><?php echo get_the_author_meta('nickname');?></a></h5> <p><?php echo get_the_author_meta('description');?></p> </div> <div class="clearfix"></div> <div class="footer-social"> <ul> <?php if(get_user_meta(get_the_author_meta('ID'), '_cmb_twitterurl' ,true)!=''){ ?> <li><a title="<?php esc_html_e('Follow on Twitter','outdoor');?>" href="<?php echo esc_url(get_user_meta(get_the_author_meta('ID'), '_cmb_twitterurl' ,true)); ?>" target="_blank"><i class="fa fa-twitter"></i></a></li> <?php } ?> <?php if(get_user_meta(get_the_author_meta('ID'), '_cmb_facebookurl' ,true)!=''){ ?> <li><a title="<?php esc_html_e('Like on Facebook','outdoor');?>" href="<?php echo esc_url(get_user_meta(get_the_author_meta('ID'), '_cmb_facebookurl' ,true)); ?>" target="_blank"><i class="fa fa-facebook"></i></a></li> <?php } ?> <?php if(get_user_meta(get_the_author_meta('ID'), '_cmb_googleplusurl' ,true)!=''){ ?> <li><a title="<?php esc_html_e('Circle on Google Plus','outdoor');?>" href="<?php echo esc_url(get_user_meta(get_the_author_meta('ID'), '_cmb_googleplusurl' ,true)) ;?>" target="_blank"><i class="fa fa-google-plus"></i></a></li> <?php } ?> <?php if(get_user_meta(get_the_author_meta('ID'), '_cmb_linkedinurl' ,true)!=''){ ?> <li><a title="<?php esc_html_e('Be Friend on Linkedin','outdoor');?>" href="<?php echo esc_url(get_user_meta(get_the_author_meta('ID'), '_cmb_linkedinurl' ,true) ); ?>" target="_blank"><i class="fa fa-linkedin"></i></a></li> <?php } ?> </ul> </div> <div class="clearfix"></div> </div> <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> <?php get_template_part( 'content', ( post_type_supports( get_post_type(), 'post-formats' ) ? get_post_format() : get_post_type() ) ); ?> <?php endwhile; ?> <?php else: ?> <?php get_template_part('content','none' ); ?> <?php endif; ?> <?php outdoor_pagination(wp_kses(__('<i class="fa fa-chevron-left"></i>','outdoor'),array('i'=>array('class'=>array())) ),wp_kses(__('<i class="fa fa-chevron-right"></i>','outdoor'),array('i'=>array('class'=>array()))) );?> </div><!--/.posts column --> <?php if(outdoor_global_var('blog_layout') ==='right_sidebar'):?> <div class="col-md-<?php echo esc_attr( $sb_w );?> right-sidebar"> <div class="sidebar"> <?php get_sidebar(); ?> </div> </div> <?php endif;?> </div> </div> </section> </div> <!-- Content end --> <?php get_footer();
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.23 |
proxy
|
phpinfo
|
Settings