mirror of
https://ghproxy.net/https://github.com/AlxMedia/blogside.git
synced 2025-08-26 16:48:09 +08:00
Use get_option('date_format') for meta dates
This commit is contained in:
parent
6d935cff3a
commit
e7bc4de146
8 changed files with 9 additions and 9 deletions
|
@ -22,7 +22,7 @@
|
|||
</h3><!--/.post-title-->
|
||||
|
||||
<ul class="post-meta group">
|
||||
<li><?php the_time('j M, Y'); ?></li>
|
||||
<li><?php the_time( get_option('date_format') ); ?></li>
|
||||
</ul><!--/.post-meta-->
|
||||
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
<ul class="post-meta group">
|
||||
<li><?php the_category(' / '); ?></li>
|
||||
<li><i class="fa fa-clock-o"></i><?php the_time('j M, Y'); ?></li>
|
||||
<li><i class="fa fa-clock-o"></i><?php the_time( get_option('date_format') ); ?></li>
|
||||
</ul><!--/.post-meta-->
|
||||
|
||||
<?php if (get_theme_mod('excerpt-length','26') != '0'): ?>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
<ul class="post-meta group">
|
||||
<li><?php the_category(' / '); ?></li>
|
||||
<li><i class="fa fa-clock-o"></i><?php the_time('j M, Y'); ?></li>
|
||||
<li><i class="fa fa-clock-o"></i><?php the_time( get_option('date_format') ); ?></li>
|
||||
</ul><!--/.post-meta-->
|
||||
|
||||
<?php if (get_theme_mod('excerpt-length') != '0'): ?>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
<ul class="post-meta group">
|
||||
<li><?php the_category(' / '); ?></li>
|
||||
<li><i class="fa fa-clock-o"></i><?php the_time('j M, Y'); ?></li>
|
||||
<li><i class="fa fa-clock-o"></i><?php the_time( get_option('date_format') ); ?></li>
|
||||
<?php if ( comments_open() ): ?><li><a href="<?php comments_link(); ?>"><i class="fa fa-comment"></i><?php comments_number( '0', '1', '%' ); ?></a></li><?php endif; ?>
|
||||
</ul><!--/.post-meta-->
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ class AlxPosts extends WP_Widget {
|
|||
<div class="post-item-inner group">
|
||||
<?php if($instance['posts_category']) { ?><p class="post-item-category"><?php the_category(' / '); ?></p><?php } ?>
|
||||
<p class="post-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
|
||||
<?php if($instance['posts_date']) { ?><p class="post-item-date"><?php the_time('M j, Y'); ?></p><?php } ?>
|
||||
<?php if($instance['posts_date']) { ?><p class="post-item-date"><?php the_time( get_option('date_format') ); ?></p><?php } ?>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
|
|
@ -104,7 +104,7 @@ class AlxTabs extends WP_Widget {
|
|||
<div class="tab-item-inner group">
|
||||
<?php if($instance['tabs_category']) { ?><p class="tab-item-category"><?php the_category(' / '); ?></p><?php } ?>
|
||||
<p class="tab-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
|
||||
<?php if($instance['tabs_date']) { ?><p class="tab-item-date"><?php the_time('M j, Y'); ?></p><?php } ?>
|
||||
<?php if($instance['tabs_date']) { ?><p class="tab-item-date"><?php the_time( get_option('date_format') ); ?></p><?php } ?>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
@ -155,7 +155,7 @@ class AlxTabs extends WP_Widget {
|
|||
<div class="tab-item-inner group">
|
||||
<?php if($instance['tabs_category']) { ?><p class="tab-item-category"><?php the_category(' / '); ?></p><?php } ?>
|
||||
<p class="tab-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
|
||||
<?php if($instance['tabs_date']) { ?><p class="tab-item-date"><?php the_time('M j, Y'); ?></p><?php } ?>
|
||||
<?php if($instance['tabs_date']) { ?><p class="tab-item-date"><?php the_time( get_option('date_format') ); ?></p><?php } ?>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
</h4><!--/.post-title-->
|
||||
|
||||
<div class="post-meta group">
|
||||
<p class="post-date"><?php the_time('j M, Y'); ?></p>
|
||||
<p class="post-date"><?php the_time( get_option('date_format') ); ?></p>
|
||||
</div><!--/.post-meta-->
|
||||
|
||||
</div><!--/.related-inner-->
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
<ul class="post-meta group">
|
||||
<li><?php the_category(' / '); ?></li>
|
||||
<li><i class="fa fa-clock-o"></i><?php the_time('j M, Y'); ?></li>
|
||||
<li><i class="fa fa-clock-o"></i><?php the_time( get_option('date_format') ); ?></li>
|
||||
<?php if ( comments_open() ): ?><li><a href="<?php comments_link(); ?>"><i class="fa fa-comment"></i><?php comments_number( '0', '1', '%' ); ?></a></li><?php endif; ?>
|
||||
</ul><!--/.post-meta-->
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue