403Webshell
Server IP : 37.27.51.148  /  Your IP : 37.27.51.148
Web Server : nginx/1.14.1
System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.31
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/zodiac22/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/zodiac22/category.php
<?php
get_header('blog');

$cat = get_the_category();
?>

<div class="container">
    <div>
        <?php echo the_breadcrumb(); ?>
        <h3 class="my-3"><?php echo get_category_title_by_yoast(); ?></h3>
        <p class="h5 d-inline-block text-muted pb-3"><?php echo $cat[0]->description; ?></p>
    </div>
</div>

<div class="container">

    <div class="row results-grid">

        <?php
        $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

        if (have_posts()) :
            $counter = 1;
            while (have_posts()) :
                the_post();
                // Adjust image size and card style based on post position
                if ($counter === 1) {
                    $colClass = 'col-12 col-md-6 col-lg-4';
                    $cardClass = 'card card-lg';
                    $featuredImage = get_the_post_thumbnail_url(get_the_ID(), 'large');
                } elseif ($counter === 2) {
                    $colClass = 'col-12 col-md-6 col-lg-4';
                    $cardClass = 'card card-md';
                    $featuredImage = get_the_post_thumbnail_url(get_the_ID(), 'medium');
                } else {
                    $colClass = 'col-12 col-md-6 col-lg-4';
                    $cardClass = 'card card-sm';
                    $featuredImage = get_the_post_thumbnail_url(get_the_ID(), 'small');
                }
                ?>

                <div class="<?php echo $colClass; ?> js-post-card-wrap">
                    <div class="card mb-2">
                        <a href="<?php the_permalink(); ?>" aria-label="<?php the_title(); ?>">
                            <img src="<?php echo $featuredImage; ?>" class="card-img-top" alt="<?php the_title(); ?>">
                        </a>
                        <div class="card-body">
                            <h5 class="card-title">
                                <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                            </h5>
                            <div class="card-text">
                                <?php the_excerpt(); ?>
                            </div>
                            <div class="card-meta">
                                <span><?php echo get_the_date("F jS, Y"); ?></span>
                            </div>
                        </div>
                    </div>
                </div>
                <?php
                $counter++;
            endwhile;
        else :
            ?>
            <div class="col-12">
                <p>No posts found.</p>
            </div>
        <?php endif; ?>

        <?php wp_reset_query(); ?>
    </div>
</div>

<script type="text/javascript">
  /* <![CDATA[ */
  var yqhoro_config = {
    "yqhoro_page_number_max": 14,
    "yqhoro_page_number_next": "2",
    "yqhoro_page_link_next": "<?php echo get_bloginfo("url"); ?>\/blog\/page\/9999999999\/",
    "yqhoro_load_more": "More Posts",
    "yqhoro_loading": "Loading",
  };
  /* ]]> */
</script>

<div class="text-center pb-4">
    <button class="js-load-posts d-inline-block btn btn-success">More Posts</button>
</div>

<?php
get_footer('blog');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit