/
home
/
infinitibizsol
/
www
/
wp-content
/
themes
/
infiniti-biz-solutions
/
File Upload :
llllll
Current File: /home/infinitibizsol/www/wp-content/themes/infiniti-biz-solutions/author.php
<?php /* Template for Author */ get_header(); ?> <div class="container pt-5 pb-lg-5 pb-md-4 pb-2 my-5"> <!-- Breadcrumb--> <nav aria-label="breadcrumb"> <ol class="pt-lg-3 pb-lg-4 pb-2 breadcrumb"> <li class="breadcrumb-item"><a href="/">Home</a></li> <li class="breadcrumb-item">Author</li> <li class="breadcrumb-item active" aria-current="page"> <?php $author_id = get_the_author_meta('ID'); echo get_the_author_meta('display_name', $author_id);?> </li> </ol> </nav> <div class="row mb-md-2 mb-xl-4"> <!-- Blog posts--> <div class="col-lg-9 pe-lg-4 pe-xl-5"> <h1 class="pb-3 pb-lg-4"><?php echo get_the_author_meta('display_name', $author_id);?></h1> <div class="row" style=" border-radius: 50px; padding: 50px; border: 1px solid #eee; background-color: #eee; margin-bottom: 50px; "> <div class="col-md-3"> <?php if(!empty(get_avatar(get_the_author_meta( 'ID' )))){ ?> <div class="author-avatar"> <?php echo get_avatar( get_the_author_meta( 'ID' ), 100 ); ?> </div> <?php }else{ echo"<img src='https://secure.gravatar.com/avatar/57f41120b25a1f78298f67180d51f196?s=52&d=mm&r=g' style='border-radius: 50%;'>"; } $author_id = get_the_author_meta('ID'); $author_name = get_the_author_meta('display_name', $author_id); $profile_link = get_author_posts_url($author_id); $author_bio = get_the_author_meta('description', $author_id); $author_bio_trimmed = wp_trim_words($author_bio, 20, '...'); if (!empty($profile_link)) { echo '<a style="text-align: center; text-decoration: none; display: block;border: 1px solid #001e80;border-radius: 20px;font-size: 12px; margin-top: 20px; padding: 5px 0;" href="' . $profile_link . '">View Profile</a>'; } ?> </div> <div class="col-md-9"> <h5 class="author-name" style="color: #001e80;"> <?php if (!empty($author_name)) { echo $author_name; } ?> </h5> <div class="author-biographical-info" style="color: #001e80;"> <?php if (!empty($author_bio)) { echo $author_bio; } ?> </div> <br> <div class="d-flex"> <?php $facebook = get_the_author_meta( 'facebook', $post->post_author ); $twitter = get_the_author_meta( 'twitter', $post->post_author ); $instagram = get_the_author_meta( 'instagram', $post->post_author ); $pinterest = get_the_author_meta( 'pinterest', $post->post_author ); $linkedin = get_the_author_meta( 'linkedin', $post->post_author ); $youtube = get_the_author_meta( 'youtube', $post->post_author ); if(!empty($linkedin)){ echo '<a class="btn btn-icon btn-sm btn-primary rounded-circle me-3" href="'. $linkedin .'" rel="nofollow" target="_blank" alt="Linkedin" style="padding: 5px;"> <i class="ai-linkedin"></i> </a>'; } if(!empty($facebook)){ echo '<a class="btn btn-icon btn-sm btn-primary rounded-circle me-3" href="'. $facebook .'" rel="nofollow" target="_blank" alt="Facebook" style="padding: 5px;"> <i class="ai-facebook"></i> </a>'; } if(!empty($instagram)){ echo'<a class="btn btn-icon btn-sm btn-primary rounded-circle me-3" href="'. $instagram .'" rel="nofollow" target="_blank" alt="Instagram" style="padding: 5px;"> <i class="ai-instagram"></i> </a>'; } if(!empty($pinterest)){ echo'<a class="btn btn-icon btn-sm btn-primary rounded-circle me-3" href="'. $pinterest .'" rel="nofollow" target="_blank" alt="Pinterest" style="padding: 5px;"> <i class="ai-pinterest"></i> </a>'; } if(!empty($facebook)){ echo'<a class="btn btn-icon btn-sm btn-primary rounded-circle me-3" href="https://twitter.com/' . $twitter .'" rel="nofollow" target="_blank" alt="Twitter" style="padding: 5px;"> <i class="ai-twitter"></i> </a>'; } if(!empty($youtube)){ echo'<a class="btn btn-icon btn-sm btn-primary rounded-circle me-3" href="'. $youtube .'" rel="nofollow" target="_blank" alt="YouTube" style="padding: 5px;"> <i class="ai-youtube"></i> </a> '; } ?> </div> </div> </div> <?php /* Start the Loop */ $paged = get_query_var('paged')? get_query_var('paged') : 1; // $args = [ // 'post_type' => 'post', // 'posts_per_page' => 10, // 'paged' => $paged, // ]; $myposts = get_posts( array( 'post_type' => 'post', 'posts_per_page' => 5, 'paged' => $paged, ) ); $wp_query = new WP_Query($myposts); if ( $myposts ) { foreach ( $myposts as $post ){ setup_postdata( $post ); $featured_img_url = get_the_post_thumbnail_url('full'); ?> <!-- Post--> <article class="row g-0 border-0 pt-3 pt-sm-0 mb-4"><a class="col-sm-5 bg-repeat-0 bg-size-cover bg-position-center rounded-5" href="<?php echo get_permalink();?>" style="background-image: url(<?php the_post_thumbnail_url();?>); min-height: 14rem"></a> <div class="col-sm-7"> <div class="pt-4 pb-sm-4 ps-sm-4 pe-lg-4"> <h3><a href="<?php echo get_permalink();?>" style="text-decoration: none; color: #25a6ea;"><?php echo the_title();?></a></h3> <div class="d-flex flex-wrap align-items-center pt-1 mt-n2"> <span class="fs-sm text-muted mt-2"><?php echo get_the_date(); ?></span> <span class="fs-xs opacity-20 mt-2 mx-3">|</span> <?php $categories = get_the_category(); $link = get_category_link( $categories[0]->term_id ); $category_name = $categories[0]->name; ?> <a class="badge bg-faded-primary text-primary fs-xs mt-2" href="<?php echo $link;?>"> <?php echo $category_name;?> </a> </div> <p class="d-sm-none d-md-block"> <?php echo substr(get_the_excerpt(), 0,130); ?> </p> <a class="btn btn-outline-primary btn-sm mb-2 rounded-pill" href="<?php echo get_permalink();?>">Read More</a> </div> </div> </article> <?php } } else{ get_template_part( 'template-parts/content', 'none' ); } ?> <!-- then the pagination links --> <?php wpbeginner_numeric_posts_nav($hello); ?> </div> <!-- Sidebar (offcanvas on sreens < 992px)--> <aside class="col-lg-3"> <div class="offcanvas-lg offcanvas-end" id="sidebarBlog"> <div class="offcanvas-header"> <h4 class="offcanvas-title">Sidebar</h4> <button class="btn-close ms-auto" type="button" data-bs-dismiss="offcanvas" data-bs-target="#sidebarBlog"></button> </div> <div class="offcanvas-body"> <!-- Search box--> <!--<form role="search" method="get" class="search-form" action="https://infinitibizsol.com/">--> <!--<div class="input-group rounded-pill">--> <!-- <input class="form-control" type="text" name="s" placeholder="Search...">--> <!-- <button class="btn btn-primary rounded-pill" type="submit">Search</button>--> <!--</div>--> <!--</form>--> <!-- Category links--> <h4 class="pt-1 pt-lg-0 mt-lg-n2">Categories:</h4> <ul class="nav flex-column mb-lg-5 mb-4"> <?php $categories = get_categories(); foreach($categories as $category) { ?> <!--<li class="mb-2"><a class="nav-link d-flex p-0 active" href="#">All categories<span class="fs-sm text-muted ms-2">(110)</span></a></li>--> <li class="mb-2"> <a class="nav-link d-flex p-0" href="<?php echo get_category_link($category->term_id);?>"> <?php echo $category->name;?> <span class="fs-sm text-muted ms-2"><?php echo $category->category_count;?></span> </a> </li> <?php } ?> </ul> <!-- Featured posts widget--> </div> </div> </aside> </div> </div> </main><!-- #main --> <?php get_sidebar(); get_footer();
Copyright ©2k19 -
Hexid
|
Tex7ure