Commit 2bfe7446 by o.kimura

テーマ achievement 内ファイル最新を取得

parent 00a608bd
Showing with 943 additions and 155 deletions
<?php include(get_template_directory() . '/assets/include/header.php'); ?>
<?php include(get_template_directory() . '/assets/include/footer.php'); ?>
\ No newline at end of file
<?php include(get_template_directory() . '/assets/include/header.php'); ?>
<?php include(get_template_directory() . '/assets/include/footer.php'); ?>
\ No newline at end of file
<?php
/* ===============================================================================
総合設定ファイル
=============================================================================== */
/* ディレクトリ設定
------------------------------------------------------------------------------- */
$templatepath = get_template_directory();
define('T_LIBS', $templatepath . '/libs/');
define('T_THEME', get_template_directory_uri());
/* カスタム投稿
------------------------------------------------------------------------------- */
add_action('init', 'create_post_type');
function create_post_type()
{
register_post_type('news', [ // 投稿タイプ名の定義
'labels' => [
'name' => 'ニュース', // 管理画面上で表示する投稿タイプ名
'singular_name' => 'news', // カスタム投稿の識別名
],
'public' => true, // 投稿タイプをpublicにするか
'has_archive' => true, // アーカイブ機能ON/OFF
'menu_position' => 4, // 管理画面上での配置場所
'show_in_rest' => true, // 5系から出てきた新エディタ「Gutenberg」を有効にする
'supports' => array('title', 'editor', 'thumbnail'),
'slug' => 'news',
'rewrite' => array('slug' => 'news', 'with_front' => false),
'taxonomy' => 'news_tax',
]);
$args = array(
'label' => __('カテゴリー', 'achievement'),
'public' => true,
'hierarchical' => true,
'rewrite' => array('slug' => 'news', 'with_front' => false),
);
register_taxonomy('news_tax', 'news', $args);
register_post_type('case', [
'labels' => [
'name' => 'お客様事例',
'singular_name' => 'case',
],
'public' => true,
'has_archive' => true,
'menu_position' => 3,
'show_in_rest' => true,
]);
$args = array(
'label' => __('カテゴリー', 'case'),
'public' => true,
'hierarchical' => true,
'rewrite' => array('slug' => 'case', 'with_front' => false),
);
register_taxonomy('case_tax', 'case', $args);
register_post_type('trainer', [
'labels' => [
'name' => '講師紹介',
'singular_name' => 'trainer',
],
'public' => true,
'has_archive' => true,
'menu_position' => 7,
'show_in_rest' => true,
]);
$args = array(
'label' => __('カテゴリー', 'trainer'),
'public' => true,
'hierarchical' => true,
'rewrite' => array('slug' => 'trainer', 'with_front' => false),
);
register_taxonomy('trainer_tax', 'trainer', $args);
register_post_type('experience', [
'labels' => [
'name' => '講演会',
'singular_name' => 'experience',
],
'public' => true,
'has_archive' => true,
'menu_position' => 8,
'show_in_rest' => true,
]);
$args = array(
'label' => __('カテゴリー', 'experience'),
'public' => true,
'hierarchical' => true,
'rewrite' => array('slug' => 'experience', 'with_front' => false),
);
register_taxonomy('experience_tax', 'experience', $args);
register_post_type('faq', [
'labels' => [
'name' => 'よくある質問',
'singular_name' => 'faq',
],
'public' => true,
'has_archive' => true,
'menu_position' => 9,
'show_in_rest' => true,
]);
$args = array(
'label' => __('カテゴリー', 'faq'),
'public' => true,
'hierarchical' => true,
'rewrite' => array('slug' => 'faq', 'with_front' => false),
);
register_taxonomy('faq_tax', 'faq', $args);
register_post_type('seminar', [
'labels' => [
'name' => 'セミナー',
'singular_name' => 'seminar',
],
'public' => true,
'has_archive' => true,
'menu_position' => 10,
'show_in_rest' => true,
]);
$args = array(
'label' => __('カテゴリー', 'seminar'),
'public' => true,
'hierarchical' => true,
'rewrite' => array('slug' => 'seminar', 'with_front' => false),
);
register_taxonomy('seminar_tax', 'seminar', $args);
}
add_theme_support('post-thumbnails');
set_post_thumbnail_size(600, 346, true);
/*【管理画面】ACF Options Page の設定 */
if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'page_title' => 'UpdateText', // ページタイトル
'menu_title' => '一括更新テキスト', // メニュータイトル
'menu_slug' => 'update-text', // メニュースラッグ
'capability' => 'edit_posts',
'redirect' => false
));
}
// 「講演会」本文エディタ削除
function my_remove_post_support() {
remove_post_type_support('experience','editor');
}
add_action('init','my_remove_post_support');
/*===================================
mark new post
===================================*/
function mark_new_post($days)
{
$today = date_i18n('U');
$entry_day = get_the_time('U');
$post_day = date('U', ($today - $entry_day)) / 86400;
if ($days > $post_day) :
echo '<p class="c-list1__tag"><span>会社情報</span></p>';
endif;
}
//auto check taxonomy custom post news
function mfields_set_default_object_terms($post_id, $post)
{
if ('publish' === $post->post_status && $post->post_type === 'news') {
$defaults = array(
'news_tax' => array('info')
);
$taxonomies = get_object_taxonomies($post->post_type);
foreach ((array) $taxonomies as $taxonomy) {
$terms = wp_get_post_terms($post_id, $taxonomy);
if (empty($terms) && array_key_exists($taxonomy, $defaults)) {
wp_set_object_terms($post_id, $defaults[$taxonomy], $taxonomy);
}
}
}
}
add_action('save_post', 'mfields_set_default_object_terms', 100, 2);
// function tax_news($termlink, $term, $taxonomy)
// {
// if ('news_tax' == $taxonomy)
// return home_url() . '/news/' . $term->slug;
// return $termlink;
// }
// add_filter('term_link', 'tax_news', 10, 3);
// add_filter('request', 'rudr_change_term_request', 1, 1);
// add_filter('term_link', 'rudr_term_permalink', 10, 3);
// function rudr_change_term_request($query)
// {
// $tax_name = 'news_tax';
// if ($query['attachment']) :
// $include_children = true;
// $name = $query['attachment'];
// else :
// $include_children = false;
// $name = $query['name'];
// endif;
// $term = get_term_by('slug', $name, $tax_name);
// if (isset($name) && $term && !is_wp_error($term)) :
// if ($include_children) {
// unset($query['attachment']);
// $parent = $term->parent;
// while ($parent) {
// $parent_term = get_term($parent, $tax_name);
// $name = $parent_term->slug . '/' . $name;
// $parent = $parent_term->parent;
// }
// } else {
// unset($query['name']);
// }
// endif;
// return $query;
// }
// function rudr_term_permalink($url, $term, $taxonomy)
// {
// $taxonomy_name = 'news_tax';
// $taxonomy_slug = 'news_tax';
// if (strpos($url, $taxonomy_slug) === FALSE || $taxonomy != $taxonomy_name) return $url;
// $url = str_replace('/' . $taxonomy_slug, '', $url);
// return $url;
// }
/*【管理画面】投稿メニューを非表示 */
function remove_menus()
{
global $menu;
remove_menu_page('edit.php');
}
add_action('admin_menu', 'remove_menus');
// Code viet lai rule cho taxonomy custom post type. Chỉ chạy 1 lần rồi xóa đi.
// Code rewrite rule for taxonomy custom post type. Only run 1 time and then delete.
function generate_taxonomy_rewrite_rules($wp_rewrite)
{
$rules = array();
$post_types = get_post_types(array('public' => true, '_builtin' => false), 'objects');
$taxonomies = get_taxonomies(array('public' => true, '_builtin' => false), 'objects');
foreach ($post_types as $post_type) {
$post_type_name = $post_type->name;
$post_type_slug = $post_type->rewrite['slug'];
foreach ($taxonomies as $taxonomy) {
if ($taxonomy->object_type[0] == $post_type_name) {
$terms = get_categories(array('type' => $post_type_name, 'taxonomy' => $taxonomy->name, 'hide_empty' => 0));
foreach ($terms as $term) {
$rules[$post_type_slug . '/' . $term->slug . '/?$'] = 'index.php?' . $term->taxonomy . '=' . $term->slug;
$rules[$post_type_slug . '/' . $term->slug . '/page/?([0-9]{1,})/?$'] = 'index.php?' . $term->taxonomy . '=' . $term->slug . '&paged=' . $wp_rewrite->preg_index(1);
}
}
}
}
$wp_rewrite->rules = $rules + $wp_rewrite->rules;
}
add_action('generate_rewrite_rules', 'generate_taxonomy_rewrite_rules');
<?php include(get_template_directory() . '/assets/include/header.php'); ?>
<?php the_title(); ?>
<?php the_time('Y.n.j'); ?>
<?php while (have_posts()){ the_post();the_content();} ?>
<?php include(get_template_directory() . '/assets/include/footer.php'); ?>
<?php include(get_template_directory() . '/assets/include/header.php'); ?>
<?php the_title(); ?>
<?php the_time('Y.n.j'); ?>
<?php while (have_posts()){ the_post();the_content();} ?>
<?php include(get_template_directory() . '/assets/include/footer.php'); ?>
<?php $pageid = "faq"; ?>
<?php include(get_template_directory() . '/assets/include/header.php'); ?>
<div class="page-other p-faq">
<div class="c-breadcrumb pc-only">
<ul class="c-breadcrumb__inner">
<?php if (function_exists('bcn_display')) {
bcn_display();
} ?>
</ul>
</div>
<section class="c-mainvisual p-other-mv">
<div class="c-mainvisual__inner">
<h2 class="c-mainvisual__ttl">よくある質問</h2>
</div>
</section>
<div class="container">
<aside class="side">
<div class="side__box">
<div class="search">
<form class="search__input">
<input type="text" name="search" placeholder="キーワードで検索する">
<input type="submit" name="submit" value="">
</form>
</div>
<ul class="side__list pc-only">
<?php
$args = array(
'posts_per_page' => -1,
'post_type' => 'faq',
'paged' => $paged,
'order' => 'ASC',
);
$the_query = new WP_Query($args);
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();
?>
<li class="side__item">
<a class="side__txt" href="#faq-<?php echo get_the_ID() ?>"><?php the_title(); ?></a>
</li>
<?php endwhile;
endif; ?>
</ul>
</div>
</aside>
<main class="content">
<?php
$args = array(
'posts_per_page' => -1,
'post_type' => 'faq',
'paged' => $paged,
'order' => 'ASC',
);
$the_query = new WP_Query($args);
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();
?>
<div class="p-faq-block">
<section id="faq-<?php echo get_the_ID() ?>" class="otherSingle1">
<h3 class="c-title1"><?php the_title(); ?></h3>
</section>
<section class="p-faq-Single1">
<?php if (have_rows('faq')): while (have_rows('faq')): the_row(); ?>
<?php if (have_rows('faq_group')): while (have_rows('faq_group')): the_row();
?>
<div class="p-faq-Box">
<div class="p-faq-Q">
<h4><?php echo get_sub_field('faq_question') ?></h4>
</div>
<div class="p-faq-A">
<h5><?php echo get_sub_field('faq_anser') ?></h5>
<div class="p-faq-A-inBox">
<?php echo get_sub_field('faq_anser_detail'); ?>
</div>
</div>
</div>
<?php endwhile; endif;
endwhile; endif; ?>
</section>
</div>
<?php endwhile; else : ?>
<p class="faq-notfound">該当する質問がありませんでした。<br class="sp-only">他のキーワードをお試しください。</p>
<?php endif; ?>
</main>
</div>
</div>
<script src="/assets/js/faq.min.js"></script>
<?php include(get_template_directory() . '/assets/include/footer.php'); ?>
<?php $pageid= "trainer" ?>
<?php $pageid = "trainer" ?>
<?php include(get_template_directory() . '/assets/include/header.php'); ?>
<div class="c-breadcrumb pc-only">
<ul class="c-breadcrumb__inner">
<li class="c-breadcrumb__item">
......@@ -11,25 +12,23 @@
<span>トレーナー・コンサルタント紹介</span>
</li>
</ul>
</div>
</div>
<div class="ttl-acv-trainer-page">
<div class="ttl-acv-trainer-page">
<h2 class="c-mainvisual__title">トレーナー・コンサルタント紹介</h2>
<p class="only-pc">豊富な実績を持ち、ノウハウを知り尽くしたトレーナー・コンサルタントが、<br class="only-pc">お客様の問題解決に全力で取り組ませていただきます。</p>
</div>
<p class="trainer-lead only-sp">豊富な実績を持ち、ノウハウを知り尽くした<br>トレーナー・コンサルタントが、<br>お客様の問題解決に全力で取り組ませていただきます。</p>
<div class="contents-col">
</div>
<p class="trainer-lead only-sp">豊富な実績を持ち、ノウハウを知り尽くした<br>トレーナー・コンサルタントが、<br>お客様の問題解決に全力で取り組ませていただきます。</p>
<div class="contents-col">
<section id="trainer" class="trainer">
<h3 class="trainer__ttl">トレーナー<span>trainer</span></h3>
<ul class="list-people">
<?php
$args = array (
$args = array(
'posts_per_page' => 12,
'post_type' => 'trainer',
'paged' => $paged,
......@@ -42,8 +41,8 @@
),
)
);
$the_query = new WP_Query( $args );
if ($the_query-> have_posts() ) : while ($the_query -> have_posts() ) : $the_query->the_post();
$the_query = new WP_Query($args);
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();
$image = get_field('image');
?>
......@@ -51,12 +50,12 @@
<a href="<?php the_permalink(); ?>">
<div class="list-people-content">
<figure>
<?php if( !empty( $image ) ): ?>
<?php if (!empty($image)): ?>
<img src="<?php echo $image; ?>" alt="">
<?php endif; ?>
</figure>
<div class="list-people-info">
<p class="list-people-name"><?php the_title();?></p>
<p class="list-people-name"><?php the_title(); ?></p>
</p>
</div>
</div>
......@@ -64,8 +63,8 @@
</li>
<?php endwhile;
endif;?>
<!--
endif; ?>
<!--
<li>
<a href="/trainer/sato/">
<div class="list-people-content">
......@@ -160,7 +159,7 @@
</div>
</a>
</li> -->
<!--
<!--
<li>
<a href="/trainer/hayase/">
<div class="list-people-content">
......@@ -172,7 +171,7 @@
</div>
</a>
</li>
-->
-->
<!-- <li>
<a href="/trainer/kakitani/">
<div class="list-people-content">
......@@ -187,14 +186,13 @@
</section>
<section id="consultant" class="consultant">
<h3 class="consultant__ttl">コンサルタント<span>consultant</span></h3>
<ul class="list-people">
<?php
$args = array (
$args = array(
'posts_per_page' => 12,
'post_type' => 'trainer',
'paged' => $paged,
......@@ -207,8 +205,8 @@
),
)
);
$the_query = new WP_Query( $args );
if ($the_query-> have_posts() ) : while ($the_query -> have_posts() ) : $the_query->the_post();
$the_query = new WP_Query($args);
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();
$image = get_field('image');
?>
......@@ -216,12 +214,12 @@
<a href="<?php the_permalink(); ?>">
<div class="list-people-content">
<figure>
<?php if( !empty( $image ) ): ?>
<?php if (!empty($image)): ?>
<img src="<?php echo $image; ?>" alt="">
<?php endif; ?>
</figure>
<div class="list-people-info">
<p class="list-people-name"><?php the_title();?></p>
<p class="list-people-name"><?php the_title(); ?></p>
</p>
</div>
</div>
......@@ -229,7 +227,7 @@
</li>
<?php endwhile;
endif;?>
endif; ?>
<!-- <li>
<a href="/trainer/murata/">
......@@ -297,7 +295,7 @@
</div>
</a>
</li> -->
<!--
<!--
<li>
<a href="/trainer/jito/">
<div class="list-people-content">
......@@ -319,12 +317,12 @@
</div>
</a>
</li>
-->
-->
</ul>
</section>
</div><!-- contents-col -->
</div><!-- contents-col -->
<?php include(get_template_directory() . '/assets/include/footer.php'); ?>
.content_wrap {
min-height: 0;
}
.content_wrap:after {
content: "";
visibility: hidden;
display: block;
clear: both;
font-size: 0;
height: 0;
}
.content_wrap img {
width: auto;
}
body.wp-editor strong, .content_wrap strong {
font-weight: bold;
}
body.wp-editor h1, .content_wrap h1 {
display: block;
font-weight: bold;
font-size: 2em;
}
body.wp-editor h2, .content_wrap h2 {
display: block;
font-weight: bold;
font-size: 1.5em;
}
body.wp-editor h3, .content_wrap h3 {
display: block;
font-weight: bold;
font-size: 1.17em;
}
body.wp-editor h4, .content_wrap h4 {
display: block;
font-weight: bold;
margin: 1.33em 0;
}
body.wp-editor h5, .content_wrap h5 {
display: block;
font-weight: bold;
font-size: 0.83em;
}
body.wp-editor h6, .content_wrap h6 {
display: block;
font-weight: bold;
font-size: 0.67em;
}
body.wp-editor a, .content_wrap a {
color: inherit;
}
body.wp-editor ol, .content_wrap ol {
list-style: decimal;
padding-inline-start: 20px;
}
body.wp-editor ul, .content_wrap ul {
list-style: disc;
padding-inline-start: 20px;
}
body.wp-editor li, .content_wrap li {
list-style: inherit;
}
body.wp-editor table, .content_wrap table,
body.wp-editor th, .content_wrap th,
body.wp-editor td, .content_wrap td {
padding: 5px;
}
body.wp-editor .aligncenter, .content_wrap .aligncenter {
display: block;
margin: 10px auto;
}
body.wp-editor .alignleft, .content_wrap .alignleft {
float: left;
margin: 5px 20px 5px 0;
}
body.wp-editor .alignright, .content_wrap .alignright {
float: right;
margin: 5px 0 5px 20px;
}
.detailsCont dl dt{
font-weight: 600;
font-size: 1.2em;
margin-bottom: 0.2em;
}
.detailsCont dl dd.mb20{
margin-bottom: 20px;
}
.detailsCont dl dd.clear::after{
content: "";
clear: both;
display: block;
}
.detailsCont p.img_30{
margin-bottom: 30px;
}
.detailsCont dl dd.fr{
float: right;
margin-left: 20px;
}
.detailsCont dl dd.fr_tex{
margin: 20px 0;
}
.detailsCont dl dd.fl{
float: left;
margin-right: 20px;
}
.detailsCont dl dd.fl_tex{
margin: 20px 20px 20px 0;
}
/*-----------------------------------
記事内の画像回り込み指定 2020/11/30
-----------------------------------*/
.detailsCont p img.alignright {
float:left;
margin:0 10px 10px 0;
padding-top:0;
}
.detailsCont p img.alignleft {
float:right;
margin:0 10px 10px;
padding-top:0;
}
.detailsCont p img.aligncenter {
margin:10px auto;
}
@media screen and (max-width: 767px) {
body.wp-editor .alignleft, .content_wrap .alignleft,
body.wp-editor .alignright, .content_wrap .alignright {
display: block;
float: none;
margin: 10px auto;
}
}
<footer class="c-footer">
<div class="c-footer__inner">
<div class="c-footer__block">
<div class="c-footer__info">
<div class="c-footer__logo">
<a href="/"><img src="/assets/img/common/logo_footer.png" alt="ACHIEVEMENT" width="100" height="84"></a>
</div>
<div class="c-footer__phone">
<p class="pc-only">0120-000-638</p>
<a href="tel:0120000638" class="sp-only">0120-000-638</a>
<span>受付時間:10:30-17:00(月~土曜日)</span>
</div>
<ul class="c-footer__sns">
<li><a href="https://www.facebook.com/achievementcorp/" target="_blank"><img src="/assets/img/common/icon_facebook.png" alt="FACEBOOK" width="50" height="50"></a></li>
<li><a href="https://www.youtube.com/user/achievementCH" target="_blank"><img src="/assets/img/common/icon_youtube.png" alt="YOUTUBE" width="44" height="50"></a></li>
<li><a href="https://www.facebook.com/achievementcorp/" target="_blank"><img src="/assets/img/common/icon_facebook.png" alt="Facebook" width="50" height="50"></a></li>
<li><a href="https://twitter.com/achievement33" target="_blank"><img src="/assets/img/common/twitter-logo.png" alt="Twitter" width="50" height="50"></a></li>
<li><a href="https://www.instagram.com/achievement_message/" target="_blank"><img src="/assets/img/common/instagram_icon.png" alt="Instagram" width="50" height="50"></a></li>
<li><a href="https://www.youtube.com/user/achievementCH" target="_blank"><img src="/assets/img/common/icon_youtube.png" alt="Youtube" width="44" height="50"></a></li>
</ul>
</div>
<nav class="c-footer__nav">
<ul class="c-footer__list">
<li>
<a href="/service/" class="showSp">サービス</a>
<ul class="c-footer__listsub">
<li><a href="/service/top/">『頂点への道』講座</a></li>
<li><a href="/service/penetration/">理念浸透・組織変革</a></li>
<li><a href="/service/management/">マネジメント</a></li>
<li><a href="/service/sales/">営業力強化</a></li>
<li><a href="/service/rt/">人間関係</a></li>
</ul>
</li>
<li><a href="/faq/">よくある質問</a></li>
</ul>
<ul class="c-footer__list">
<li><a href="/beginner/">初めての方へ</a></li>
<li><a href="/pub/schedule#seminar">体験セミナー</a></li>
<li><a href="/case/">お客様事例</a></li>
<li><a href="/trainer/">講師一覧</a></li>
<li><a href="/recruit/">採用情報</a></li>
<li><a href="https://recruit.achievement.co.jp/">採用情報</a></li>
</ul>
<ul class="c-footer__list">
<li>
<a href="/company/" class="showSp">会社情報</a>
<ul class="c-footer__listsub">
<li><a href="/company/philosophy/">企業理念</a></li>
<li><a href="/company/ceo/">代表メッセージ</a></li>
<li><a href="/company/outline/">会社概要</a></li>
<li><a href="/company/officer/">役員紹介</a></li>
<li><a href="/company/csr/">SDGsについての取り組み</a></li>
<li><a href="/company/group/">グループ会社紹介</a></li>
<li><a href="/company/history/">企業沿革</a></li>
<li><a href="/company/access/">アクセス</a></li>
</ul>
</li>
</ul>
</nav>
</div>
<ul class="c-footer__list2">
<li>
<a href="https://shop.achievement.co.jp/" target="_blank"><img src="/assets/img/common/bnr_footer01.jpg" alt="" width="230" height="66"></a>
</li>
<li>
<a href="https://www.jpsa.net/" target="_blank"><img src="/assets/img/common/bnr_footer02.jpg" alt="" width="230" height="66"></a>
</li>
<li>
<a href="http://www.aokisatoshi.com/" target="_blank"><img src="/assets/img/common/bnr_footer03.jpg" alt="" width="230" height="66"></a>
</li>
<li>
<a href="https://my.ebook5.net/achievement30/" target="_blank"><img src="/assets/img/common/bnr_footer04.jpg" alt="" width="230" height="66"></a>
</li>
<li>
<a href="http://www.koushihaken.jp/" target="_blank"><img src="/assets/img/common/bnr_footer05.jpg" alt="" width="230" height="66"></a>
</li>
<li>
<a href="http://business-ct.net/" target="_blank"><img src="/assets/img/common/bnr_footer06.jpg" alt="" width="230" height="66"></a>
</li>
<li>
<a href="https://www.joshi-kai.jp/" target="_blank"><img src="/assets/img/common/bnr_footer07.jpg" alt="" width="230" height="66"></a>
</li>
<li>
<a href="https://leaders-lounge.achievement.co.jp/" target="_blank"><img src="/assets/img/common/bnr_footer08.jpg" alt="" width="230" height="66"></a>
</li>
<li>
<a href="https://achievement.co.jp/atp/" target="_blank"><img src="/assets/img/common/bnr_footer09.jpg" alt="" width="230" height="66"></a>
</li>
</ul>
<ul class="c-footer__list3">
<li><a href="/member/">アチーブメントクラブ会員のご案内</a></li>
<li><a href="/marc/">会員サイトMARC</a></li>
<li><a href="/business_partner/">月刊ビジネスパートナー</a></li>
<li><a href="/sitemap/">サイトマップ</a></li>
<li><a href="/privacy/">個人情報保護取扱いについて</a></li>
<li><a href="/policy/">プライバシーポリシー</a></li>
<li><a href="/trademark/">商標について</a></li>
<li><a href="/en/">English</a></li>
</ul>
<p class="c-footer__copy">©2020 Achievement Corp.</p>
</div>
<div class="c-toTop"></div>
</footer>
<script src="/assets/js/functions.min.js"></script>
</body>
</html>
</html>
<?php global $post, $pageid; ?>
<!DOCTYPE html>
<html lang="ja" id="pagetop">
......@@ -19,6 +20,7 @@
<?php else: include('meta.php'); endif; ?>
<link href="/assets/css/style.css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/assets/css/content.css" rel="stylesheet">
<script src="/assets/js/jquery-3.3.1.min.js"></script>
<script src="/assets/js/jquery-migrate-3.0.1.min.js"></script>
......@@ -281,13 +283,9 @@
<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/nakano/" class="c-nav-link1">中野 銀次郎</a></li>
<li><a href="/trainer/hashimoto/" class="c-nav-link1">橋本 拓也</a></li>
<li><a href="/trainer/sakata/" 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/shigetomi/" class="c-nav-link1">重富 雅晴</a></li>
<li><a href="/trainer/izumi/" 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>
......
......@@ -10,6 +10,13 @@ $templatepath = get_template_directory();
define('T_LIBS', $templatepath . '/libs/');
define('T_THEME', get_template_directory_uri());
/* 管理エディターのスタイルシートを登録します
/*---------------------------------------------------------*/
add_action( 'admin_init', 'my_theme_add_editor_style' );
function my_theme_add_editor_style() {
add_editor_style( 'assets/css/content.css' );
}
/* カスタム投稿
------------------------------------------------------------------------------- */
......
......@@ -179,15 +179,18 @@
<div class="c-imgtext1__img">
<img src="/common_previous/img/img_top_100.jpg" alt="「働きがいのある会社」5年連続選出!">
<img src="/common_previous/img/img_top_100.jpg" alt="「働きがいのある会社」6年連続選出!">
</div>
<div class="c-imgtext1__info">
<h3 class="c-imgtext1__ttl">「働きがいのある会社」5年連続選出!</h3>
<h3 class="c-imgtext1__ttl"><a href="https://achievement.co.jp/news/press/gptw2021/">「働きがいのある会社」6年連続選出!</a></h3>
<p class="c-imgtext1__txt">2016年~2020年度版の「働きがいのある会<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/gptw2021/" class="simpleText">2016年~2021年度版の「働きがいのある会<br class="pc-only">社ランキング」従業員100~999人部門にて、<br class="pc-only">ベストカンパニーに選出されました。</p>
<p class="c-imgtext1__txt" style="margin-top:20px"><a href="/news/press/210402/" class="simpleText">また、「働きがいのある会社 女性ランキング」と<br class="pc-only">
「WOMAN’s VALUE AWARD」にて<br class="pc-only">ダブル受賞いたしました。</a></p>
</div>
......@@ -207,7 +210,7 @@
<h3 class="c-imgtext1__ttl">就職希望企業ランキング第93位</h3>
<p class="c-imgtext1__txt">業種別ランキングの「サービス・その他」で13位、<br class="pc-only">社員数300名以下の中小企業の中では最高位</p>
<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>
......@@ -217,28 +220,26 @@
<div class="c-box">
<div class="c-imgtext1">
<div class="c-box__img">
<div class="c-imgtext1__img">
<img src="/common_previous/img/img_top_102.png" alt="">
<img src="/common_previous/img/img_top_109.png" alt="教育から広がる社会への貢献">
</div>
<div class="c-box__btn">
<div class="c-btn3">
<div class="c-imgtext1__info">
<a href="/company/csr/" class="c-btn3__txt">SDGsについての取り組み</a>
<h3 class="c-imgtext1__ttl"><a href="/company/sdgs/">教育から広がる社会への貢献</a></h3>
</div>
<p class="c-imgtext1__txt"><a class="smoothHover" href="/company/sdgs/"><img src="/common_previous/img/img_top_110.png" alt="SDGs"></a>
</p>
</div>
</div>
</div>
</section>
......
<?php $pageid="case-kita";?>
<?php $pageid = "case-kita"; ?>
<?php include(get_template_directory() . '/assets/include/header.php'); ?>
<?php
$prof_img = get_field('prof_img');
$introduction = get_field('introduction');
$name = get_field('name');
$mainvisual_image = get_field('mainvisual_image');
$name = get_field('name');
$prof_img = get_field('prof_img');
$introduction = get_field('introduction');
$mainvisual_image = get_field('mainvisual_image');
$case_childs = array();
if ($case = get_term_by('slug', 'case', 'case_tax')) {
$case_childs = array_flip(get_term_children($case->term_id, 'case_tax'));
}
$industry_childs = array();
if ($industry = get_term_by('slug', 'industry', 'case_tax')) {
$industry_childs = array_flip(get_term_children($industry->term_id, 'case_tax'));
}
$terms = get_the_terms(get_the_ID(), 'case_tax');
$terms = wp_list_sort($terms, array('parent' => 'DESC'));
?>
<div class="p-case-detail">
<div class="c-breadcrumb pc-only">
......@@ -14,61 +27,90 @@
<li class="c-breadcrumb__item"><span><?php the_title(); ?></span></li>
</ul>
</div>
<section class="c-mainvisual" style="background-image: url('<?php echo $mainvisual_image; ?>')">
<div class="c-mainvisual__inner">
<h2 class="c-mainvisual__title"><?php the_title(); ?></h2>
<p class="c-mainvisual__text"><?php echo $introduction ." ". $name ?></p>
<p class="c-mainvisual__text"><?php echo $introduction . " " . $name ?></p>
</div>
</section>
<div class="container">
<aside class="side pc-only">
<div class="side__box">
<h3 class="side__mainttl">お客様事例</h3>
<ul class="side__list">
<?php
$args = array (
'posts_per_page' => 12,
$the_query = new WP_Query(array(
'post_type' => 'case',
'post_status' => 'publish',
'posts_per_page' => -1,
'order' => 'ASC',
);
$the_query = new WP_Query( $args );
if ($the_query-> have_posts() ) : while ($the_query -> have_posts() ) : $the_query->the_post();
?>
<li class="side__item"><a class="side__txt" href="<?php the_permalink();?>"><?php the_title();?></a></li>
<?php endwhile; endif;?>
));
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post(); ?>
<li class="side__item">
<a class="side__txt" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endwhile; wp_reset_postdata(); endif; ?>
</ul>
</div>
</aside>
<main class="content">
<section class="p-case-detail1">
<h3 class="c-title1">プロフィール</h3>
<h3 class="c-title1"><?php echo ($profile_type = get_field('profile_type')) ? $profile_type : 'プロフィール'; ?></h3>
<div class="c-imgtext">
<div class="c-imgtext__image">
<?php if( !empty( $prof_img ) ): ?>
<?php if (!empty($prof_img)): ?>
<img src="<?php echo $prof_img; ?>" alt="" width="300" height="300">
<?php endif; ?>
</div>
<div class="c-imgtext__info">
<p class="c-imgtext__title"><?php echo $name; ?></p>
<p class="c-imgtext__title2"><?php echo $introduction; ?></p>
<p class="c-imgtext__text">
<div>
<?php while (have_posts()) {
the_post();
the_content();
} ?>
</div>
<p class="c-imgtext__title"><?php echo $name;?></p>
<p class="c-imgtext__title2"><?php echo $introduction;?></p>
<p class="c-imgtext__text"><?php while (have_posts()){ the_post(); the_content(); } ?></p>
<ul class="c-search-list">
<?php $industry_html = ''; ?>
<?php foreach ($terms as $term): ?>
<?php if ($term->slug == 'case' || $term->slug == 'industry') { continue; } ?>
<?php if (isset($case_childs[$term->term_id])): ?>
<li class="c-search-list__item01"><?php echo $term->name; ?></li>
<?php else: $industry_html .= '<li class="c-search-list__item02">' . $term->name . '</li>'; endif; ?>
<?php endforeach; ?>
<?php echo $industry_html; ?>
</ul>
</div>
</div>
<?php
$infor_show = (int)get_field('infor_show');
if (1 == $infor_show && have_rows('infor_list')): ?>
<div class="c-table1 infor-list">
<?php while (have_rows('infor_list')): the_row(); ?>
<dl>
<dt><?php the_sub_field('title'); ?></dt>
<dd><?php the_sub_field('content'); ?></dd>
</dl>
<?php endwhile; ?>
</div>
<?php endif; ?>
<div class="c-step">
<dl>
<dt>課題</dt>
<dd>
<?php if( have_rows('task') ): ?>
<?php if (have_rows('task')): ?>
<ul>
<?php while( have_rows('task') ): the_row();
$txt_task= get_sub_field('task_text');
?>
<li><?php echo $txt_task; ?></li>
<?php while (have_rows('task')): the_row(); ?>
<li><?php the_sub_field('task_text'); ?></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
......@@ -77,12 +119,10 @@
<dl>
<dt>効果</dt>
<dd>
<?php if( have_rows('effect') ): ?>
<?php if (have_rows('effect')): ?>
<ul>
<?php while( have_rows('effect') ): the_row();
$txt_effect= get_sub_field('text_effect');
?>
<li><?php echo $txt_effect; ?></li>
<?php while (have_rows('effect')): the_row(); ?>
<li><?php the_sub_field('text_effect') ?></li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
......@@ -90,44 +130,43 @@
</dl>
</div>
</section>
<?php if( have_rows('content') ): while( have_rows('content') ): the_row();
$content_header = get_sub_field('content_header');
$content_text = get_sub_field('content_text');
?>
<?php if (have_rows('content')): while (have_rows('content')): the_row(); ?>
<section class="p-case-detail2">
<h3 class="c-title1"><?php echo $content_header; ?></h3>
<p class="trainerSingle2__txt"><?php echo $content_text; ?></p>
<h3 class="c-title1"><?php the_sub_field('content_header'); ?></h3>
<div class="trainerSingle2__txt content_wrap"><?php the_sub_field('content_text') ?></div>
</section>
<?php endwhile; endif; ?>
<div class="c-box">
<?php if( have_rows('list_info') ): ?>
<?php if (have_rows('list_info')): ?>
<ul class="c-box__list">
<?php while( have_rows('list_info') ): the_row();
$list_img = get_sub_field('list_img');
$list_txt = get_sub_field('list_txt');
?>
<li><img src="<?php echo $list_img; ?>" alt="" width="188" height="138">
<p><?php echo $list_txt; ?></p>
<?php while (have_rows('list_info')): the_row(); ?>
<li>
<img src="<?php the_sub_field('list_img'); ?>" alt="" width="188" height="138">
<p><?php the_sub_field('list_txt') ?></p>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
</div>
<div class="p-case-detail3">
<p>豊かな人間関係と、目標達成を実現する戦略的目標達成プログラム『頂点への道®』講座とは?</p>
<a href="/service/top/"><img src="/assets/img/service/case/banner-01.jpg" alt="" width="900" height="226"></a>
<div class="c-btn1"><a href="/case/">お客様事例一覧を見る</a> </div>
<div class="c-btn1"><a href="/case/">お客様事例一覧を見る</a></div>
</div>
</main>
</div>
</div>
<script>
$(document).ready(function() {
$(".side__item [href]").each(function() {
if (this.href == window.location.href) {
$(document).ready(function () {
$(".side__item [href]").each(function () {
if (this.href === window.location.href) {
$(this).parent().addClass("active");
}
});
});
});
</script>
<?php include(get_template_directory() . '/assets/include/footer.php'); ?>
<?php $pageid= "trainer" ?>
<?php $pageid = "trainer" ?>
<?php include(get_template_directory() . '/assets/include/header.php'); ?>
<main class="trainerSingle">
......@@ -20,12 +20,11 @@
</ul>
</div>
<?php if( have_rows('mainvisual') ): while( have_rows('mainvisual') ): the_row();
<?php if (have_rows('mainvisual')): while (have_rows('mainvisual')): the_row();
$imageMainvisual = get_sub_field('mainvisual-img');
$linkblogMainvisual = get_sub_field('mainvisual-link-blog');
$linkfbMainvisual = get_sub_field('mainvisual-link-fb');
?>
?>
<div class="c-mainvisual">
<div class="c-mainvisual__inner">
<div class="c-mainvisual__img">
......@@ -34,44 +33,45 @@
<h2 class="c-mainvisual__ttl"><?php the_title(); ?></h2>
<div class="c-mainvisual__detail">
<p class="c-mainvisual__txt"><?php while (have_posts()){ the_post(); the_content(); } ?></p>
<p class="c-mainvisual__txt">
<?php while (have_posts()) {
the_post();
the_content();
} ?>
</p>
<div class="c-mainvisual__social">
<?php if( !empty( $linkblogMainvisual) ): ?>
<?php if (!empty($linkblogMainvisual)): ?>
<div class="c-mainvisual__btn">
<a href="<?php echo $linkblogMainvisual ?>">ブログを見る</a>
<a href="<?php echo $linkblogMainvisual ?>" target="_blank">ブログを見る</a>
</div>
<?php endif; ?>
<?php if( !empty( $linkfbMainvisual) ): ?>
<?php if (!empty($linkfbMainvisual)): ?>
<div class="c-mainvisual__btn">
<a href="<?php echo $linkfbMainvisual ?>">Facebookを見る</a>
<a href="<?php echo $linkfbMainvisual ?>" target="_blank">Facebookを見る</a>
</div>
<?php endif; ?>
</div>
</div>
<!--
<div class="c-mainvisual__video">
<!--<div class="c-mainvisual__video">
<div class="js-video-button" data-video-id='hdOX6Hl72Jc'>
<img src="/common_previous/img/img_trainer_single_video.jpg" alt="">
</div>
<a data-rel="lightcase" href="https://www.youtube.com/embed/3_WiIN8l_XY?rel=0&controls=0&showinfo=0"><img src="/assets/img/trainer/img_trainer_aoki_video.jpg" alt=""></a>
</div>
-->
</div>-->
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php endif; ?>
<?php
$url = explode('/', $_SERVER['REQUEST_URI']);
?>
<?php $url = explode('/', $_SERVER['REQUEST_URI']); ?>
<div class="container">
<aside class="side pc-only">
<div class="side__box">
<h3 class="side__mainttl">トレーナー</h3>
<ul class="side__list">
<?php
$args = array (
$args = array(
'posts_per_page' => 12,
'post_type' => 'trainer',
'paged' => $paged,
......@@ -84,18 +84,18 @@
),
)
);
$the_query = new WP_Query( $args );
if ($the_query-> have_posts() ) : while ($the_query -> have_posts() ) : $the_query->the_post();
$the_query = new WP_Query($args);
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();
?>
<li class="side__item"><a href="<?php the_permalink(); ?>" class="side__txt"><?php the_title();?></a></li>
<?php endwhile; endif;?>
<li class="side__item"><a href="<?php the_permalink(); ?>" class="side__txt"><?php the_title(); ?></a></li>
<?php endwhile; endif; ?>
</ul>
</div>
<div class="side__box">
<h3 class="side__mainttl">コンサルタント</h3>
<ul class="side__list">
<?php
$args = array (
$args = array(
'posts_per_page' => 12,
'post_type' => 'trainer',
'paged' => $paged,
......@@ -108,44 +108,44 @@
),
)
);
$the_query = new WP_Query( $args );
if ($the_query-> have_posts() ) : while ($the_query -> have_posts() ) : $the_query->the_post();
$the_query = new WP_Query($args);
if ($the_query->have_posts()) : while ($the_query->have_posts()) : $the_query->the_post();
?>
<li class="side__item"><a href="<?php the_permalink(); ?>" class="side__txt"><?php the_title();?></a></li>
<?php endwhile;endif;?>
<li class="side__item"><a href="<?php the_permalink(); ?>" class="side__txt"><?php the_title(); ?></a></li>
<?php endwhile;endif; ?>
</ul>
</div>
</aside>
<div class="content">
<?php while (have_posts()): the_post(); ?>
<section class="trainerSingle1">
<?php while (have_posts()){ the_post(); if( have_rows('profile') ): ?>
<?php if (have_rows('profile')): ?>
<section class="trainer-single trainerSingle1">
<h3 class="c-title1">プロフィール</h3>
<ul class="c-list1">
<?php while( have_rows('profile') ): the_row();
<?php while (have_rows('profile')): the_row();
$profileTxt = get_sub_field('profile__txt');
?>
<li class="c-list1__item"><?php echo $profileTxt; ?></li>
<?php endwhile; ?>
</ul>
<?php endif; }?>
</section>
<?php endif; ?>
<?php if( get_field('career') ): ?>
<section class="trainerSingle2">
<?php if (get_field('career')): ?>
<section class="trainer-single trainerSingle2">
<h3 class="c-title1">経歴</h3>
<p class="trainerSingle2__txt"><?php the_field('career'); ?></p>
</section>
<?php endif; ?>
<section class="trainerSingle4">
<?php while (have_posts()){ the_post(); if( have_rows('trainer_book') ): ?>
<?php if (have_rows('trainer_book')): ?>
<section class="trainer-single trainerSingle4">
<h3 class="c-title1">著書</h3>
<ul class="c-list3">
<?php while( have_rows('trainer_book') ): the_row();
<?php while (have_rows('trainer_book')): the_row();
$trainer_book_img = get_sub_field('trainer_book_img');
$trainer_book_ttl = get_sub_field('trainer_book_ttl');
$trainer_book_txt = get_sub_field('trainer_book_txt');
......@@ -154,31 +154,31 @@
<li class="c-list3__item">
<a href="<?php echo $trainer_book_url ?>" target="_blank" class="c-list3__inner">
<div class="c-list3__img">
<img src="<?php echo $trainer_book_img['url']?>" alt="<?php echo $trainer_book_ttl?>">
<img src="<?php echo $trainer_book_img['url'] ?>" alt="<?php echo $trainer_book_ttl ?>">
</div>
<div class="c-list3__info">
<h4 class="c-list3__ttl"><?php echo $trainer_book_ttl?></h4>
<p class="c-list3__txt"><?php echo $trainer_book_txt?></p>
<h4 class="c-list3__ttl"><?php echo $trainer_book_ttl ?></h4>
<p class="c-list3__txt"><?php echo $trainer_book_txt ?></p>
</div>
</a>
</li>
<?php endwhile; ?>
</ul>
<?php if(get_field('trainer_book_url')) :
$trainer_book_url = get_field('trainer_book_url');
?>
<?php if (get_field('trainer_book_url')) : $trainer_book_url = get_field('trainer_book_url'); ?>
<div class="c-btn1">
<a href="<?php echo $trainer_book_url;?>" target="_blank" class="c-btn1__txt">著書を探す</a>
<a href="<?php echo $trainer_book_url; ?>" target="_blank" class="c-btn1__txt">著書を探す</a>
</div>
<?php endif;?>
<?php endif;} ?>
<?php endif; ?>
</section>
<section class="trainerSingle5">
<?php while (have_posts()){ the_post(); if( have_rows('link') ): ?>
<?php endif; ?>
<?php if (have_rows('link')): ?>
<section class="trainer-single trainerSingle5">
<h3 class="c-title1">リンク集</h3>
<ul class="c-list4">
<?php while( have_rows('link') ): the_row();
$txtLink= get_sub_field('link-txt');
<?php while (have_rows('link')): the_row();
$txtLink = get_sub_field('link-txt');
$hrefLink = get_sub_field('link-href');
?>
<li class="c-list4__item">
......@@ -186,20 +186,21 @@
</li>
<?php endwhile; ?>
</ul>
<?php endif;} ?>
</section>
<?php endif; ?>
<?php endwhile; ?>
</div>
</div>
</main>
<script>
$(document).ready(function() {
$(".side__item [href]").each(function() {
$(document).ready(function () {
$(".side__item [href]").each(function () {
if (this.href == window.location.href) {
$(this).parent().addClass("active");
}
});
});
});
</script>
<?php include(get_template_directory() . '/assets/include/footer.php'); ?>
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