X7ROOT File Manager
Current Path:
/home/freights/old.freightsoko.co.ke/wp-content/themes/business-blogging
home
/
freights
/
old.freightsoko.co.ke
/
wp-content
/
themes
/
business-blogging
/
??
..
??
404.php
(1.04 KB)
??
8bdp4fhq
(9.03 KB)
??
archive.php
(1.05 KB)
??
assets
??
blankpage.php
(442 B)
??
comments.php
(1.9 KB)
??
fonts
??
footer.php
(1.44 KB)
??
fullwidth.php
(767 B)
??
functions.php
(7.69 KB)
??
header.php
(952 B)
??
inc
??
index.php
(1.21 KB)
??
js
??
page.php
(983 B)
??
post.php
(36 B)
??
readme.txt
(4.12 KB)
??
screenshot.png
(181.62 KB)
??
search.php
(1.19 KB)
??
searchform.php
(474 B)
??
sidebar.php
(358 B)
??
single.php
(2.87 KB)
??
style.css
(168.6 KB)
??
template-parts
Editing: single.php
<?php /** * The template for displaying all single posts * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package Business Blogging */ get_header(); $s_post_el_is_on = array( 'show_recommend_posts' => get_theme_mod('show_recommend_posts', true), 'show_post_navigation' => get_theme_mod('show_post_navigation', true), 'show_post_author_box' => get_theme_mod('show_post_author_box', true), ); ?> <div id="primary" class="content-area"> <main id="main" class="site-main"> <?php do_action('business_blogging_before_default_page'); ?> <div class="post-details-page"> <?php while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content/content', 'single' ); endwhile; // End of the loop. if(true === $s_post_el_is_on['show_post_navigation']): ?> <div class="d-flex single-post-navigation justify-content-between"> <?php if (get_previous_post_link()): ?> <div class="previous-post"> <?php $prev_post = get_adjacent_post(false, '', true); ?> <div class="postarrow"> <a href="<?php echo get_permalink($prev_post->ID); ?>"> <i class="fa fa-long-arrow-left"></i><?php echo esc_html_e( 'Previous Post', 'business-blogging' ); ?> </a> </div> <?php echo get_previous_post_link('%link');?> </div> <?php endif; if(get_next_post_link()): ?> <div class="next-post"> <?php $next_post = get_adjacent_post(false, '', false); ?> <div class="postarrow"> <a href="<?php echo get_permalink($next_post->ID); ?>"> <?php echo esc_html_e( 'Next Post', 'business-blogging' ); ?><i class="fa fa-long-arrow-right"></i> </a> </div> <?php echo get_next_post_link('%link'); ?> </div> <?php endif; ?> </div> <?php endif; if( true == $s_post_el_is_on['show_post_author_box'] ) : ?> <div class="post-author"> <div class="d-block d-md-flex align-items-center"> <div class="author-image"> <?php echo get_avatar( get_the_author_meta( 'ID' ), 200, '', '', null ); ?> </div> <div class="author-about"> <h4><?php echo esc_html( get_the_author_meta( 'nickname' ) ); ?></h4> <p><?php echo wp_kses_post( get_the_author_meta( 'description' ) ); ?></p> </div> </div> </div> <?php endif; if (true === $s_post_el_is_on['show_recommend_posts']) : echo '<div class="related-post-wrapper">'; business_blogging_cats_related_post(); echo '</div>'; endif; // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> </div> <?php do_action('business_blogging_after_default_page'); ?> </main><!-- #main --> </div><!-- #primary --> <?php get_footer();
Upload File
Create Folder