fix(frontend): unify article timestamp clock icons

This commit is contained in:
kate522 committed 2026-10-29 23:13:14 +08:00
1 parent 4cdde50695
commit 4ea00f1322
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ if (!function_exists('aksrt_widget_hot_posts')) :
if ((string) $data['primary'] !== '') {
$thumb = '<img' . aksrt_get_lazy_attr('lazy_posts_thumb', (string) $data['primary'], 'fit-cover radius8') . ' alt="' . esc_attr((string) $data['title']) . '">';
}
$time_ago = '<i class="fa fas fa-clock mr3" aria-hidden="true"></i>' . esc_html((string) $data['time_ago']);
$time_ago = '<i class="fa far fa-clock mr3" aria-hidden="true"></i>' . esc_html((string) $data['time_ago']);
$permalink = esc_url((string) $data['permalink']);
if ($i === 1) {
+1 -1
View File
@@ -132,7 +132,7 @@ $dl_requires_login = function_exists('aksrt_user_can') && !aksrt_user_can('resou
<p class="aksrt-download-card__excerpt"><?php echo esc_html(wp_trim_words(get_the_excerpt(), 20)); ?></p>
<div class="aksrt-download-card__meta">
<span class="aksrt-download-card__date">
<i class="fa fas fa-clock"></i>
<i class="fa far fa-clock" aria-hidden="true"></i>
<?php echo esc_html(get_the_date()); ?>
</span>
<?php
+1 -1
View File
@@ -45,7 +45,7 @@ $excerpt = wp_trim_words(get_the_excerpt(), 30, '...');
</span>
<?php endif; ?>
<span class="aksrt-doc-index-card__date">
<i class="fa fas fa-clock"></i>
<i class="fa far fa-clock" aria-hidden="true"></i>
<?php echo esc_html(get_the_date('', $page_id)); ?>
</span>
</div>