Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
sora
/
achievement
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8717e465
authored
May 07, 2021
by
o.kimura
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
SPメニュー講師一覧をWPタグで埋める
parent
1982f87c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
19 deletions
achievement-official.conohawing.com/wp-content/themes/achievement/assets/include/header.php
achievement-official.conohawing.com/wp-content/themes/achievement/assets/include/header.php
View file @
8717e465
...
@@ -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,54 @@
...
@@ -277,18 +278,54 @@
<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
();
$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>
</ul>
</div>
</div>
</li>
</li>
...
@@ -381,4 +418,4 @@
...
@@ -381,4 +418,4 @@
</li>
</li>
</ul>
</ul>
</nav>
</nav>
</header>
</header>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment