HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: //opt/Newsmag/archive.php
<?php
get_header();

//prepare the archives page title
if (is_day()) {
    $td_archive_title = esc_html__('Daily Archives:', 'newsmag'). ' ' . get_the_date();
} elseif (is_month()) {
    $td_archive_title = esc_html__('Monthly Archives:', 'newsmag') . ' ' . get_the_date('F Y');
} elseif (is_year()) {
    $td_archive_title = esc_html__('Yearly Archives:', 'newsmag') . ' ' . get_the_date('Y');
} else {
    $td_archive_title = esc_html__('Archives', 'newsmag');
}
?>

<div class="td-container">
        <div class="td-container-border">
            <div class="td-pb-row">
                <div class="td-pb-span8 td-main-content">
                    <div class="td-ss-main-content">
                        <div class="td-page-header td-pb-padding-side">
                            <?php echo tagdiv_page_generator::get_breadcrumbs(array('template'=>'archive')) ?>

                            <h1 class="entry-title td-page-title">
                                <span><?php printf( '%1$s', $td_archive_title ) ?></span>
                            </h1>
                        </div>

                        <?php
                        get_template_part('loop-archive' );
                        tagdiv_page_generator::get_pagination();
                        ?>
                    </div>
                </div>

                <div class="td-pb-span4 td-main-sidebar">
                    <div class="td-ss-main-sidebar">
                        <?php dynamic_sidebar( 'td-default' ); ?>
                    </div>
                </div>
            </div> <!-- /.td-pb-row -->
        </div>
    </div> <!-- /.td-container -->

<?php
get_footer();