foo
This commit is contained in:
@@ -1,21 +1,22 @@
|
||||
<?php
|
||||
global $excerpt;
|
||||
?>
|
||||
global $excerpt; ?>
|
||||
<div class="excerpt">
|
||||
<div class="excerpt__head">
|
||||
<div class="excerpt__title">
|
||||
<a class="link" href="<?php echo $excerpt['url'] ?>">
|
||||
<?php echo $excerpt['title'] ?>
|
||||
<a class="link" href="<?php echo $excerpt["url"]; ?>">
|
||||
<?php echo $excerpt["title"]; ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="excerpt__body">
|
||||
<?php echo str_replace(
|
||||
'[...]',
|
||||
'<a class="link" href="' . $excerpt['url'] . '" aria-label="Read full article">'
|
||||
. '<svg class="icon icon--extra-extra-small"><use href="#icon-arrow-double-right"></use></a>',
|
||||
$excerpt['content']);
|
||||
?>
|
||||
"[...]",
|
||||
'<a class="link" href="' .
|
||||
$excerpt["url"] .
|
||||
'" aria-label="Read full article">' .
|
||||
'<svg class="icon icon--extra-extra-small"><use href="#icon-arrow-double-right"></use></a>',
|
||||
$excerpt["content"]
|
||||
); ?>
|
||||
</div>
|
||||
<div class="excerpt__foot">
|
||||
<ul class="excerpt__list">
|
||||
@@ -25,16 +26,18 @@ global $excerpt;
|
||||
<use href="#icon-profile"></use>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="excerpt__text"><?php echo $excerpt['author'] ?></span>
|
||||
<span class="excerpt__text"><?php echo $excerpt["author"]; ?></span>
|
||||
</li>
|
||||
<?php if ($excerpt['words']) : ?>
|
||||
<?php if ($excerpt["words"]): ?>
|
||||
<li class="excerpt__list-item">
|
||||
<span class="excerpt__icon">
|
||||
<svg class="icon icon--extra-small" aria-hidden="true">
|
||||
<use href="#icon-clock"></use>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="excerpt__text"><?php echo windycoys_get_read_time($excerpt['words']) ?> minute read</span>
|
||||
<span class="excerpt__text"><?php echo windycoys_get_read_time(
|
||||
$excerpt["words"]
|
||||
); ?> minute read</span>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li class="excerpt__list-item">
|
||||
@@ -43,10 +46,10 @@ global $excerpt;
|
||||
<use href="#icon-calendar"></use>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="excerpt__text"><?php echo $excerpt['date'] ?></span>
|
||||
<span class="excerpt__text"><?php echo $excerpt["date"]; ?></span>
|
||||
</li>
|
||||
<li class="excerpt__list-item">
|
||||
<a class="excerpt__list-link" href="<?php the_permalink() ?>#comments">
|
||||
<a class="excerpt__list-link" href="<?php the_permalink(); ?>#comments">
|
||||
<span class="excerpt__icon">
|
||||
<svg class="icon icon--extra-small" aria-hidden="true">
|
||||
<use href="#icon-comments"></use>
|
||||
@@ -54,8 +57,8 @@ global $excerpt;
|
||||
</span>
|
||||
<span class="excerpt__text">
|
||||
<?php
|
||||
$number = $excerpt['comments'];
|
||||
echo $number === '1' ? '1 comment' : $number . ' comments';
|
||||
$number = $excerpt["comments"];
|
||||
echo $number === "1" ? "1 comment" : $number . " comments";
|
||||
?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user