Commit b0dd12e8 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add "different" class if modified date is different

parent 9b129152
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ get_header();
        <footer>
            <div class="author"><?php the_author_meta('display_name'); ?></div>
            <div class="published date">Veröffentlicht: <time><?php the_date(); ?></time></div>
            <div class="modified date">Zuletzt geändert: <time><?php the_modified_date(); ?></time></div>
            <div class="modified date <?php if(get_modified_date() !== get_date()) { echo 'different'; } ?>">Zuletzt geändert: <time><?php the_modified_date(); ?></time></div>
        </footer>
    </article>
</main>