HEX
Server: Apache
System: Linux hp3-wp-1011494.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User: csh2729955 (2121743)
PHP: 7.4.33
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: /home/storage/162/3480162/user/htdocs/wp-content/themes/newses/content-grid.php
<?php
/**
 * The template for displaying the content.
 * @package Newses
 */
?>
<div id="grid" class="row" >
    <?php while(have_posts()){ the_post();  
    $newses_content_layout = esc_attr(get_theme_mod('newses_content_layout','align-content-right')); ?>

    <div id="post-<?php the_ID(); ?>" <?php if($newses_content_layout == "grid-fullwidth") { echo post_class('col-md-4'); } else { echo post_class('col-md-6'); } ?>>
    <!-- mg-posts-sec mg-posts-modul-6 -->
        <div class="mg-blog-post-box mb-30"> 
            <?php $url = newses_get_freatured_image_url($post->ID, 'full'); ?>
            <div class="mg-blog-thumb back-img md" style="background-image: url('<?php echo esc_url($url); ?>');">
                <?php echo newses_post_format_type($post); ?>
                <a href="<?php the_permalink();?>" class="link-div"></a>
            </div> 
            <article class="small p-3">
                <div class="mg-blog-category">
                    <?php newses_post_categories(); ?> 
                </div>
                <h4 class="entry-title title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h4>
                <?php newses_post_meta(); ?>
                <p><?php echo wp_trim_words( get_the_excerpt(), 20 ); ?></p>
            </article>
        </div>
    </div>
    <?php } ?>
    <div class="col-md-12 text-center d-md-flex justify-content-center">
        <?php //Previous / next page navigation
                the_posts_pagination( array(
                'prev_text'          => '<i class="fa fa-angle-left"></i>',
                'next_text'          => '<i class="fa fa-angle-right"></i>',
                ) ); 
        ?>
    </div>
</div>