DevDmBootstrap4

Twitter Bootstrap 4 WordPress Starter Theme for Developers

Theme File: date.php

Name: date.php

Path: devdmbootstrap4/template-parts/archive-types/date.php

Source: https://github.com/dannymachal/devdmbootstrap4/blob/master/template-parts/archive-types/date.php

Template include for the title of the date archive posts page archive.php.

<h1 class="dmbs-category-archive-date">
    <?php
        if ( is_day() ) :
            /* translators: %s: The Day */
            echo esc_html(sprintf( __( 'Daily Archives %s', 'devdmbootstrap4' ), get_the_date() ));

        elseif ( is_month() ) :
            /* translators: %s: The month */
            echo esc_html(sprintf( __( 'Monthly Archives %s', 'devdmbootstrap4' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'devdmbootstrap4' ) ) ) );

        elseif ( is_year() ) :
            /* translators: %s: The year */
            echo esc_html(sprintf( __( 'Yearly Archives %s', 'devdmbootstrap4' ), get_the_date( _x( 'Y', 'yearly archives date format', 'devdmbootstrap4' ) ) ));

        else :
            esc_html_e( 'Archives', 'devdmbootstrap4' );

        endif;
    ?>
</h1>
  • Dev Updates?

    Follow DevDmBootstrap4 Theme development with email updates.

  • Recent Posts

  • Recent Comments

  • Archives

  • Categories

  • Meta