Commit efd78cc4 by o.kimura

講師紹介SPメニュー調整版

parent b34b8983
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<script type="text/javascript" src="/common_previous/js/lib/slick.min.js" charset="utf-8"></script> <script type="text/javascript" src="/common_previous/js/lib/slick.min.js" charset="utf-8"></script>
<script type="text/javascript" src="/common_previous/js/lib/jquery.matchHeight-min.js" charset="utf-8"></script> <script type="text/javascript" src="/common_previous/js/lib/jquery.matchHeight-min.js" charset="utf-8"></script>
<script> <script>
$(document).ready(function () { $(document).ready(function() {
$.ajax({ $.ajax({
url: "/pub/api/experiences", url: "/pub/api/experiences",
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
async: true, async: true,
data: {}, data: {},
dataType: 'json', dataType: 'json',
success: function (response) { success: function(response) {
$.each(response['data'], function (key, val) { $.each(response['data'], function(key, val) {
var appendItem = '' + var appendItem = '' +
' <div class="c-slide1__item">\n' + ' <div class="c-slide1__item">\n' +
' <a href="' + val['link_url'] + '" target="_blank">\n' + ' <a href="' + val['link_url'] + '" target="_blank">\n' +
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
}); });
$('.c-slide1__inner').slick('slickGoTo', 1, true); $('.c-slide1__inner').slick('slickGoTo', 1, true);
}, },
error: function (data) { error: function(data) {
var response = $.parseJSON(data.responseText); var response = $.parseJSON(data.responseText);
console.log(response.message); console.log(response.message);
} }
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<link rel="stylesheet" type="text/css" href="/common_previous/js/lightcase/css/lightcase.css"> <link rel="stylesheet" type="text/css" href="/common_previous/js/lightcase/css/lightcase.css">
<script type="text/javascript" src="/common_previous/js/lightcase/js/lightcase.js"></script> <script type="text/javascript" src="/common_previous/js/lightcase/js/lightcase.js"></script>
<script type="text/javascript"> <script type="text/javascript">
jQuery(document).ready(function ($) { jQuery(document).ready(function($) {
$('a[data-rel^=lightcase]').lightcase({ $('a[data-rel^=lightcase]').lightcase({
transition: 'fade', transition: 'fade',
showSequenceInfo: false, showSequenceInfo: false,
...@@ -137,6 +137,7 @@ ...@@ -137,6 +137,7 @@
<script src="/common_previous/js/lib/jquery.matchHeight-min.js"></script> <script src="/common_previous/js/lib/jquery.matchHeight-min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(".c-list2__img").matchHeight(); $(".c-list2__img").matchHeight();
</script> </script>
<?php } ?> <?php } ?>
...@@ -209,7 +210,7 @@ ...@@ -209,7 +210,7 @@
<body class="page-<?php echo $pageid; ?>"> <body class="page-<?php echo $pageid; ?>">
<header class="c-header"> <header class="c-header">
<div class="c-header1"> <div class="c-header1">
<h1 class="c-header1-logo"> <h1 class="c-header1-logo">
<a href="/" class="c-header1-logoLink"> <a href="/" class="c-header1-logoLink">
...@@ -277,18 +278,52 @@ ...@@ -277,18 +278,52 @@
<div class="c-navSP"> <div class="c-navSP">
<ul class="c-navSP-menu"> <ul class="c-navSP-menu">
<li><a href="/trainer/" class="c-nav-link1">講師紹介トップ</a></li> <li><a href="/trainer/" class="c-nav-link1">講師紹介トップ</a></li>
<li><a href="/trainer/aoki/" class="c-nav-link1">青木 仁志</a></li> <?php
<li><a href="/trainer/sato/" class="c-nav-link1">佐藤 英郎</a></li> $args = array(
<li><a href="/trainer/ohtaka/" class="c-nav-link1">大高 弘之</a></li> 'posts_per_page' => -1,
<li><a href="/trainer/shimamura/" class="c-nav-link1">嶌村 武男</a></li> 'post_type' => 'trainer',
<li><a href="/trainer/maruyama/" class="c-nav-link1">丸山 直樹</a></li> 'paged' => $paged,
<li><a href="/trainer/takagi/" class="c-nav-link1">高木 謙治</a></li> 'order' => 'ASC',
<li><a href="/trainer/hashimoto/" class="c-nav-link1">橋本 拓也</a></li> 'tax_query' => array(
<li><a href="/trainer/kakitani/" class="c-nav-link1">柿谷 正期</a></li> array(
<li><a href="/trainer/murata/" class="c-nav-link1">村田 泉</a></li> 'taxonomy' => "trainer_tax",
<li><a href="/trainer/nagisa/" class="c-nav-link1">渚 知子</a></li> 'field' => 'slug',
<li><a href="/trainer/sakakura/" class="c-nav-link1">坂倉 央樹</a></li> 'terms' => 'trainer',
<li><a href="/trainer/hariu/" class="c-nav-link1">針生 栄司</a></li> ),
)
);
$the_query = new WP_Query($args);
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();
?>
<li>
<a href="<?php the_permalink(); ?>" class="c-nav-link1"><?php the_title(); ?></a>
</li>
<?php endwhile;
endif; ?>
<?php wp_reset_query(); ?>
<?php
$args = array(
'posts_per_page' => -1,
'post_type' => 'trainer',
'paged' => $paged,
'order' => 'ASC',
'tax_query' => array(
array(
'taxonomy' => "trainer_tax",
'field' => 'slug',
'terms' => 'consultant',
),
)
);
$the_query = new WP_Query($args);
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();
?>
<li>
<a href="<?php the_permalink(); ?>" class="c-nav-link1"><?php the_title(); ?></a>
</li>
<?php endwhile;
endif; ?>
<?php wp_reset_query(); ?>
</ul> </ul>
</div> </div>
</li> </li>
...@@ -381,4 +416,4 @@ ...@@ -381,4 +416,4 @@
</li> </li>
</ul> </ul>
</nav> </nav>
</header> </header>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment