Commit 8717e465 by o.kimura

SPメニュー講師一覧をWPタグで埋める

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