Server IP : 66.29.132.124 / Your IP : 18.224.51.49 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/cynthiaadediran.com/wp-content/themes/gerold/ |
Upload File : |
<?php /** * The template for displaying all single posts * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package Gerold_Theme * @since Gerold 1.0.0 * @author ThemeJunction */ get_header(); $blog_column = is_active_sidebar('blog-sidebar') ? 8 : 12; $gerold_blog_socials = get_theme_mod('gerold_blog_socials', false); ?> <div class="full-width tj-post-details__area"> <div class="container"> <div class="row"> <div class="col-lg-<?php print esc_attr($blog_column); ?>"> <!-- post details container --> <div class="tj-post-details__container"> <?php while (have_posts()) : the_post(); get_template_part('template-parts/content', get_post_format()); ?> <?php if (has_tag() || !empty($gerold_blog_socials)) : ?> <!-- post tags & social share --> <div class="single-post_tag_share <?php echo (!empty($gerold_blog_socials) ? "" : "no-social-share"); ?>"> <!-- post tags --> <?php if (has_tag()) { echo gerold_get_tag(); } // post share if (!empty($gerold_blog_socials)) : ?> <div class="share_link"> <a href="https://www.facebook.com/sharer?u=<?php the_permalink(); ?>" target="_blank" rel="noopener noreferrer" class="facebook" title="Share this on Facebook"><i class="fa-brands fa-facebook-f"></i></a> <a href="http://twitter.com/intent/tweet?url=<?php the_permalink(); ?>" class="twitter" title="Share this on Twitter" target="_blank"><i class="fa-brands fa-x-twitter"></i></a> <a href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink() ?>&summary=&source=<?php bloginfo('name'); ?>" class="linkedin" title="Share this on Linkedin" target="_blank"><i class="fa-brands fa-linkedin-in"></i></a> <a target="blank" href="http://pinterest.com/pin/create/button/?url=<?php the_permalink() ?>&media=<?php the_post_thumbnail_url('full'); ?>" class="pinteres" title="Pin This Post"><i class="fa-brands fa-pinterest-p"></i></a> </div> <?php endif; ?> </div> <?php endif; ?> <!-- post pagination --> <?php if (get_previous_post_link() || get_next_post_link()) : ?> <!-- post navigation --> <div class="single-post__navigation"> <?php $prevPost = get_adjacent_post(false, '', true);; ?> <?php if (is_a($prevPost, 'WP_Post')) : $prevThumbnail = get_the_post_thumbnail($prevPost->ID, [85, 85]); $prevTittle = $prevPost->post_title; $prevLink = get_permalink($prevPost->ID); ?> <!-- previous post --> <div class="tj-navigation_post previous"> <div class="tj-navigation-post_inner prev_post"> <?php if (!empty($prevThumbnail)) : ?> <div class="navigation-post_img"> <a href="<?php echo esc_url($prevLink); ?>"> <?php echo gerold_kses($prevThumbnail); ?> </a> </div> <?php endif; ?> <div class="tj-content"> <div class="post_pagination_nav"> <i class="fa-regular fa-angle-double-left"></i><?php echo esc_html__('previous', 'gerold'); ?> </div> <div class="post_pagination_title"> <h5 class="title"> <a href="<?php echo esc_url($prevLink); ?>"><?php echo wp_trim_words($prevTittle, 7, '...'); ?></a> </h5> </div> </div> </div> </div> <?php endif; ?> <?php $nextPost = get_adjacent_post(false, '', false); ?> <?php if (is_a($nextPost, 'WP_Post')) : $nextThumbnail = get_the_post_thumbnail($nextPost->ID, [85, 85]); $nextTittle = $nextPost->post_title; $nextLink = get_permalink($nextPost->ID); ?> <!-- next post --> <div class="tj-navigation_post next"> <div class="tj-navigation-post_inner next_post"> <div class="tj-content"> <div class="post_pagination_nav"> <?php echo esc_html__('Next', 'gerold'); ?><i class="fa-regular fa-angle-double-right"></i> </div> <div class="post_pagination_title"> <h5 class="title"> <a href="<?php echo esc_url($nextLink); ?>"><?php echo wp_trim_words($nextTittle, 7, '...'); ?></a> </h5> </div> </div> <?php if (!empty($nextThumbnail)) : ?> <div class="navigation-post_img"> <a href="<?php echo esc_url($nextLink); ?>"> <?php echo gerold_kses($nextThumbnail); ?> </a> </div> <?php endif; ?> </div> </div> <?php endif; ?> </div> <?php endif; ?> <?php // 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; endwhile; // End of the loop. ?> </div> <!-- !post details container --> </div> <?php if (is_active_sidebar('blog-sidebar')) : ?> <!-- sidebar --> <div class="col-lg-4"> <aside class="tj-main__sidebar tj_main_sidebar"> <?php get_sidebar(); ?> </aside> </div> <!-- !sidebar --> <?php endif; ?> </div> </div> </div> <?php get_footer();