HEX
Server: Apache
System: Linux webserver101.turnkeywebspace.com 4.18.0-553.81.1.el8_10.x86_64 #1 SMP Mon Oct 27 11:29:19 EDT 2025 x86_64
User: mastech10 (1521)
PHP: 8.2.30
Disabled: show_source,system,shell_exec,passthru,exec,phpinfo,popen,proc_open,eval
Upload Files
File: /home/mastech10/public_html/wp-content/themes/newses/content.php
<?php
/**
 * The template for displaying the content.
 * @package Newses
 */
?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <!-- mg-posts-sec mg-posts-modul-6 -->
    <div class="mg-posts-sec mg-posts-modul-6  wd-back">
        <!-- mg-posts-sec-inner -->
        <div class="mg-posts-sec-inner row">
            <?php while(have_posts()){ the_post(); ?>
            <div class="d-md-flex mg-posts-sec-post mb-4 w-100">
                <div class="col-12 col-md-6">
                    <?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> 
                </div>
                <div class="mg-sec-top-post col">
                    <?php newses_post_categories(); ?> 
                    <h4 class="title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h4>
                    <?php newses_post_meta(); ?>
                    <div class="mg-content overflow-hidden">
                    <?php $newses_excerpt = newses_the_excerpt( absint( 30 ) );
                        if ( !empty( $newses_excerpt ) ) {              
                            echo wp_kses_post( wpautop( $newses_excerpt ) );
                        }
                        ?>
                    </div>
                </div>
            </div>
                <?php } ?>
            <div class="col-md-12 text-center d-flex justify-content-center">
                <?php //Previous / next page navigation
                $prev_text =  (is_rtl()) ? "right" : "left";
                $next_text =  (is_rtl()) ? "left" : "right";
                the_posts_pagination( array(
                    'prev_text'          => '<i class="fa-solid fa-angle-'.$prev_text.'"></i>',
                    'next_text'          => '<i class="fa-solid fa-angle-'.$next_text.'"></i>',
                    ) 
                ); ?> 
            </div>

        </div>
        <!-- // mg-posts-sec-inner -->
    </div>
    <!-- // mg-posts-sec block_6 -->
</div>
<!--col-md-12-->