use xlink:href because Safari doesn't support href
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<article class="article">
|
||||
<div class="article__date">
|
||||
<svg class="icon">
|
||||
<use href="#icon-calendar"></use>
|
||||
<use xlink:href="#icon-calendar"></use>
|
||||
</svg>
|
||||
<span class="article__date-text">
|
||||
<?php the_time(get_option('date_format')) ?>
|
||||
|
||||
@@ -33,7 +33,7 @@ function get_next_url($base_url, $page) {
|
||||
}
|
||||
function format_link($link) {
|
||||
if (strpos($link, 'page-numbers dots')) {
|
||||
return '<span class="pagination__dots"><svg class="icon icon--extra-small"><use href="#icon-ellipsis"></use></svg></span>';
|
||||
return '<span class="pagination__dots"><svg class="icon icon--extra-small"><use xlink:href="#icon-ellipsis"></use></svg></span>';
|
||||
}
|
||||
$link = str_replace('page-numbers current', 'pagination__current', $link);
|
||||
$link = str_replace('page-numbers', 'link', $link);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<article class="article">
|
||||
<div class="article__date">
|
||||
<svg class="icon">
|
||||
<use href="#icon-calendar"></use>
|
||||
<use xlink:href="#icon-calendar"></use>
|
||||
</svg>
|
||||
<span class="article__date-text">
|
||||
<?php the_time(get_option('date_format')) ?>
|
||||
|
||||
@@ -35,13 +35,13 @@
|
||||
<p class="excerpt__metadata">
|
||||
<span class="excerpt__icon">
|
||||
<svg class="icon icon--extra-small" aria-hidden="true">
|
||||
<use href="#icon-profile"></use>
|
||||
<use xlink:href="#icon-profile"></use>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="excerpt__text"><?php echo $username ?></span>
|
||||
<span class="excerpt__icon">
|
||||
<svg class="icon icon--extra-small" aria-hidden="true">
|
||||
<use href="#icon-calendar"></use>
|
||||
<use xlink:href="#icon-calendar"></use>
|
||||
</svg>
|
||||
</span>
|
||||
<span class="excerpt__text"><?php echo $date ?></span>
|
||||
|
||||
Reference in New Issue
Block a user