HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/themes/medialider/category.php
<?php
get_header(); ?>

<div class="category-layer">
    <div class="container container-category">
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <a href="/" class="btn ml-stock-btn ml-stock-btn_blue ml-stock-btn_margin-top-10">На главную</a>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <p class="line-height-1 font-size-48 font-bold font-color-blue head-title"><? echo single_cat_title();?></p>
            </div>
        </div>
        <?
        
        $args = array(
            //'numberposts' => -1,
            'category'    => $currentCategoryId,
            'orderby'     => 'date',
            'order'       => 'DESC',
            //'post_type'   => 'post',
        );
        $posts_tmp=get_posts($args);
        //var_dump($posts_tmp);
        ?>
        <div class="row row-md-service grid">
            <?
            $indx=1;

            ?>
            <?while (have_posts()) : the_post();
           /*$image_id      = get_post_thumbnail_id( get_the_ID() );
                $tmp=get_the_ID();
               echo var_dump($tmp);
            $imagefull_url = wp_get_attachment_url( $image_id );
                $thumbnail_attributes = wp_get_attachment_image_src( get_post_thumbnail_id(), 'medium' );
                echo var_dump($thumbnail_attributes);
                */

                ?>
            <div class="col-md-4 col-sm-6 col-xs-12 col-category-padd grid-item">
                <div class="row">
                    <div class="col-md-12 category__service-item-img">
                        <img class="small-image" src="<?echo get_the_post_thumbnail_url();?>" alt="">

                        <!--<img src="<?echo $imagefull_url; ?>" alt="">-->
                    </div>
                </div>
                <div class="row ">
                    <div class="col-md-12">
                        <div class="category__service-item">
                            <div class="row">
                                <div class="col-md-12">
                                    <p class="service-item__title font-bold font-color-blue"><? the_title()?></p>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-12">
                                    <p class="service-item__description font-regular"><? the_excerpt();?></p>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-12">
                                    <div class="service-contain-btn">
                                        <a href="<? echo get_permalink();?>" class="btn ml-stock-btn ml-stock-btn_blue">Подробней</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
                <?
                $indx++;
                if ($indx==4){
                    $indx=1;
                }
                endwhile; ?>
        </div>
    </div>
</div>

<?php get_footer(); ?>