Файловый менеджер - Редактировать - /home/pimjdymy/public_html/zeroesops/wp-content/themes/zeroesops/single.php
Назад
<?php /** * The template for displaying all single posts * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package Zeroesops */ get_header(); ?> <div class="site-wrapper-reveal"> <!-- breadcrumb-area start --> <?php get_template_part( 'template-parts/content', 'breadcrumbs' ); ?> <!-- breadcrumb-area end --> <!--==================== Blog Area Start ====================--> <div class="blog-pages-wrapper section-space--ptb_100"> <div class="container"> <div class="row"> <div class="col-lg-4 order-lg-2 order-2"> <div class="page-sidebar-content-wrapper page-sidebar-right small-mt__40 tablet-mt__40"> <!-- Sidebar Widget Start --> <div class="sidebar-widget search-post wow move-up"> <div class="widget-title"> <h4 class="sidebar-widget-title">Search</h4> </div> <form role="search" method="get" action="<?php echo esc_url(home_url('/')); ?>"> <div class="widget-search"> <input type="search" class="search-field" placeholder="<?php esc_attr_e('Enter search keyword...', 'your-theme'); ?>" value="<?php echo get_search_query(); ?>" name="s" title="<?php esc_attr_e('Search for:', 'your-theme'); ?>" /> <button type="submit" class="search-submit"> <span class="search-btn-icon fa fa-search"></span> </button> </div> </form> </div> <!-- Sidebar Widget End --> <!-- Recent Posts --> <div class="sidebar-widget widget-blog-recent-post wow move-up"> <h4 class="sidebar-widget-title">Recent Posts</h4> <ul> <?php $recent_posts = wp_get_recent_posts(array('numberposts' => 5)); if (!empty($recent_posts)) : foreach ($recent_posts as $post) : ?> <li><a href="<?php echo get_permalink($post['ID']); ?>"><?php echo $post['post_title']; ?></a></li> <?php endforeach; endif; ?> </ul> </div> <!-- Sidebar Widget End --> <!-- Tags --> <?php $tags = get_the_tags(); if ($tags) : ?> <div class="sidebar-widget widget-tag wow move-up"> <h4 class="sidebar-widget-title">Tags</h4> <?php foreach ($tags as $tag) : ?> <a href="<?php echo get_tag_link($tag->term_id); ?>" class="ht-btn ht-btn-xs"><?php echo $tag->name; ?></a> <?php endforeach; ?> ?> </div> <?php endif; ?> </div> </div> <div class="col-lg-8 order-lg-1 order-1"> <div class="main-blog-wrap"> <div class="single-blog-item"> <!-- Post Content Start --> <?php while (have_posts()) : the_post(); ?> <!-- Post Feature Start --> <?php if( has_post_thumbnail() ): ?> <div class="post-feature blog-thumbnail wow move-up"> <img class="img-fluid" src="<?php echo get_the_post_thumbnail_url(); ?>" alt="Blog Images"> </div> <?php endif; ?> <!-- Post Feature End --> <div class="post-info lg-blog-post-info wow move-up"> <?php if (has_category()) : ?> <div class="post-categories"> <a href="#"><?php the_category(', '); ?></a> </div> <?php endif; ?> <h3 class="post-title"><?php the_title(); ?></h3> <div class="post-meta mt-20"> <?php if (get_the_author()) : ?> <div class="post-author"> <a href="#"> <img class="img-fluid avatar-96" src="<?php echo get_avatar_url(get_the_author_meta('ID')); ?>" alt=""> <?php the_author(); ?> </a> </div> <?php endif; ?> <?php if (get_the_date()) : ?> <div class="post-date"> <span class="far fa-calendar meta-icon"></span> <?php echo get_the_date(); ?> </div> <?php endif; ?> <?php $views = get_post_meta(get_the_ID(), 'views_count', true); ?> <?php if ($views) : ?> <div class="post-view"> <span class="meta-icon far fa-eye"></span> <?php echo $views; ?> views </div> <?php endif; ?> <?php if (comments_open() || get_comments_number()) : ?> <div class="post-comments"> <span class="far fa-comment-alt meta-icon"></span> <a href="#comments"><?php echo get_comments_number(); ?> Comments</a> </div> <?php endif; ?> </div> <div class="post-excerpt mt-15"> <?php if (the_content()) : ?> <p><?php the_content(); ?></p> <?php endif; ?> </div> <!-- Tags and Share section --> <div class="entry-post-share-wrap border-bottom"> <div class="row align-items-center"> <div class="col-lg-6 col-md-6"> <?php $tags = get_the_tags(); if ($tags) : ?> <div class="entry-post-tags"> <div class="tagcloud-icon"> <i class="far fa-tags"></i> </div> <div class="tagcloud"> <?php foreach ($tags as $tag) : ?> <a href="<?php echo get_tag_link($tag->term_id); ?>"><?php echo $tag->name; ?></a> <?php endforeach; ?> </div> </div> <?php endif; ?> </div> <div class="col-lg-6 col-md-6"> <div class="entry-post-share"> <div class="share-label"> Share this post </div> <div class="share-media"> <span class="share-icon far fa-share-alt"></span> <div class="share-list"> <a href="https://twitter.com/share" target="_blank"><i class="fab fa-twitter"></i></a> <a href="https://www.facebook.com/sharer.php" target="_blank"><i class="fab fa-facebook-f"></i></a> <a href="https://www.linkedin.com/shareArticle" target="_blank"><i class="fab fa-linkedin"></i></a> </div> </div> </div> </div> </div> </div> <!-- Author Section --> <div class="entry-author"> <?php if (get_the_author()) : ?> <div class="author-info"> <div class="author-avatar"> <img src="<?php echo get_avatar_url(get_the_author_meta('ID')); ?>" alt=""> </div> <div class="author-description"> <h6 class="author-name"><?php the_author(); ?></h6> <div class="author-biographical-info"> <?php the_author_meta('description'); ?> </div> </div> </div> <?php endif; ?> </div> </div> <?php the_post_navigation( array( 'prev_text' => '<span class="nav-subtitle">' . esc_html__('Previous:', 'zeroesops') . '</span> <span class="nav-title">%title</span>', 'next_text' => '<span class="nav-subtitle">' . esc_html__('Next:', 'zeroesops') . '</span> <span class="nav-title">%title</span>', ) ); endwhile; ?> <!-- Post Content End --> <!-- Post info Start --> <!-- Post info End --> </div> </div> </div> </div> </div> </div> <!--==================== Blog Area End ====================--> <?php // get_sidebar(); get_footer();
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка