mirror of
https://gh.wpcy.net/https://github.com/presscustomizr/hueman.git
synced 2026-04-24 20:14:52 +08:00
26 lines
No EOL
1.2 KiB
PHP
26 lines
No EOL
1.2 KiB
PHP
<?php
|
|
/* Print the post date. Compatible with Google Structured data. Must be used in the WordPress loop
|
|
* @php return html string
|
|
/* ------------------------------------ */
|
|
?>
|
|
<p class="post-date">
|
|
<time class="published updated" datetime="<?php the_time('Y-m-d H:i:s'); ?>"><?php the_time( get_option('date_format') ); ?></time>
|
|
</p>
|
|
<?php if ( hu_is_checked( 'post-list-meta-author' ) ) : ?>
|
|
<p class="post-date">
|
|
<?php if ( is_rtl() ) : ?>
|
|
<?php _e('by','hueman'); ?> <?php the_author_posts_link(); ?>
|
|
<?php else : ?>
|
|
<?php _e('by','hueman'); ?> <?php the_author_posts_link(); ?>
|
|
<?php endif; ?>
|
|
</p>
|
|
<?php endif; ?>
|
|
|
|
<?php if ( hu_is_checked('structured-data') ) : ?>
|
|
<p class="post-byline" style="display:none"> <?php _e('by','hueman'); ?>
|
|
<span class="vcard author">
|
|
<span class="fn"><?php the_author_posts_link(); ?></span>
|
|
</span> · Published <span class="published"><?php echo get_the_date( get_option('date_format') ); ?></span>
|
|
<?php if( get_the_modified_date() != get_the_date() ) : ?> · Last modified <span class="updated"><?php the_modified_date( get_option('date_format') ); ?></span><?php endif; ?>
|
|
</p>
|
|
<?php endif ?>
|