Created
November 14, 2017 00:35
-
-
Save rotisoft/3f4f7c4ea0b6b65ff683bff8757fab7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$send_time_rs = get_the_time('c'); | |
$updated_time_rs = get_the_modified_time('c'); | |
echo '<time class="published" style="display: none;" datetime="'; | |
echo $send_time_rs; | |
echo '">'; | |
echo $send_time_rs; | |
echo '</time> '; | |
if($send_time_rs!==$updated_time_rs) { | |
echo '<time class="updated" style="display: none;" datetime="'; | |
echo $updated_time_rs; | |
echo '">'; | |
echo $updated_time_rs; | |
echo '</time> '; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment