Merge pull request #9474 from Jerryby/wordpress

tabindex links 2
This commit is contained in:
aliaksei-tsaruk
2024-05-15 16:09:49 +02:00
committed by GitHub
4 changed files with 16 additions and 16 deletions

View File

@@ -8,7 +8,7 @@
<div class="cont">
<div class="inner-cont">
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/" tabindex="0">Home</a></li>
<li class="active">Blog</li>
</ol>
</div>
@@ -29,11 +29,11 @@
<div class="inner-cont">
<div class="links-cont">
<div class="links">
<a data-cat="cat-all" class="category-select link selected" href="#"><span>All Categories</span></a>
<a data-cat="cat-publishing" class="category-select link" href="#"><span>Publishing</span></a>
<a data-cat="cat-teaching" class="category-select link" href="#"><span>Teaching</span></a>
<a data-cat="cat-learning" class="category-select link" href="#"><span>Learning</span></a>
<a data-cat="cat-books" class="category-select link" href="#"><span>Books</span></a>
<a data-cat="cat-all" class="category-select link selected" href="#" tabindex="0"><span>All Categories</span></a>
<a data-cat="cat-publishing" class="category-select link" href="#" tabindex="0"><span>Publishing</span></a>
<a data-cat="cat-teaching" class="category-select link" href="#" tabindex="0"><span>Teaching</span></a>
<a data-cat="cat-learning" class="category-select link" href="#" tabindex="0"><span>Learning</span></a>
<a data-cat="cat-books" class="category-select link" href="#" tabindex="0"><span>Books</span></a>
</div>
</div>
</div>
@@ -45,7 +45,7 @@
<div class="inner-cont">
<div class="bp-list cat-all">
<?php foreach ($posts as $post): ?>
<a class="bp-block <?php $categories = get_the_category(); foreach($categories as $category):?><?= $category->slug; ?> <?php endforeach;?>" href="<?=get_permalink(); ?>">
<a class="bp-block <?php $categories = get_the_category(); foreach($categories as $category):?><?= $category->slug; ?> <?php endforeach;?>" href="<?=get_permalink(); ?>" tabindex="0">
<span class="bp-img">
<img src="<?=get_the_post_thumbnail_url(); ?>" alt="Blog img">
</span>

View File

@@ -34,7 +34,7 @@ if ($tIds !== false) {
<div class="cont">
<div class="inner-cont">
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/" tabindex="0">Home</a></li>
<li class="active">FAQ</li>
</ol>
</div>
@@ -103,7 +103,7 @@ if ($tIds !== false) {
echo '
<div class="faq-question">
<a href="'.get_permalink($post).'">'.$post->post_title.'</a>
<a href="'.get_permalink($post).'" tabindex="0">'.$post->post_title.'</a>
</div>
';
}

View File

@@ -12,8 +12,8 @@ $post = $posts[0];
<div class="cont">
<div class="inner-cont">
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/faq-page">FAQ</a></li>
<li><a href="/" tabindex="0">Home</a></li>
<li><a href="/faq-page" tabindex="0">FAQ</a></li>
<li class="active"><?= $post->post_title?></li>
</ol>
</div>

View File

@@ -8,8 +8,8 @@
<div class="cont">
<div class="inner-cont">
<ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/blog">Blog</a></li>
<li><a href="/" tabindex="0">Home</a></li>
<li><a href="/blog" tabindex="0">Blog</a></li>
<li class="active"><?=get_the_title($post); ?></li>
</ol>
</div>
@@ -52,9 +52,9 @@
<div class="bb-cont">
<div class="blog-page-social">
<a href="https://twitter.com/intent/tweet?text=<?php the_permalink(); ?>" class="social twitter" target="_blank"></a>
<a href="https://www.linkedin.com/sharing/share-offsite/?url=<?php the_permalink(); ?>" class="social linkedin" target="_blank"></a>
<a href="https://www.facebook.com/sharer/sharer.php?u=#url" class="social facebook" target="_blank"></a>
<a href="https://twitter.com/intent/tweet?text=<?php the_permalink(); ?>" class="social twitter" target="_blank" tabindex="0"></a>
<a href="https://www.linkedin.com/sharing/share-offsite/?url=<?php the_permalink(); ?>" class="social linkedin" target="_blank" tabindex="0"></a>
<a href="https://www.facebook.com/sharer/sharer.php?u=#url" class="social facebook" target="_blank" tabindex="0"></a>
</div>
<div class="blog-page-text">
<?=get_the_content(null,false, $post); ?>