HEX
Server: Apache/2
System: Linux ns65.hostinglotus.net 4.18.0-553.16.1.el8_10.x86_64 #1 SMP Thu Aug 8 07:11:46 EDT 2024 x86_64
User: newsnnno (1225)
PHP: 8.2.20
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/newsnnno/domains/newsnnnonline.com/public_html/wp-content/themes/newsup/content-grid.php
<?php
/**
 * The template for displaying the content.
 * @package Newsup
 */
?>
<div id="grid" class="row" >
     <?php while(have_posts()){ the_post();  
     $newsup_content_layout = esc_attr(get_theme_mod('newsup_content_layout','align-content-right')); ?>
    <div id="post-<?php the_ID(); ?>" <?php if($newsup_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"> 
                 <?php newsup_post_image_display_type($post); ?>
                <article class="small">
                    <div class="mg-blog-category">
                            <?php newsup_post_categories(); ?> 
                    </div>
                    <h4 class="entry-title title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h4>
                    <?php newsup_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="fas fa-angle-left"></i>',
                    'next_text'          => '<i class="fas fa-angle-right"></i>',
                    ) ); 
            ?>
        </div>
</div>