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
f7fe8e49
authored
Apr 15, 2022
by
Orine Matsui
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
本番サーバDL、投稿先頭固定機能反映
parent
4ebae9d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
871 additions
and
499 deletions
achievement-official.conohawing.com/wp-content/themes/achievement/functions.php
achievement-official.conohawing.com/wp-content/themes/achievement/index.php
achievement-official.conohawing.com/wp-content/themes/achievement/functions.php
View file @
f7fe8e49
...
@@ -164,47 +164,7 @@ function my_remove_post_support()
...
@@ -164,47 +164,7 @@ function my_remove_post_support()
add_action
(
'init'
,
'my_remove_post_support'
);
add_action
(
'init'
,
'my_remove_post_support'
);
/*===================================
OGPタグ
===================================*/
function
my_meta_ogp
()
{
if
(
is_front_page
()
||
is_home
()
||
is_singular
()
){
global
$post
;
$ogp_title
=
''
;
$ogp_descr
=
''
;
$ogp_url
=
''
;
$ogp_img
=
''
;
$insert
=
''
;
if
(
is_singular
()
)
{
//記事&固定ページ
setup_postdata
(
$post
);
$ogp_title
=
$post
->
post_title
;
$ogp_descr
=
mb_substr
(
get_the_excerpt
(),
0
,
100
);
$ogp_url
=
get_permalink
();
wp_reset_postdata
();
}
elseif
(
is_front_page
()
||
is_home
()
)
{
//トップページ
$ogp_title
=
get_bloginfo
(
'name'
);
$ogp_descr
=
get_bloginfo
(
'description'
);
$ogp_url
=
home_url
();
}
//og:type
$ogp_type
=
(
is_front_page
()
||
is_home
()
)
?
'website'
:
'article'
;
//og:image
if
(
is_singular
()
&&
has_post_thumbnail
()
)
{
$ps_thumb
=
wp_get_attachment_image_src
(
get_post_thumbnail_id
(),
'full'
);
$ogp_img
=
$ps_thumb
[
0
];
}
else
{
$ogp_img
=
'https://achievement.co.jp/assets/img/common/ogp.jpg'
;
}
//facebookのapp_id(設定する場合)$insert .= '<meta property="fb:app_id" content="ここにappIDを入力">' . "\n";
echo
$insert
;
}
}
//END my_meta_ogp
add_action
(
'wp_head'
,
'my_meta_ogp'
);
//headにOGPを出力
/*===================================
/*===================================
mark new post
mark new post
===================================*/
===================================*/
...
...
achievement-official.conohawing.com/wp-content/themes/achievement/index.php
View file @
f7fe8e49
<?php
$pageid
=
"top"
;
?>
<?php
$pageid
=
"top"
;
?>
<?php
include
(
get_template_directory
()
.
'/assets/include/header.php'
);
?>
<?php
include
(
get_template_directory
()
.
'/assets/include/header.php'
);
?>
<main
class=
"top"
>
<div
class=
"top-mainvisual"
>
<main
class=
"top"
>
<div
class=
"top-mainvisual__video"
>
<video
src=
"/common_previous/mov/OS_TOP5.mp4"
preload=
"auto"
class=
"movie-player-image"
id=
"movie-preview"
height=
"100%"
width=
"100%"
autoplay=
""
loop=
""
muted=
""
playsinline=
""
></video>
<div
class=
"top-mainvisual"
>
</div>
<div
class=
"top-mainvisual__btn"
>
<div
class=
"top-mainvisual__video"
>
<div
class=
"c-btn1"
>
<a
href=
"/service/"
class=
"c-btn1__txt"
>
サービス一覧
</a>
<video
src=
"/common_previous/mov/OS_TOP5.mp4"
preload=
"auto"
class=
"movie-player-image"
id=
"movie-preview"
height=
"100%"
width=
"100%"
autoplay=
""
loop=
""
muted=
""
playsinline=
""
></video>
</div>
<div
class=
"c-btn1"
>
</div>
<a
href=
"/strategy/"
class=
"c-btn1__txt"
>
『頂点への道』講座
<br
class=
"sp-only"
>
体験説明会
</a>
<div
class=
"top-mainvisual__btn"
>
</div>
</div>
<div
class=
"c-btn1"
>
</div>
<a
href=
"/service/"
class=
"c-btn1__txt"
>
サービス一覧
</a>
<section
class=
"top1"
>
<div
class=
"c-heading"
>
</div>
<div
class=
"c-title1"
>
<h2
class=
"c-title1__main"
>
お知らせ
</h2>
<div
class=
"c-btn1"
>
<p
class=
"c-title1__sub"
>
news
</p>
</div>
<a
href=
"/strategy/"
class=
"c-btn1__txt"
>
『頂点への道』講座
<div
class=
"c-btn2"
>
<a
href=
"/news/"
class=
"c-btn2__txt"
>
一覧を見る
</a>
<br
class=
"sp-only"
>
体験説明会
</a>
</div>
</div>
</div>
<div
class=
"top1__wrap"
>
</div>
<div
class=
"container p-news"
>
<?php
$args
=
array
(
'posts_per_page'
=>
5
,
</div>
'post_type'
=>
'news'
,
);
$query
=
new
WP_Query
(
$args
);
?>
<?php
if
(
$query
->
have_posts
()
)
:
?>
<section
class=
"top1"
>
<ul
class=
"c-list1"
>
<?php
while
(
$query
->
have_posts
()
)
:
$query
->
the_post
();
?>
<li
class=
"c-list1__item"
>
<div
class=
"c-list1__intro"
>
<div
class=
"c-heading"
>
<time
class=
"c-list1__date"
>
<?php
the_time
(
'Y年m月d日'
);
?>
</time>
<?php
$terms
=
wp_get_post_terms
(
$post
->
ID
,
'news_tax'
,
array
(
'order'
=>
'DESC'
,
'orderby'
=>
'count'
));
if
(
$terms
&&
!
is_wp_error
(
$terms
))
:
<div
class=
"c-title1"
>
foreach
(
$terms
as
$term
)
{
?>
<p
class=
"list_cat
<?php
echo
$term
->
slug
;
?>
"
>
<?php
echo
$term
->
name
;
?>
</p>
<h2
class=
"c-title1__main"
>
お知らせ
</h2>
<?php
}
endif
;
?>
</div>
<div
class=
"c-list1__link"
>
<p
class=
"c-title1__sub"
>
news
</p>
<a
href=
"
<?php
the_permalink
();
?>
"
class=
"c-list1__txt"
>
<?php
the_title
();
?>
</a>
</div>
</li>
<?php
endwhile
;
?>
</div>
</ul>
<?php
endif
;
?>
<?php
wp_reset_query
();
?>
<div
class=
"c-btn2"
>
</div>
</div>
<a
href=
"/news/"
class=
"c-btn2__txt"
>
一覧を見る
</a>
</section>
</div>
<section
class=
"top2"
>
<div
class=
"c-heading"
>
</div>
<div
class=
"c-title1"
>
<h2
class=
"c-title1__main"
>
会社情報
</h2>
<div
class=
"top1__wrap"
>
<div
class=
"container p-news"
>
<p
class=
"c-title1__sub"
>
company
</p>
<ul
class=
"c-list1"
>
<?php
</div>
$list_cnt
=
5
;
$sticky
=
get_option
(
'sticky_posts'
);
<div
class=
"c-btn2"
>
if
(
!
empty
(
$sticky
)
)
$list_cnt
-=
count
(
$sticky
);
$the_query
=
new
WP_Query
(
array
(
<a
href=
"/company/"
class=
"c-btn2__txt"
>
一覧を見る
</a>
'post_type'
=>
array
(
'news'
),
'posts_per_page'
=>
$list_cnt
</div>
));
?>
<?php
while
(
$the_query
->
have_posts
()
)
:
$the_query
->
the_post
();
?>
</div>
<li
class=
"c-list1__item"
>
<div
class=
"c-list1__intro"
>
<time
class=
"c-list1__date"
>
<?php
the_time
(
'Y年m月d日'
);
?>
</time>
<?php
<div
class=
"container"
>
$terms
=
wp_get_post_terms
(
$post
->
ID
,
'news_tax'
,
array
(
'order'
=>
'DESC'
,
'orderby'
=>
'count'
));
if
(
$terms
&&
!
is_wp_error
(
$terms
))
:
foreach
(
$terms
as
$term
)
{
?>
<div
class=
"top2__wrap"
>
<p
class=
"list_cat
<?php
echo
$term
->
slug
;
?>
"
>
<?php
echo
$term
->
name
;
?>
</p>
<?php
}
<div
class=
"c-imgtext1"
>
endif
;
?>
</div>
<div
class=
"c-imgtext1__img"
>
<div
class=
"c-list1__link"
>
<a
href=
"
<?php
the_permalink
();
?>
"
class=
"c-list1__txt"
>
<?php
the_title
();
?>
</a>
<img
src=
"/common_previous/img/img_top_100.jpg"
alt=
"「働きがいのある会社」6年連続選出!"
>
</div>
</li>
</div>
<?php
endwhile
;
?>
<div
class=
"c-imgtext1__info"
>
<?php
wp_reset_postdata
();
?>
</ul>
<h3
class=
"c-imgtext1__ttl"
><a
href=
"https://achievement.co.jp/news/press/gptw2021/"
>
「働きがいのある会社」7年連続選出!
</a></h3>
</div>
</div>
<p
class=
"c-imgtext1__txt"
style=
"margin-top:20px"
><a
href=
"https://achievement.co.jp/news/press/gptw2022/"
class=
"simpleText"
>
2016年~2022年度版の「働きがいのある会
<br
class=
"pc-only"
>
社ランキング」従業員100~999人部門にて、
<br
class=
"pc-only"
>
ベストカンパニーに選出されました。
</p>
<p
class=
"c-imgtext1__txt"
style=
"margin-top:20px"
><a
href=
"https://achievement.co.jp/news/press/210402/"
class=
"simpleText"
>
また、「働きがいのある会社 女性ランキング」と
<br
class=
"pc-only"
>
「WOMAN’s VALUE AWARD」にて
<br
class=
"pc-only"
>
ダブル受賞いたしました。
</a></p>
</div>
</div>
<div
class=
"c-imgtext1 c-imgtext1--reverse"
>
</section>
<div
class=
"c-imgtext1__img"
>
<img
src=
"/common_previous/img/img_top_101.jpg"
alt=
"「働きがいのある会社」5年連続選出!"
>
</div>
<div
class=
"c-imgtext1__info"
>
<p
class=
"c-imgtext1__subttl"
>
2014年卒対象・日本経済新聞社調べ
</p>
<section
class=
"top2"
>
<h3
class=
"c-imgtext1__ttl"
>
就職希望企業ランキング第93位
</h3>
<p
class=
"c-imgtext1__txt"
><a
href=
"https://recruit.achievement.co.jp/"
target=
"_blank"
class=
"simpleText"
>
業種別ランキングの「サービス・その他」で13位、
<br
class=
"pc-only"
>
社員数300名以下の中小企業の中では最高位
</a></p>
<div
class=
"c-heading"
>
</div>
</div>
<div
class=
"c-title1"
>
</div>
<h2
class=
"c-title1__main"
>
会社情報
</h2>
<div
class=
"c-imgtext1"
>
<div
class=
"c-imgtext1__img"
>
<p
class=
"c-title1__sub"
>
company
</p>
<img
src=
"/common_previous/img/img_top_109.png"
alt=
"教育から広がる社会への貢献"
>
</div>
</div>
<div
class=
"c-imgtext1__info"
>
<h3
class=
"c-imgtext1__ttl"
><a
href=
"/company/sdgs/"
>
教育から広がる社会への貢献
</a></h3>
<div
class=
"c-btn2"
>
<p
class=
"c-imgtext1__txt"
><a
class=
"smoothHover"
href=
"/company/sdgs/"
><img
src=
"/common_previous/img/img_top_110.png"
alt=
"SDGs"
></a>
</p>
<a
href=
"/company/"
class=
"c-btn2__txt"
>
一覧を見る
</a>
</div>
</div>
</div>
</div>
</section>
</div>
<section
class=
"top3"
>
<div
class=
"c-heading"
>
<div
class=
"c-title1"
>
<h2
class=
"c-title1__main"
>
体験セミナー・講演会
</h2>
<div
class=
"container"
>
<p
class=
"c-title1__sub"
>
seminar
</p>
</div>
<div
class=
"top2__wrap"
>
<div
class=
"c-btn2"
>
<a
href=
"/pub/schedule#seminar"
class=
"c-btn2__txt"
>
一覧を見る
</a>
<div
class=
"c-imgtext1"
>
</div>
</div>
<div
class=
"c-imgtext1__img"
>
<div
class=
"c-slide1"
>
<img
src=
"/common_previous/img/img_top_100.jpg"
alt=
"「働きがいのある会社」6年連続選出!"
>
<div
class=
"c-slide1__inner"
>
<!--
</div>
<div class="c-slide1__item">
<a href="/Impressed/">
<div
class=
"c-imgtext1__info"
>
<div class="c-slide1__img">
<img src="/common_previous/img/20200605.jpg" alt="">
<h3
class=
"c-imgtext1__ttl"
><a
href=
"https://achievement.co.jp/news/press/gptw2021/"
>
「働きがいのある会社」7年連続選出!
</a></h3>
</div>
<div class="c-slide1__info">
<p
class=
"c-imgtext1__txt"
style=
"margin-top:20px"
><a
href=
"https://achievement.co.jp/news/press/gptw2022/"
class=
"simpleText"
>
2016年~2022年度版の「働きがいのある会
<br
class=
"pc-only"
>
社ランキング」従業員100~999人部門にて、
<br
class=
"pc-only"
>
ベストカンパニーに選出されました。
</p>
<p class="c-slide1__txt">
<span>東京</span>
<p
class=
"c-imgtext1__txt"
style=
"margin-top:20px"
><a
href=
"https://achievement.co.jp/news/press/210402/"
class=
"simpleText"
>
また、「働きがいのある会社 女性ランキング」と
<br
class=
"pc-only"
>
<span>2020年06月05日</span>
「WOMAN’s VALUE AWARD」にて
<br
class=
"pc-only"
>
ダブル受賞いたしました。
</a></p>
<span>18:30〜</span>
</p>
</div>
</div>
</a>
</div>
</div>
<div class="c-slide1__item">
<div
class=
"c-imgtext1 c-imgtext1--reverse"
>
<a href="http://www.achibook.co.jp/chotassei/" target="_blank">
<div class="c-slide1__img">
<div
class=
"c-imgtext1__img"
>
<img src="/common_previous/img/cc17_0317.jpg" alt="">
</div>
<img
src=
"/common_previous/img/img_top_101.jpg"
alt=
"「働きがいのある会社」5年連続選出!"
>
<div class="c-slide1__info">
<p class="c-slide1__txt">
</div>
<span>東京・名古屋・大阪・福岡・仙台にて開催</span>
</p>
<div
class=
"c-imgtext1__info"
>
</div>
</a>
<p
class=
"c-imgtext1__subttl"
>
2014年卒対象・日本経済新聞社調べ
</p>
</div>
-->
<h3
class=
"c-imgtext1__ttl"
>
就職希望企業ランキング第93位
</h3>
<!--
<div class="c-slide1__item">
<p
class=
"c-imgtext1__txt"
><a
href=
"https://recruit.achievement.co.jp/"
target=
"_blank"
class=
"simpleText"
>
業種別ランキングの「サービス・その他」で13位、
<br
class=
"pc-only"
>
社員数300名以下の中小企業の中では最高位
</a></p>
<a href="#">
<div class="c-slide1__img">
</div>
<img src="/common_previous/img/img_top_105.jpg" alt="">
</div>
</div>
<div class="c-slide1__info">
<p class="c-slide1__txt">
</div>
<span>東京</span>
<span>2020年01月01日</span>
<span>14:00〜</span>
</p>
<div
class=
"c-imgtext1"
>
</div>
</a>
<div
class=
"c-imgtext1__img"
>
</div>
<div class="c-slide1__item">
<img
src=
"/common_previous/img/img_top_109.png"
alt=
"教育から広がる社会への貢献"
>
<a href="#">
<div class="c-slide1__img">
</div>
<img src="/common_previous/img/img_top_103.jpg" alt="">
</div>
<div
class=
"c-imgtext1__info"
>
<div class="c-slide1__info">
<p class="c-slide1__txt">
<h3
class=
"c-imgtext1__ttl"
><a
href=
"/company/sdgs/"
>
教育から広がる社会への貢献
</a></h3>
<span>東京</span>
<span>2020年01月01日</span>
<p
class=
"c-imgtext1__txt"
><a
class=
"smoothHover"
href=
"/company/sdgs/"
><img
src=
"/common_previous/img/img_top_110.png"
alt=
"SDGs"
></a>
<span>14:00〜</span>
</p>
</p>
</div>
</div>
</a>
</div>
</div>
-->
</div>
</div>
</div>
</section>
</section>
<!--
<section class="top4">
<div class="c-heading">
<section
class=
"top3"
>
<div class="c-title1">
<h2 class="c-title1__main">コラム</h2>
<div
class=
"c-heading"
>
<p class="c-title1__sub">column</p>
</div>
<div
class=
"c-title1"
>
<div class="c-btn2">
<a href="#" class="c-btn2__txt">一覧を見る</a>
<h2
class=
"c-title1__main"
>
体験セミナー・講演会
</h2>
</div>
</div>
<p
class=
"c-title1__sub"
>
seminar
</p>
<div class="container">
</div>
<ul class="c-list2">
<li class="c-list2__item">
<div
class=
"c-btn2"
>
<a href="/service/case/special05/" class="c-list2__inner">
<p class="c-list2__tag">内山 正宏氏</p>
<a
href=
"/pub/schedule#seminar"
class=
"c-btn2__txt"
>
一覧を見る
</a>
<div class="c-list2__img">
<img src="/common_previous/img/img_top_106.jpg" alt="">
</div>
</div>
<div class="c-list2__info">
</div>
<p class="c-list2__ttl">トップリーダーの達成ストーリー</p>
<p class="c-list2__txt">飲食業に惚れ込んだ「原点」 自社と業界の発展への決意</p>
</div>
</a>
<div
class=
"c-slide1"
>
</li>
<li class="c-list2__item">
<div
class=
"c-slide1__inner"
>
<a href="/service/case/special02/" class="c-list2__inner">
<p class="c-list2__tag">小路 晃氏</p>
<!--
<div class="c-list2__img">
<img src="/common_previous/img/img_top_107.jpg" alt="">
<div class="c-slide1__item">
</div>
<div class="c-list2__info">
<a href="/Impressed/">
<p class="c-list2__ttl">逆転の秘訣</p>
<p class="c-list2__txt">格闘家の栄光と挫折 第二の人生で見出した光</p>
<div class="c-slide1__img">
</div>
</a>
<img src="/common_previous/img/20200605.jpg" alt="">
</li>
<li class="c-list2__item">
</div>
<a href="/service/case/special03/" class="c-list2__inner">
<p class="c-list2__tag">白井一幸氏</p>
<div class="c-slide1__info">
<div class="c-list2__img">
<img src="/common_previous/img/img_top_108.jpg" alt="">
<p class="c-slide1__txt">
</div>
<div class="c-list2__info">
<span>東京</span>
<p class="c-list2__ttl">組織を勝たせるリーダーの発想法</p>
<p class="c-list2__txt">弱小チームを日本一にした“非常識な指導法”</p>
<span>2020年06月05日</span>
</div>
</a>
<span>18:30〜</span>
</li>
</ul>
</p>
</div>
</div>
</section>
-->
</a>
</main>
<?php
include
(
get_template_directory
()
.
'/assets/include/footer.php'
);
?>
</div>
<div class="c-slide1__item">
<a href="http://www.achibook.co.jp/chotassei/" target="_blank">
<div class="c-slide1__img">
<img src="/common_previous/img/cc17_0317.jpg" alt="">
</div>
<div class="c-slide1__info">
<p class="c-slide1__txt">
<span>東京・名古屋・大阪・福岡・仙台にて開催</span>
</p>
</div>
</a>
</div>
-->
<!--
<div class="c-slide1__item">
<a href="#">
<div class="c-slide1__img">
<img src="/common_previous/img/img_top_105.jpg" alt="">
</div>
<div class="c-slide1__info">
<p class="c-slide1__txt">
<span>東京</span>
<span>2020年01月01日</span>
<span>14:00〜</span>
</p>
</div>
</a>
</div>
<div class="c-slide1__item">
<a href="#">
<div class="c-slide1__img">
<img src="/common_previous/img/img_top_103.jpg" alt="">
</div>
<div class="c-slide1__info">
<p class="c-slide1__txt">
<span>東京</span>
<span>2020年01月01日</span>
<span>14:00〜</span>
</p>
</div>
</a>
</div>
-->
</div>
</div>
</section>
<!--
<section class="top4">
<div class="c-heading">
<div class="c-title1">
<h2 class="c-title1__main">コラム</h2>
<p class="c-title1__sub">column</p>
</div>
<div class="c-btn2">
<a href="#" class="c-btn2__txt">一覧を見る</a>
</div>
</div>
<div class="container">
<ul class="c-list2">
<li class="c-list2__item">
<a href="/service/case/special05/" class="c-list2__inner">
<p class="c-list2__tag">内山 正宏氏</p>
<div class="c-list2__img">
<img src="/common_previous/img/img_top_106.jpg" alt="">
</div>
<div class="c-list2__info">
<p class="c-list2__ttl">トップリーダーの達成ストーリー</p>
<p class="c-list2__txt">飲食業に惚れ込んだ「原点」 自社と業界の発展への決意</p>
</div>
</a>
</li>
<li class="c-list2__item">
<a href="/service/case/special02/" class="c-list2__inner">
<p class="c-list2__tag">小路 晃氏</p>
<div class="c-list2__img">
<img src="/common_previous/img/img_top_107.jpg" alt="">
</div>
<div class="c-list2__info">
<p class="c-list2__ttl">逆転の秘訣</p>
<p class="c-list2__txt">格闘家の栄光と挫折 第二の人生で見出した光</p>
</div>
</a>
</li>
<li class="c-list2__item">
<a href="/service/case/special03/" class="c-list2__inner">
<p class="c-list2__tag">白井一幸氏</p>
<div class="c-list2__img">
<img src="/common_previous/img/img_top_108.jpg" alt="">
</div>
<div class="c-list2__info">
<p class="c-list2__ttl">組織を勝たせるリーダーの発想法</p>
<p class="c-list2__txt">弱小チームを日本一にした“非常識な指導法”</p>
</div>
</a>
</li>
</ul>
</div>
</section>
-->
</main>
<?php
include
(
get_template_directory
()
.
'/assets/include/footer.php'
);
?>
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