• Skip to primary navigation
  • Skip to main content
  • Skip to footer

altaneus

Pensées pour moi-même...

  • Home
  • Snippets
  • About

Add modify date – 4

Publié le 23 November 2015 par Stefano / Dernière modification le 20 January 2019

<?php

add_action ('genesis_entry_footer', 'summit_single_entry_footer_extra' );
function summit_single_entry_footer_extra() {
    $moddatetime = get_the_modified_time('c');
    $moddate = get_the_modified_date();
    $modauthor = get_the_modified_author();
    $outputmodified = '<time class="entry-modified-time" itemprop="dateModified" datetime="' . $moddatetime . '">' . $moddate . '</time>';
    $outputeditor = '<span class="entry-editor" itemprop="editor" itemscope itemtype="http://schema.org/Person"><span class="entry-editor-name" itemprop="name">' . esc_html( $modauthor ) . '</span></span>';
    echo '<div class="entry-footer-extra">';        
           echo '<p>Dernière modification le ' . $outputmodified . ' par ' . $outputeditor . '.</p>';
    echo '</div>';    
};

Footer

Recent Posts

  • Jetpack Stats – il va falloir payer
  • Jetpack Personal : augmentation de prix
  • Générateurs de mots de passes
  • Générateur de GUID/UUID
  • Appareil photo du Samsung S22 Ultra

Categories

  • Apache
  • Cloudflare
  • DNS
  • Genesis
  • Infomaniak
  • Jetpack
  • Non classé
  • Outils
  • Photographie
  • Sécurité
  • Uncategorized
  • Wordpress
  • WP Rocket

Copyright © 2025 · Genesis Framework · WordPress · Log in