add files
This commit is contained in:
26
amp/meta-time.php
Normal file
26
amp/meta-time.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Post date template part.
|
||||
*
|
||||
* 🚫🚫🚫
|
||||
* DO NOT EDIT THIS FILE WHILE INSIDE THE PLUGIN! Changes You make will be lost when a new version
|
||||
* of the AMP plugin is released. You need to copy this file out of the plugin and put it into your
|
||||
* custom theme, for example. To learn about how to customize these Reader-mode AMP templates, please
|
||||
* see: https://amp-wp.org/documentation/how-the-plugin-works/classic-templates/
|
||||
* 🚫🚫🚫
|
||||
*
|
||||
* @package AMP
|
||||
*/
|
||||
|
||||
/**
|
||||
* Context.
|
||||
*
|
||||
* @var AMP_Post_Template $this
|
||||
*/
|
||||
|
||||
?>
|
||||
<div class="amp-wp-meta amp-wp-posted-on">
|
||||
<time datetime="<?php echo esc_attr( date( 'c', $this->get( 'post_publish_timestamp' ) ) ); ?>">
|
||||
<?php echo esc_attr( date( 'd.m.Y H:i', $this->get( 'post_publish_timestamp' ) ) ); ?>
|
||||
</time>
|
||||
</div>
|
||||
Reference in New Issue
Block a user