Created
February 28, 2022 11:11
-
-
Save ina-amagami/9a766077f7c78d074d16d03ecf2e2f04 to your computer and use it in GitHub Desktop.
JINの検索結果画面を英語化
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="contents"> | |
<!--メインコンテンツ--> | |
<main id="main-contents" class="main-contents <?php echo is_article_design(); ?> <?php is_animation_style(); ?>" itemscope itemtype="https://schema.org/Blog"> | |
<section class="cps-post-box hentry"> | |
<header class="archive-post-header"> | |
<span class="archive-title-sub ef">― SEARCH WORD ―</span> | |
<h1 class="archive-title entry-title" itemprop="headline"> | |
<?php | |
$allsearch = new WP_Query("s=$s&showposts=-1"); | |
$key = esc_html($s, 1); | |
$count = $allsearch->post_count; | |
echo '<h1>Search results for "'.$key.'": '.$count.' items</h1>'; | |
?> | |
</h1> | |
</header> | |
</section> | |
<section class="entry-content archive-box"> | |
<?php get_template_part('include/liststyle/parts/post-list-type'); ?> | |
</section> | |
<?php if( is_bread_display() == "exist") :?> | |
<?php if( is_mobile() ): ?> | |
<?php get_template_part('include/breadcrumb'); ?> | |
<?php endif; ?> | |
<?php endif; ?> | |
</main> | |
<?php get_sidebar(); ?> | |
</div> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment