Commit fbe23a4a by Orine Matsui

【テーマ】調整済み

parent fba13719
Showing with 3846 additions and 241 deletions
<?php <?php
////////////////////////////////////////////////// //////////////////////////////////////////////////
//下記ユーザーカスタマイズエリア //下記ユーザーカスタマイズエリア
////////////////////////////////////////////////// //////////////////////////////////////////////////
@charset "utf-8";
/* CSS Document */
@font-face{font-family:YakuHanJPs;font-style:normal;font-weight:400;src:url(/assets/fonts/YakuHanJPs/YakuHanJPs-Regular.eot);src:url(/assets/fonts/YakuHanJPs/YakuHanJPs-Regular.woff2) format("woff2"),url(/assets/fonts/YakuHanJPs/YakuHanJPs-Regular.woff) format("woff")}@font-face{font-family:YakuHanJPs;font-style:normal;font-weight:700;src:url(/assets/fonts/YakuHanJPs/YakuHanJPs-Bold.eot);src:url(/assets/fonts/YakuHanJPs/YakuHanJPs-Bold.woff2) format("woff2"),url(/assets/fonts/YakuHanJPs/YakuHanJPs-Bold.woff) format("woff")}@font-face{font-family:YakuHanMPs;font-style:normal;font-weight:400;src:url(/assets/fonts/YakuHanMPs/YakuHanMPs-Regular.eot);src:url(/assets/fonts/YakuHanMPs/YakuHanMPs-Regular.woff2) format("woff2"),url(/assets/fonts/YakuHanMPs/YakuHanMPs-Regular.woff) format("woff")}@font-face{font-family:YakuHanMPs;font-style:normal;font-weight:700;src:url(/assets/fonts/YakuHanMPs/YakuHanMPs-Bold.eot);src:url(/assets/fonts/YakuHanMPs/YakuHanMPs-Bold.woff2) format("woff2"),url(/assets/fonts/YakuHanMPs/YakuHanMPs-Bold.woff) format("woff")}
h1.heading,
h2.heading,
h3.heading,
.partsH2-1 h2,
.partsH2-1 h2 span {font-family: YakuHanMPs,"ヒラギノ明朝 ProN","Hiragino Mincho ProN",YuMincho,"Yu Mincho","游明朝体","Sawarabi Mincho",sans-serif!important;font-weight: 600;}
.widgetArchive__contents .the__category {display: none;}
.content ul>li:before {content: "\eaed"!important;font-size: 22px!important;transform: rotate(90deg);left: -10px;top: -4px;}
@media only screen and (max-width: 991px) {
.h1-wrapper {margin-top: 20px!important;margin-bottom: 0;}
.l-wrapper {margin: 20px 15px!important;}
.eyecatch-main {margin-bottom: 20px!important;}
}
/* header */
@media only screen and (min-width: 992px) {
.menuBtn {display: none;}
}
.menuBtn__content {background: #f2f2f2;}
.menuBtn__navi {background: transparent;}
.globalNavi__list li,
.globalNavi__list li a {font-family: YakuHanMPs,"ヒラギノ明朝 ProN","Hiragino Mincho ProN",YuMincho,"Yu Mincho","游明朝体","Sawarabi Mincho",sans-serif!important;font-weight: 400!important;transition: none!important;}
.btn__link-primary, .btn__link-secondary, .btn__link-normal {border-radius: 0!important;}
.subNavi__link {font-size: 24px;padding: 0;}
.t-headerColor .globalNavi__list .current-menu-item>a, .t-headerColor .globalNavi__list .current-menu-parent>a, .t-headerColor .globalNavi__list .current_page_item>a, .t-headerColor .globalNavi__list .menu-item a:hover, .t-headerColor .globalNavi__list .page_item a:hover {
border-color: rgba(255,255,255,.9);
color: rgba(255,255,255,.9);
}
.globalNavi__list li#menu-item-756:after {
display: block;content: "";
position: absolute;bottom: 6px;left: 0;width: 72px;height: 1px;
border-bottom: 2px solid rgba(255,255,255,.9);color: rgba(255,255,255,1.0);}
@media only screen and (min-width: 992px) {
.siteTitle {margin: 0 40px 0 0;}
.globalNavi__list li {height: calc(1.8rem + 24px);}
.globalNavi__list li a {font-size: 1.8rem!important;}
}
@media only screen and (max-width: 991px) {
.l-header {padding: 10px 0;}
.menuBtn__naviList {margin-top: 0;}
.menuBtn {top: 6px;}
.globalNavi {margin-top: 6px!important;}
.siteTitle {margin-bottom: 0;}
}
.menuBtn__close {margin: 40px auto 20px;}
.widget.widget_categories ul li a, .widget.widget_nav_menu ul.menu li a {padding-left: 30px;}
.widget.widget_categories ul li a:before, .widget.widget_nav_menu ul.menu li a:before {
display: block;position: absolute;
content: "\eaed";font-size: 16px!important;transform: rotate(90deg)!important;left: 6px;top: 13px;
}
.outline ul>li:before {display: none!important;}
/* footer */
.l-footer .wider > .bottomFooter {padding-bottom: 20px;}
.footer-logoLink {width: 200px;}
.footer-logoLink img {width: 100%;}
.widgetFooter__box,
.widgetFooter__box .widget {margin: 0;}
.l-footer .widgetFooter-right .widgetFooter__box { margin: 0;display: flex;flex-direction: row;}
.snsFooter,
.snsFooter .snsFooter__item {display: block;box-shadow:none;width: 34px;height: 34px;margin: 0;border-radius: 50%;}
.l-footer .snsFooter {position: absolute!important;}
.l-footer .footer-logoLink {position: absolute!important;top: 0;left: 0px;}
.widget_custom_html,
.footerLink-shopping {text-align: right;font-size: 1.6rem;font-weight: 700;}
.widget_custom_html {margin-top: 0!important;text-align: right;}
.footerLink-shopping a{position: relative;padding:0;line-height: 1.5;transition: .15s;}
.footerLink-shopping a:hover {animation: flash 1s;}
.footerLink-shopping a:before {content: "";position: absolute;top: 0;left: -12px;border-right: 1px solid;transform: rotate(45deg);margin-top: 8px;width: 6px;height: 6px;border-top: 1px solid;}
@media only screen and (min-width: 992px) {
.l-footer .widgetFooter__box .widget_text {position: absolute;right: 0px; top: 0px;}
.l-footer .snsFooter {top: -6px;right: 170px;}
.widget_custom_html,
.footerLink-shopping {width: 170px;}
}
@media only screen and (max-width: 991px) {
.l-footer .wider > .bottomFooter .container {margin-left: 0;margin-right: 0;}
.l-footer div {position: inherit!important;}
.l-footer .bottomFooter {position: relative!important;}
.bottomFooter__navi {margin-bottom: 0;}
.footer-logoLink {margin: 0 auto 10px; text-align: center;}
.widget_custom_html,
.footerLink-shopping {width: 100%;font-size: 1.4rem;text-align: left;}
.l-footer .widgetFooter-right,
.l-footer .widgetFooter-right .widgetFooter__box { margin: 0;display: block;width: 100%;}
.footerLink-shopping a:before {top: 0;right: 16px;left: auto!important;margin-top: 22px;}
.bottomFooter__list li,
.bottomFooter__list li a { display: block;text-align: left;}
.bottomFooter__list li a {position: relative!important;}
.bottomFooter__list li a:before {content: "";position: absolute;top: 0;right: 16px;border-right: 1px solid;transform: rotate(45deg);margin-top: 22px;width: 6px;height: 6px;border-top: 1px solid;}
.footerLink-shopping a,
.bottomFooter__list li a { display: block;margin: 0; padding: 15px;border-top: 1px solid #a0a0a0;}
.bottomFooter__copyright {margin-top: 0;padding-top: 70px; border-top: 1px solid #a0a0a0;}
.l-footer .snsFooter {position: absolute!important; bottom: 38px;right: 15px;}
.l-footer .footer-logoLink {position: absolute!important;top: auto; bottom: 35px;left: 15px;}
}
@media only screen and (min-width: 768px) {
.widgetFooter__box {margin-right: 0;}
}
.menuBtn__content .heading-widgetsimple {display: none;}
.l-main.l-main-wide .eyecatch-main {display: none!important;}
.l-sidebar .widget_media_gallery .gallery-item {margin-top: 40px;}
@media only screen and (max-width: 992px) {
.l-sidebar .widget_media_gallery .gallery {display: flex;flex-direction: row;}
.l-sidebar .widget_media_gallery .gallery-item {margin-top: 0;width: calc(50% - 7px);}
.l-sidebar .widget_media_gallery .gallery-item:nth-child(2n) {margin-left: 14px;}
}
/*
TOP
===================================================================== */
h2.heading-main {text-align: center;font-family: YakuHanMPs,"ヒラギノ明朝 ProN","Hiragino Mincho ProN",YuMincho,"Yu Mincho","游明朝体","Sawarabi Mincho",sans-serif;font-weight: 600;}
h2.heading-main-archive {font-size: 2.4rem;border-bottom: 1px solid #191919;padding-bottom: 6px;margin-bottom: 6px;margin-bottom: 32px;}
.widget-main .heading.heading-widgetsimple {font-size: 1.8rem;margin-bottom: 6px;padding: 0;color: #191919;}
.pickup3__item {}
.pickup3__item:before {display: none;}
.bottomFooter {background-color: #fff;}
.bottomFooter__list li {color: #191919;}
#top .archive__contents .dateList,
#top .controller,
.comments,
.dateList__item.icon-bubble2 {display: none;}
#top .related .archive__contents .dateList {display: block;}
@media only screen and (max-width: 767px) {
h2.heading-main-archive {font-size: 1.8rem;margin-bottom: 16px;}
#top .archive .heading.heading-secondary {font-size: 1.3rem!important;}
}
.pickup3__item {background-color: #fff!important;}
.pickup3__item .heading-pickup3 {color: #191919; padding-left: 0!important;padding-right: 0!important;}
.widget.widget_tag_cloud a {border: none!important;font-size: 1.4rem!important;border-radius: 0;background-color: #eee;font-family: YakuHanMPs,"ヒラギノ明朝 ProN","Hiragino Mincho ProN",YuMincho,"Yu Mincho","游明朝体","Sawarabi Mincho",sans-serif!important;font-weight: 600;}
.widget.widget_tag_cloud a::before {display: none!important;}
@media only screen and (max-width: 767px) {
.pickup3__box {flex-direction: column;}
.pickup3__box .pickup3__item {display: flex;flex-direction: row;width: 100%;}
.pickup3__box .pickup3__item .eyecatch {margin-bottom: 0;}
}
@media only screen and (max-width: 767px) {
.pickup3__box {flex-direction: column;}
.pickup3__box .pickup3__item + .pickup3__item {margin-top: 15px;}
.pickup3__box .pickup3__item {display: flex;flex-direction: row;width: 100%;}
.pickup3__box .pickup3__item .eyecatch {margin-bottom: 0;}
.pickup3__item .heading.heading-pickup3 {font-size: 1.5rem!important;}
.pickup3__box .pickup3__item .heading.heading-pickup3 {font-size: 1.3rem!important;}
.pickup3__box .pickup3__item .eyecatch {margin-right: 10px;}
}
.front-page-wrapper .l-sidebar {margin-top: 33px;}
/*
single.php
===================================================================== */
.h1-wrapper { margin-top: 60px;}
@media only screen and (min-width: 992px) {.heading-primary {font-size: 3.6rem;}}
.eyecatch.eyecatch-main .eyecatch__link img {transition: 0!important;transform: scale(1)!important;}
.content .sitecard {padding: 0;background-color: #1f3b54;border-radius: 0;overflow:inherit;display: flex;flex-direction: row;justify-content: space-between;border: none;}
.content .sitecard:nth-child(2n) {flex-flow: row-reverse;}
.content .sitecard .sitecard__subtitle,
.content .sitecard .sitecard__contents .heading,
.content .sitecard .sitecard__subtitle a,
.content .sitecard .sitecard__contents .heading a {font-family: YakuHanMPs,"ヒラギノ明朝 ProN","Hiragino Mincho ProN",YuMincho,"Yu Mincho","游明朝体","Sawarabi Mincho",sans-serif;font-weight: 600;color: #fff;margin: 0!important;}
.content .sitecard .blogcard__contents .phrase,
.content .sitecard .sitecard__contents .phrase {color: #fff;}
.content .sitecard .sitecard__contents {position: relative;margin: 0!important;}
.content .sitecard .sitecard__subtitle {position: relative;top: auto;left: auto;background: transparent;padding: 0 0 6px 0;font-size: 1.4rem;border-radius: 0;}
.content .sitecard .sitecard__contents {padding: 20px 20px 36px 20px; float: inherit;width: calc(100% - 280px);max-width: calc(100% - 280px);margin-top: 0;}
.content .sitecard .eyecatch {float: inherit;width: 280px;min-width: 280px;height: 190px; margin: 0;padding: 0;}
.content .sitecard .eyecatch:before {display: none;}
.content .sitecard div:after,
.content .sitecard p:after {display: none;}
.content .sitecard .eyecatch img {position: relative;bottom: auto;right: auto;}
.content .sitecard .sitecard__link,
.content .sitecard .sitecard__link a {font-family: YakuHanMPs,"ヒラギノ明朝 ProN","Hiragino Mincho ProN",YuMincho,"Yu Mincho","游明朝体","Sawarabi Mincho",sans-serif;font-weight: 400;color: #fff;margin: 0!important;}
.content .sitecard .sitecard__link {position: absolute;right: 20px;bottom: 16px;}
.content .sitecard .sitecard__link a {position: relative;}
.content .sitecard .sitecard__link a:before {content: "";position: absolute;top: 0;left: -16px;border-top: 1px solid #fff;border-right: 1px solid #fff;transform: rotate(45deg);margin-top: 10px;width: 6px;height: 6px;}
@media only screen and (max-width: 606px) {
.content .sitecard,
.content .sitecard:nth-child(2n) {flex-direction: column;justify-content: space-between;}
.content .sitecard .sitecard__contents {padding: 20px 20px 36px 20px; float: inherit;width: 100%;max-width: 100%;}
.content .sitecard .eyecatch {float: inherit;width: 100%;min-width: 100%;height: 200px;}
}
.swiper-slide,
.swiper-slider {width: 100%;height: auto!important;}
.swiper-slider .swiper-content {position: relative;padding: 0;width: 100%;}
.swiper-image {display: block;width: 100%;height: auto!important;background-position: center;background-repeat: no-repeat;background-size:cover;}
.swiper-slider .swiper-slide {height: auto!important;}
.swiper-slider .swiper-bg {position: relative;top: auto;left: auto;width: 100%;height: auto!important;}
.swiper-url {display: block;position: absolute;z-index: 10; width: 100%;height: 100%;}
/*
.swiper-slide1 .swiper-image.swiper-imageSP {background-image: url('https://leaders-lounge.achievement.co.jp/wp-content/uploads/2020/03/MV_01_sp.jpg')!important;}
.swiper-slide2 .swiper-image.swiper-imageSP {background-image: url('https://leaders-lounge.achievement.co.jp/wp-content/uploads/2020/03/MV_02_sp.jpg')!important;}
.swiper-slide3 .swiper-image.swiper-imageSP {background-image: url('https://leaders-lounge.achievement.co.jp/wp-content/uploads/2020/03/MV_03_sp.jpg')!important;}
.swiper-slide4 .swiper-image.swiper-imageSP {background-image: url('https://leaders-lounge.achievement.co.jp/wp-content/uploads/2020/03/MV_04_sp.jpg')!important;}
.swiper-slide5 .swiper-image.swiper-imageSP {background-image: url('https://leaders-lounge.achievement.co.jp/wp-content/uploads/2020/03/MV_05_sp.jpg')!important;}
*/
@media only screen and (min-width: 992px) {
.swiper-imageSP {display: none;}
.swiper-imagePC {display: block;}
}
@media only screen and (max-width: 991px) {
.swiper-imageSP {display: block;}
.swiper-imagePC {display: none;}
}
.social-bottom .socialList {justify-content: flex-end;}
.social-bottom .socialList-type10 .socialList__link::after {content: none;}
.social-bottom .socialList-type10 .socialList__item {height: 36px;line-height: 36px;margin: 10px 0 0 5px;}
.social-bottom .socialList .socialList__link {border-bottom: none;border-radius: 50%;}
.social-bottom .socialList .socialList__link.icon-facebook {}
.social-bottom .socialList-type10 .socialList__link {padding: 0;width: 36px;height: 36px;}
.social-bottom .socialList-type10 .socialList__link::before {font-size: 1.8rem;}
/* sitemap */
.sitemap h2{display: none;}
/* featuredList */
.featuredList__list {display: flex;flex-direction: row;flex-wrap: wrap;}
.pickupFeatured .featuredList__item h3 {font-size: 1.4rem;}
.pickupFeatured .featuredList__item h3 a {transition: 0!important;}
@media only screen and (min-width: 992px) {
.pickupFeatured .featuredList__item {width: 32%;margin-right: 2%;}
.pickupFeatured .featuredList__item:nth-child(3n) {margin-right: 0;}
}
@media only screen and (max-width: 991px) {
.pickupFeatured .featuredList__item {width: calc(50% - 7px);margin-right: 14px;}
.pickupFeatured .featuredList__item:nth-child(2n) {margin-right: 0;}
}
/* afRank */
.content .afRank li:before,
.content .afTagBox__star {display: none;}
.content .afRank .afTagBox__header, .widgetAfRank .widgetAfTag__header {padding-left: 0;}
/* balloon */
.content .balloon .balloon__text.balloon__blue {background-color: #eaf6fe;}
.content .balloon .balloon__text-right.balloon__blue:before {border-right-color: #eaf6fe;}
.content .balloon .balloon__text-left.balloon__blue:before {border-left-color: #eaf6fe;}
.content .balloon .balloon__text {padding: 2rem;}
window.WebFontConfig = {
google: {
families: ['Lato:100,300,400,700,900', 'Fjalla+One']
},
active: function () {
sessionStorage.fonts = true;
}
};
(function () {
var wf = document.createElement('script');
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
$(function () {
var $setElm = $('.phrase-secondary');
var cutFigure = '118'; // カットする文字数
var afterTxt = '...'; // 文字カット後に表示するテキスト
$setElm.each(function () {
var textLength = $(this).text().length;
var textTrim = $(this).text().substr(0, (cutFigure))
if (cutFigure < textLength) {
$(this).html(textTrim + afterTxt).css({
visibility: 'visible'
});
} else if (cutFigure >= textLength) {
$(this).css({
visibility: 'visible'
});
}
});
var mvImgs = $(".swiper-imageSP");
for (var i = 0; i < mvImgs.length; i++) {
$(mvImgs[i]).css('background-image', $(mvImgs[i]).css('background-image').replace('.jpg', '_sp.jpg'));
}
var orig = document.referrer;
var desti = location.href;
if (orig.indexOf("featured") > -1) {
if (desti.match(/\/archives\/[0-9]{3,}/) !== null) {
var breds = $(".breadcrumb__list").children("li");
$(breds[1]).children("a").attr("href", "/featured");
$(breds[1]).children("a").text("特集一覧");
$(".current-post-ancestor").removeClass("current-post-ancestor").removeClass("current-menu-parent").removeClass("current-post-parent");
}
} else if (desti.match(/table-of-contents-2/) !== null) {
var breds = $(".breadcrumb__list").children("li");
$(breds[1]).css("display", "none");
$(breds[2]).css("display", "none");
} else if (desti.match(/table-of-contents/) !== null) {
var breds = $(".breadcrumb__list").children("li");
$(breds[1]).css("display", "none");
$(breds[2]).css("display", "none");
} else if (desti.match(/\/archives\/custom\/contents2-/) !== null) {
var breds = $(".breadcrumb__list").children("li");
$(breds[1]).css("display", "none");
$(breds[3]).css("display", "none");
$(breds[2]).children("a").attr("href", "/archives/custom/table-of-contents-2");
$(breds[2]).children("a").text("世界的心臓外科医 直伝!南先生の健康コラム");
} else if (desti.match(/\/archives\/custom\/contents1-/) !== null) {
var breds = $(".breadcrumb__list").children("li");
$(breds[1]).css("display", "none");
$(breds[2]).css("display", "none");
}
});
window.WebFontConfig={google:{families:["Lato:100,300,400,700,900","Fjalla+One"]},active:function(){sessionStorage.fonts=!0}},function(){var e=document.createElement("script");e.src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js",e.type="text/javascript",e.async="true";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(e,s)}(),$(function(){var e=$(".phrase-secondary"),s="118",t="...";e.each(function(){var e=$(this).text().length,a=$(this).text().substr(0,s);e>s?$(this).html(a+t).css({visibility:"visible"}):s>=e&&$(this).css({visibility:"visible"})});for(var a=$(".swiper-imageSP"),r=0;r<a.length;r++)$(a[r]).css("background-image",$(a[r]).css("background-image").replace(".jpg","_sp.jpg"));var n=document.referrer,i=location.href;if(n.indexOf("featured")>-1){if(null!==i.match(/\/archives\/[0-9]{3,}/)){var c=$(".breadcrumb__list").children("li");$(c[1]).children("a").attr("href","/featured"),$(c[1]).children("a").text("特集一覧"),$(".current-post-ancestor").removeClass("current-post-ancestor").removeClass("current-menu-parent").removeClass("current-post-parent")}}else if(null!==i.match(/table-of-contents-2/)){var c=$(".breadcrumb__list").children("li");$(c[1]).css("display","none"),$(c[2]).css("display","none")}else if(null!==i.match(/table-of-contents/)){var c=$(".breadcrumb__list").children("li");$(c[1]).css("display","none"),$(c[2]).css("display","none")}else if(null!==i.match(/\/archives\/custom\/contents2-/)){var c=$(".breadcrumb__list").children("li");$(c[1]).css("display","none"),$(c[3]).css("display","none"),$(c[2]).children("a").attr("href","/archives/custom/table-of-contents-2"),$(c[2]).children("a").text("世界的心臓外科医 直伝!南先生の健康コラム")}else if(null!==i.match(/\/archives\/custom\/contents1-/)){var c=$(".breadcrumb__list").children("li");$(c[1]).css("display","none"),$(c[2]).css("display","none")}});
\ No newline at end of file
<!--l-footerTop--> <!--l-footerTop-->
<div class="l-footerTop"> <div class="l-footerTop">
<?php if(get_option('fit_conFootCta_switch') == 'on' ):?> <?php if(get_option('fit_conFootCta_switch') == 'on' ):?>
<div class="wider"> <div class="wider">
<!--commonCtr--> <!--commonCtr-->
<div class="commonCtr"> <div class="commonCtr">
<div class="commonCtr__bg mask<?php if(get_option('fit_conFootCta_mask') && get_option('fit_conFootCta_mask') != 'off'): ?> mask-<?php echo get_option('fit_conFootCta_mask') ?><?php endif; ?>"> <div class="commonCtr__bg mask<?php if(get_option('fit_conFootCta_mask') && get_option('fit_conFootCta_mask') != 'off'): ?> mask-<?php echo get_option('fit_conFootCta_mask') ?><?php endif; ?>">
<?php if(get_fit_FootCta_bgImg()):?> <?php if(get_fit_FootCta_bgImg()):?>
<?php <?php
$img_date = get_fit_FootCta_bgImg(); $img_date = get_fit_FootCta_bgImg();
$img_id = fit_get_imageId($img_date); $img_id = fit_get_imageId($img_date);
$imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' ); $imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' );
$imgPc = wp_get_attachment_image_src( $img_id, 'icatch1280' ); $imgPc = wp_get_attachment_image_src( $img_id, 'icatch1280' );
?> ?>
<?php if(is_mobile()):?> <?php if(is_mobile()):?>
<img class="commonCtr__bg" <?php echo fit_correct_src(); ?>="<?php echo $imgSp[0]; ?>" alt="><?php echo get_option('fit_conFootCta_title') ?>" width="<?php echo $imgSp[1]; ?>" height="<?php echo $imgSp[2]; ?>" <?php echo fit_dummy_src(); ?>> <img class="commonCtr__bg" <?php echo fit_correct_src(); ?>="<?php echo $imgSp[0]; ?>" alt="><?php echo get_option('fit_conFootCta_title') ?>" width="<?php echo $imgSp[1]; ?>" height="<?php echo $imgSp[2]; ?>" <?php echo fit_dummy_src(); ?>>
<?php else : ?> <?php else : ?>
<img class="commonCtr__bg" <?php echo fit_correct_src(); ?>="<?php echo $imgPc[0]; ?>" alt="><?php echo get_option('fit_conFootCta_title') ?>" width="<?php echo $imgPc[1]; ?>" height="<?php echo $imgPc[2]; ?>" <?php echo fit_dummy_src(); ?>> <img class="commonCtr__bg" <?php echo fit_correct_src(); ?>="<?php echo $imgPc[0]; ?>" alt="><?php echo get_option('fit_conFootCta_title') ?>" width="<?php echo $imgPc[1]; ?>" height="<?php echo $imgPc[2]; ?>" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img class="commonCtr__bg" <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img class="commonCtr__bg" <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img class="commonCtr__bg" <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_1280.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img class="commonCtr__bg" <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_1280.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="container"> <div class="container">
<div class="commonCtr__container"> <div class="commonCtr__container">
<div class="commonCtr__contents"> <div class="commonCtr__contents">
<?php if(get_option('fit_conFootCta_title')):?><h2 class="heading heading-commonCtr u-white"><?php echo get_option('fit_conFootCta_title') ?></h2><?php endif; ?> <?php if(get_option('fit_conFootCta_title')):?><h2 class="heading heading-commonCtr u-white"><?php echo get_option('fit_conFootCta_title') ?></h2><?php endif; ?>
<?php if(get_option('fit_conFootCta_contents')):?> <?php if(get_option('fit_conFootCta_contents')):?>
<p class="phrase phrase-bottom u-white"> <p class="phrase phrase-bottom u-white">
<?php echo get_option('fit_conFootCta_contents') ?> <?php echo get_option('fit_conFootCta_contents') ?>
</p> </p>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_conFootCta_btn') && get_option('fit_conFootCta_url')):?> <?php if(get_option('fit_conFootCta_btn') && get_option('fit_conFootCta_url')):?>
<div class="btn btn-center"> <div class="btn btn-center">
<a class="btn__link btn__link-primary" href="<?php echo get_option('fit_conFootCta_url') ?>"><?php echo get_option('fit_conFootCta_btn') ?></a> <a class="btn__link btn__link-primary" href="<?php echo get_option('fit_conFootCta_url') ?>"><?php echo get_option('fit_conFootCta_btn') ?></a>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php if(get_fit_FootCta_eyecatch()):?> <?php if(get_fit_FootCta_eyecatch()):?>
<?php <?php
$img_date = get_fit_FootCta_eyecatch(); $img_date = get_fit_FootCta_eyecatch();
$img_id = fit_get_imageId($img_date); $img_id = fit_get_imageId($img_date);
$img = wp_get_attachment_image_src( $img_id, 'icatch768' ); $img = wp_get_attachment_image_src( $img_id, 'icatch768' );
?> ?>
<div class="commonCtr__image"> <div class="commonCtr__image">
<img class="" <?php echo fit_correct_src(); ?>="<?php echo $img[0]; ?>" alt="CTR IMG" width="<?php echo $img[1]; ?>" height="<?php echo $img[2]; ?>" <?php echo fit_dummy_src(); ?>> <img class="" <?php echo fit_correct_src(); ?>="<?php echo $img[0]; ?>" alt="CTR IMG" width="<?php echo $img[1]; ?>" height="<?php echo $img[2]; ?>" <?php echo fit_dummy_src(); ?>>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
</div> </div>
<!--commonCtr--> <!--commonCtr-->
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--/l-footerTop--> <!--/l-footerTop-->
<!--l-footer--> <!--l-footer-->
<footer class="l-footer"> <footer class="l-footer">
<div class="wider">
<!--bottomFooter-->
<div class="bottomFooter">
<div class="container">
<?php if ( has_nav_menu( 'footer_menu' ) ) : //メニューセットあり ?>
<nav class="bottomFooter__navi">
<?php wp_nav_menu(array(
'theme_location' => 'footer_menu',
'depth' => 1,
'items_wrap' => '<ul class="bottomFooter__list">%3$s</ul>',
'container' => false,
));?>
</nav>
<?php endif; ?>
<?php if (get_option('fit_conFooter_link') != 'off' ): ?>
<div class="bottomFooter__producer">
<?php bloginfo( 'name' ); ?> by <a class="bottomFooter__link" href="http://fit-jp.com/" target="_blank">FIT-Web Create</a>. Powered by <a class="bottomFooter__link" href="https://wordpress.org/" target="_blank">WordPress</a>.
</div>
<?php endif; ?>
<?php if ( is_active_sidebar('footer_left') || is_active_sidebar('footer_center') || is_active_sidebar('footer_right') ) : ?>
<!--widgetFooter-->
<div class="widgetFooter-right">
<div class="widgetFooter__box">
<?php if ( is_active_sidebar( 'footer_left' ) ) : ?>
<?php dynamic_sidebar( 'footer_left' ); ?>
<?php endif; ?>
</div>
<div class="widgetFooter__box">
<?php if ( is_active_sidebar( 'footer_center' ) ) : ?>
<?php dynamic_sidebar( 'footer_center' ); ?>
<?php endif; ?>
</div>
<div class="widgetFooter__box">
<?php if ( is_active_sidebar( 'footer_right' ) ) : ?>
<?php dynamic_sidebar( 'footer_right' ); ?>
<?php endif; ?>
</div>
</div>
<!--/widgetFooter-->
<div class="bottomFooter__copyright">
<?php if (get_option('fit_conFooter_copyright')): ?>
<?php echo get_option('fit_conFooter_copyright'); ?>
<?php else : ?>
© Copyright <?php echo date_i18n( 'Y' ); ?> <a class="bottomFooter__link" href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>.
<?php endif; ?>
</div>
<?php endif; ?>
<div class="footer-logoLink"><a href="https://achievement.co.jp/" target="_blank" class="bottomFooter-logoLink"><img src="/assets/img/common/logo.png" alt=""></a></div>
<?php $opt = get_option('fit_snsFollow'); ?> <?php $opt = get_option('fit_snsFollow'); ?>
<?php if ( <?php if (
!empty($opt['FBFollowF']) && !empty($opt['FBPage']) || !empty($opt['FBFollowF']) && !empty($opt['FBPage']) ||
!empty($opt['twitterFollowF']) && !empty($opt['twitterId']) || !empty($opt['twitterFollowF']) && !empty($opt['twitterId']) ||
!empty($opt['instaFollowF']) && !empty($opt['insta']) || !empty($opt['instaFollowF']) && !empty($opt['insta']) ||
!empty($opt['googleFollowF']) && !empty($opt['googleUrl']) || !empty($opt['googleFollowF']) && !empty($opt['googleUrl']) ||
!empty($opt['youtubeFollowF']) && !empty($opt['youtubeUrl']) || !empty($opt['youtubeFollowF']) && !empty($opt['youtubeUrl']) ||
!empty($opt['linkedinFollowF']) && !empty($opt['linkedinUrl']) || !empty($opt['linkedinFollowF']) && !empty($opt['linkedinUrl']) ||
!empty($opt['pinterestFollowF']) && !empty($opt['pinterestUrl']) || !empty($opt['pinterestFollowF']) && !empty($opt['pinterestUrl']) ||
!empty($opt['rssFollowF']) !empty($opt['rssFollowF'])
): ):
?> ?>
<div class="wider">
<!--snsFooter--> <!--snsFooter-->
<div class="snsFooter"> <div class="snsFooter">
<div class="container">
<ul class="snsFooter__list"> <ul class="snsFooter__list">
<?php if (!empty($opt['FBFollowF']) && !empty($opt['FBPage']) ):?> <?php if (!empty($opt['FBFollowF']) && !empty($opt['FBPage']) ):?>
<li class="snsFooter__item"><a class="snsFooter__link icon-facebook" href="https://www.facebook.com/<?php echo $opt['FBPage']; ?>"></a></li>
<li class="snsFooter__item"><a class="snsFooter__link icon-facebook" href="https://www.facebook.com/<?php echo $opt['FBPage']; ?>" target="_blank"></a></li>
<?php endif; if (!empty($opt['twitterFollowF']) && !empty($opt['twitterId']) ) :?> <?php endif; if (!empty($opt['twitterFollowF']) && !empty($opt['twitterId']) ) :?>
<li class="snsFooter__item"><a class="snsFooter__link icon-twitter" href="https://twitter.com/<?php echo $opt['twitterId']; ?>"></a></li> <li class="snsFooter__item"><a class="snsFooter__link icon-twitter" href="https://twitter.com/<?php echo $opt['twitterId']; ?>"></a></li>
<?php endif; if (!empty($opt['instaFollowF']) && !empty($opt['insta']) ) :?> <?php endif; if (!empty($opt['instaFollowF']) && !empty($opt['insta']) ) :?>
<li class="snsFooter__item"><a class="snsFooter__link icon-instagram" href="http://instagram.com/<?php echo $opt['insta']; ?>"></a></li> <li class="snsFooter__item"><a class="snsFooter__link icon-instagram" href="http://instagram.com/<?php echo $opt['insta']; ?>"></a></li>
<?php endif; if (!empty($opt['googleFollowF']) && !empty($opt['googleUrl']) ) :?> <?php endif; if (!empty($opt['googleFollowF']) && !empty($opt['googleUrl']) ) :?>
<li class="snsFooter__item"><a class="snsFooter__link icon-google-plus" href="https://plus.google.com/<?php echo $opt['googleUrl']; ?>"></a></li> <li class="snsFooter__item"><a class="snsFooter__link icon-google-plus" href="https://plus.google.com/<?php echo $opt['googleUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['youtubeFollowF']) && !empty($opt['youtubeUrl']) ) :?> <?php endif; if (!empty($opt['youtubeFollowF']) && !empty($opt['youtubeUrl']) ) :?>
<li class="snsFooter__item"><a class="snsFooter__link icon-youtube" href="https://www.youtube.com/channel/<?php echo $opt['youtubeUrl']; ?>"></a></li> <li class="snsFooter__item"><a class="snsFooter__link icon-youtube" href="https://www.youtube.com/channel/<?php echo $opt['youtubeUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['linkedinFollowF']) && !empty($opt['linkedinUrl']) ) :?> <?php endif; if (!empty($opt['linkedinFollowF']) && !empty($opt['linkedinUrl']) ) :?>
<li class="snsFooter__item"><a class="snsFooter__link icon-linkedin" href="http://ca.linkedin.com/in/<?php echo $opt['linkedinUrl']; ?>"></a></li> <li class="snsFooter__item"><a class="snsFooter__link icon-linkedin" href="http://ca.linkedin.com/in/<?php echo $opt['linkedinUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['pinterestFollowF']) && !empty($opt['pinterestUrl']) ) :?> <?php endif; if (!empty($opt['pinterestFollowF']) && !empty($opt['pinterestUrl']) ) :?>
<li class="snsFooter__item"><a class="snsFooter__link icon-pinterest" href="https://www.pinterest.jp/<?php echo $opt['pinterestUrl']; ?>"></a></li> <li class="snsFooter__item"><a class="snsFooter__link icon-pinterest" href="https://www.pinterest.jp/<?php echo $opt['pinterestUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['rssFollowF'])):?> <?php endif; if (!empty($opt['rssFollowF'])):?>
<?php if (!empty($opt['rssUrl'])): ?> <?php if (!empty($opt['rssUrl'])): ?>
<li class="snsFooter__item"><a class="snsFooter__link icon-rss" href="<?php echo $opt['rssUrl']; ?>"></a></li> <li class="snsFooter__item"><a class="snsFooter__link icon-rss" href="<?php echo $opt['rssUrl']; ?>"></a></li>
<?php else : ?> <?php else : ?>
<li class="snsFooter__item"><a class="snsFooter__link icon-rss" href="<?php bloginfo('rss2_url'); ?>"></a></li> <li class="snsFooter__item"><a class="snsFooter__link icon-rss" href="<?php bloginfo('rss2_url'); ?>"></a></li>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
</div> </div>
</div>
<!--/snsFooter--> <!--/snsFooter-->
</div>
<?php endif; ?> <?php endif; ?>
<?php if ( is_active_sidebar('footer_left') || is_active_sidebar('footer_center') || is_active_sidebar('footer_right') ) : ?>
<div class="container divider">
<!--widgetFooter-->
<div class="widgetFooter">
<div class="widgetFooter__box">
<?php if ( is_active_sidebar( 'footer_left' ) ) : ?>
<?php dynamic_sidebar( 'footer_left' ); ?>
<?php endif; ?>
</div>
<div class="widgetFooter__box">
<?php if ( is_active_sidebar( 'footer_center' ) ) : ?>
<?php dynamic_sidebar( 'footer_center' ); ?>
<?php endif; ?>
</div> </div>
<div class="widgetFooter__box"> <a href="#top" class="bottomFooter__topBtn" id="bottomFooter__topBtn"></a>
<?php if ( is_active_sidebar( 'footer_right' ) ) : ?>
<?php dynamic_sidebar( 'footer_right' ); ?>
<?php endif; ?>
</div>
</div> </div>
<!--/widgetFooter-->
</div>
<?php endif; ?>
<!--/bottomFooter-->
<div class="wider">
<!--bottomFooter-->
<div class="bottomFooter">
<div class="container">
<?php if ( has_nav_menu( 'footer_menu' ) ) : //メニューセットあり ?>
<nav class="bottomFooter__navi">
<?php wp_nav_menu(array(
'theme_location' => 'footer_menu',
'depth' => 1,
'items_wrap' => '<ul class="bottomFooter__list">%3$s</ul>',
'container' => false,
));?>
</nav>
<?php endif; ?>
<div class="bottomFooter__copyright">
<?php if (get_option('fit_conFooter_copyright')): ?>
<?php echo get_option('fit_conFooter_copyright'); ?>
<?php else : ?>
© Copyright <?php echo date_i18n( 'Y' ); ?> <a class="bottomFooter__link" href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ); ?></a>.
<?php endif; ?>
</div>
<?php if (get_option('fit_conFooter_link') != 'off' ): ?>
<div class="bottomFooter__producer">
<?php bloginfo( 'name' ); ?> by <a class="bottomFooter__link" href="http://fit-jp.com/" target="_blank">FIT-Web Create</a>. Powered by <a class="bottomFooter__link" href="https://wordpress.org/" target="_blank">WordPress</a>.
</div>
<?php endif; ?>
</div> </div>
<a href="#top" class="bottomFooter__topBtn" id="bottomFooter__topBtn"></a>
</div>
<!--/bottomFooter-->
</div>
<?php if (get_option('fit_conFooterSp_menu') == 'on' ): ?> <?php if (get_option('fit_conFooterSp_menu') == 'on' ): ?>
<div class="controllerFooter<?php if (get_option('fit_conFooterSp_divide') && get_option('fit_conFooterSp_divide') != 'off' ) : ?> controllerFooter-<?php echo get_option('fit_conFooterSp_divide'); ?><?php endif; ?>"> <div class="controllerFooter<?php if (get_option('fit_conFooterSp_divide') && get_option('fit_conFooterSp_divide') != 'off' ) : ?> controllerFooter-<?php echo get_option('fit_conFooterSp_divide'); ?><?php endif; ?>">
<ul class="controllerFooter__list"> <ul class="controllerFooter__list">
<?php if (get_option('fit_conFooterSp_menu_01') != 'free'): ?> <?php if (get_option('fit_conFooterSp_menu_01') != 'free'): ?>
<li class="controllerFooter__item"> <li class="controllerFooter__item">
<a href="<?php echo home_url() ?>"><i class="icon-home"></i>ホーム</a> <a href="<?php echo home_url() ?>"><i class="icon-home"></i>ホーム</a>
</li> </li>
<?php elseif (get_option('fit_conFooterSp_menu_01') == 'free' && get_option('fit_conFooterSp_menu_text01') && get_option('fit_conFooterSp_menu_url01')): ?> <?php elseif (get_option('fit_conFooterSp_menu_01') == 'free' && get_option('fit_conFooterSp_menu_text01') && get_option('fit_conFooterSp_menu_url01')): ?>
<li class="controllerFooter__item"> <li class="controllerFooter__item">
<a href="<?php echo get_option('fit_conFooterSp_menu_url01'); ?>"><i class="<?php echo get_option('fit_conFooterSp_menu_icon01'); ?>"></i><?php echo get_option('fit_conFooterSp_menu_text01'); ?></a> <a href="<?php echo get_option('fit_conFooterSp_menu_url01'); ?>"><i class="<?php echo get_option('fit_conFooterSp_menu_icon01'); ?>"></i><?php echo get_option('fit_conFooterSp_menu_text01'); ?></a>
</li> </li>
<?php endif; ?> <?php endif; ?>
<?php if (get_option('fit_conFooterSp_menu_02') != 'free'): ?> <?php if (get_option('fit_conFooterSp_menu_02') != 'free'): ?>
<li class="controllerFooter__item"> <li class="controllerFooter__item">
<input class="controllerFooter__checkbox" id="controllerFooter-checkbox" type="checkbox"> <input class="controllerFooter__checkbox" id="controllerFooter-checkbox" type="checkbox">
<label class="controllerFooter__link" for="controllerFooter-checkbox"><i class="icon-share2"></i>シェア</label> <label class="controllerFooter__link" for="controllerFooter-checkbox"><i class="icon-share2"></i>シェア</label>
<label class="controllerFooter__unshown" for="controllerFooter-checkbox"></label> <label class="controllerFooter__unshown" for="controllerFooter-checkbox"></label>
<div class="controllerFooter__content"> <div class="controllerFooter__content">
<label class="controllerFooter__close" for="controllerFooter-checkbox"><i class="icon-close"></i></label> <label class="controllerFooter__close" for="controllerFooter-checkbox"><i class="icon-close"></i></label>
<div class="controllerFooter__contentInner"> <div class="controllerFooter__contentInner">
<?php fit_share_btnFooter(); ?> <?php fit_share_btnFooter(); ?>
</div> </div>
</div> </div>
</li> </li>
<?php elseif (get_option('fit_conFooterSp_menu_02') == 'free' && get_option('fit_conFooterSp_menu_text02') && get_option('fit_conFooterSp_menu_url02')): ?> <?php elseif (get_option('fit_conFooterSp_menu_02') == 'free' && get_option('fit_conFooterSp_menu_text02') && get_option('fit_conFooterSp_menu_url02')): ?>
<li class="controllerFooter__item"> <li class="controllerFooter__item">
<a href="<?php echo get_option('fit_conFooterSp_menu_url02'); ?>"><i class="<?php echo get_option('fit_conFooterSp_menu_icon02'); ?>"></i><?php echo get_option('fit_conFooterSp_menu_text02'); ?></a> <a href="<?php echo get_option('fit_conFooterSp_menu_url02'); ?>"><i class="<?php echo get_option('fit_conFooterSp_menu_icon02'); ?>"></i><?php echo get_option('fit_conFooterSp_menu_text02'); ?></a>
</li> </li>
<?php endif; ?> <?php endif; ?>
<?php if (get_option('fit_conFooterSp_menu_03') != 'free'): ?> <?php if (get_option('fit_conFooterSp_menu_03') != 'free'): ?>
<li class="controllerFooter__item"> <li class="controllerFooter__item">
<label class="controllerFooter__menuLabel" for="menuBtn-checkbox"><i class="icon-menu"></i>メニュー</label> <label class="controllerFooter__menuLabel" for="menuBtn-checkbox"><i class="icon-menu"></i>メニュー</label>
</li> </li>
<?php elseif (get_option('fit_conFooterSp_menu_03') == 'free' && get_option('fit_conFooterSp_menu_text03') && get_option('fit_conFooterSp_menu_url03')): ?> <?php elseif (get_option('fit_conFooterSp_menu_03') == 'free' && get_option('fit_conFooterSp_menu_text03') && get_option('fit_conFooterSp_menu_url03')): ?>
<li class="controllerFooter__item"> <li class="controllerFooter__item">
<a href="<?php echo get_option('fit_conFooterSp_menu_url03'); ?>"><i class="<?php echo get_option('fit_conFooterSp_menu_icon03'); ?>"></i><?php echo get_option('fit_conFooterSp_menu_text03'); ?></a> <a href="<?php echo get_option('fit_conFooterSp_menu_url03'); ?>"><i class="<?php echo get_option('fit_conFooterSp_menu_icon03'); ?>"></i><?php echo get_option('fit_conFooterSp_menu_text03'); ?></a>
</li> </li>
<?php endif; ?> <?php endif; ?>
<?php if (get_option('fit_conFooterSp_menu_04') != 'free'): ?> <?php if (get_option('fit_conFooterSp_menu_04') != 'free'): ?>
<li class="controllerFooter__item"> <li class="controllerFooter__item">
<a href="tel:<?php echo get_option('fit_conFooterSp_menu_tel'); ?>" ><i class="icon-phone"></i>電話</a> <a href="tel:<?php echo get_option('fit_conFooterSp_menu_tel'); ?>" ><i class="icon-phone"></i>電話</a>
</li> </li>
<?php elseif (get_option('fit_conFooterSp_menu_04') == 'free' && get_option('fit_conFooterSp_menu_text04') && get_option('fit_conFooterSp_menu_url04')): ?> <?php elseif (get_option('fit_conFooterSp_menu_04') == 'free' && get_option('fit_conFooterSp_menu_text04') && get_option('fit_conFooterSp_menu_url04')): ?>
<li class="controllerFooter__item"> <li class="controllerFooter__item">
<a href="<?php echo get_option('fit_conFooterSp_menu_url04'); ?>"><i class="<?php echo get_option('fit_conFooterSp_menu_icon04'); ?>"></i><?php echo get_option('fit_conFooterSp_menu_text04'); ?></a> <a href="<?php echo get_option('fit_conFooterSp_menu_url04'); ?>"><i class="<?php echo get_option('fit_conFooterSp_menu_icon04'); ?>"></i><?php echo get_option('fit_conFooterSp_menu_text04'); ?></a>
</li> </li>
<?php endif; ?> <?php endif; ?>
<li class="controllerFooter__item"> <li class="controllerFooter__item">
<a href="#top" class="controllerFooter__topBtn"><i class="icon-arrow-up"></i>TOPへ</a> <a href="#top" class="controllerFooter__topBtn"><i class="icon-arrow-up"></i>TOPへ</a>
</li> </li>
</ul> </ul>
</div> </div>
<?php endif; ?> <?php endif; ?>
</footer> </footer>
<!-- /l-footer --> <!-- /l-footer -->
<?php <?php
if (get_option('fit_seoHtml_press')){ if (get_option('fit_seoHtml_press')){
$compress = ob_get_clean(); $compress = ob_get_clean();
$compress = str_replace("\t", '', $compress); $compress = str_replace("\t", '', $compress);
$compress = str_replace("\r", '', $compress); $compress = str_replace("\r", '', $compress);
$compress = str_replace("\n", '', $compress); $compress = str_replace("\n", '', $compress);
$compress = str_replace(array(' ', ' '), '', $compress); $compress = str_replace(array(' ', ' '), '', $compress);
$compress = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $compress ); $compress = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $compress );
$compress = preg_replace('/<!--[\s\S]*?-->/', '', $compress); $compress = preg_replace('/<!--[\s\S]*?-->/', '', $compress);
echo $compress; echo $compress;
} }
?> ?>
<?php wp_footer(); ?> <?php wp_footer(); ?>
<?php //TOPキービジュアル背景動画 <?php //TOPキービジュアル背景動画
if(get_option('fit_homeMainimg_switch') == 'on' && get_option('fit_homeMainimg_mode') == 'movie' && is_front_page()): ?> if(get_option('fit_homeMainimg_switch') == 'on' && get_option('fit_homeMainimg_mode') == 'movie' && is_front_page()): ?>
<script> <script>
jQuery(function($){ jQuery(function($){
if( window.matchMedia('(min-width:768px)').matches ){ if( window.matchMedia('(min-width:768px)').matches ){
$("#bgVideo").YTPlayer(); $("#bgVideo").YTPlayer();
} }
}); });
</script> </script>
<?php endif; ?> <?php endif; ?>
<?php //TOPキービジュアルスライダー <?php //TOPキービジュアルスライダー
if(get_option('fit_homeMainimg_switch') == 'on' && get_option('fit_homeMainimg_mode ') == 'slider' && is_front_page()): ?> if(get_option('fit_homeMainimg_switch') == 'on' && get_option('fit_homeMainimg_mode ') == 'slider' && is_front_page()): ?>
<script> <script>
// swiper設定 // swiper設定
jQuery(function( $ ) { jQuery(function( $ ) {
<?php <?php
$effect = 'slide'; $effect = 'slide';
if (get_option('fit_homeMainimg_slideEffect') != 'slide'){ if (get_option('fit_homeMainimg_slideEffect') != 'slide'){
$effect = get_option('fit_homeMainimg_slideEffect'); $effect = get_option('fit_homeMainimg_slideEffect');
} ?> } ?>
// メインビジュアルスライダー // メインビジュアルスライダー
var swiper = new Swiper('.swiper-slider', { var swiper = new Swiper('.swiper-slider', {
// オプションパラメータ // オプションパラメータ
loop: true, loop: true,
speed: 600, // スライドが切り替わるトランジション時間。 speed: 600, // スライドが切り替わるトランジション時間。
slidesPerView: 1, // 何枚のスライドを表示するか slidesPerView: 1, // 何枚のスライドを表示するか
spaceBetween: 0, // スライド間の余白サイズ(ピクセル) spaceBetween: 0, // スライド間の余白サイズ(ピクセル)
direction: 'horizontal', // スライド方向。 'horizontal'(水平) か 'vertical'(垂直)。effectオプションが 'slide' 以外は無効。 direction: 'horizontal', // スライド方向。 'horizontal'(水平) か 'vertical'(垂直)。effectオプションが 'slide' 以外は無効。
effect: '<?php echo $effect ?>', // "slide", "fade"(フェード), "cube"(キューブ回転), "coverflow"(カバーフロー) または "flip"(平面回転) effect: '<?php echo $effect ?>', // "slide", "fade"(フェード), "cube"(キューブ回転), "coverflow"(カバーフロー) または "flip"(平面回転)
<?php if (get_option('fit_homeMainimg_slideLoop') == 'on'): ?> <?php if (get_option('fit_homeMainimg_slideLoop') == 'on'): ?>
// スライダーの自動再生 // スライダーの自動再生
autoplay: { autoplay: {
<?php <?php
$delay = '3000'; $delay = '3000';
if (get_option('fit_homeMainimg_slideDelay')){ if (get_option('fit_homeMainimg_slideDelay')){
$delay = get_option('fit_homeMainimg_slideDelay'); $delay = get_option('fit_homeMainimg_slideDelay');
} ?> } ?>
delay: '<?php echo $delay ?>', // スライドが切り替わるまでの表示時間(ミリ秒) delay: '<?php echo $delay ?>', // スライドが切り替わるまでの表示時間(ミリ秒)
stopOnLast: false, // 最後のスライドまで表示されたら自動再生を中止するか stopOnLast: false, // 最後のスライドまで表示されたら自動再生を中止するか
disableOnInteraction: true // ユーザーのスワイプ操作を検出したら自動再生を中止するか disableOnInteraction: true // ユーザーのスワイプ操作を検出したら自動再生を中止するか
}, },
<?php endif; ?> <?php endif; ?>
// ページネーションを表示する場合 // ページネーションを表示する場合
pagination: { pagination: {
el: '.swiper-pagination',  // ページネーションを表示するセレクタ el: '.swiper-pagination',  // ページネーションを表示するセレクタ
}, },
// 前後スライドへのナビゲーションを表示する場合 // 前後スライドへのナビゲーションを表示する場合
navigation: { navigation: {
nextEl: '.swiper-button-next', // 次のスライドボタンのセレクタ nextEl: '.swiper-button-next', // 次のスライドボタンのセレクタ
prevEl: '.swiper-button-prev', // 前のスライドボタンのセレクタ prevEl: '.swiper-button-prev', // 前のスライドボタンのセレクタ
}, },
}); });
}); });
</script> </script>
<?php endif; ?> <?php endif; ?>
<?php //TOPカルーセル <?php //TOPカルーセル
if(get_option('fit_homeCarousel_switch') == 'on' && is_front_page()): ?> if(get_option('fit_homeCarousel_switch') == 'on' && is_front_page()): ?>
<script> <script>
jQuery(function( $ ) { jQuery(function( $ ) {
// カルーセル // カルーセル
var carousel = new Swiper ('.swiper-carousel', { var carousel = new Swiper ('.swiper-carousel', {
// オプションパラメータ // オプションパラメータ
loop: true, loop: true,
slidesPerView: 5, slidesPerView: 5,
spaceBetween: 10, spaceBetween: 10,
centeredSlides : true, centeredSlides : true,
autoplay: { autoplay: {
delay: 3000 delay: 3000
}, },
// ページネーションを表示する場合 // ページネーションを表示する場合
pagination: { pagination: {
el: '.swiper-pagination', el: '.swiper-pagination',
}, },
// 前後スライドへのナビゲーションを表示する場合 // 前後スライドへのナビゲーションを表示する場合
navigation: { navigation: {
nextEl: '.swiper-button-next', nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev', prevEl: '.swiper-button-prev',
}, },
// レスポンシブ // レスポンシブ
breakpoints: { breakpoints: {
991: { 991: {
slidesPerView: 4, slidesPerView: 4,
}, },
767: { 767: {
slidesPerView: 2, slidesPerView: 2,
} }
} }
}); });
}); });
</script> </script>
<?php endif; ?> <?php endif; ?>
<?php //レイアウト切替ボタンのcookie処理 <?php //レイアウト切替ボタンのcookie処理
if(get_option('fit_archiveCtl_switch') == 'on' && get_option('fit_archiveCtl_layout') == 'on' && !is_singular()): ?> if(get_option('fit_archiveCtl_switch') == 'on' && get_option('fit_archiveCtl_layout') == 'on' && !is_singular()): ?>
<script> <script>
jQuery(function($){ jQuery(function($){
if (Cookies.get('radioValue')) { if (Cookies.get('radioValue')) {
// クッキーからValueを取得してラジオボタンを選択 // クッキーからValueを取得してラジオボタンを選択
$("input[name='controller__viewRadio']").val([Cookies.get('radioValue')]); $("input[name='controller__viewRadio']").val([Cookies.get('radioValue')]);
} }
$("input[name='controller__viewRadio']:radio").change( function() { $("input[name='controller__viewRadio']:radio").change( function() {
// ラジオボタンのvalueを取得 // ラジオボタンのvalueを取得
var val = $("input:radio[name='controller__viewRadio']:checked").val(); var val = $("input:radio[name='controller__viewRadio']:checked").val();
// 選択結果をクッキーに登録する // 選択結果をクッキーに登録する
Cookies.set('radioValue', val); Cookies.set('radioValue', val);
}); });
}); });
</script> </script>
<?php endif; ?> <?php endif; ?>
<?php //img非同期読み込み <?php //img非同期読み込み
if(get_option('fit_seoImg_lazy') ){ if(get_option('fit_seoImg_lazy') ){
global $is_IE; global $is_IE;
if( is_feed() || is_preview() || is_mobile() || is_admin() || $is_IE ) {} if( is_feed() || is_preview() || is_mobile() || is_admin() || $is_IE ) {}
else{ else{
echo '<script>var layzr = new Layzr();</script>'; echo '<script>var layzr = new Layzr();</script>';
} }
} }
?> ?>
<?php //フェイスブックフォローボタン(この記事が気に入ったら) <?php //フェイスブックフォローボタン(この記事が気に入ったら)
$opt = get_option('fit_snsFollow'); $opt = get_option('fit_snsFollow');
if(is_singular('post') && get_option('fit_postSns_switch') == 'on' && get_option('fit_snsOgp_FBAppId') && $opt['FBPage']): ?> if(is_singular('post') && get_option('fit_postSns_switch') == 'on' && get_option('fit_snsOgp_FBAppId') && $opt['FBPage']): ?>
<div id="fb-root"></div> <div id="fb-root"></div>
<script> <script>
(function(d, s, id) { (function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0]; var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return; if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id; js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v3.0&appId=<?php echo get_option('fit_snsOgp_FBAppId'); ?>&autoLogAppEvents=1'; js.src = 'https://connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v3.0&appId=<?php echo get_option('fit_snsOgp_FBAppId'); ?>&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs); fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk')); }(document, 'script', 'facebook-jssdk'));
</script> </script>
<?php endif; ?> <?php endif; ?>
<?php //ツイッターフォローボタン(この記事が気に入ったら) <?php //ツイッターフォローボタン(この記事が気に入ったら)
$opt = get_option('fit_snsFollow'); $opt = get_option('fit_snsFollow');
if(is_singular('post') && get_option('fit_postSns_switch') == 'on' && $opt['twitterId']): ?> if(is_singular('post') && get_option('fit_postSns_switch') == 'on' && $opt['twitterId']): ?>
<script async src="https://platform.twitter.com/widgets.js"></script> <script async src="https://platform.twitter.com/widgets.js"></script>
<?php endif; ?> <?php endif; ?>
<?php //IE用objectFitイメージ処理 <?php //IE用objectFitイメージ処理
$ua = $_SERVER['HTTP_USER_AGENT']; $ua = $_SERVER['HTTP_USER_AGENT'];
if (strstr($ua, 'Trident') || strstr($ua, 'MSIE')) { if (strstr($ua, 'Trident') || strstr($ua, 'MSIE')) {
echo '<script>objectFitImages();</script>'."\n"; echo '<script>objectFitImages();</script>'."\n";
} }
?> ?>
<?php //追従サイドバー <?php //追従サイドバー
if(is_active_sidebar( 'sidebar-sticky' )): ?> if(is_active_sidebar( 'sidebar-sticky' )): ?>
<script> <script>
jQuery(function($) { jQuery(function($) {
$('.widgetSticky').fitSidebar({ $('.widgetSticky').fitSidebar({
wrapper : '.l-wrapper', wrapper : '.l-wrapper',
responsiveWidth : 768 responsiveWidth : 768
}); });
}); });
</script> </script>
<?php endif; ?> <?php endif; ?>
<script> <script>
// ページの先頭へボタン // ページの先頭へボタン
jQuery(function(a) { jQuery(function(a) {
a("#bottomFooter__topBtn").hide(); a("#bottomFooter__topBtn").hide();
a(window).on("scroll", function() { a(window).on("scroll", function() {
if (a(this).scrollTop() > 100) { if (a(this).scrollTop() > 100) {
a("#bottomFooter__topBtn").fadeIn("fast") a("#bottomFooter__topBtn").fadeIn("fast")
} else { } else {
a("#bottomFooter__topBtn").fadeOut("fast") a("#bottomFooter__topBtn").fadeOut("fast")
} }
scrollHeight = a(document).height(); scrollHeight = a(document).height();
scrollPosition = a(window).height() + a(window).scrollTop(); scrollPosition = a(window).height() + a(window).scrollTop();
footHeight = a(".bottomFooter").innerHeight(); footHeight = a(".bottomFooter").innerHeight();
if (scrollHeight - scrollPosition <= footHeight) { if (scrollHeight - scrollPosition <= footHeight) {
a("#bottomFooter__topBtn").css({ a("#bottomFooter__topBtn").css({
position: "absolute", position: "absolute",
bottom: footHeight - 40 bottom: footHeight - 40
}) })
} else { } else {
a("#bottomFooter__topBtn").css({ a("#bottomFooter__topBtn").css({
position: "fixed", position: "fixed",
bottom: 0 bottom: 0
}) })
} }
}); });
a("#bottomFooter__topBtn").click(function() { a("#bottomFooter__topBtn").click(function() {
a("body,html").animate({ a("body,html").animate({
scrollTop: 0 scrollTop: 0
}, 400); }, 400);
return false return false
}); });
a(".controllerFooter__topBtn").click(function() { a(".controllerFooter__topBtn").click(function() {
a("body,html").animate({ a("body,html").animate({
scrollTop: 0 scrollTop: 0
}, 400); }, 400);
return false return false
}) })
}); });
</script> </script>
<?php if (get_option('fit_bsAdvanced_footer')): ?> <?php if (get_option('fit_bsAdvanced_footer')): ?>
<?php echo get_option('fit_bsAdvanced_footer'); ?> <?php echo get_option('fit_bsAdvanced_footer'); ?>
<?php endif; ?> <?php endif; ?>
</body> </body>
</html> </html>
<?php get_header(); ?> <?php get_header(); ?>
<!--l-headerBottom--> <!--l-headerBottom-->
<div class="l-headerBottom"> <div class="l-headerBottom">
<?php if (!is_paged() && get_query_var('sort') == '') : ?> <?php if (!is_paged() && get_query_var('sort') == '') : ?>
<?php if(is_mobile()): ?> <?php if(is_mobile()): ?>
<?php if(get_option('fit_homeMainimg_switch') == 'on' && !get_option('fit_homeMainimg_switchSp')): ?> <?php if(get_option('fit_homeMainimg_switch') == 'on' && !get_option('fit_homeMainimg_switchSp')): ?>
<?php fit_main_visual(); ?> <?php fit_main_visual(); ?>
<?php endif; ?> <?php endif; ?>
<?php else: ?> <?php else: ?>
<?php if(get_option('fit_homeMainimg_switch') == 'on'): ?> <?php if(get_option('fit_homeMainimg_switch') == 'on'): ?>
<?php fit_main_visual(); ?> <?php fit_main_visual(); ?>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_homeCarousel_switch') == 'on'): ?> <?php if(get_option('fit_homeCarousel_switch') == 'on'): ?>
<div class="container divider"> <div class="container divider">
<!--carousel--> <!--carousel-->
<div class="swiper-container swiper-carousel"> <div class="swiper-container swiper-carousel">
<?php <?php
$conditions = ''; $conditions = '';
$id_list = ''; $id_list = '';
$page = '5'; $page = '5';
if (get_option('fit_homeCarousel_conditions')){ if (get_option('fit_homeCarousel_conditions')){
$conditions = get_option('fit_homeCarousel_conditions'); $conditions = get_option('fit_homeCarousel_conditions');
} }
if (get_option('fit_homeCarousel_id')){ if (get_option('fit_homeCarousel_id')){
$id_list = explode(',', get_option('fit_homeCarousel_id') ); $id_list = explode(',', get_option('fit_homeCarousel_id') );
} }
if (get_option('fit_homeCarousel_page')){ if (get_option('fit_homeCarousel_page')){
$page = get_option('fit_homeCarousel_page'); $page = get_option('fit_homeCarousel_page');
} }
$args = array( $args = array(
'orderby' => 'rand', 'orderby' => 'rand',
'ignore_sticky_posts' => '1', 'ignore_sticky_posts' => '1',
'posts_per_page' => $page, 'posts_per_page' => $page,
$conditions => $id_list, $conditions => $id_list,
); );
$my_query = new WP_Query( $args );?> $my_query = new WP_Query( $args );?>
<div class="swiper-wrapper"> <div class="swiper-wrapper">
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?> <?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<div class="swiper-slide"> <div class="swiper-slide">
<div class="eyecatch<?php if(get_option('fit_homeCarousel_aspect') && get_option('fit_homeCarousel_aspect') != 'off'): ?> <?php echo get_option('fit_homeCarousel_aspect');?><?php endif; ?>"> <div class="eyecatch<?php if(get_option('fit_homeCarousel_aspect') && get_option('fit_homeCarousel_aspect') != 'off'): ?> <?php echo get_option('fit_homeCarousel_aspect');?><?php endif; ?>">
<?php <?php
$cat = get_the_category(); $cat = get_the_category();
if(!empty($cat[0])){ if(!empty($cat[0])){
echo '<span class="eyecatch__cat cc-bg'.$cat[0]->term_id.'">'; echo '<span class="eyecatch__cat cc-bg'.$cat[0]->term_id.'">';
echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>'; echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>';
echo '</span>'; echo '</span>';
} }
?> ?>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail()): <?php if ( has_post_thumbnail()):
$id = get_post_thumbnail_id(); $id = get_post_thumbnail_id();
$img = wp_get_attachment_image_src( $id , 'icatch375' ); $img = wp_get_attachment_image_src( $id , 'icatch375' );
?> ?>
<img src="<?php echo $img[0]; ?>" alt="<?php echo get_the_title(); ?>">
<!--<img src="<?php echo $img[0]; ?>" alt="<?php echo get_the_title(); ?>">-->
<img src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="">
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img src="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE"> <img src="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE">
<?php else: ?> <?php else: ?>
<img src="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE"> <img src="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE">
<?php endif; ?> <?php endif; ?>
</a> </a>
</div> </div>
<h2 class="heading heading-carousel"> <h2 class="heading heading-carousel">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2> </h2>
</div> </div>
<?php endwhile; wp_reset_postdata(); ?> <?php endwhile; wp_reset_postdata(); ?>
</div> </div>
<!-- if pagination --> <!-- if pagination -->
<div class="swiper-pagination swiper-paginationBottom0"></div> <div class="swiper-pagination swiper-paginationBottom0"></div>
<!-- if navigation --> <!-- if navigation -->
<div class="swiper-button-prev"></div> <div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div> <div class="swiper-button-next"></div>
</div> </div>
<!--/carousel--> <!--/carousel-->
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php <?php
if(get_option('fit_homePickup3_switch') == 'on' && get_option('fit_homePickup3_title')): if(get_option('fit_homePickup3_switch') == 'on' && get_option('fit_homePickup3_title')):
$args = array( $args = array(
'numberposts' => '3', 'numberposts' => '3',
'post_type' => 'post', 'post_type' => 'post',
'post_status' => 'publish' 'post_status' => 'publish'
); );
$new_meta = wp_get_recent_posts($args); $new_meta = wp_get_recent_posts($args);
$post_id01 = $new_meta[0]['ID']; $post_id01 = $new_meta[0]['ID'];
$post_id02 = $new_meta[1]['ID']; $post_id02 = $new_meta[1]['ID'];
$post_id03 = $new_meta[2]['ID']; $post_id03 = $new_meta[2]['ID'];
if ( get_option('fit_homePickup3_id1') ) { if ( get_option('fit_homePickup3_id1') ) {
$post_id01 = get_option('fit_homePickup3_id1'); $post_id01 = get_option('fit_homePickup3_id1');
} }
if ( get_option('fit_homePickup3_id2') ) { if ( get_option('fit_homePickup3_id2') ) {
$post_id02 = get_option('fit_homePickup3_id2'); $post_id02 = get_option('fit_homePickup3_id2');
} }
if ( get_option('fit_homePickup3_id3') ) { if ( get_option('fit_homePickup3_id3') ) {
$post_id03 = get_option('fit_homePickup3_id3'); $post_id03 = get_option('fit_homePickup3_id3');
} }
$cat_01 = get_the_category($post_id01); $cat_01 = get_the_category($post_id01);
$cat_02 = get_the_category($post_id02); $cat_02 = get_the_category($post_id02);
$cat_03 = get_the_category($post_id03); $cat_03 = get_the_category($post_id03);
?> ?>
<div class="wider dividerBottom"> <div class="wider dividerBottom">
<!--pickup3--> <!--pickup3-->
<div class="pickup3"> <div class="pickup3">
<div class="pickup3__bg mask<?php if(get_option('fit_homePickup3_mask') && get_option('fit_homePickup3_mask') != 'off' ): ?> mask-<?php echo get_option('fit_homePickup3_mask') ?><?php endif; ?>">
<?php if ( has_post_thumbnail($post_id01)): ?>
<?php if ( is_mobile()): ?>
<?php echo get_the_post_thumbnail( $post_id01, 'icatch768' ); ?>
<?php else: ?>
<?php echo get_the_post_thumbnail( $post_id01, 'icatch1280' ); ?>
<?php endif; ?>
<?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?>
</div>
<div class="container"> <div class="container">
<h2 class="heading heading-main u-white <?php if(get_option('fit_homePickup3_bold') ): ?>u-bold<?php endif; ?>">
<h2 class="heading heading-main <?php if(get_option('fit_homePickup3_bold') ): ?>u-bold<?php endif; ?>">
<?php if(get_option('fit_homePickup3_icon') ): ?><i class="<?php echo get_option('fit_homePickup3_icon') ?>"></i><?php endif; ?> <?php if(get_option('fit_homePickup3_icon') ): ?><i class="<?php echo get_option('fit_homePickup3_icon') ?>"></i><?php endif; ?>
<?php echo get_option('fit_homePickup3_title') ?> <?php echo get_option('fit_homePickup3_title') ?>
<?php if(get_option('fit_homePickup3_sub') ): ?><span><?php echo get_option('fit_homePickup3_sub') ?></span><?php endif; ?> <?php if(get_option('fit_homePickup3_sub') ): ?><span><?php echo get_option('fit_homePickup3_sub') ?></span><?php endif; ?>
</h2> </h2>
<div class="pickup3__container"> <div class="pickup3__container">
<div class="pickup3__item pickup3__item-first cc-bg<?php echo $cat_01[0]->term_id; ?>"> <div class="pickup3__item pickup3__item-first cc-bg<?php echo $cat_01[0]->term_id; ?>">
<div class="eyecatch<?php if(get_option('fit_homePickup3_aspect') && get_option('fit_homePickup3_aspect') != 'off'): ?> <?php echo get_option('fit_homePickup3_aspect');?><?php endif; ?>"> <div class="eyecatch<?php if(get_option('fit_homePickup3_aspect') && get_option('fit_homePickup3_aspect') != 'off'): ?> <?php echo get_option('fit_homePickup3_aspect');?><?php endif; ?>">
<?php
echo '<span class="eyecatch__cat cc-bg'.$cat_01[0]->term_id.'">';
echo '<a href="' . get_category_link( $cat_01[0]->term_id ) . '">' . $cat_01[0]->cat_name . '</a>';
echo '</span>';
?>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($post_id01); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($post_id01); ?>">
<?php if ( has_post_thumbnail($post_id01)): ?> <?php if ( has_post_thumbnail($post_id01)): ?>
<?php echo get_the_post_thumbnail( $post_id01, 'icatch768' ); ?> <?php echo get_the_post_thumbnail( $post_id01, 'icatch768' ); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</a> </a>
</div> </div>
<h3 class="heading heading-pickup3"> <h3 class="heading heading-pickup3">
<a href="<?php echo get_permalink($post_id01); ?>"><?php echo get_post($post_id01)->post_title; ?></a> <a href="<?php echo get_permalink($post_id01); ?>"><?php echo get_post($post_id01)->post_title; ?></a>
</h3> </h3>
</div> </div>
<div class="pickup3__box"> <div class="pickup3__box">
<div class="pickup3__item pickup3__item-second cc-bg<?php echo $cat_02[0]->term_id; ?>"> <div class="pickup3__item pickup3__item-second cc-bg<?php echo $cat_02[0]->term_id; ?>">
<div class="eyecatch<?php if(get_option('fit_homePickup3_aspect') && get_option('fit_homePickup3_aspect') != 'off'): ?> <?php echo get_option('fit_homePickup3_aspect');?><?php endif; ?>"> <div class="eyecatch<?php if(get_option('fit_homePickup3_aspect') && get_option('fit_homePickup3_aspect') != 'off'): ?> <?php echo get_option('fit_homePickup3_aspect');?><?php endif; ?>">
<?php
echo '<span class="eyecatch__cat cc-bg'.$cat_02[0]->term_id.'">';
echo '<a href="' . get_category_link( $cat_02[0]->term_id ) . '">' . $cat_02[0]->cat_name . '</a>';
echo '</span>';
?>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($post_id02); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($post_id02); ?>">
<?php if ( has_post_thumbnail($post_id02)): ?> <?php if ( has_post_thumbnail($post_id02)): ?>
<?php echo get_the_post_thumbnail( $post_id02, 'icatch375' ); ?> <?php echo get_the_post_thumbnail( $post_id02, 'icatch375' ); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</a> </a>
</div> </div>
<h3 class="heading heading-pickup3"> <h3 class="heading heading-pickup3">
<a href="<?php echo get_permalink($post_id02); ?>"><?php echo get_post($post_id02)->post_title; ?></a> <a href="<?php echo get_permalink($post_id02); ?>"><?php echo get_post($post_id02)->post_title; ?></a>
</h3> </h3>
</div> </div>
<div class="pickup3__item pickup3__item-third cc-bg<?php echo $cat_03[0]->term_id; ?>"> <div class="pickup3__item pickup3__item-third cc-bg<?php echo $cat_03[0]->term_id; ?>">
<div class="eyecatch<?php if(get_option('fit_homePickup3_aspect') && get_option('fit_homePickup3_aspect') != 'off'): ?> <?php echo get_option('fit_homePickup3_aspect');?><?php endif; ?>"> <div class="eyecatch<?php if(get_option('fit_homePickup3_aspect') && get_option('fit_homePickup3_aspect') != 'off'): ?> <?php echo get_option('fit_homePickup3_aspect');?><?php endif; ?>">
<?php
echo '<span class="eyecatch__cat cc-bg'.$cat_03[0]->term_id.'">';
echo '<a href="' . get_category_link( $cat_03[0]->term_id ) . '">' . $cat_03[0]->cat_name . '</a>';
echo '</span>';
?>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($post_id03); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($post_id03); ?>">
<?php if ( has_post_thumbnail($post_id03)): ?> <?php if ( has_post_thumbnail($post_id03)): ?>
<?php echo get_the_post_thumbnail( $post_id03, 'icatch375' ); ?> <?php echo get_the_post_thumbnail( $post_id03, 'icatch375' ); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</a> </a>
</div> </div>
<h3 class="heading heading-pickup3"> <h3 class="heading heading-pickup3">
<a href="<?php echo get_permalink($post_id03); ?>"><?php echo get_post($post_id03)->post_title; ?></a> <a href="<?php echo get_permalink($post_id03); ?>"><?php echo get_post($post_id03)->post_title; ?></a>
</h3> </h3>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!--/pickup3--> <!--/pickup3-->
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--l-headerBottom--> <!--l-headerBottom-->
<!--l-wrapper--> <!--l-wrapper-->
<div class="l-wrapper">
<div class="l-wrapper front-page-wrapper">
<!--l-main--> <!--l-main-->
<?php <?php
//フレーム設定 //フレーム設定
$frame = ''; $frame = '';
if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){ if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){
$frame = ' '.get_option('fit_conMain_frame'); $frame = ' '.get_option('fit_conMain_frame');
} }
//ページ横幅のオプション設定 //ページ横幅のオプション設定
$width_page = ''; $width_page = '';
if (get_option('fit_pageLayout_width') && get_option('fit_pageLayout_width') != 'off'){$width_page = get_option('fit_pageLayout_width');} if (get_option('fit_pageLayout_width') && get_option('fit_pageLayout_width') != 'off'){$width_page = get_option('fit_pageLayout_width');}
//アーカイブ横幅のオプション設定 //アーカイブ横幅のオプション設定
$width_archive = ''; $width_archive = '';
if (get_option('fit_archiveLayout_width') && get_option('fit_archiveLayout_width') != 'off'){$width_archive = get_option('fit_archiveLayout_width'); } if (get_option('fit_archiveLayout_width') && get_option('fit_archiveLayout_width') != 'off'){$width_archive = get_option('fit_archiveLayout_width'); }
//レイアウト設定 //レイアウト設定
$layout = ''; $layout = '';
if (get_option('page_on_front')){//フロント固定ページ時 if (get_option('page_on_front')){//フロント固定ページ時
if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ){ if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ){
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '1' ){$layout = ' l-main-wide'.$width_page;} if ( get_post_meta(get_the_ID(), 'column_layout', true) == '1' ){$layout = ' l-main-wide'.$width_page;}
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';}
} }
else{ else{
if ( get_option('fit_pageLayout_column') == '1' ){$layout = ' l-main-wide'.$width_page;} if ( get_option('fit_pageLayout_column') == '1' ){$layout = ' l-main-wide'.$width_page;}
if ( get_option('fit_pageLayout_column') != '1' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_option('fit_pageLayout_column') != '1' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';}
} }
}else{//フロントアーカイブ時 }else{//フロントアーカイブ時
if ( get_option('fit_archiveLayout_column') == '1' ){$layout = ' l-main-wide'.$width_archive;} if ( get_option('fit_archiveLayout_column') == '1' ){$layout = ' l-main-wide'.$width_archive;}
if ( get_option('fit_archiveLayout_column') != '1' && get_option('fit_archiveLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_option('fit_archiveLayout_column') != '1' && get_option('fit_archiveLayout_side') == 'left' ){$layout = ' l-main-right';}
} }
?> ?>
<main class="l-main<?php echo $frame.$layout; ?>">
<main class="l-main<?php echo $frame.$layout; ?> ">
<?php if ( is_active_sidebar('home_top') && !is_paged() && get_query_var('sort') == '' ) : ?> <?php if ( is_active_sidebar('home_top') && !is_paged() && get_query_var('sort') == '' ) : ?>
<!--home_top_widget--> <!--home_top_widget-->
<div class="dividerBottom"> <div class="dividerBottom">
<?php dynamic_sidebar('home_top'); ?> <?php dynamic_sidebar('home_top'); ?>
</div> </div>
<!--/home_top_widget--> <!--/home_top_widget-->
<?php endif; ?> <?php endif; ?>
<div class="dividerBottom"> <div class="dividerBottom">
<?php if (get_option('page_on_front')) : //フロント固定 ?> <?php if (get_option('page_on_front')) : //フロント固定 ?>
<!--page--> <!--page-->
<div class="page<?php if (get_option('fit_pageStyle_frame') && get_option('fit_pageStyle_frame') != 'off' ):?> <?php echo get_option('fit_pageStyle_frame')?><?php endif; ?>"> <div class="page<?php if (get_option('fit_pageStyle_frame') && get_option('fit_pageStyle_frame') != 'off' ):?> <?php echo get_option('fit_pageStyle_frame')?><?php endif; ?>">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section class="content<?php fit_content_class(); ?>"> <section class="content<?php fit_content_class(); ?>">
<?php the_content(); ?> <?php the_content(); ?>
</section> </section>
<?php endwhile; endif; ?> <?php endwhile; endif; ?>
</div> </div>
<!--/page--> <!--/page-->
<?php else: //フロントアーカイブ ?> <?php else: //フロントアーカイブ ?>
<!--controller--> <!--controller-->
<?php fit_archive_controller() ?> <?php fit_archive_controller() ?>
<!--/controller--> <!--/controller-->
<?php if (have_posts()) : $count = 1; ?> <?php if (have_posts()) : $count = 1; ?>
<!--archive--> <!--archive-->
<h2 class="heading heading-secondary heading-main-archive">新着記事</h2>
<div class="archive"> <div class="archive">
<?php while (have_posts()) : the_post(); ?> <?php while (have_posts()) : the_post(); ?>
<?php get_template_part('loop');?> <?php get_template_part('loop');?>
<?php <?php
if(get_option('fit_adInfeed_first')){ if(get_option('fit_adInfeed_first')){
if(!is_paged()){ if(!is_paged()){
$number1 = '1'; $number1 = '1';
if(get_option('fit_adInfeed_number')){$number1 = get_option('fit_adInfeed_number');} if(get_option('fit_adInfeed_number')){$number1 = get_option('fit_adInfeed_number');}
if($count == $number1){ echo fit_infeed(); } if($count == $number1){ echo fit_infeed(); }
$number2 = ''; $number2 = '';
if(get_option('fit_adInfeed_number2')){$number2 = get_option('fit_adInfeed_number2');} if(get_option('fit_adInfeed_number2')){$number2 = get_option('fit_adInfeed_number2');}
if($count == $number2){ echo fit_infeed();} if($count == $number2){ echo fit_infeed();}
} }
} }
else{ else{
$number1 = '1'; $number1 = '1';
if(get_option('fit_adInfeed_number')){$number1 = get_option('fit_adInfeed_number');} if(get_option('fit_adInfeed_number')){$number1 = get_option('fit_adInfeed_number');}
if($count == $number1){ echo fit_infeed(); } if($count == $number1){ echo fit_infeed(); }
$number2 = ''; $number2 = '';
if(get_option('fit_adInfeed_number2')){$number2 = get_option('fit_adInfeed_number2');} if(get_option('fit_adInfeed_number2')){$number2 = get_option('fit_adInfeed_number2');}
if($count == $number2){ echo fit_infeed();} if($count == $number2){ echo fit_infeed();}
} }
$count = $count + 1; $count = $count + 1;
?> ?>
<?php endwhile; ?> <?php endwhile; ?>
</div> </div>
<!--/archive--> <!--/archive-->
<?php else : ?> <?php else : ?>
<!--archive--> <!--archive-->
<div class="archive"> <div class="archive">
<div class="archive__item archive__item-none<?php if (get_option('fit_archiveList_frame') && get_option('fit_archiveList_frame') != 'off' ):?> <?php echo get_option('fit_archiveList_frame')?><?php endif; ?>"> <div class="archive__item archive__item-none<?php if (get_option('fit_archiveList_frame') && get_option('fit_archiveList_frame') != 'off' ):?> <?php echo get_option('fit_archiveList_frame')?><?php endif; ?>">
<p class="phrase phrase-primary">投稿が1件も見つかりませんでした。</p> <p class="phrase phrase-primary">投稿が1件も見つかりませんでした。</p>
</div> </div>
</div> </div>
<!--/archive--> <!--/archive-->
<?php endif; ?> <?php endif; ?>
<?php endif; //フロント分岐end ?> <?php endif; //フロント分岐end ?>
<!--pager--> <!--pager-->
<?php if ( function_exists( 'fit_pagination' ) ) {fit_pagination( $wp_query->max_num_pages );} ?> <?php if ( function_exists( 'fit_pagination' ) ) {fit_pagination( $wp_query->max_num_pages );} ?>
<!--/pager--> <!--/pager-->
</div> </div>
<?php if (!is_paged() && get_query_var('sort') == '' && get_option('fit_custBasis_setting') == 'on' && get_option('fit_custTop_switch') == 'on' ) : ?> <?php if (!is_paged() && get_query_var('sort') == '' && get_option('fit_custBasis_setting') == 'on' && get_option('fit_custTop_switch') == 'on' ) : ?>
<div class="dividerBottom"> <div class="dividerBottom">
<div class="archiveHead"> <div class="archiveHead">
<div class="archiveHead__contents"> <div class="archiveHead__contents">
<h2 class="heading heading-main <?php if(get_option('fit_custTop_bold') ): ?>u-bold<?php endif; ?>"> <h2 class="heading heading-main <?php if(get_option('fit_custTop_bold') ): ?>u-bold<?php endif; ?>">
<?php if(get_option('fit_custTop_icon') ): ?><i class="<?php echo get_option('fit_custTop_icon') ?>"></i><?php endif; ?> <?php if(get_option('fit_custTop_icon') ): ?><i class="<?php echo get_option('fit_custTop_icon') ?>"></i><?php endif; ?>
<?php if(get_option('fit_custTop_title') ): ?><?php echo get_option('fit_custTop_title') ?><?php else: ?><?php echo get_post_type_object('custom')->labels->singular_name; ?><?php endif; ?> <?php if(get_option('fit_custTop_title') ): ?><?php echo get_option('fit_custTop_title') ?><?php else: ?><?php echo get_post_type_object('custom')->labels->singular_name; ?><?php endif; ?>
<?php if(get_option('fit_custTop_sub') ): ?><span><?php echo get_option('fit_custTop_sub') ?></span><?php endif; ?> <?php if(get_option('fit_custTop_sub') ): ?><span><?php echo get_option('fit_custTop_sub') ?></span><?php endif; ?>
</h2> </h2>
</div> </div>
</div> </div>
<!--custom--> <!--custom-->
<div class="custom<?php if (get_option('fit_custList_frame') && get_option('fit_custList_frame') != 'off' ):?> <?php echo get_option('fit_custList_frame')?><?php endif; ?>"> <div class="custom<?php if (get_option('fit_custList_frame') && get_option('fit_custList_frame') != 'off' ):?> <?php echo get_option('fit_custList_frame')?><?php endif; ?>">
<?php <?php
$number = '5'; $number = '5';
if(get_option('fit_custTop_number') ){ if(get_option('fit_custTop_number') ){
$number = get_option('fit_custTop_number'); $number = get_option('fit_custTop_number');
} }
$args = array( $args = array(
'posts_per_page' => $number, 'posts_per_page' => $number,
'post_type' => 'custom', 'post_type' => 'custom',
); );
$my_query = new WP_Query( $args ); $my_query = new WP_Query( $args );
?> ?>
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?> <?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<div class="custom__item<?php if(get_option('fit_custList_style') && get_option('fit_custList_style') != 'off' ): ?> custom__item-<?php echo get_option('fit_custList_style') ?><?php endif; ?>"> <div class="custom__item<?php if(get_option('fit_custList_style') && get_option('fit_custList_style') != 'off' ): ?> custom__item-<?php echo get_option('fit_custList_style') ?><?php endif; ?>">
<div class="custom__data"> <div class="custom__data">
<span class="custom__day"><?php the_time(get_option('date_format')); ?></span> <span class="custom__day"><?php the_time(get_option('date_format')); ?></span>
<?php <?php
if(get_option('fit_custBasis_category') == 'on' ){ if(get_option('fit_custBasis_category') == 'on' ){
$cat = get_the_terms( $post->ID, 'custom_category' ); $cat = get_the_terms( $post->ID, 'custom_category' );
if ( $cat[0] ) { if ( $cat[0] ) {
echo '<span class="custom__cat">'; echo '<span class="custom__cat">';
echo '<a href="' . get_term_link( $cat[0]->term_id ) . '">' . $cat[0]->name . '</a>'; echo '<a href="' . get_term_link( $cat[0]->term_id ) . '">' . $cat[0]->name . '</a>';
echo '</span>'; echo '</span>';
} }
} }
?> ?>
</div> </div>
<h2 class="heading heading-custom"> <h2 class="heading heading-custom">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2> </h2>
</div> </div>
<?php endwhile; wp_reset_postdata(); ?> <?php endwhile; wp_reset_postdata(); ?>
<div class="btn btn-right"> <div class="btn btn-right">
<a class="btn__link btn__link-normal" href="<?php echo get_post_type_archive_link( 'custom' ); ?>"> <a class="btn__link btn__link-normal" href="<?php echo get_post_type_archive_link( 'custom' ); ?>">
<?php if(get_option('fit_custTop_btn') ): ?> <?php if(get_option('fit_custTop_btn') ): ?>
<?php echo get_option('fit_custTop_btn') ?> <?php echo get_option('fit_custTop_btn') ?>
<?php else: ?> <?php else: ?>
一覧へ 一覧へ
<?php endif; ?> <?php endif; ?>
</a> </a>
</div> </div>
</div> </div>
<!--/custom--> <!--/custom-->
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if ( is_active_sidebar('home_bottom') && !is_paged() && get_query_var('sort') == '' ) : ?> <?php if ( is_active_sidebar('home_bottom') && !is_paged() && get_query_var('sort') == '' ) : ?>
<!--home_bottom_widget--> <!--home_bottom_widget-->
<div class="dividerBottom"> <div class="dividerBottom">
<?php dynamic_sidebar('home_bottom'); ?> <?php dynamic_sidebar('home_bottom'); ?>
</div> </div>
<!--/home_bottom_widget--> <!--/home_bottom_widget-->
<?php endif; ?> <?php endif; ?>
</main> </main>
<!--/l-main--> <!--/l-main-->
<?php if (get_option('page_on_front')) : //フロント固定 ?> <?php if (get_option('page_on_front')) : //フロント固定 ?>
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ):?> <?php if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ):?>
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' ):?> <?php if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
<?php else:?> <?php else:?>
<?php if ( get_option('fit_pageLayout_column') != '1' ):?> <?php if ( get_option('fit_pageLayout_column') != '1' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php elseif (!get_option('page_on_front')) : //フロントアーカイブ ?> <?php elseif (!get_option('page_on_front')) : //フロントアーカイブ ?>
<?php if ( get_option('fit_archiveLayout_column') != '1' ):?> <?php if ( get_option('fit_archiveLayout_column') != '1' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
<?php endif; //フロント分岐end ?> <?php endif; //フロント分岐end ?>
</div> </div>
<!--/l-wrapper--> <!--/l-wrapper-->
<!--l-footerTop--> <!--l-footerTop-->
<div class="l-footerTop"> <div class="l-footerTop">
<?php if (!is_paged() && get_query_var('sort') == '') : ?> <?php if (!is_paged() && get_query_var('sort') == '') : ?>
<?php if(get_option('fit_homeRank_switch') == 'on' && get_option('fit_homeRank_title')):?> <?php if(get_option('fit_homeRank_switch') == 'on' && get_option('fit_homeRank_title')):?>
<div class="wider dividerBottom"> <div class="wider dividerBottom">
<!--rankingBox--> <!--rankingBox-->
<div class="rankingBox"> <div class="rankingBox">
<div class="rankingBox__bg"></div> <div class="rankingBox__bg"></div>
<div class="container"> <div class="container">
<h2 class="heading heading-main u-white <?php if(get_option('fit_homeRank_bold') ): ?>u-bold<?php endif; ?>"> <h2 class="heading heading-main u-white <?php if(get_option('fit_homeRank_bold') ): ?>u-bold<?php endif; ?>">
<?php if(get_option('fit_homeRank_icon') ): ?><i class="<?php echo get_option('fit_homeRank_icon') ?>"></i><?php endif; ?> <?php if(get_option('fit_homeRank_icon') ): ?><i class="<?php echo get_option('fit_homeRank_icon') ?>"></i><?php endif; ?>
<?php echo get_option('fit_homeRank_title') ?> <?php echo get_option('fit_homeRank_title') ?>
<?php if(get_option('fit_homeRank_sub') ): ?><span><?php echo get_option('fit_homeRank_sub') ?></span><?php endif; ?> <?php if(get_option('fit_homeRank_sub') ): ?><span><?php echo get_option('fit_homeRank_sub') ?></span><?php endif; ?>
</h2> </h2>
<div class="rankingBox__inner"> <div class="rankingBox__inner">
<?php <?php
$conditions = ''; $conditions = '';
$id_list = ''; $id_list = '';
$page = '5'; $page = '5';
if (get_option('fit_homeRank_conditions')){ if (get_option('fit_homeRank_conditions')){
$conditions = get_option('fit_homeRank_conditions'); $conditions = get_option('fit_homeRank_conditions');
} }
if (get_option('fit_homeRank_id')){ if (get_option('fit_homeRank_id')){
$id_list = explode(',', get_option('fit_homeRank_id') ); $id_list = explode(',', get_option('fit_homeRank_id') );
} }
if (get_option('fit_homeRank_number')){ if (get_option('fit_homeRank_number')){
$number = get_option('fit_homeRank_number'); $number = get_option('fit_homeRank_number');
} }
$args = array( $args = array(
'meta_key'=> 'post_views', 'meta_key'=> 'post_views',
'orderby' => 'meta_value_num', 'orderby' => 'meta_value_num',
'order' => 'DESC', 'order' => 'DESC',
'ignore_sticky_posts' => '1', 'ignore_sticky_posts' => '1',
'posts_per_page' => $number, 'posts_per_page' => $number,
$conditions => $id_list, $conditions => $id_list,
); );
$my_query = new WP_Query( $args ); $my_query = new WP_Query( $args );
?> ?>
<ol class="rankingBox__list"> <ol class="rankingBox__list">
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?> <?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<li class="rankingBox__item"> <li class="rankingBox__item">
<?php if ( get_option('fit_homeRank_aspect') != 'none' ): ?> <?php if ( get_option('fit_homeRank_aspect') != 'none' ): ?>
<div class="eyecatch<?php if(get_option('fit_homeRank_aspect') && get_option('fit_homeRank_aspect') != 'off'): ?> <?php echo get_option('fit_homeRank_aspect');?><?php endif; ?>"> <div class="eyecatch<?php if(get_option('fit_homeRank_aspect') && get_option('fit_homeRank_aspect') != 'off'): ?> <?php echo get_option('fit_homeRank_aspect');?><?php endif; ?>">
<?php <?php
$cat = get_the_category(); $cat = get_the_category();
if(!empty($cat[0])){ if(!empty($cat[0])){
echo '<span class="eyecatch__cat cc-bg'.$cat[0]->term_id.'">'; echo '<span class="eyecatch__cat cc-bg'.$cat[0]->term_id.'">';
echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>'; echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>';
echo '</span>'; echo '</span>';
} }
?> ?>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail()): ?> <?php if ( has_post_thumbnail()): ?>
<?php the_post_thumbnail('icatch375'); ?> <?php the_post_thumbnail('icatch375'); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</a> </a>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="rankingBox__contents"> <div class="rankingBox__contents">
<?php if( get_option('fit_homeRank_aspect') == 'none' ): ?> <?php if( get_option('fit_homeRank_aspect') == 'none' ): ?>
<?php <?php
$cat = get_the_category(); $cat = get_the_category();
if(!empty($cat[0])){ if(!empty($cat[0])){
echo '<div class="the__category the__category-rank cc-bg'.$cat[0]->term_id.'">'; echo '<div class="the__category the__category-rank cc-bg'.$cat[0]->term_id.'">';
echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>'; echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>';
echo '</div>'; echo '</div>';
} }
?> ?>
<?php endif; ?> <?php endif; ?>
<?php if( !empty( get_option('fit_homeRank_time') ) || !empty(get_option('fit_homeRank_update'))): ?> <?php if( !empty( get_option('fit_homeRank_time') ) || !empty(get_option('fit_homeRank_update'))): ?>
<ul class="dateList<?php if( get_option('fit_homeRank_aspect') == 'none' ): ?> u-mt-sub<?php endif; ?>"> <ul class="dateList<?php if( get_option('fit_homeRank_aspect') == 'none' ): ?> u-mt-sub<?php endif; ?>">
<?php if( !empty(get_option('fit_homeRank_time') )): ?> <?php if( !empty(get_option('fit_homeRank_time') )): ?>
<li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li> <li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
<?php if ( !empty(get_option('fit_homeRank_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_homeRank_update')) && empty(get_option('fit_homeRank_time'))) : ?> <?php if ( !empty(get_option('fit_homeRank_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_homeRank_update')) && empty(get_option('fit_homeRank_time'))) : ?>
<li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')) ?></li> <li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')) ?></li>
<?php endif; ?> <?php endif; ?>
<?php <?php
$views = get_post_meta(get_the_ID(), 'post_views' , true ); $views = get_post_meta(get_the_ID(), 'post_views' , true );
if( !empty(get_option('fit_homeRank_view')) ): ?> if( !empty(get_option('fit_homeRank_view')) ): ?>
<li class="dateList__item icon-eye"><?php echo $views; ?><?php if(get_option('fit_bsRank_unit')) : ?><?php echo get_option('fit_bsRank_unit'); ?><?php else: ?>view<?php endif; ?></li> <li class="dateList__item icon-eye"><?php echo $views; ?><?php if(get_option('fit_bsRank_unit')) : ?><?php echo get_option('fit_bsRank_unit'); ?><?php else: ?>view<?php endif; ?></li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
<h2 class="heading heading-tertiary"> <h2 class="heading heading-tertiary">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2> </h2>
</div> </div>
</li> </li>
<?php endwhile; wp_reset_postdata(); ?> <?php endwhile; wp_reset_postdata(); ?>
</ol> </ol>
</div> </div>
</div> </div>
</div> </div>
<!--rankingBox--> <!--rankingBox-->
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_homeCategory_switch') == 'on' && get_option('fit_homeCategory_title')):?> <?php if(get_option('fit_homeCategory_switch') == 'on' && get_option('fit_homeCategory_title')):?>
<div class="wider"> <div class="wider">
<!--categoryBox--> <!--categoryBox-->
<div class="categoryBox"> <div class="categoryBox">
<div class="container"> <div class="container">
<h2 class="heading heading-main <?php if(get_option('fit_homeCategory_bold') ): ?>u-bold<?php endif; ?>"> <h2 class="heading heading-main <?php if(get_option('fit_homeCategory_bold') ): ?>u-bold<?php endif; ?>">
<?php if(get_option('fit_homeCategory_icon') ): ?><i class="<?php echo get_option('fit_homeCategory_icon') ?>"></i><?php endif; ?> <?php if(get_option('fit_homeCategory_icon') ): ?><i class="<?php echo get_option('fit_homeCategory_icon') ?>"></i><?php endif; ?>
<?php echo get_option('fit_homeCategory_title') ?> <?php echo get_option('fit_homeCategory_title') ?>
<?php if(get_option('fit_homeCategory_sub') ): ?><span><?php echo get_option('fit_homeCategory_sub') ?></span><?php endif; ?> <?php if(get_option('fit_homeCategory_sub') ): ?><span><?php echo get_option('fit_homeCategory_sub') ?></span><?php endif; ?>
</h2> </h2>
<ul class="categoryBox__list"> <ul class="categoryBox__list">
<?php <?php
$conditions = ''; $conditions = '';
$id_list = ''; $id_list = '';
if (get_option('fit_homeCategory_conditions')){ if (get_option('fit_homeCategory_conditions')){
$conditions = get_option('fit_homeCategory_conditions'); $conditions = get_option('fit_homeCategory_conditions');
} }
if (get_option('fit_homeCategory_id')){ if (get_option('fit_homeCategory_id')){
$id_list = get_option('fit_homeCategory_id'); $id_list = get_option('fit_homeCategory_id');
} }
$args = array( $args = array(
'orderby' => 'count', 'orderby' => 'count',
'order' => 'DESC', 'order' => 'DESC',
$conditions => $id_list, $conditions => $id_list,
); );
$get_cat = get_categories($args); $get_cat = get_categories($args);
foreach($get_cat as $val) { foreach($get_cat as $val) {
$category_list_id[$val->name]= $val->cat_ID; $category_list_id[$val->name]= $val->cat_ID;
} }
?> ?>
<?php foreach($category_list_id as $key => $val): ?> <?php foreach($category_list_id as $key => $val): ?>
<li class="categoryBox__item"> <li class="categoryBox__item">
<h3 class="categoryBox__title cc-ft<?php echo $val ?>"><a class="categoryBox__titleLink" href="<?php echo esc_url(get_category_link($val)); ?>"><?php echo $key; ?></a></h3> <h3 class="categoryBox__title cc-ft<?php echo $val ?>"><a class="categoryBox__titleLink" href="<?php echo esc_url(get_category_link($val)); ?>"><?php echo $key; ?></a></h3>
<?php <?php
$cat_post = get_posts('category='.$val.'&numberposts=1'); $cat_post = get_posts('category='.$val.'&numberposts=1');
foreach($cat_post as $post): foreach($cat_post as $post):
if ( get_option('fit_homeCategory_aspect') != 'none' ): ?> if ( get_option('fit_homeCategory_aspect') != 'none' ): ?>
<div class="eyecatch<?php if(get_option('fit_homeCategory_aspect') && get_option('fit_homeCategory_aspect') != 'off'): ?> <?php echo get_option('fit_homeCategory_aspect');?><?php endif; ?>"> <div class="eyecatch<?php if(get_option('fit_homeCategory_aspect') && get_option('fit_homeCategory_aspect') != 'off'): ?> <?php echo get_option('fit_homeCategory_aspect');?><?php endif; ?>">
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail()): ?> <?php if ( has_post_thumbnail()): ?>
<?php the_post_thumbnail('icatch375'); ?> <?php the_post_thumbnail('icatch375'); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</a> </a>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="categoryBox__contents"> <div class="categoryBox__contents">
<?php if( !empty( get_option('fit_homeCategory_time') ) || !empty(get_option('fit_homeCategory_update'))): ?> <?php if( !empty( get_option('fit_homeCategory_time') ) || !empty(get_option('fit_homeCategory_update'))): ?>
<ul class="dateList"> <ul class="dateList">
<?php if( !empty(get_option('fit_homeCategory_time') )): ?> <?php if( !empty(get_option('fit_homeCategory_time') )): ?>
<li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li> <li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
<?php if ( !empty(get_option('fit_homeCategory_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_homeCategory_update')) && empty(get_option('fit_homeCategory_time'))) : ?> <?php if ( !empty(get_option('fit_homeCategory_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_homeCategory_update')) && empty(get_option('fit_homeCategory_time'))) : ?>
<li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')) ?></li> <li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')) ?></li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
<h2 class="heading heading-archive "> <h2 class="heading heading-archive ">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2> </h2>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
</li> </li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>
</div> </div>
</div> </div>
<!--categoryBox--> <!--categoryBox-->
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--/l-footerTop--> <!--/l-footerTop-->
<?php get_footer(); ?> <?php get_footer(); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html <?php language_attributes(); ?> prefix="og: http://ogp.me/ns#"<?php if (get_option('fit_bsStyle_fontSize') && get_option('fit_bsStyle_fontSize') != 'off' ) : ?> class="<?php echo get_option('fit_bsStyle_fontSize');?>"<?php endif; ?>> <html <?php language_attributes(); ?> prefix="og: http://ogp.me/ns#"<?php if (get_option('fit_bsStyle_fontSize') && get_option('fit_bsStyle_fontSize') != 'off' ) : ?> class="<?php echo get_option('fit_bsStyle_fontSize');?>"<?php endif; ?>>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
<meta charset="<?php bloginfo('charset'); ?>"> <meta charset="<?php bloginfo('charset'); ?>">
<?php wp_head(); ?> <?php wp_head(); ?>
<?php fit_seo_meta();?> <?php fit_seo_meta();?>
<?php fit_ogp_date();?> <?php fit_ogp_date();?>
<?php if (get_option('fit_bsAdvanced_header')): ?> <?php if (get_option('fit_bsAdvanced_header')): ?>
<?php echo get_option('fit_bsAdvanced_header'); ?> <?php echo get_option('fit_bsAdvanced_header'); ?>
<?php endif; ?> <?php endif; ?>
<meta property="og:image" content="<?php the_field('ogpimage'); ?>" />
</head> </head>
<body <?php body_class(); ?> id="top"> <body <?php body_class(); ?> id="top">
<?php <?php
if (get_option('fit_seoHtml_press')){ if (get_option('fit_seoHtml_press')){
ob_start(); ob_start();
} }
?> ?>
<!--l-header--> <!--l-header-->
<header class="l-header<?php if (get_option('fit_conHeader_divide') && get_option('fit_conHeader_divide') != 'off' ) : ?> l-header-<?php echo get_option('fit_conHeader_divide'); ?><?php endif; ?>"> <header class="l-header<?php if (get_option('fit_conHeader_divide') && get_option('fit_conHeader_divide') != 'off' ) : ?> l-header-<?php echo get_option('fit_conHeader_divide'); ?><?php endif; ?>">
<div class="container container-header"> <div class="container container-header">
<!--logo--> <!--logo-->
<?php if (is_front_page()) : ?><h1<?php else : ?><p<?php endif; ?> class="siteTitle"> <?php if (is_front_page()) : ?><h1<?php else : ?><p<?php endif; ?> class="siteTitle">
<a class="siteTitle__link" href="<?php echo home_url() ?>"> <a class="siteTitle__link" href="<?php echo home_url() ?>">
<?php <?php
if (get_fit_logo()): if (get_fit_logo()):
$logo = get_fit_logo(); $logo = get_fit_logo();
$image_id = fit_get_imageId($logo); $image_id = fit_get_imageId($logo);
$image = wp_get_attachment_image_src( $image_id, 'full' ); $image = wp_get_attachment_image_src( $image_id, 'full' );
$src = $image[0]; //url $src = $image[0]; //url
$width = $image[1]; //横幅 $width = $image[1]; //横幅
$height = $image[2]; //高さ $height = $image[2]; //高さ
?> ?>
<img class="siteTitle__logo" src="<?php echo $src ?>" alt="<?php bloginfo('name') ?>" width="<?php echo $width ?>" height="<?php echo $height ?>" > <img class="siteTitle__logo" src="<?php echo $src ?>" alt="<?php bloginfo('name') ?>" width="<?php echo $width ?>" height="<?php echo $height ?>" >
<?php else : ?> <?php else : ?>
<?php bloginfo('name') ?> <?php bloginfo('name') ?>
<?php endif; ?> <?php endif; ?>
</a> </a>
<?php if (is_front_page()) : ?></h1><?php else : ?></p><?php endif; ?> <?php if (is_front_page()) : ?></h1><?php else : ?></p><?php endif; ?>
<!--/logo--> <!--/logo-->
<?php if(get_option('fit_conHeader_gnavi') && get_option('fit_conHeader_gnavi') != 'off' && has_nav_menu('header_menu')): ?> <?php if(get_option('fit_conHeader_gnavi') && get_option('fit_conHeader_gnavi') != 'off' && has_nav_menu('header_menu')): ?>
<!--globalNavi--> <!--globalNavi-->
<nav class="globalNavi<?php if(get_option('fit_conHeader_gnavi') != 'on'): ?> <?php echo get_option('fit_conHeader_gnavi'); ?><?php endif ?>"> <nav class="globalNavi<?php if(get_option('fit_conHeader_gnavi') != 'on'): ?> <?php echo get_option('fit_conHeader_gnavi'); ?><?php endif ?>">
<div class="globalNavi__inner"> <div class="globalNavi__inner">
<?php wp_nav_menu(array( <?php wp_nav_menu(array(
'theme_location' => 'header_menu', 'theme_location' => 'header_menu',
'items_wrap' => '<ul class="globalNavi__list">%3$s</ul>', 'items_wrap' => '<ul class="globalNavi__list">%3$s</ul>',
'container' => false, 'container' => false,
'depth' => 2, 'depth' => 2,
));?> ));?>
</div> </div>
</nav> </nav>
<!--/globalNavi--> <!--/globalNavi-->
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_conHeader_subnavi') != 'value2'): ?> <?php if(get_option('fit_conHeader_subnavi') != 'value2'): ?>
<!--subNavi--> <!--subNavi-->
<nav class="subNavi"> <nav class="subNavi">
<?php $opt = get_option('fit_snsFollow'); ?> <?php $opt = get_option('fit_snsFollow'); ?>
<?php if ( <?php if (
!empty(get_option('fit_conHeader_btnText')) && !empty(get_option('fit_conHeader_btnUrl')) || !empty(get_option('fit_conHeader_btnText')) && !empty(get_option('fit_conHeader_btnUrl')) ||
!empty($opt['FBFollowH']) && !empty($opt['FBPage']) || !empty($opt['FBFollowH']) && !empty($opt['FBPage']) ||
!empty($opt['twitterFollowH']) && !empty($opt['twitterId']) || !empty($opt['twitterFollowH']) && !empty($opt['twitterId']) ||
!empty($opt['instaFollowH']) && !empty($opt['insta']) || !empty($opt['instaFollowH']) && !empty($opt['insta']) ||
!empty($opt['googleFollowH']) && !empty($opt['googleUrl']) || !empty($opt['googleFollowH']) && !empty($opt['googleUrl']) ||
!empty($opt['youtubeFollowH']) && !empty($opt['youtubeUrl']) || !empty($opt['youtubeFollowH']) && !empty($opt['youtubeUrl']) ||
!empty($opt['linkedinFollowH']) && !empty($opt['linkedinUrl']) || !empty($opt['linkedinFollowH']) && !empty($opt['linkedinUrl']) ||
!empty($opt['pinterestFollowH']) && !empty($opt['pinterestUrl']) || !empty($opt['pinterestFollowH']) && !empty($opt['pinterestUrl']) ||
!empty($opt['rssFollowH']) !empty($opt['rssFollowH'])
):?> ):?>
<ul class="subNavi__list"> <ul class="subNavi__list">
<?php if (!empty(get_option('fit_conHeader_btnText')) && !empty(get_option('fit_conHeader_btnUrl'))):?> <?php if (!empty(get_option('fit_conHeader_btnText')) && !empty(get_option('fit_conHeader_btnUrl'))):?>
<li class="subNavi__item"><a class="subNavi__link subNavi__link-pickup" href="<?php echo get_option('fit_conHeader_btnUrl'); ?>"><?php echo get_option('fit_conHeader_btnText'); ?></a></li> <li class="subNavi__item"><a class="subNavi__link subNavi__link-pickup" href="<?php echo get_option('fit_conHeader_btnUrl'); ?>"><?php echo get_option('fit_conHeader_btnText'); ?></a></li>
<?php endif; if (!empty($opt['FBFollowH']) && !empty($opt['FBPage']) ):?> <?php endif; if (!empty($opt['FBFollowH']) && !empty($opt['FBPage']) ):?>
<li class="subNavi__item"><a class="subNavi__link icon-facebook2" href="https://www.facebook.com/<?php echo $opt['FBPage']; ?>"></a></li>
<li class="subNavi__item"><a class="subNavi__link icon-facebook2" href="https://www.facebook.com/<?php echo $opt['FBPage']; ?>" target="_blank"></a></li>
<?php endif; if (!empty($opt['twitterFollowH']) && !empty($opt['twitterId']) ) :?> <?php endif; if (!empty($opt['twitterFollowH']) && !empty($opt['twitterId']) ) :?>
<li class="subNavi__item"><a class="subNavi__link icon-twitter" href="https://twitter.com/<?php echo $opt['twitterId']; ?>"></a></li> <li class="subNavi__item"><a class="subNavi__link icon-twitter" href="https://twitter.com/<?php echo $opt['twitterId']; ?>"></a></li>
<?php endif; if (!empty($opt['instaFollowH']) && !empty($opt['insta']) ) :?> <?php endif; if (!empty($opt['instaFollowH']) && !empty($opt['insta']) ) :?>
<li class="subNavi__item"><a class="subNavi__link icon-instagram" href="http://instagram.com/<?php echo $opt['insta']; ?>"></a></li> <li class="subNavi__item"><a class="subNavi__link icon-instagram" href="http://instagram.com/<?php echo $opt['insta']; ?>"></a></li>
<?php endif; if (!empty($opt['googleFollowH']) && !empty($opt['googleUrl']) ) :?> <?php endif; if (!empty($opt['googleFollowH']) && !empty($opt['googleUrl']) ) :?>
<li class="subNavi__item"><a class="subNavi__link icon-google-plus2" href="https://plus.google.com/<?php echo $opt['googleUrl']; ?>"></a></li> <li class="subNavi__item"><a class="subNavi__link icon-google-plus2" href="https://plus.google.com/<?php echo $opt['googleUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['youtubeFollowH']) && !empty($opt['youtubeUrl']) ) :?> <?php endif; if (!empty($opt['youtubeFollowH']) && !empty($opt['youtubeUrl']) ) :?>
<li class="subNavi__item"><a class="subNavi__link icon-youtube" href="https://www.youtube.com/channel/<?php echo $opt['youtubeUrl']; ?>"></a></li> <li class="subNavi__item"><a class="subNavi__link icon-youtube" href="https://www.youtube.com/channel/<?php echo $opt['youtubeUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['linkedinFollowH']) && !empty($opt['linkedinUrl']) ) :?> <?php endif; if (!empty($opt['linkedinFollowH']) && !empty($opt['linkedinUrl']) ) :?>
<li class="subNavi__item"><a class="subNavi__link icon-linkedin" href="http://ca.linkedin.com/in/<?php echo $opt['linkedinUrl']; ?>"></a></li> <li class="subNavi__item"><a class="subNavi__link icon-linkedin" href="http://ca.linkedin.com/in/<?php echo $opt['linkedinUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['pinterestFollowH']) && !empty($opt['pinterestUrl']) ) :?> <?php endif; if (!empty($opt['pinterestFollowH']) && !empty($opt['pinterestUrl']) ) :?>
<li class="subNavi__item"><a class="subNavi__link icon-pinterest" href="https://www.pinterest.jp/<?php echo $opt['pinterestUrl']; ?>"></a></li> <li class="subNavi__item"><a class="subNavi__link icon-pinterest" href="https://www.pinterest.jp/<?php echo $opt['pinterestUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['rssFollowH'])):?> <?php endif; if (!empty($opt['rssFollowH'])):?>
<?php if (!empty($opt['rssUrl'])): ?> <?php if (!empty($opt['rssUrl'])): ?>
<li class="subNavi__item"><a class="subNavi__link icon-rss" href="<?php echo $opt['rssUrl']; ?>"></a></li> <li class="subNavi__item"><a class="subNavi__link icon-rss" href="<?php echo $opt['rssUrl']; ?>"></a></li>
<?php else : ?> <?php else : ?>
<li class="subNavi__item"><a class="subNavi__link icon-rss" href="<?php bloginfo('rss2_url'); ?>"></a></li> <li class="subNavi__item"><a class="subNavi__link icon-rss" href="<?php bloginfo('rss2_url'); ?>"></a></li>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
</nav> </nav>
<!--/subNavi--> <!--/subNavi-->
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_conHeader_searchPanel_switch') != 'off'): ?> <?php if(get_option('fit_conHeader_searchPanel_switch') != 'off'): ?>
<!--searchBtn--> <!--searchBtn-->
<div class="searchBtn<?php if(get_option('fit_conHeader_subnavi') == 'value2'): ?> searchBtn-right<?php endif; ?><?php if(get_option('fit_conHeader_menuPanel_switch') == 'off'): ?> searchBtn-zero<?php endif; ?>"> <div class="searchBtn<?php if(get_option('fit_conHeader_subnavi') == 'value2'): ?> searchBtn-right<?php endif; ?><?php if(get_option('fit_conHeader_menuPanel_switch') == 'off'): ?> searchBtn-zero<?php endif; ?>">
<input class="searchBtn__checkbox" id="searchBtn-checkbox" type="checkbox"> <input class="searchBtn__checkbox" id="searchBtn-checkbox" type="checkbox">
<label class="searchBtn__link searchBtn__link-text icon-search" for="searchBtn-checkbox"></label> <label class="searchBtn__link searchBtn__link-text icon-search" for="searchBtn-checkbox"></label>
<label class="searchBtn__unshown" for="searchBtn-checkbox"></label> <label class="searchBtn__unshown" for="searchBtn-checkbox"></label>
<div class="searchBtn__content"> <div class="searchBtn__content">
<div class="searchBtn__scroll"> <div class="searchBtn__scroll">
<label class="searchBtn__close" for="searchBtn-checkbox"><i class="icon-close"></i>CLOSE</label> <label class="searchBtn__close" for="searchBtn-checkbox"><i class="icon-close"></i>CLOSE</label>
<div class="searchBtn__contentInner"> <div class="searchBtn__contentInner">
<?php fit_search_panel();?> <?php fit_search_panel();?>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!--/searchBtn--> <!--/searchBtn-->
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_conHeader_menuPanel_switch') != 'off'): ?> <?php if(get_option('fit_conHeader_menuPanel_switch') != 'off'): ?>
<!--menuBtn--> <!--menuBtn-->
<div class="menuBtn<?php if(get_option('fit_conHeader_subnavi') == 'value2' && get_option('fit_conHeader_searchPanel_switch') == 'off') : ?> menuBtn-right<?php endif; ?>"> <div class="menuBtn<?php if(get_option('fit_conHeader_subnavi') == 'value2' && get_option('fit_conHeader_searchPanel_switch') == 'off') : ?> menuBtn-right<?php endif; ?>">
<input class="menuBtn__checkbox" id="menuBtn-checkbox" type="checkbox"> <input class="menuBtn__checkbox" id="menuBtn-checkbox" type="checkbox">
<label class="menuBtn__link menuBtn__link-text icon-menu" for="menuBtn-checkbox"></label> <label class="menuBtn__link menuBtn__link-text icon-menu" for="menuBtn-checkbox"></label>
<label class="menuBtn__unshown" for="menuBtn-checkbox"></label> <label class="menuBtn__unshown" for="menuBtn-checkbox"></label>
<div class="menuBtn__content"> <div class="menuBtn__content">
<div class="menuBtn__scroll"> <div class="menuBtn__scroll">
<label class="menuBtn__close" for="menuBtn-checkbox"><i class="icon-close"></i>CLOSE</label> <label class="menuBtn__close" for="menuBtn-checkbox"><i class="icon-close"></i>CLOSE</label>
<div class="menuBtn__contentInner"> <div class="menuBtn__contentInner">
<?php if ( has_nav_menu('menuPanel_menu') && is_mobile() ) ://メニューセット有
wp_nav_menu(array(
'theme_location' => 'menuPanel_menu',
'items_wrap' => '<aside class="widget widget_nav_menu u-none-pc"><ul class="menu">%3$s</ul></aside>',
'container' => false,
'depth' => 3,
));
?>
<?php endif; ?>
<?php if ( is_active_sidebar( 'menu_panel' ) ) : ?>
<?php dynamic_sidebar( 'menu_panel' ); ?>
<?php endif; ?>
</div>
<?php $opt = get_option('fit_snsFollow'); <?php $opt = get_option('fit_snsFollow');
if ( if (
!empty(get_option('fit_conHeader_btnText')) && !empty(get_option('fit_conHeader_btnUrl')) || !empty(get_option('fit_conHeader_btnText')) && !empty(get_option('fit_conHeader_btnUrl')) ||
!empty($opt['FBFollowH']) && !empty($opt['FBPage']) || !empty($opt['FBFollowH']) && !empty($opt['FBPage']) ||
!empty($opt['twitterFollowH']) && !empty($opt['twitterId']) || !empty($opt['twitterFollowH']) && !empty($opt['twitterId']) ||
!empty($opt['instaFollowH']) && !empty($opt['insta']) || !empty($opt['instaFollowH']) && !empty($opt['insta']) ||
!empty($opt['googleFollowH']) && !empty($opt['googleUrl']) || !empty($opt['googleFollowH']) && !empty($opt['googleUrl']) ||
!empty($opt['youtubeFollowH']) && !empty($opt['youtubeUrl']) || !empty($opt['youtubeFollowH']) && !empty($opt['youtubeUrl']) ||
!empty($opt['linkedinFollowH']) && !empty($opt['linkedinUrl']) || !empty($opt['linkedinFollowH']) && !empty($opt['linkedinUrl']) ||
!empty($opt['pinterestFollowH']) && !empty($opt['pinterestUrl']) || !empty($opt['pinterestFollowH']) && !empty($opt['pinterestUrl']) ||
!empty($opt['rssFollowH']) !empty($opt['rssFollowH'])
):?> ):?>
<nav class="menuBtn__navi<?php if(get_option('fit_conHeader_subnavi') != 'value2'): ?> u-none-pc<?php endif; ?>"> <nav class="menuBtn__navi<?php if(get_option('fit_conHeader_subnavi') != 'value2'): ?> u-none-pc<?php endif; ?>">
<?php if (!empty(get_option('fit_conHeader_btnText')) && !empty(get_option('fit_conHeader_btnUrl'))):?> <?php if (!empty(get_option('fit_conHeader_btnText')) && !empty(get_option('fit_conHeader_btnUrl'))):?>
<div class="btn btn-center"><a class="btn__link btn__link-normal" href="<?php echo get_option('fit_conHeader_btnUrl'); ?>"><?php echo get_option('fit_conHeader_btnText'); ?></a></div> <div class="btn btn-center"><a class="btn__link btn__link-normal" href="<?php echo get_option('fit_conHeader_btnUrl'); ?>"><?php echo get_option('fit_conHeader_btnText'); ?></a></div>
<?php endif; ?> <?php endif; ?>
<ul class="menuBtn__naviList"> <ul class="menuBtn__naviList">
<?php if (!empty($opt['FBFollowH']) && !empty($opt['FBPage']) ):?> <?php if (!empty($opt['FBFollowH']) && !empty($opt['FBPage']) ):?>
<li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-facebook" href="https://www.facebook.com/<?php echo $opt['FBPage']; ?>"></a></li> <li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-facebook" href="https://www.facebook.com/<?php echo $opt['FBPage']; ?>"></a></li>
<?php endif; if (!empty($opt['twitterFollowH']) && !empty($opt['twitterId']) ) :?> <?php endif; if (!empty($opt['twitterFollowH']) && !empty($opt['twitterId']) ) :?>
<li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-twitter" href="https://twitter.com/<?php echo $opt['twitterId']; ?>"></a></li> <li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-twitter" href="https://twitter.com/<?php echo $opt['twitterId']; ?>"></a></li>
<?php endif; if (!empty($opt['instaFollowH']) && !empty($opt['insta']) ) :?> <?php endif; if (!empty($opt['instaFollowH']) && !empty($opt['insta']) ) :?>
<li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-instagram" href="http://instagram.com/<?php echo $opt['insta']; ?>"></a></li> <li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-instagram" href="http://instagram.com/<?php echo $opt['insta']; ?>"></a></li>
<?php endif; if (!empty($opt['googleFollowH']) && !empty($opt['googleUrl']) ) :?> <?php endif; if (!empty($opt['googleFollowH']) && !empty($opt['googleUrl']) ) :?>
<li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-google-plus" href="https://plus.google.com/<?php echo $opt['googleUrl']; ?>"></a></li> <li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-google-plus" href="https://plus.google.com/<?php echo $opt['googleUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['youtubeFollowH']) && !empty($opt['youtubeUrl']) ) :?> <?php endif; if (!empty($opt['youtubeFollowH']) && !empty($opt['youtubeUrl']) ) :?>
<li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-youtube" href="https://www.youtube.com/channel/<?php echo $opt['youtubeUrl']; ?>"></a></li> <li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-youtube" href="https://www.youtube.com/channel/<?php echo $opt['youtubeUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['linkedinFollowH']) && !empty($opt['linkedinUrl']) ) :?> <?php endif; if (!empty($opt['linkedinFollowH']) && !empty($opt['linkedinUrl']) ) :?>
<li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-linkedin" href="http://ca.linkedin.com/in/<?php echo $opt['linkedinUrl']; ?>"></a></li> <li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-linkedin" href="http://ca.linkedin.com/in/<?php echo $opt['linkedinUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['pinterestFollowH']) && !empty($opt['pinterestUrl']) ) :?> <?php endif; if (!empty($opt['pinterestFollowH']) && !empty($opt['pinterestUrl']) ) :?>
<li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-pinterest" href="https://www.pinterest.jp/<?php echo $opt['pinterestUrl']; ?>"></a></li> <li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-pinterest" href="https://www.pinterest.jp/<?php echo $opt['pinterestUrl']; ?>"></a></li>
<?php endif; if (!empty($opt['rssFollowH'])):?> <?php endif; if (!empty($opt['rssFollowH'])):?>
<?php if (!empty($opt['rssUrl'])): ?> <?php if (!empty($opt['rssUrl'])): ?>
<li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-rss" href="<?php echo $opt['rssUrl']; ?>"></a></li> <li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-rss" href="<?php echo $opt['rssUrl']; ?>"></a></li>
<?php else : ?> <?php else : ?>
<li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-rss" href="<?php bloginfo('rss2_url'); ?>"></a></li> <li class="menuBtn__naviItem"><a class="menuBtn__naviLink icon-rss" href="<?php bloginfo('rss2_url'); ?>"></a></li>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
</nav> </nav>
<?php endif; ?> <?php endif; ?>
<?php if ( has_nav_menu('menuPanel_menu') && is_mobile() ) ://メニューセット有
wp_nav_menu(array(
'theme_location' => 'menuPanel_menu',
'items_wrap' => '<aside class="widget widget_nav_menu u-none-pc"><ul class="menu">%3$s</ul></aside>',
'container' => false,
'depth' => 3,
));
?>
<?php endif; ?>
<?php if ( is_active_sidebar( 'menu_panel' ) ) : ?>
<?php dynamic_sidebar( 'menu_panel' ); ?>
<?php endif; ?>
</div>
</div> </div>
</div> </div>
</div> </div>
<!--/menuBtn--> <!--/menuBtn-->
<?php endif; ?> <?php endif; ?>
</div> </div>
</header> </header>
<!--/l-header--> <!--/l-header-->
<!--l-headerBottom--> <!--l-headerBottom-->
<div class="l-headerBottom"> <div class="l-headerBottom">
<?php if(get_option('fit_conHeadBottom_switchSearch') == 'on'): ?> <?php if(get_option('fit_conHeadBottom_switchSearch') == 'on'): ?>
<!--searchHead--> <!--searchHead-->
<div class="searchHead"> <div class="searchHead">
<div class="container container-searchHead"> <div class="container container-searchHead">
<?php if(get_option('fit_conHeadBottom_keyword') == 'on'): ?> <?php if(get_option('fit_conHeadBottom_keyword') == 'on'): ?>
<div class="searchHead__keyword<?php if(get_option('fit_conHeadBottom_keywordSp')): ?> u-none-sp<?php endif; ?>"> <div class="searchHead__keyword<?php if(get_option('fit_conHeadBottom_keywordSp')): ?> u-none-sp<?php endif; ?>">
<span class="searchHead__title"> <span class="searchHead__title">
<?php if(get_option('fit_conHeadBottom_keywordTitle')): ?> <?php if(get_option('fit_conHeadBottom_keywordTitle')): ?>
<?php echo get_option('fit_conHeadBottom_keywordTitle') ?> <?php echo get_option('fit_conHeadBottom_keywordTitle') ?>
<?php else : ?> <?php else : ?>
注目キーワード 注目キーワード
<?php endif; ?> <?php endif; ?>
</span> </span>
<?php if(get_option('fit_bsSearch_pickup1') || get_option('fit_bsSearch_pickup2') || get_option('fit_bsSearch_pickup3') || get_option('fit_bsSearch_pickup4') || get_option('fit_bsSearch_pickup5')): ?> <?php if(get_option('fit_bsSearch_pickup1') || get_option('fit_bsSearch_pickup2') || get_option('fit_bsSearch_pickup3') || get_option('fit_bsSearch_pickup4') || get_option('fit_bsSearch_pickup5')): ?>
<ol class="searchHead__keywordList"> <ol class="searchHead__keywordList">
<?php if(get_option('fit_bsSearch_pickup1')): ?> <?php if(get_option('fit_bsSearch_pickup1')): ?>
<li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup1'); ?>"><?php echo get_option('fit_bsSearch_pickup1'); ?></a></li> <li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup1'); ?>"><?php echo get_option('fit_bsSearch_pickup1'); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_bsSearch_pickup2')): ?> <?php if(get_option('fit_bsSearch_pickup2')): ?>
<li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup2'); ?>"><?php echo get_option('fit_bsSearch_pickup2'); ?></a></li> <li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup2'); ?>"><?php echo get_option('fit_bsSearch_pickup2'); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_bsSearch_pickup3')): ?> <?php if(get_option('fit_bsSearch_pickup3')): ?>
<li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup3'); ?>"><?php echo get_option('fit_bsSearch_pickup3'); ?></a></li> <li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup3'); ?>"><?php echo get_option('fit_bsSearch_pickup3'); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_bsSearch_pickup4')): ?> <?php if(get_option('fit_bsSearch_pickup4')): ?>
<li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup4'); ?>"><?php echo get_option('fit_bsSearch_pickup4'); ?></a></li> <li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup4'); ?>"><?php echo get_option('fit_bsSearch_pickup4'); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_bsSearch_pickup5')): ?> <?php if(get_option('fit_bsSearch_pickup5')): ?>
<li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup5'); ?>"><?php echo get_option('fit_bsSearch_pickup5'); ?></a></li> <li class="searchHead__keywordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup5'); ?>"><?php echo get_option('fit_bsSearch_pickup5'); ?></a></li>
<?php endif; ?> <?php endif; ?>
</ol> </ol>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="searchHead__search <?php if(get_option('fit_conHeadBottom_keyword') != 'on'): ?>searchHead__search-100<?php endif; ?>"> <div class="searchHead__search <?php if(get_option('fit_conHeadBottom_keyword') != 'on'): ?>searchHead__search-100<?php endif; ?>">
<form class="searchHead__form" method="get" target="_top" action="<?php echo home_url( '/' ); ?>"> <form class="searchHead__form" method="get" target="_top" action="<?php echo home_url( '/' ); ?>">
<input class="searchHead__input" type="text" maxlength="50" name="s" placeholder="キーワードを入力" value="<?php if( get_search_query() ){ echo get_search_query();} ?>"> <input class="searchHead__input" type="text" maxlength="50" name="s" placeholder="キーワードを入力" value="<?php if( get_search_query() ){ echo get_search_query();} ?>">
<button class="searchHead__submit icon-search" type="submit" value="search"></button> <button class="searchHead__submit icon-search" type="submit" value="search"></button>
</form> </form>
</div> </div>
</div> </div>
</div> </div>
<!--/searchHead--> <!--/searchHead-->
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_conHeadBottom_switch') == 'on'): ?> <?php if(get_option('fit_conHeadBottom_switch') == 'on'): ?>
<div class="wider"> <div class="wider">
<!--infoHead--> <!--infoHead-->
<div class="infoHead"> <div class="infoHead">
<?php if(get_option('fit_conHeadBottom_url')): ?><a class="infoHead__text" href="<?php echo get_option('fit_conHeadBottom_url') ?>"><?php else:?><span class="infoHead__text"><?php endif; ?> <?php if(get_option('fit_conHeadBottom_url')): ?><a class="infoHead__text" href="<?php echo get_option('fit_conHeadBottom_url') ?>"><?php else:?><span class="infoHead__text"><?php endif; ?>
<?php if(get_option('fit_conHeadBottom_contents')): ?><?php echo get_option('fit_conHeadBottom_contents') ?><?php endif; ?> <?php if(get_option('fit_conHeadBottom_contents')): ?><?php echo get_option('fit_conHeadBottom_contents') ?><?php endif; ?>
<?php if(get_option('fit_conHeadBottom_url')): ?></a><?php else:?></span><?php endif; ?> <?php if(get_option('fit_conHeadBottom_url')): ?></a><?php else:?></span><?php endif; ?>
</div> </div>
<!--/infoHead--> <!--/infoHead-->
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if(!is_front_page() && !is_singular('post')): ?> <?php if(!is_front_page() && !is_singular('post')): ?>
<div class="wider"> <div class="wider">
<!--breadcrum--> <!--breadcrum-->
<?php fit_breadcrumb(); ?> <?php fit_breadcrumb(); ?>
<!--/breadcrum--> <!--/breadcrum-->
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--l-headerBottom--> <!--l-headerBottom-->
...@@ -86,23 +86,19 @@ function fit_main_visual() { ...@@ -86,23 +86,19 @@ function fit_main_visual() {
$img_id = fit_get_imageId($img_date); $img_id = fit_get_imageId($img_date);
$img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true ); $img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true );
$imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' ); $imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' );
$imgPc = wp_get_attachment_image_src( $img_id, 'icatch1280' ); $imgPc = wp_get_attachment_image_src( $img_id, 'full' );
?> ?>
<div class="swiper-slide swiper-slide1 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>"> <div class="swiper-slide swiper-slide1 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>">
<?php if(is_mobile()):?>
<img class="swiper-bg" src="<?php echo $imgSp[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgSp[1]; ?>" height="<?php echo $imgSp[2]; ?>">
<?php else : ?>
<img class="swiper-bg" src="<?php echo $imgPc[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgPc[1]; ?>" height="<?php echo $imgPc[2]; ?>">
<?php endif; ?>
<div class="swiper-content"> <div class="swiper-content">
<?php if($date['title']): ?><h2 class="heading heading-slider"><?php echo $date['title'] ?></h2><?php endif; ?>
<?php if($date['subtitle']): ?>
<p class="phrase phrase-slider">
<?php echo $date['subtitle'] ?>
</p>
<?php endif; ?>
<?php if(!empty($date['btn']) && !empty($date['url'])): ?> <?php if(!empty($date['btn']) && !empty($date['url'])): ?>
<div class="btn"><a class="btn__link btn__link-primary" href="<?php echo $date['url'] ?>"><?php echo $date['btn'] ?></a></div> <a href="<?php echo $date['url'] ?>" class="swiper-url"></a>
<?php endif; ?>
<?php if(is_mobile()):?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php else : ?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
...@@ -116,23 +112,19 @@ function fit_main_visual() { ...@@ -116,23 +112,19 @@ function fit_main_visual() {
$img_id = fit_get_imageId($img_date); $img_id = fit_get_imageId($img_date);
$img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true ); $img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true );
$imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' ); $imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' );
$imgPc = wp_get_attachment_image_src( $img_id, 'icatch1280' ); $imgPc = wp_get_attachment_image_src( $img_id, 'full' );
?> ?>
<div class="swiper-slide swiper-slide2 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>"> <div class="swiper-slide swiper-slide2 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>">
<?php if(is_mobile()):?>
<img class="swiper-bg" src="<?php echo $imgSp[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgSp[1]; ?>" height="<?php echo $imgSp[2]; ?>">
<?php else : ?>
<img class="swiper-bg" src="<?php echo $imgPc[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgPc[1]; ?>" height="<?php echo $imgPc[2]; ?>">
<?php endif; ?>
<div class="swiper-content"> <div class="swiper-content">
<?php if($date['title']): ?><h2 class="heading heading-slider"><?php echo $date['title'] ?></h2><?php endif; ?>
<?php if($date['subtitle']): ?>
<p class="phrase phrase-slider">
<?php echo $date['subtitle'] ?>
</p>
<?php endif; ?>
<?php if(!empty($date['btn']) && !empty($date['url'])): ?> <?php if(!empty($date['btn']) && !empty($date['url'])): ?>
<div class="btn"><a class="btn__link btn__link-primary" href="<?php echo $date['url'] ?>"><?php echo $date['btn'] ?></a></div> <a href="<?php echo $date['url'] ?>" class="swiper-url"></a>
<?php endif; ?>
<?php if(is_mobile()):?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php else : ?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
...@@ -146,23 +138,19 @@ function fit_main_visual() { ...@@ -146,23 +138,19 @@ function fit_main_visual() {
$img_id = fit_get_imageId($img_date); $img_id = fit_get_imageId($img_date);
$img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true ); $img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true );
$imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' ); $imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' );
$imgPc = wp_get_attachment_image_src( $img_id, 'icatch1280' ); $imgPc = wp_get_attachment_image_src( $img_id, 'full' );
?> ?>
<div class="swiper-slide swiper-slide3 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>"> <div class="swiper-slide swiper-slide3 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>">
<?php if(is_mobile()):?>
<img class="swiper-bg" src="<?php echo $imgSp[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgSp[1]; ?>" height="<?php echo $imgSp[2]; ?>">
<?php else : ?>
<img class="swiper-bg" src="<?php echo $imgPc[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgPc[1]; ?>" height="<?php echo $imgPc[2]; ?>">
<?php endif; ?>
<div class="swiper-content"> <div class="swiper-content">
<?php if($date['title']): ?><h2 class="heading heading-slider"><?php echo $date['title'] ?></h2><?php endif; ?>
<?php if($date['subtitle']): ?>
<p class="phrase phrase-slider">
<?php echo $date['subtitle'] ?>
</p>
<?php endif; ?>
<?php if(!empty($date['btn']) && !empty($date['url'])): ?> <?php if(!empty($date['btn']) && !empty($date['url'])): ?>
<div class="btn"><a class="btn__link btn__link-primary" href="<?php echo $date['url'] ?>"><?php echo $date['btn'] ?></a></div> <a href="<?php echo $date['url'] ?>" class="swiper-url"></a>
<?php endif; ?>
<?php if(is_mobile()):?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php else : ?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
...@@ -176,23 +164,19 @@ function fit_main_visual() { ...@@ -176,23 +164,19 @@ function fit_main_visual() {
$img_id = fit_get_imageId($img_date); $img_id = fit_get_imageId($img_date);
$img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true ); $img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true );
$imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' ); $imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' );
$imgPc = wp_get_attachment_image_src( $img_id, 'icatch1280' ); $imgPc = wp_get_attachment_image_src( $img_id, 'full' );
?> ?>
<div class="swiper-slide swiper-slide4 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>"> <div class="swiper-slide swiper-slide4 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>">
<?php if(is_mobile()):?>
<img class="swiper-bg" src="<?php echo $imgSp[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgSp[1]; ?>" height="<?php echo $imgSp[2]; ?>">
<?php else : ?>
<img class="swiper-bg" src="<?php echo $imgPc[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgPc[1]; ?>" height="<?php echo $imgPc[2]; ?>">
<?php endif; ?>
<div class="swiper-content"> <div class="swiper-content">
<?php if($date['title']): ?><h2 class="heading heading-slider"><?php echo $date['title'] ?></h2><?php endif; ?>
<?php if($date['subtitle']): ?>
<p class="phrase phrase-slider">
<?php echo $date['subtitle'] ?>
</p>
<?php endif; ?>
<?php if(!empty($date['btn']) && !empty($date['url'])): ?> <?php if(!empty($date['btn']) && !empty($date['url'])): ?>
<div class="btn"><a class="btn__link btn__link-primary" href="<?php echo $date['url'] ?>"><?php echo $date['btn'] ?></a></div> <a href="<?php echo $date['url'] ?>" class="swiper-url"></a>
<?php endif; ?>
<?php if(is_mobile()):?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php else : ?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
...@@ -206,23 +190,20 @@ function fit_main_visual() { ...@@ -206,23 +190,20 @@ function fit_main_visual() {
$img_id = fit_get_imageId($img_date); $img_id = fit_get_imageId($img_date);
$img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true ); $img_alt = get_post_meta( $img_id, '_wp_attachment_image_alt', true );
$imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' ); $imgSp = wp_get_attachment_image_src( $img_id, 'icatch768' );
$imgPc = wp_get_attachment_image_src( $img_id, 'icatch1280' ); $imgPc = wp_get_attachment_image_src( $img_id, 'full' );
?> ?>
<div class="swiper-slide swiper-slide5 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>"> <div class="swiper-slide swiper-slide5 mask<?php if($mask && $mask != 'off'): ?> mask-<?php echo $mask ?><?php endif; ?>">
<?php if(is_mobile()):?>
<img class="swiper-bg" src="<?php echo $imgSp[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgSp[1]; ?>" height="<?php echo $imgSp[2]; ?>">
<?php else : ?>
<img class="swiper-bg" src="<?php echo $imgPc[0]; ?>" alt="<?php echo $img_alt; ?>" width="<?php echo $imgPc[1]; ?>" height="<?php echo $imgPc[2]; ?>">
<?php endif; ?>
<div class="swiper-content"> <div class="swiper-content">
<?php if($date['title']): ?><h2 class="heading heading-slider"><?php echo $date['title'] ?></h2><?php endif; ?>
<?php if($date['subtitle']): ?>
<p class="phrase phrase-slider">
<?php echo $date['subtitle'] ?>
</p>
<?php endif; ?>
<?php if(!empty($date['btn']) && !empty($date['url'])): ?> <?php if(!empty($date['btn']) && !empty($date['url'])): ?>
<div class="btn"><a class="btn__link btn__link-primary" href="<?php echo $date['url'] ?>"><?php echo $date['btn'] ?></a></div> <a href="<?php echo $date['url'] ?>" class="swiper-url"></a>
<?php endif; ?>
<?php if(is_mobile()):?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php else : ?>
<div class="swiper-image swiper-imageSP" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy_sp.gif" alt="<?php echo $date['title'] ?>"></div>
<div class="swiper-image swiper-imagePC" style="background-image: url('<?php echo $imgPc[0]; ?>')"><img class="swiper-bg" src="<?php echo get_site_url(); ?>/assets/img/common/mv_dummy.gif" alt="<?php echo $date['title'] ?>"></div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
......
...@@ -43,28 +43,28 @@ if(!function_exists('fit_head')) { ...@@ -43,28 +43,28 @@ if(!function_exists('fit_head')) {
//Googleフォント用CSS //Googleフォント用CSS
if ( get_option('fit_seoCss_lato')) { if ( get_option('fit_seoCss_lato')) {
echo '<link class="css-async" rel href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900">'."\n"; echo ''."\n";
}else{ }else{
echo '<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900">'."\n"; echo '<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900&display=block">'."\n";
} }
//Googleフォント用CSS //Googleフォント用CSS
if ( get_option('fit_seoCss_fjalla')) { if ( get_option('fit_seoCss_fjalla')) {
echo '<link class="css-async" rel href="https://fonts.googleapis.com/css?family=Fjalla+One">'."\n"; echo ''."\n";
}else{ }else{
echo '<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fjalla+One">'."\n"; echo '<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fjalla+One">'."\n";
} }
//テーマ用CSS //テーマ用CSS
if ( get_option('fit_seoCss_main')) { if ( get_option('fit_seoCss_main')) {
echo '<link class="css-async" rel href="'.get_template_directory_uri().'/style.min.css">'."\n"; echo '<link class="css-async" rel="preload" href="'.get_template_directory_uri().'/style.min.css"as="style" as="style">'."\n";
}else{ }else{
echo '<link rel="stylesheet" href="'.get_template_directory_uri().'/style.min.css">'."\n"; echo '<link rel="stylesheet" href="'.get_template_directory_uri().'/style.min.css">'."\n";
} }
//子テーマ用CSS //子テーマ用CSS
if (is_child_theme() && get_option('fit_seoCss_child')) { if (is_child_theme() && get_option('fit_seoCss_child')) {
echo '<link class="css-async" rel href="'.get_stylesheet_directory_uri() . '/style-user.css?' . filemtime( get_stylesheet_directory() . '/style-user.css').'">'."\n"; echo '<link class="css-async" rel="preload" href="'.get_stylesheet_directory_uri() . '/style-user.css?' . filemtime( get_stylesheet_directory() . '/style-user.css').'" as="style">'."\n";
}elseif(is_child_theme() && !get_option('fit_seoCss_child')){ }elseif(is_child_theme() && !get_option('fit_seoCss_child')){
echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri() . '/style-user.css?' . filemtime( get_stylesheet_directory() . '/style-user.css').'">'."\n"; echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri() . '/style-user.css?' . filemtime( get_stylesheet_directory() . '/style-user.css').'">'."\n";
} }
...@@ -106,6 +106,7 @@ if(!function_exists('fit_head')) { ...@@ -106,6 +106,7 @@ if(!function_exists('fit_head')) {
//jQuery本体(WP同封ではなく、CDNを利用) //jQuery本体(WP同封ではなく、CDNを利用)
echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>'."\n"; echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>'."\n";
echo '<script src="https://leaders-lounge.achievement.co.jp/wp-content/themes/the-thor/common.min.js"></script>'."\n";
echo '<meta http-equiv="X-UA-Compatible" content="IE=edge">'."\n"; echo '<meta http-equiv="X-UA-Compatible" content="IE=edge">'."\n";
echo '<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>'."\n"; echo '<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"/>'."\n";
......
<?php <?php
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
//内部リンクをはてなカード風にするショートコード //内部リンクをはてなカード風にするショートコード
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
function fit_get_sitecard($atts) { function fit_get_sitecard($atts) {
extract(shortcode_atts(array( extract(shortcode_atts(array(
'url'=>"", 'url'=>"",
'subtitle'=>"関連記事", 'subtitle'=>"関連記事",
),$atts)); ),$atts));
$id = url_to_postid($url);//URLから投稿IDを取得 $id = url_to_postid($url);//URLから投稿IDを取得
if($id != '0') { if($id != '0') {
// URLから投稿IDが取得できたとき // URLから投稿IDが取得できたとき
$thumbnail = get_the_post_thumbnail($id,'icatch375'); $thumbnail = get_the_post_thumbnail($id,'icatch375');
if (empty($thumbnail)) { if (empty($thumbnail)) {
if ( get_fit_noimg()){ if ( get_fit_noimg()){
$thumbnail = '<img width="150" height="150" alt="IMG" '.fit_correct_src().'="'.get_fit_noimg().'" '.fit_dummy_src().'>'; $thumbnail = '<img width="150" height="150" alt="IMG" '.fit_correct_src().'="'.get_fit_noimg().'" '.fit_dummy_src().'>';
}else{ }else{
$thumbnail = '<img width="150" height="150" alt="IMG" '.fit_correct_src().'="'.get_template_directory_uri().'/img/img_no_thumbnail.gif" '.fit_dummy_src().'>'; $thumbnail = '<img width="150" height="150" alt="IMG" '.fit_correct_src().'="'.get_template_directory_uri().'/img/img_no_thumbnail.gif" '.fit_dummy_src().'>';
} }
} }
$title = esc_html(get_the_title($id)); $title = esc_html(get_the_title($id));
$post = get_post($id); $post = get_post($id);
$description = mb_substr(strip_tags(apply_filters('get_the_content', $post->post_content)), 0, 120).'[…]'; $description = mb_substr(strip_tags(apply_filters('get_the_content', $post->post_content)), 0, 120).'[…]';
$eyecatch_class = ''; $eyecatch_class = '';
if (get_option('fit_bsEyecatch_hover') != 'off' ) { if (get_option('fit_bsEyecatch_hover') != 'off' ) {
$eyecatch_class = ' eyecatch__link-'.get_option('fit_bsEyecatch_hover'); $eyecatch_class = ' eyecatch__link-'.get_option('fit_bsEyecatch_hover');
} }
$sitecard = ''; $sitecard = '';
if ($url) { if ($url) {
$sitecard = ' $sitecard = '
<div class="sitecard"> <div class="sitecard">
<div class="sitecard__subtitle">'.$subtitle.'</div>
<div class="eyecatch eyecatch-11"><a class="eyecatch__link'.$eyecatch_class.'" href="'. $url .'">'.$thumbnail.'</a></div>
<div class="sitecard__contents"> <div class="sitecard__contents">
<div class="sitecard__subtitle">'.$subtitle.'</div>
<div class="heading heading-secondary"><a href="'. $url .'">'. $title .'</a></div> <div class="heading heading-secondary"><a href="'. $url .'">'. $title .'</a></div>
<p class="phrase phrase-tertiary">'. $description .'</p>
<div class="sitecard__link"><a href="'. $url .'">'. "続きを読む" .'</a></div>
</div> </div>
<div class="eyecatch eyecatch-11"><a class="eyecatch__link'.$eyecatch_class.'" href="'. $url .'">'.$thumbnail.'</a></div>
</div>'; </div>';
} }
return $sitecard; return $sitecard;
} }
} }
add_shortcode("sitecard", "fit_get_sitecard"); add_shortcode("sitecard", "fit_get_sitecard");
{ {
"name": "THE THOR", "name": "Leader&#039;s Lounge",
"short_name": "THE THOR", "short_name": "THE THOR05",
"description": "My WordPress Blog", "description": "高みを目指す指導者に、上質な学びを",
"start_url": "/", "start_url": "/",
"display": "standalone", "display": "standalone",
"theme_color": "#191919", "theme_color": "#191919",
"background_color": "#ffffff", "background_color": "#ffffff",
"icons": [{ "icons": [{
"src": "https://thor-demo01.fit-theme.com/wp-content/uploads/2018/08/icon72.png", "src": "https://leaders-lounge.achievement.co.jp/wp-content/themes/the-thor/img/pwa-72.png",
"sizes": "72x72", "sizes": "72x72",
"type": "image/png" "type": "image/png"
}, { }, {
"src": "https://thor-demo01.fit-theme.com/wp-content/uploads/2018/08/icon192.png", "src": "https://leaders-lounge.achievement.co.jp/wp-content/themes/the-thor/img/pwa-192.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png" "type": "image/png"
}, { }, {
"src": "https://thor-demo01.fit-theme.com/wp-content/uploads/2018/08/icon512.png", "src": "https://leaders-lounge.achievement.co.jp/wp-content/themes/the-thor/img/pwa-512.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png" "type": "image/png"
}] }]
......
<?php /* Template Name: 特集一覧TPL */?>
<?php get_header(); ?>
<!--l-wrapper-->
<div class="l-wrapper">
<!--l-main-->
<?php
//フレーム設定
$frame = '';
if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){$frame = ' '.get_option('fit_conMain_frame');}
//ページ横幅のオプション設定
$width_page = '';
if (get_option('fit_pageLayout_width') && get_option('fit_pageLayout_width') != 'off'){$width_page = get_option('fit_pageLayout_width');}
//レイアウト設定
$layout = '';
if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ){
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '1' ){$layout = ' l-main-wide'.$width_page;}
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';}
}
else{
if ( get_option('fit_pageLayout_column') == '1' ){$layout = ' l-main-wide'.$width_page;}
if ( get_option('fit_pageLayout_column') != '1' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';}
}
?>
<main class="l-main<?php echo $frame.$layout; ?>">
<div class="dividerBottom">
<?php if ( get_option('fit_pageStyle_headline') != 'viral' ): ?>
<h1 class="heading heading-primary"><?php the_title(); ?></h1>
<?php if ( get_option('fit_pageStyle_headline') != 'none' ): ?>
<div class="eyecatch<?php if (get_option('fit_pageStyle_aspect') && get_option('fit_pageStyle_aspect') != 'off' ): ?> <?php echo get_option('fit_pageStyle_aspect'); ?><?php endif; ?> eyecatch-main">
<span class="eyecatch__link">
<?php if ( has_post_thumbnail()): ?>
<?php the_post_thumbnail('icatch768'); ?>
<?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?>
</span>
</div>
<?php endif; ?>
<?php endif; ?>
<!--pageContents-->
<div class="pageContents<?php if (get_option('fit_pageStyle_frame') && get_option('fit_pageStyle_frame') != 'off' ):?> <?php echo get_option('fit_pageStyle_frame')?><?php endif; ?>">
<?php if (get_option('fit_pageShare_top') == 'on') : ?>
<aside class="social-top"><?php fit_share_btn(); ?></aside>
<?php endif; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section class="content<?php fit_content_class(); ?>">
<?php the_content(); ?>
</section>
<?php endwhile; endif; ?>
<?php if (get_option('fit_pageShare_bottom') == 'on') : ?>
<aside class="social-bottom"><?php fit_share_btn(); ?></aside>
<?php endif; ?>
</div>
<!--/pageContents-->
<?php if( get_option('fit_pageCta_switch') == 'on' ):?>
<!-- 記事下CTA -->
<?php
$frame = '';
if(!empty(get_option('fit_pageCta_style')) && get_option('fit_pageCta_style') != 'off' ){
$frame = get_option('fit_pageCta_style');
}?>
<div class="pageCta <?php echo $frame ?>">
<?php if (get_option('fit_pageCta_title')) :?>
<h2 class="pageCta__title"><?php echo get_option('fit_pageCta_title'); ?></h2>
<?php endif; ?>
<div class="pageCta__contents">
<?php if (get_fit_pageCta_img()) :
$pageImg = get_fit_pageCta_img();
$pageImg_id = fit_get_imageId($pageImg);
$pageImg_full = wp_get_attachment_image_src( $pageImg_id, 'full' );
$pageImg_src = $pageImg_full[0]; //url
$pageImg_width = $pageImg_full[1]; //横幅
$pageImg_height = $pageImg_full[2]; //高さ
?>
<?php if (get_option('fit_pageCta_url')) :?><a href="<?php echo get_option('fit_pageCta_url'); ?>"><?php endif; ?>
<img class="pageCta__img<?php
if(get_option('fit_pageCta_imgPc') == 'value2' ){echo ' pageCta__img-pcCenter';}
if(get_option('fit_pageCta_imgPc') == 'value3' ){echo ' pageCta__img-pcLeft';}
if(get_option('fit_pageCta_imgSp') == 'value2' ){echo ' pageCta__img-spCenter';}
if(get_option('fit_pageCta_imgSp') == 'value3' ){echo ' pageCta__img-spLeft';}
?>"
<?php echo fit_correct_src(); ?>="<?php echo $pageImg_src; ?>" alt="CTA-IMAGE" width="<?php echo $pageImg_width; ?>" height="<?php echo $pageImg_height; ?>" <?php echo fit_dummy_src(); ?>>
<?php if (get_option('fit_pageCta_url')) :?></a><?php endif; ?>
<?php endif; ?>
<?php if (get_option('fit_pageCta_contents')) :?>
<?php echo apply_filters( 'fit_pageContents', get_option('fit_pageCta_contents') ); ?>
<?php endif; ?>
</div>
<?php if (get_option('fit_pageCta_btn') && get_option('fit_pageCta_url')) :?>
<div class="btn btn-center">
<a class="btn__link btn__link-primary btn__link-wide" href="<?php echo get_option('fit_pageCta_url') ?>"><?php echo get_option('fit_pageCta_btn') ?></a>
</div>
<?php endif; ?>
</div>
<!-- /記事下CTA -->
<?php endif; ?>
</div>
</main>
<!--/l-main-->
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ):?>
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' ):?>
<?php get_sidebar(); ?>
<?php endif; ?>
<?php else:?>
<?php if ( get_option('fit_pageLayout_column') != '1' ):?>
<?php get_sidebar(); ?>
<?php endif; ?>
<?php endif; ?>
</div>
<!--/l-wrapper-->
<?php get_footer(); ?>
<?php /* Template Name: サイトマップTPL */?> <?php /* Template Name: サイトマップTPL */?>
<?php get_header(); ?> <?php get_header(); ?>
<!--l-wrapper--> <!--l-wrapper-->
<div class="l-wrapper"> <div class="l-wrapper">
<!--l-main--> <!--l-main-->
<?php <?php
//フレーム設定 //フレーム設定
$frame = ''; $frame = '';
if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){$frame = ' '.get_option('fit_conMain_frame');} if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){$frame = ' '.get_option('fit_conMain_frame');}
//ページ横幅のオプション設定 //ページ横幅のオプション設定
$width_page = ''; $width_page = '';
if (get_option('fit_pageLayout_width') && get_option('fit_pageLayout_width') != 'off'){$width_page = get_option('fit_pageLayout_width');} if (get_option('fit_pageLayout_width') && get_option('fit_pageLayout_width') != 'off'){$width_page = get_option('fit_pageLayout_width');}
//レイアウト設定 //レイアウト設定
$layout = ''; $layout = '';
if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ){ if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ){
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '1' ){$layout = ' l-main-wide'.$width_page;} if ( get_post_meta(get_the_ID(), 'column_layout', true) == '1' ){$layout = ' l-main-wide'.$width_page;}
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';}
} }
else{ else{
if ( get_option('fit_pageLayout_column') == '1' ){$layout = ' l-main-wide'.$width_page;} if ( get_option('fit_pageLayout_column') == '1' ){$layout = ' l-main-wide'.$width_page;}
if ( get_option('fit_pageLayout_column') != '1' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_option('fit_pageLayout_column') != '1' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';}
} }
?> ?>
<main class="l-main<?php echo $frame.$layout; ?>"> <main class="l-main<?php echo $frame.$layout; ?>">
<div class="dividerBottom"> <div class="dividerBottom">
<?php if ( get_option('fit_pageStyle_headline') != 'viral' ): ?> <?php if ( get_option('fit_pageStyle_headline') != 'viral' ): ?>
<h1 class="heading heading-primary"><?php the_title(); ?></h1> <h1 class="heading heading-primary"><?php the_title(); ?></h1>
<?php if ( get_option('fit_pageStyle_headline') != 'none' ): ?>
<div class="eyecatch<?php if (get_option('fit_pageStyle_aspect') && get_option('fit_pageStyle_aspect') != 'off' ): ?> <?php echo get_option('fit_pageStyle_aspect'); ?><?php endif; ?> eyecatch-main">
<span class="eyecatch__link">
<?php if ( has_post_thumbnail()): ?>
<?php the_post_thumbnail('icatch768'); ?>
<?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?>
</span>
</div>
<?php endif; ?>
<?php endif; ?> <?php endif; ?>
<!--pageContents--> <!--pageContents-->
<div class="pageContents<?php if (get_option('fit_pageStyle_frame') && get_option('fit_pageStyle_frame') != 'off' ):?> <?php echo get_option('fit_pageStyle_frame')?><?php endif; ?>"> <div class="pageContents<?php if (get_option('fit_pageStyle_frame') && get_option('fit_pageStyle_frame') != 'off' ):?> <?php echo get_option('fit_pageStyle_frame')?><?php endif; ?>">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section class="content<?php fit_content_class(); ?>"> <section class="content<?php fit_content_class(); ?>">
<?php the_content(); ?> <?php the_content(); ?>
<div class="sitemap"> <div class="sitemap">
<?php if ( get_option('fit_bsSitemap_page') == 'on' ): ?> <?php if ( get_option('fit_bsSitemap_page') == 'on' ): ?>
<!--固定ページ--> <!--固定ページ-->
<h2><?php <h2><?php
if ( get_option('fit_bsSitemap_pageH')){ if ( get_option('fit_bsSitemap_pageH')){
echo get_option('fit_bsSitemap_pageH'); echo get_option('fit_bsSitemap_pageH');
}else { }else {
echo '固定'; echo '固定';
} }
?>ページ</h2> ?>ページ</h2>
<ul> <ul>
<?php if ( get_option('fit_bsSitemap_pageTop')): ?> <?php if ( get_option('fit_bsSitemap_pageTop')): ?>
<li><a href="<?php echo home_url() ?>"><?php bloginfo('name') ?></a></li> <li><a href="<?php echo home_url() ?>"><?php bloginfo('name') ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php <?php
$depth = '0'; $depth = '0';
$exclude = ''; $exclude = '';
if(get_option('fit_bsSitemap_pageRank')){ if(get_option('fit_bsSitemap_pageRank')){
$depth = get_option('fit_bsSitemap_pageRank'); $depth = get_option('fit_bsSitemap_pageRank');
} }
if(get_option('fit_bsSitemap_pageExc')){ if(get_option('fit_bsSitemap_pageExc')){
$exclude = get_option('fit_bsSitemap_pageExc'); $exclude = get_option('fit_bsSitemap_pageExc');
} }
wp_list_pages( array( wp_list_pages( array(
'sort_column' => 'menu_order', 'sort_column' => 'menu_order',
'sort_order' => 'asc', 'sort_order' => 'asc',
'depth' => $depth,//表示階層 'depth' => $depth,//表示階層
'exclude' => $exclude,//除外ページ(,区切り) 'exclude' => $exclude,//除外ページ(,区切り)
'title_li' => '', 'title_li' => '',
)); ?> )); ?>
</ul> </ul>
<!--/固定ページ--> <!--/固定ページ-->
<?php endif; ?> <?php endif; ?>
<?php if ( get_option('fit_bsSitemap_post') == 'on' ): ?> <?php if ( get_option('fit_bsSitemap_post') == 'on' ): ?>
<!--投稿ページ--> <!--投稿ページ-->
<?php if ( get_option('fit_bsSitemap_postDisplay') != 'value2' ): ?> <?php if ( get_option('fit_bsSitemap_postDisplay') != 'value2' ): ?>
<!--同一--> <!--同一-->
<h2><?php <h2><?php
if ( get_option('fit_bsSitemap_postH')){ if ( get_option('fit_bsSitemap_postH')){
echo get_option('fit_bsSitemap_postH'); echo get_option('fit_bsSitemap_postH');
}else { }else {
echo '投稿'; echo '投稿';
} }
?>ページ</h2> ?>ページ</h2>
<?php <?php
$args = array( $args = array(
'orderby' => 'count', 'orderby' => 'count',
'order' => 'desc', 'order' => 'desc',
'exclude' => get_option('fit_bsSitemap_postCateExc'),//除外カテゴリ(,区切り) 'exclude' => get_option('fit_bsSitemap_postCateExc'),//除外カテゴリ(,区切り)
); );
$categories = get_categories($args); $categories = get_categories($args);
foreach ($categories as $category) : ?> foreach ($categories as $category) : ?>
<h3><a href="<?php echo get_category_link($category->term_id); ?>"><?php echo $category->name; ?></a></h3> <h3><a href="<?php echo get_category_link($category->term_id); ?>"><?php echo $category->name; ?></a></h3>
<ul> <ul>
<?php <?php
$post_id = get_option('fit_bsSitemap_postExc'); $post_id = get_option('fit_bsSitemap_postExc');
$not_post = explode(',', $post_id); $not_post = explode(',', $post_id);
$args = array( $args = array(
'orderby' => 'date', 'orderby' => 'date',
'order' => 'desc', 'order' => 'desc',
'posts_per_page' => '-1',//全権取得 'posts_per_page' => '-1',//全権取得
'post__not_in' => $not_post,//除外投稿(,区切り) 'post__not_in' => $not_post,//除外投稿(,区切り)
'cat' => $category->term_id, 'cat' => $category->term_id,
); );
$the_query = new WP_Query( $args ); $the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?> <?php endwhile; ?>
<?php else : ?> <?php else : ?>
<li>投稿がありません</li> <li>投稿がありません</li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<?php endforeach; ?> <?php endforeach; ?>
<!--/同一--> <!--/同一-->
<?php endif; ?> <?php endif; ?>
<?php if ( get_option('fit_bsSitemap_postDisplay') == 'value2' ): ?> <?php if ( get_option('fit_bsSitemap_postDisplay') == 'value2' ): ?>
<!--分割--> <!--分割-->
<h2>投稿ページ</h2> <h2>投稿ページ</h2>
<h3>カテゴリー</h3> <h3>カテゴリー</h3>
<ul> <ul>
<?php <?php
wp_list_categories( array( wp_list_categories( array(
'orderby' => 'count', 'orderby' => 'count',
'order' => 'desc', 'order' => 'desc',
'exclude' => get_option('fit_bsSitemap_postCateExc'),//除外カテゴリ(,区切り) 'exclude' => get_option('fit_bsSitemap_postCateExc'),//除外カテゴリ(,区切り)
'title_li' => '', 'title_li' => '',
'show_count' => 0, 'show_count' => 0,
)); ?> )); ?>
</ul> </ul>
<h3>ページ</h3> <h3>ページ</h3>
<ul> <ul>
<?php <?php
$post_id = get_option('fit_bsSitemap_postExc'); $post_id = get_option('fit_bsSitemap_postExc');
$not_post = explode(',', $post_id); $not_post = explode(',', $post_id);
$cate_id = get_option('fit_bsSitemap_postCateExc'); $cate_id = get_option('fit_bsSitemap_postCateExc');
$not_cate = explode(',', $cate_id); $not_cate = explode(',', $cate_id);
$args = array( $args = array(
'orderby' => 'date', 'orderby' => 'date',
'order' => 'desc', 'order' => 'desc',
'posts_per_page' => '-1',//全権取得 'posts_per_page' => '-1',//全権取得
'post__not_in' => $not_post,//除外投稿(,区切り) 'post__not_in' => $not_post,//除外投稿(,区切り)
'category__not_in ' => $not_cate,//除外カテゴリー(,区切り) 'category__not_in ' => $not_cate,//除外カテゴリー(,区切り)
); );
$the_query = new WP_Query( $args ); $the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?> <?php endwhile; ?>
<?php else : ?> <?php else : ?>
<li>投稿がありません</li> <li>投稿がありません</li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<!--/分割--> <!--/分割-->
<?php endif; ?> <?php endif; ?>
<!--/投稿ページ--> <!--/投稿ページ-->
<?php endif; ?> <?php endif; ?>
<?php if ( get_option('fit_bsSitemap_custom') == 'on' ): ?> <?php if ( get_option('fit_bsSitemap_custom') == 'on' ): ?>
<!--カスタム投稿(custom)--> <!--カスタム投稿(custom)-->
<?php if ( get_option('fit_bsSitemap_customDisplay') != 'value2' ): ?> <?php if ( get_option('fit_bsSitemap_customDisplay') != 'value2' ): ?>
<!--同一--> <!--同一-->
<?php <?php
$post = get_post_type_object('custom'); $post = get_post_type_object('custom');
$label = $post->label; $label = $post->label;
?> ?>
<h2><?php echo $label; ?>ページ</h2> <h2><?php echo $label; ?>ページ</h2>
<?php <?php
$args = array( $args = array(
'orderby' => 'count', 'orderby' => 'count',
'order' => 'desc', 'order' => 'desc',
'taxonomy' => 'custom_category', 'taxonomy' => 'custom_category',
'exclude' => get_option('fit_bsSitemap_customCateExc'), 'exclude' => get_option('fit_bsSitemap_customCateExc'),
); );
$categories = get_categories($args); $categories = get_categories($args);
foreach ($categories as $category) : ?> foreach ($categories as $category) : ?>
<h3><a href="<?php echo get_category_link($category->term_id); ?>"><?php echo $category->name; ?></a></h3> <h3><a href="<?php echo get_category_link($category->term_id); ?>"><?php echo $category->name; ?></a></h3>
<ul> <ul>
<?php <?php
$post_id = get_option('fit_bsSitemap_customExc'); $post_id = get_option('fit_bsSitemap_customExc');
$not_post = explode(',', $post_id); $not_post = explode(',', $post_id);
$args = array( $args = array(
'post_type' => 'custom', 'post_type' => 'custom',
'orderby' => 'date', 'orderby' => 'date',
'order' => 'desc', 'order' => 'desc',
'posts_per_page' => '-1',//全権取得 'posts_per_page' => '-1',//全権取得
'post__not_in' => $not_post,//除外投稿(,区切り) 'post__not_in' => $not_post,//除外投稿(,区切り)
'tax_query' => array( 'tax_query' => array(
array( array(
'taxonomy' => 'custom_category', 'taxonomy' => 'custom_category',
'field' => 'term_id', 'field' => 'term_id',
'terms' => $category->term_id 'terms' => $category->term_id
), ),
), ),
); );
$the_query = new WP_Query( $args ); $the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?> <?php endwhile; ?>
<?php else : ?> <?php else : ?>
<li>投稿がありません</li> <li>投稿がありません</li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<?php endforeach; ?> <?php endforeach; ?>
<!--/同一--> <!--/同一-->
<?php endif; ?> <?php endif; ?>
<?php if ( get_option('fit_bsSitemap_customDisplay') == 'value2' ): ?> <?php if ( get_option('fit_bsSitemap_customDisplay') == 'value2' ): ?>
<!--分割--> <!--分割-->
<?php <?php
$post = get_post_type_object('custom'); $post = get_post_type_object('custom');
$label = $post->label; $label = $post->label;
?> ?>
<h2><?php echo $label; ?>ページ</h2> <h2><?php echo $label; ?>ページ</h2>
<h3>カテゴリー</h3> <h3>カテゴリー</h3>
<ul> <ul>
<?php <?php
wp_list_categories( array( wp_list_categories( array(
'orderby' => 'count', 'orderby' => 'count',
'order' => 'desc', 'order' => 'desc',
'taxonomy' => 'custom_category', 'taxonomy' => 'custom_category',
'exclude' => get_option('fit_bsSitemap_customCateExc'),//除外カテゴリ(,区切り) 'exclude' => get_option('fit_bsSitemap_customCateExc'),//除外カテゴリ(,区切り)
'title_li' => '', 'title_li' => '',
'show_count' => 0, 'show_count' => 0,
)); ?> )); ?>
</ul> </ul>
<h3>ページ</h3> <h3>ページ</h3>
<ul> <ul>
<?php <?php
$post_id = get_option('fit_bsSitemap_customExc'); $post_id = get_option('fit_bsSitemap_customExc');
$not_post = explode(',', $post_id); $not_post = explode(',', $post_id);
$cate_id = get_option('fit_bsSitemap_customCateExc'); $cate_id = get_option('fit_bsSitemap_customCateExc');
$not_cate = explode(',', $cate_id); $not_cate = explode(',', $cate_id);
$args = array( $args = array(
'orderby' => 'date', 'orderby' => 'date',
'order' => 'desc', 'order' => 'desc',
'post_type' => 'custom', 'post_type' => 'custom',
'posts_per_page' => '-1',//全権取得 'posts_per_page' => '-1',//全権取得
'post__not_in' => $not_post,//除外投稿(,区切り) 'post__not_in' => $not_post,//除外投稿(,区切り)
'tax_query' => array( 'tax_query' => array(
array( array(
'taxonomy' => 'custom_category', 'taxonomy' => 'custom_category',
'field' => 'term_id', 'field' => 'term_id',
'terms' => $not_cate, 'terms' => $not_cate,
'operator' => 'NOT IN' 'operator' => 'NOT IN'
), ),
), ),
); );
$the_query = new WP_Query( $args ); $the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?> <?php endwhile; ?>
<?php else : ?> <?php else : ?>
<li>投稿がありません</li> <li>投稿がありません</li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<!--/分割--> <!--/分割-->
<?php endif; ?> <?php endif; ?>
<!--/カスタム投稿(custom)--> <!--/カスタム投稿(custom)-->
<?php endif; ?> <?php endif; ?>
</div> </div>
</section> </section>
<?php endwhile; endif; ?> <?php endwhile; endif; ?>
</div> </div>
<!--/pageContents--> <!--/pageContents-->
</div> </div>
</main> </main>
<!--/l-main--> <!--/l-main-->
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ):?> <?php if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ):?>
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' ):?> <?php if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
<?php else:?> <?php else:?>
<?php if ( get_option('fit_pageLayout_column') != '1' ):?> <?php if ( get_option('fit_pageLayout_column') != '1' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--/l-wrapper--> <!--/l-wrapper-->
<?php get_footer(); ?> <?php get_footer(); ?>
<?php get_header(); ?> <?php get_header(); ?>
<!--h1-wrapper-->
<div class="h1-wrapper container">
<h1 class="heading heading-primary"><?php the_title(); ?></h1>
</div>
<!--l-wrapper--> <!--l-wrapper-->
<div class="l-wrapper"> <div class="l-wrapper">
<!--l-main--> <!--l-main-->
<?php <?php
//フレーム設定 //フレーム設定
$frame = ''; $frame = '';
if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){$frame = ' '.get_option('fit_conMain_frame');} if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){$frame = ' '.get_option('fit_conMain_frame');}
//ページ横幅のオプション設定 //ページ横幅のオプション設定
$width_page = ''; $width_page = '';
if (get_option('fit_pageLayout_width') && get_option('fit_pageLayout_width') != 'off'){$width_page = get_option('fit_pageLayout_width');} if (get_option('fit_pageLayout_width') && get_option('fit_pageLayout_width') != 'off'){$width_page = get_option('fit_pageLayout_width');}
//レイアウト設定 //レイアウト設定
$layout = ''; $layout = '';
if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ){ if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ){
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '1' ){$layout = ' l-main-wide'.$width_page;} if ( get_post_meta(get_the_ID(), 'column_layout', true) == '1' ){$layout = ' l-main-wide'.$width_page;}
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';}
} }
else{ else{
if ( get_option('fit_pageLayout_column') == '1' ){$layout = ' l-main-wide'.$width_page;} if ( get_option('fit_pageLayout_column') == '1' ){$layout = ' l-main-wide'.$width_page;}
if ( get_option('fit_pageLayout_column') != '1' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_option('fit_pageLayout_column') != '1' && get_option('fit_pageLayout_side') == 'left' ){$layout = ' l-main-right';}
} }
?> ?>
<main class="l-main<?php echo $frame.$layout; ?>"> <main class="l-main<?php echo $frame.$layout; ?>">
<div class="dividerBottom"> <div class="dividerBottom">
<?php if ( get_option('fit_pageStyle_headline') != 'viral' ): ?> <?php if ( get_option('fit_pageStyle_headline') != 'viral' ): ?>
<h1 class="heading heading-primary"><?php the_title(); ?></h1>
<!--<h1 class="heading heading-primary"><?php the_title(); ?></h1>-->
<?php if ( get_option('fit_pageStyle_headline') != 'none' ): ?> <?php if ( get_option('fit_pageStyle_headline') != 'none' ): ?>
<div class="eyecatch<?php if (get_option('fit_pageStyle_aspect') && get_option('fit_pageStyle_aspect') != 'off' ): ?> <?php echo get_option('fit_pageStyle_aspect'); ?><?php endif; ?> eyecatch-main"> <div class="eyecatch<?php if (get_option('fit_pageStyle_aspect') && get_option('fit_pageStyle_aspect') != 'off' ): ?> <?php echo get_option('fit_pageStyle_aspect'); ?><?php endif; ?> eyecatch-main">
<span class="eyecatch__link"> <span class="eyecatch__link">
<?php if ( has_post_thumbnail()): ?> <?php if ( has_post_thumbnail()): ?>
<?php the_post_thumbnail('icatch768'); ?> <?php the_post_thumbnail('icatch768'); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</span> </span>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<!--pageContents--> <!--pageContents-->
<div class="pageContents<?php if (get_option('fit_pageStyle_frame') && get_option('fit_pageStyle_frame') != 'off' ):?> <?php echo get_option('fit_pageStyle_frame')?><?php endif; ?>"> <div class="pageContents<?php if (get_option('fit_pageStyle_frame') && get_option('fit_pageStyle_frame') != 'off' ):?> <?php echo get_option('fit_pageStyle_frame')?><?php endif; ?>">
<?php if (get_option('fit_pageShare_top') == 'on') : ?> <?php if (get_option('fit_pageShare_top') == 'on') : ?>
<aside class="social-top"><?php fit_share_btn(); ?></aside> <aside class="social-top"><?php fit_share_btn(); ?></aside>
<?php endif; ?> <?php endif; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section class="content<?php fit_content_class(); ?>"> <section class="content<?php fit_content_class(); ?>">
<?php the_content(); ?> <?php the_content(); ?>
</section> </section>
<?php endwhile; endif; ?> <?php endwhile; endif; ?>
<?php if (get_option('fit_pageShare_bottom') == 'on') : ?> <?php if (get_option('fit_pageShare_bottom') == 'on') : ?>
<aside class="social-bottom"><?php fit_share_btn(); ?></aside> <aside class="social-bottom"><?php fit_share_btn(); ?></aside>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--/pageContents--> <!--/pageContents-->
<?php if( get_option('fit_pageCta_switch') == 'on' ):?> <?php if( get_option('fit_pageCta_switch') == 'on' ):?>
<!-- 記事下CTA --> <!-- 記事下CTA -->
<?php <?php
$frame = ''; $frame = '';
if(!empty(get_option('fit_pageCta_style')) && get_option('fit_pageCta_style') != 'off' ){ if(!empty(get_option('fit_pageCta_style')) && get_option('fit_pageCta_style') != 'off' ){
$frame = get_option('fit_pageCta_style'); $frame = get_option('fit_pageCta_style');
}?> }?>
<div class="pageCta <?php echo $frame ?>"> <div class="pageCta <?php echo $frame ?>">
<?php if (get_option('fit_pageCta_title')) :?> <?php if (get_option('fit_pageCta_title')) :?>
<h2 class="pageCta__title"><?php echo get_option('fit_pageCta_title'); ?></h2> <h2 class="pageCta__title"><?php echo get_option('fit_pageCta_title'); ?></h2>
<?php endif; ?> <?php endif; ?>
<div class="pageCta__contents"> <div class="pageCta__contents">
<?php if (get_fit_pageCta_img()) : <?php if (get_fit_pageCta_img()) :
$pageImg = get_fit_pageCta_img(); $pageImg = get_fit_pageCta_img();
$pageImg_id = fit_get_imageId($pageImg); $pageImg_id = fit_get_imageId($pageImg);
$pageImg_full = wp_get_attachment_image_src( $pageImg_id, 'full' ); $pageImg_full = wp_get_attachment_image_src( $pageImg_id, 'full' );
$pageImg_src = $pageImg_full[0]; //url $pageImg_src = $pageImg_full[0]; //url
$pageImg_width = $pageImg_full[1]; //横幅 $pageImg_width = $pageImg_full[1]; //横幅
$pageImg_height = $pageImg_full[2]; //高さ $pageImg_height = $pageImg_full[2]; //高さ
?> ?>
<?php if (get_option('fit_pageCta_url')) :?><a href="<?php echo get_option('fit_pageCta_url'); ?>"><?php endif; ?> <?php if (get_option('fit_pageCta_url')) :?><a href="<?php echo get_option('fit_pageCta_url'); ?>"><?php endif; ?>
<img class="pageCta__img<?php <img class="pageCta__img<?php
if(get_option('fit_pageCta_imgPc') == 'value2' ){echo ' pageCta__img-pcCenter';} if(get_option('fit_pageCta_imgPc') == 'value2' ){echo ' pageCta__img-pcCenter';}
if(get_option('fit_pageCta_imgPc') == 'value3' ){echo ' pageCta__img-pcLeft';} if(get_option('fit_pageCta_imgPc') == 'value3' ){echo ' pageCta__img-pcLeft';}
if(get_option('fit_pageCta_imgSp') == 'value2' ){echo ' pageCta__img-spCenter';} if(get_option('fit_pageCta_imgSp') == 'value2' ){echo ' pageCta__img-spCenter';}
if(get_option('fit_pageCta_imgSp') == 'value3' ){echo ' pageCta__img-spLeft';} if(get_option('fit_pageCta_imgSp') == 'value3' ){echo ' pageCta__img-spLeft';}
?>" ?>"
<?php echo fit_correct_src(); ?>="<?php echo $pageImg_src; ?>" alt="CTA-IMAGE" width="<?php echo $pageImg_width; ?>" height="<?php echo $pageImg_height; ?>" <?php echo fit_dummy_src(); ?>> <?php echo fit_correct_src(); ?>="<?php echo $pageImg_src; ?>" alt="CTA-IMAGE" width="<?php echo $pageImg_width; ?>" height="<?php echo $pageImg_height; ?>" <?php echo fit_dummy_src(); ?>>
<?php if (get_option('fit_pageCta_url')) :?></a><?php endif; ?> <?php if (get_option('fit_pageCta_url')) :?></a><?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php if (get_option('fit_pageCta_contents')) :?> <?php if (get_option('fit_pageCta_contents')) :?>
<?php echo apply_filters( 'fit_pageContents', get_option('fit_pageCta_contents') ); ?> <?php echo apply_filters( 'fit_pageContents', get_option('fit_pageCta_contents') ); ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php if (get_option('fit_pageCta_btn') && get_option('fit_pageCta_url')) :?> <?php if (get_option('fit_pageCta_btn') && get_option('fit_pageCta_url')) :?>
<div class="btn btn-center"> <div class="btn btn-center">
<a class="btn__link btn__link-primary btn__link-wide" href="<?php echo get_option('fit_pageCta_url') ?>"><?php echo get_option('fit_pageCta_btn') ?></a> <a class="btn__link btn__link-primary btn__link-wide" href="<?php echo get_option('fit_pageCta_url') ?>"><?php echo get_option('fit_pageCta_btn') ?></a>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!-- /記事下CTA --> <!-- /記事下CTA -->
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php $related_posts = get_field('featuredList'); if($related_posts): ?>
<div class="pickupFeatured">
<h2 class="heading heading-secondary heading-main-archive">特集一覧</h2>
<div class="featuredList__list">
<?php foreach( $related_posts as $post): setup_postdata($post); ?>
<div class="featuredList__item">
<div class="eyecatch">
<a class="eyecatch__link" href="<?php the_permalink(); ?>">
<?php
if( has_post_thumbnail() ):
the_post_thumbnail('icatch375');
else :
// no thumbnail
endif;
?>
</a>
</div>
<h3 class="heading heading-secondary"><a class="featuredList__link" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
</div>
<?php endforeach; wp_reset_postdata();?>
</div>
</div>
<?php endif; ?>
</main> </main>
<!--/l-main--> <!--/l-main-->
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ):?> <?php if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ):?>
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' ):?> <?php if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
<?php else:?> <?php else:?>
<?php if ( get_option('fit_pageLayout_column') != '1' ):?> <?php if ( get_option('fit_pageLayout_column') != '1' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--/l-wrapper--> <!--/l-wrapper-->
<?php get_footer(); ?> <?php get_footer(); ?>
<?php <?php
$keywordH = 'キーワード'; $keywordH = 'キーワード';
$categoryH = 'カテゴリー'; $categoryH = 'カテゴリー';
$tagH = 'タグ'; $tagH = 'タグ';
if(get_option('fit_bsSearch_keywordH')){ $keywordH = get_option('fit_bsSearch_keywordH');} if(get_option('fit_bsSearch_keywordH')){ $keywordH = get_option('fit_bsSearch_keywordH');}
if(get_option('fit_bsSearch_categoryH')){$categoryH = get_option('fit_bsSearch_categoryH');} if(get_option('fit_bsSearch_categoryH')){$categoryH = get_option('fit_bsSearch_categoryH');}
if(get_option('fit_bsSearch_tagH')){ $tagH = get_option('fit_bsSearch_tagH');} if(get_option('fit_bsSearch_tagH')){ $tagH = get_option('fit_bsSearch_tagH');}
?> ?>
<form method="get" action="<?php echo esc_url(home_url()); ?>" target="_top"> <form method="get" action="<?php echo esc_url(home_url()); ?>" target="_top">
<div class="widgetSearch__contents"> <div class="widgetSearch__contents">
<h3 class="heading heading-tertiary"><?php echo $keywordH ?></h3> <h3 class="heading heading-tertiary"><?php echo $keywordH ?></h3>
<input class="widgetSearch__input widgetSearch__input-max" type="text" name="s" placeholder="キーワードを入力" value="<?php if( get_search_query() ){ echo get_search_query();} ?>"> <input class="widgetSearch__input widgetSearch__input-max" type="text" name="s" placeholder="キーワードを入力" value="<?php if( get_search_query() ){ echo get_search_query();} ?>">
<?php if(get_option('fit_bsSearch_pickup1') || get_option('fit_bsSearch_pickup2') || get_option('fit_bsSearch_pickup3') || get_option('fit_bsSearch_pickup4') || get_option('fit_bsSearch_pickup5')): ?> <?php if(get_option('fit_bsSearch_pickup1') || get_option('fit_bsSearch_pickup2') || get_option('fit_bsSearch_pickup3') || get_option('fit_bsSearch_pickup4') || get_option('fit_bsSearch_pickup5')): ?>
<ol class="widgetSearch__word"> <ol class="widgetSearch__word">
<?php if(get_option('fit_bsSearch_pickup1')): ?> <?php if(get_option('fit_bsSearch_pickup1')): ?>
<li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup1'); ?>"><?php echo get_option('fit_bsSearch_pickup1'); ?></a></li> <li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup1'); ?>"><?php echo get_option('fit_bsSearch_pickup1'); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_bsSearch_pickup2')): ?> <?php if(get_option('fit_bsSearch_pickup2')): ?>
<li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup2'); ?>"><?php echo get_option('fit_bsSearch_pickup2'); ?></a></li> <li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup2'); ?>"><?php echo get_option('fit_bsSearch_pickup2'); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_bsSearch_pickup3')): ?> <?php if(get_option('fit_bsSearch_pickup3')): ?>
<li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup3'); ?>"><?php echo get_option('fit_bsSearch_pickup3'); ?></a></li> <li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup3'); ?>"><?php echo get_option('fit_bsSearch_pickup3'); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_bsSearch_pickup4')): ?> <?php if(get_option('fit_bsSearch_pickup4')): ?>
<li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup4'); ?>"><?php echo get_option('fit_bsSearch_pickup4'); ?></a></li> <li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup4'); ?>"><?php echo get_option('fit_bsSearch_pickup4'); ?></a></li>
<?php endif; ?> <?php endif; ?>
<?php if(get_option('fit_bsSearch_pickup5')): ?> <?php if(get_option('fit_bsSearch_pickup5')): ?>
<li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup5'); ?>"><?php echo get_option('fit_bsSearch_pickup5'); ?></a></li> <li class="widgetSearch__wordItem"><a href="<?php echo esc_url(home_url()); ?>?s=<?php echo get_option('fit_bsSearch_pickup5'); ?>"><?php echo get_option('fit_bsSearch_pickup5'); ?></a></li>
<?php endif; ?> <?php endif; ?>
</ol> </ol>
<?php endif; ?> <?php endif; ?>
</div>
<div class="widgetSearch__contents">
<h3 class="heading heading-tertiary"><?php echo $categoryH ?></h3>
<?php
$args = array(
'show_option_none' => $categoryH.'を選択',
'option_none_value' => '',
'show_count' => 0,
'id' => uniqid("cat_"),
'class' => 'widgetSearch__select',
);
wp_dropdown_categories($args);
?>
</div>
<?php
$tags = get_tags();
if ( $tags ) :
?>
<div class="widgetSearch__tag">
<h3 class="heading heading-tertiary"><?php echo $tagH ?></h3>
<?php
$checkboxes = '';
foreach($tags as $tag){
if (isset($_GET["tag"])) {
if (in_array($tag->slug, $_GET["tag"])) {
$checkboxes .= '<label><input class="widgetSearch__check" type="checkbox" name="tag[]" value="'.$tag -> slug.'" checked/><span class="widgetSearch__checkLabel">'.$tag->name.'</span></label>';
}else{
$checkboxes .='<label><input class="widgetSearch__check" type="checkbox" name="tag[]" value="'.$tag -> slug.'" /><span class="widgetSearch__checkLabel">'.$tag->name.'</span></label>';
}
}else{
$checkboxes .='<label><input class="widgetSearch__check" type="checkbox" name="tag[]" value="'.$tag -> slug.'" /><span class="widgetSearch__checkLabel">'.$tag->name.'</span></label>';
}
}
echo $checkboxes;
?>
</div> </div>
<?php endif; ?>
<div class="btn btn-search"> <div class="btn btn-search">
<button class="btn__link btn__link-search" type="submit" value="search">検索</button> <button class="btn__link btn__link-search" type="submit" value="search">検索</button>
</div> </div>
</form> </form>
<?php get_header();?> <?php get_header();?>
<div class="h1-wrapper container">
<h1 class="heading heading-primary"><?php the_title(); ?></h1>
</div>
<!--l-wrapper--> <!--l-wrapper-->
<div class="l-wrapper"> <div class="l-wrapper">
<!--l-main--> <!--l-main-->
<?php <?php
//フレーム設定 //フレーム設定
$frame = ''; $frame = '';
if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){$frame = ' '.get_option('fit_conMain_frame');} if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){$frame = ' '.get_option('fit_conMain_frame');}
//ページ横幅のオプション設定 //ページ横幅のオプション設定
$width_post = ''; $width_post = '';
if (get_option('fit_postLayout_width') && get_option('fit_postLayout_width') != 'off'){$width_post = get_option('fit_postLayout_width');} if (get_option('fit_postLayout_width') && get_option('fit_postLayout_width') != 'off'){$width_post = get_option('fit_postLayout_width');}
//レイアウト設定 //レイアウト設定
$layout = ''; $layout = '';
if ( get_option('fit_postLayout_column') == '1' ){$layout = ' l-main-wide'.$width_post;} if ( get_option('fit_postLayout_column') == '1' ){$layout = ' l-main-wide'.$width_post;}
if ( get_option('fit_postLayout_column') != '1' && get_option('fit_postLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_option('fit_postLayout_column') != '1' && get_option('fit_postLayout_side') == 'left' ){$layout = ' l-main-right';}
?> ?>
<main class="l-main<?php echo $frame.$layout; ?>"> <main class="l-main<?php echo $frame.$layout; ?>">
<div class="dividerBottom"> <div class="dividerBottom">
<h1 class="heading heading-primary"><?php the_title(); ?></h1>
<!--postContents--> <!--postContents-->
<div class="postContents<?php if (get_option('fit_postStyle_frame') && get_option('fit_postStyle_frame') != 'off' ):?> <?php echo get_option('fit_postStyle_frame')?><?php endif; ?>"> <div class="postContents<?php if (get_option('fit_postStyle_frame') && get_option('fit_postStyle_frame') != 'off' ):?> <?php echo get_option('fit_postStyle_frame')?><?php endif; ?>">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section class="content<?php fit_content_class(); ?>"> <section class="content<?php fit_content_class(); ?>">
<?php the_content(); ?> <?php the_content(); ?>
</section> </section>
<?php <?php
// ページングの表示 // ページングの表示
fit_link_pages(); fit_link_pages();
?> ?>
<?php endwhile; endif; ?> <?php endwhile; endif; ?>
</div> </div>
<!--/postContents--> <!--/postContents-->
<div class="btn btn-center u-mt-main">
<a class="btn__link btn__link-primary" href="javascript: history.back()">前のページへ戻る</a>
<?php
if( get_option('fit_postPrevNext_switch') == 'on' && get_post_meta(get_the_ID(), 'prevNext_hide', true) != '1' ): //前次記事の表示がONの時
$noText = '記事がありません';
$nextText = 'Next';
$prevText = 'Prev';
if(get_option('fit_postPrevNext_text')){
$noText = get_option('fit_postPrevNext_text');
}
if(get_option('fit_postPrevNext_next')){
$nextText = get_option('fit_postPrevNext_next');
}
if(get_option('fit_postPrevNext_prev')){
$prevText = get_option('fit_postPrevNext_prev');
}
if(get_option('fit_postPrevNext_category')){
$prevpost = get_adjacent_post(true, '', true); //同一カテゴリの前の記事
$nextpost = get_adjacent_post(true, '', false); //同一カテゴリの次の記事
}
else {
$prevpost = get_adjacent_post(false, '', true); //前の記事
$nextpost = get_adjacent_post(false, '', false); //次の記事
}
if($prevpost || $nextpost):
?>
<!-- 前次記事エリア -->
<ul class="prevNext">
<?php if ( $prevpost ) {//前の記事がある時
// prev_thumbnailサイズの画像内容を取得
$prev_thumbnail_id = get_post_thumbnail_id($prevpost->ID);
$prev_thumb_img = wp_get_attachment_image_src( $prev_thumbnail_id , 'icatch375' );
// サムネイル画像出力
$prev_thumb_src = $prev_thumb_img[0];
$prev_thumb_width = $prev_thumb_img[1];
$prev_thumb_height = $prev_thumb_img[2];
?>
<li class="prevNext__item prevNext__item-prev">
<div class="eyecatch">
<div class="prevNext__pop"><?php echo $prevText; ?></div>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($prevpost->ID); ?>">
<?php if(has_post_thumbnail($prevpost->ID)) : ?>
<img <?php echo fit_correct_src(); ?>="<?php echo $prev_thumb_src; ?>" alt="<?php echo get_the_title($prevpost->ID); ?>" width="<?php echo $prev_thumb_width; ?>" height="<?php echo $prev_thumb_height; ?>" <?php echo fit_dummy_src(); ?>>
<?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>>
<?php else :?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>>
<?php endif; ?>
<div class="prevNext__title">
<?php if (get_option('fit_postPrevNext_time') == 'on' ) : ?><span class="icon-clock"><?php echo get_the_time(get_option('date_format') , $prevpost->ID ); ?></span><?php endif; ?>
<h3 class="heading heading-secondary"><?php echo get_the_title($prevpost->ID); ?></h3>
</div> </div>
</a>
</div> </div>
</li>
<?php }else { //前の記事がない時?>
<li class="prevNext__item prevNext__item-prev">
<div class="eyecatch">
<div class="prevNext__pop"><?php echo $prevText; ?></div>
<p class="prevNext__text"><?php echo $noText; ?></p>
</div>
</li>
<?php }?>
<?php if ( $nextpost ) {//次の記事がある時
// next_thumbnailサイズの画像内容を取得
$next_thumbnail_id = get_post_thumbnail_id($nextpost->ID);
$next_thumb_img = wp_get_attachment_image_src( $next_thumbnail_id , 'icatch375' );
// サムネイル画像出力
$next_thumb_src = $next_thumb_img[0];
$next_thumb_width = $next_thumb_img[1];
$next_thumb_height = $next_thumb_img[2];
?>
<li class="prevNext__item prevNext__item-next">
<div class="eyecatch">
<div class="prevNext__pop"><?php echo $nextText; ?></div>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($nextpost->ID); ?>">
<?php if(has_post_thumbnail($nextpost->ID)) : ?>
<img <?php echo fit_correct_src(); ?>="<?php echo $next_thumb_src; ?>" alt="<?php echo get_the_title($nextpost->ID); ?>" width="<?php echo $next_thumb_width; ?>" height="<?php echo $next_thumb_height; ?>" <?php echo fit_dummy_src(); ?>>
<?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>>
<?php else :?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>>
<?php endif; ?>
<div class="prevNext__title">
<?php if (get_option('fit_postPrevNext_time') == 'on' ) : ?><span class="icon-clock"><?php echo get_the_time(get_option('date_format') , $nextpost->ID ); ?></span><?php endif; ?>
<h3 class="heading heading-secondary"><?php echo get_the_title($nextpost->ID); ?></h3>
</div>
</a>
</div>
</li>
<?php }else { //次の記事がない時 ?>
<li class="prevNext__item prevNext__item-next">
<div class="eyecatch">
<div class="prevNext__pop"><?php echo $nextText; ?></div>
<p class="prevNext__text"><?php echo $noText; ?></p>
</div>
</li>
<?php }?>
</ul>
<!-- /前次記事エリア -->
<?php endif; endif; ?>
</div>
</main> </main>
<!--/l-main--> <!--/l-main-->
<?php if ( get_option('fit_postLayout_column') != '1' ):?> <?php if ( get_option('fit_postLayout_column') != '1' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--/l-wrapper--> <!--/l-wrapper-->
<?php get_footer(); ?> <?php get_footer(); ?>
<?php get_header();?> <?php get_header();?>
<?php if ( get_option('fit_postStyle_headline') == 'viral' ): ?> <?php if ( get_option('fit_postStyle_headline') == 'viral' ): ?>
<div class="viral"> <div class="viral">
<div class="viral__bg mask<?php if(get_option('fit_postStyle_mask') && get_option('fit_postStyle_mask') != 'off'): ?> mask-<?php echo get_option('fit_postStyle_mask') ?><?php endif; ?> <div class="viral__bg mask<?php if(get_option('fit_postStyle_mask') && get_option('fit_postStyle_mask') != 'off'): ?> mask-<?php echo get_option('fit_postStyle_mask') ?><?php endif; ?>
<?php <?php
if(get_option('fit_postStyle_mask') == 'color' || get_option('fit_postStyle_mask') == 'colorgray'){ if(get_option('fit_postStyle_mask') == 'color' || get_option('fit_postStyle_mask') == 'colorgray'){
$cat = get_the_category(); $cat = get_the_category();
if(!empty($cat[0])){ if(!empty($cat[0])){
echo 'cc-bg'.$cat[0]->term_id; echo 'cc-bg'.$cat[0]->term_id;
} }
} }
?> ?>
"> ">
<?php if ( has_post_thumbnail()): ?> <?php if ( has_post_thumbnail()): ?>
<?php if ( is_mobile()): ?> <?php if ( is_mobile()): ?>
<?php the_post_thumbnail('icatch768'); ?> <?php the_post_thumbnail('icatch768'); ?>
<?php else: ?> <?php else: ?>
<?php the_post_thumbnail('icatch1280'); ?> <?php the_post_thumbnail('icatch1280'); ?>
<?php endif; ?> <?php endif; ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<?php if ( is_mobile()): ?> <?php if ( is_mobile()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_1280.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_1280.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="container"> <div class="container">
<div class="viral__container"> <div class="viral__container">
<div class="viral__contents"> <div class="viral__contents">
<h1 class="heading heading-primary"><?php the_title(); ?></h1> <h1 class="heading heading-primary"><?php the_title(); ?></h1>
<ul class="dateList"> <ul class="dateList">
<?php if( !empty(get_option('fit_postStyle_time')) ): ?> <?php if( !empty(get_option('fit_postStyle_time')) ): ?>
<li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li> <li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
<?php if ( !empty(get_option('fit_postStyle_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_postStyle_update')) && empty(get_option('fit_postStyle_time'))) : ?> <?php if ( !empty(get_option('fit_postStyle_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_postStyle_update')) && empty(get_option('fit_postStyle_time'))) : ?>
<li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')); ?></li> <li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
<li class="dateList__item icon-folder"><?php the_category(', ');?></li> <li class="dateList__item icon-folder"><?php the_category(', ');?></li>
<?php if(has_tag() == true) : ?> <?php if(has_tag() == true) : ?>
<li class="dateList__item icon-tag"><?php the_tags(''); ?></li> <li class="dateList__item icon-tag"><?php the_tags(''); ?></li>
<?php endif; ?> <?php endif; ?>
<?php <?php
$views = get_post_meta(get_the_ID(), 'post_views' , true ); $views = get_post_meta(get_the_ID(), 'post_views' , true );
if( !empty(get_option('fit_postStyle_view')) ): ?> if( !empty(get_option('fit_postStyle_view')) ): ?>
<li class="dateList__item icon-eye"><?php echo $views; ?><?php if(get_option('fit_bsRank_unit')) : ?><?php echo get_option('fit_bsRank_unit'); ?><?php else: ?>view<?php endif; ?></li> <li class="dateList__item icon-eye"><?php echo $views; ?><?php if(get_option('fit_bsRank_unit')) : ?><?php echo get_option('fit_bsRank_unit'); ?><?php else: ?>view<?php endif; ?></li>
<?php endif; ?> <?php endif; ?>
<?php if( !empty(get_option('fit_postStyle_comment')) ): ?> <?php if( !empty(get_option('fit_postStyle_comment')) ): ?>
<li class="dateList__item icon-bubble2" title="コメント数"><?php comments_number( '0件', '1件', '%件' ); ?></li> <li class="dateList__item icon-bubble2" title="コメント数"><?php comments_number( '0件', '1件', '%件' ); ?></li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
</div> </div>
<div class="eyecatch<?php if (get_option('fit_postStyle_aspect') && get_option('fit_postStyle_aspect') != 'off' ): ?> <?php echo get_option('fit_postStyle_aspect'); ?><?php endif; ?>"> <div class="eyecatch<?php if (get_option('fit_postStyle_aspect') && get_option('fit_postStyle_aspect') != 'off' ): ?> <?php echo get_option('fit_postStyle_aspect'); ?><?php endif; ?>">
<?php <?php
$cat = get_the_category(); $cat = get_the_category();
if(!empty($cat[0])){ if(!empty($cat[0])){
echo '<span class="eyecatch__cat cc-bg'.$cat[0]->term_id.'">'; echo '<span class="eyecatch__cat cc-bg'.$cat[0]->term_id.'">';
echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>'; echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>';
echo '</span>'; echo '</span>';
} }
?> ?>
<span class="eyecatch__link"> <span class="eyecatch__link">
<?php if ( has_post_thumbnail()): ?> <?php if ( has_post_thumbnail()): ?>
<?php the_post_thumbnail('icatch375'); ?> <?php the_post_thumbnail('icatch375'); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</span> </span>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="wider"> <div class="wider">
<?php fit_breadcrumb(); ?> <?php fit_breadcrumb(); ?>
</div> </div>
<!--l-wrapper-->
<!--h1-wrapper-->
<div class="h1-wrapper container">
<h1 class="heading heading-primary"><?php the_title(); ?></h1>
</div>
<div class="l-wrapper"> <div class="l-wrapper">
<!--l-main--> <!--l-main-->
<?php <?php
//フレーム設定 //フレーム設定
$frame = ''; $frame = '';
if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){$frame = ' '.get_option('fit_conMain_frame');} if (get_option('fit_conMain_frame') && get_option('fit_conMain_frame') != 'off' ){$frame = ' '.get_option('fit_conMain_frame');}
//ページ横幅のオプション設定 //ページ横幅のオプション設定
$width_post = ''; $width_post = '';
if (get_option('fit_postLayout_width') && get_option('fit_postLayout_width') != 'off'){$width_post = get_option('fit_postLayout_width');} if (get_option('fit_postLayout_width') && get_option('fit_postLayout_width') != 'off'){$width_post = get_option('fit_postLayout_width');}
//レイアウト設定 //レイアウト設定
$layout = ''; $layout = '';
if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ){ if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ){
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '1' ){$layout = ' l-main-wide'.$width_post;} if ( get_post_meta(get_the_ID(), 'column_layout', true) == '1' ){$layout = ' l-main-wide'.$width_post;}
if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' && get_option('fit_postLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' && get_option('fit_postLayout_side') == 'left' ){$layout = ' l-main-right';}
} }
else{ else{
if ( get_option('fit_postLayout_column') == '1' ){$layout = ' l-main-wide'.$width_post;} if ( get_option('fit_postLayout_column') == '1' ){$layout = ' l-main-wide'.$width_post;}
if ( get_option('fit_postLayout_column') != '1' && get_option('fit_postLayout_side') == 'left' ){$layout = ' l-main-right';} if ( get_option('fit_postLayout_column') != '1' && get_option('fit_postLayout_side') == 'left' ){$layout = ' l-main-right';}
} }
?> ?>
<main class="l-main<?php echo $frame.$layout; ?>"> <main class="l-main<?php echo $frame.$layout; ?>">
...@@ -121,136 +239,272 @@ ...@@ -121,136 +239,272 @@
<div class="dividerBottom"> <div class="dividerBottom">
<?php if ( get_option('fit_postStyle_headline') != 'viral' ): ?> <?php if ( get_option('fit_postStyle_headline') != 'viral' ): ?>
<!--
<h1 class="heading heading-primary"><?php the_title(); ?></h1> <h1 class="heading heading-primary"><?php the_title(); ?></h1>
-->
<ul class="dateList dateList-main"> <ul class="dateList dateList-main">
<?php if( !empty(get_option('fit_postStyle_time')) ): ?> <?php if( !empty(get_option('fit_postStyle_time')) ): ?>
<li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li> <li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
<?php if ( !empty(get_option('fit_postStyle_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_postStyle_update')) && empty(get_option('fit_postStyle_time'))) : ?> <?php if ( !empty(get_option('fit_postStyle_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_postStyle_update')) && empty(get_option('fit_postStyle_time'))) : ?>
<li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')); ?></li> <li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
<li class="dateList__item icon-folder"><?php the_category(', ');?></li> <li class="dateList__item icon-folder"><?php the_category(', ');?></li>
<?php if(has_tag() == true) : ?> <?php if(has_tag() == true) : ?>
<li class="dateList__item icon-tag"><?php the_tags(''); ?></li> <li class="dateList__item icon-tag"><?php the_tags(''); ?></li>
<?php endif; ?> <?php endif; ?>
<?php <?php
$views = get_post_meta(get_the_ID(), 'post_views' , true ); $views = get_post_meta(get_the_ID(), 'post_views' , true );
if( !empty(get_option('fit_postStyle_view')) ): ?> if( !empty(get_option('fit_postStyle_view')) ): ?>
<li class="dateList__item icon-eye"><?php echo $views; ?><?php if(get_option('fit_bsRank_unit')) : ?><?php echo get_option('fit_bsRank_unit'); ?><?php else: ?>view<?php endif; ?></li> <li class="dateList__item icon-eye"><?php echo $views; ?><?php if(get_option('fit_bsRank_unit')) : ?><?php echo get_option('fit_bsRank_unit'); ?><?php else: ?>view<?php endif; ?></li>
<?php endif; ?> <?php endif; ?>
<?php if( !empty(get_option('fit_postStyle_comment')) ): ?> <?php if( !empty(get_option('fit_postStyle_comment')) ): ?>
<li class="dateList__item icon-bubble2" title="コメント数"><?php comments_number( '0件', '1件', '%件' ); ?></li> <li class="dateList__item icon-bubble2" title="コメント数"><?php comments_number( '0件', '1件', '%件' ); ?></li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<?php if ( get_option('fit_postStyle_headline') != 'none' ): ?> <?php if ( get_option('fit_postStyle_headline') != 'none' ): ?>
<div class="eyecatch<?php if (get_option('fit_postStyle_aspect') && get_option('fit_postStyle_aspect') != 'off' ): ?> <?php echo get_option('fit_postStyle_aspect'); ?><?php endif; ?> eyecatch-main"> <div class="eyecatch<?php if (get_option('fit_postStyle_aspect') && get_option('fit_postStyle_aspect') != 'off' ): ?> <?php echo get_option('fit_postStyle_aspect'); ?><?php endif; ?> eyecatch-main">
<?php <?php
$cat = get_the_category(); $cat = get_the_category();
if(!empty($cat[0])){ if(!empty($cat[0])){
echo '<span class="eyecatch__cat eyecatch__cat-big cc-bg'.$cat[0]->term_id.'">'; echo '<span class="eyecatch__cat eyecatch__cat-big cc-bg'.$cat[0]->term_id.'">';
echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>'; echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>';
echo '</span>'; echo '</span>';
} }
?> ?>
<span class="eyecatch__link"> <span class="eyecatch__link">
<?php if ( has_post_thumbnail()): ?> <?php if ( has_post_thumbnail()): ?>
<?php the_post_thumbnail('icatch768'); ?> <?php the_post_thumbnail('icatch768'); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</span> </span>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php if ( is_active_sidebar('post_top') ) : ?> <?php if ( is_active_sidebar('post_top') ) : ?>
<!--post_top_widget--> <!--post_top_widget-->
<div class="dividerBottom"> <div class="dividerBottom">
<?php dynamic_sidebar('post_top'); ?> <?php dynamic_sidebar('post_top'); ?>
</div> </div>
<!--/post_top_widget--> <!--/post_top_widget-->
<?php endif; ?> <?php endif; ?>
<!--postContents--> <!--postContents-->
<div class="postContents<?php if (get_option('fit_postStyle_frame') && get_option('fit_postStyle_frame') != 'off' ):?> <?php echo get_option('fit_postStyle_frame')?><?php endif; ?>"> <div class="postContents<?php if (get_option('fit_postStyle_frame') && get_option('fit_postStyle_frame') != 'off' ):?> <?php echo get_option('fit_postStyle_frame')?><?php endif; ?>">
<?php if (get_option('fit_postShare_top') == 'on' && get_post_meta(get_the_ID(), 'share_hide', true) != '1') : ?> <?php if (get_option('fit_postShare_top') == 'on' && get_post_meta(get_the_ID(), 'share_hide', true) != '1') : ?>
<aside class="social-top"><?php fit_share_btn(); ?></aside> <aside class="social-top"><?php fit_share_btn(); ?></aside>
<?php endif; ?> <?php endif; ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<section class="content<?php fit_content_class(); ?>"> <section class="content<?php fit_content_class(); ?>">
<?php the_content(); ?> <?php the_content(); ?>
</section> </section>
<?php <?php
// ページングの表示 // ページングの表示
fit_link_pages(); fit_link_pages();
?> ?>
<?php endwhile; endif; ?> <?php endwhile; endif; ?>
<?php if (get_option('fit_postShare_bottom') == 'on' && get_post_meta(get_the_ID(), 'share_hide', true) != '1') : ?> <?php if (get_option('fit_postShare_bottom') == 'on' && get_post_meta(get_the_ID(), 'share_hide', true) != '1') : ?>
<aside class="social-bottom"><?php fit_share_btn(); ?></aside> <aside class="social-bottom"><?php fit_share_btn(); ?></aside>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--/postContents--> <!--/postContents-->
<?php if ( is_active_sidebar('post_bottom') ) : ?> <?php if ( is_active_sidebar('post_bottom') ) : ?>
<!--post_bottom_widget--> <!--post_bottom_widget-->
<div class="dividerTop"> <div class="dividerTop">
<?php dynamic_sidebar('post_bottom'); ?> <?php dynamic_sidebar('post_bottom'); ?>
</div> </div>
<!--/post_bottom_widget--> <!--/post_bottom_widget-->
<?php endif; ?> <?php endif; ?>
<?php if( get_option('fit_postCta_switch') == 'on' && get_post_meta(get_the_ID(), 'cta_hide', true) != '1' ):?> <?php if( get_option('fit_postCta_switch') == 'on' && get_post_meta(get_the_ID(), 'cta_hide', true) != '1' ):?>
<!-- 記事下CTA --> <!-- 記事下CTA -->
<?php <?php
$frame = ''; $frame = '';
if(get_option('fit_postCta_style') && get_option('fit_postCta_style') != 'off' ){ if(get_option('fit_postCta_style') && get_option('fit_postCta_style') != 'off' ){
$frame = get_option('fit_postCta_style'); $frame = get_option('fit_postCta_style');
}?> }?>
<div class="content postCta <?php echo $frame ?>"> <div class="content postCta <?php echo $frame ?>">
<?php <?php
if(get_post_meta(get_the_ID(), 'cta_id', true) ){ if(get_post_meta(get_the_ID(), 'cta_id', true) ){
$id = get_post_meta(get_the_ID(), 'cta_id', true); $id = get_post_meta(get_the_ID(), 'cta_id', true);
}elseif(get_option('fit_postCta_id') ){ }elseif(get_option('fit_postCta_id') ){
$id = get_option('fit_postCta_id'); $id = get_option('fit_postCta_id');
}else{ }else{
$id = ''; $id = '';
} }
$args = array( $args = array(
'p' => $id, 'p' => $id,
'posts_per_page' => '1', 'posts_per_page' => '1',
'order' => 'ASC', 'order' => 'ASC',
'post_type' => 'cta' 'post_type' => 'cta'
); );
$my_query = new WP_Query( $args ); $my_query = new WP_Query( $args );
while ( $my_query->have_posts() ) : $my_query->the_post(); while ( $my_query->have_posts() ) : $my_query->the_post();
?> ?>
<?php the_content(); ?> <?php the_content(); ?>
<?php endwhile; wp_reset_postdata(); ?> <?php endwhile; wp_reset_postdata(); ?>
</div> </div>
<!-- /記事下CTA --> <!-- /記事下CTA -->
<?php endif; ?> <?php endif; ?>
...@@ -258,44 +512,89 @@ ...@@ -258,44 +512,89 @@
<?php if( get_option('fit_postSns_switch') == 'on' && get_post_meta(get_the_ID(), 'follow_hide', true) != '1' ):?>
<?php $opt = get_option('fit_snsFollow'); ?>
<div class="snsFollow">
<!-- facebook -->
<div class="snsFollow__bg">
<?php if( get_option('fit_postSns_switch') == 'on' && get_post_meta(get_the_ID(), 'follow_hide', true) != '1' ):?>
<?php $opt = get_option('fit_snsFollow'); ?>
<div class="snsFollow">
<!-- facebook -->
<div class="snsFollow__bg">
<?php if ( has_post_thumbnail()): ?> <?php if ( has_post_thumbnail()): ?>
<?php the_post_thumbnail('icatch375'); ?> <?php the_post_thumbnail('icatch375'); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</div> </div>
<div class="snsFollow__contents"> <div class="snsFollow__contents">
<div class="snsFollow__text"> <div class="snsFollow__text">
<?php if(get_option('fit_postSns_title') ):?> <?php if(get_option('fit_postSns_title') ):?>
<?php echo get_option('fit_postSns_title') ?> <?php echo get_option('fit_postSns_title') ?>
<?php else: ?> <?php else: ?>
最新情報をチェックしよう! 最新情報をチェックしよう!
<?php endif; ?> <?php endif; ?>
</div> </div>
<ul class="snsFollow__list"> <ul class="snsFollow__list">
<?php if(get_option('fit_snsOgp_FBAppId') && $opt['FBPage']): ?> <?php if(get_option('fit_snsOgp_FBAppId') && $opt['FBPage']): ?>
<li class="snsFollow__item"> <li class="snsFollow__item">
<div class="fb-like" data-href="https://www.facebook.com/<?php echo $opt['FBPage']; ?>" data-layout="button" data-action="like" data-size="large" data-show-faces="true" data-share="false"></div> <div class="fb-like" data-href="https://www.facebook.com/<?php echo $opt['FBPage']; ?>" data-layout="button" data-action="like" data-size="large" data-show-faces="true" data-share="false"></div>
</li> </li>
<?php endif; ?> <?php endif; ?>
<?php if($opt['twitterId']): ?> <?php if($opt['twitterId']): ?>
<li class="snsFollow__item"> <li class="snsFollow__item">
<a href="https://twitter.com/<?php echo $opt['twitterId']; ?>" class="twitter-follow-button" data-size="large" data-show-screen-name="false" data-lang="ja" data-show-count="false">フォローする</a> <a href="https://twitter.com/<?php echo $opt['twitterId']; ?>" class="twitter-follow-button" data-size="large" data-show-screen-name="false" data-lang="ja" data-show-count="false">フォローする</a>
</li> </li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>
...@@ -303,165 +602,331 @@ ...@@ -303,165 +602,331 @@
<?php <?php
if( get_option('fit_postPrevNext_switch') == 'on' && get_post_meta(get_the_ID(), 'prevNext_hide', true) != '1' ): //前次記事の表示がONの時 if( get_option('fit_postPrevNext_switch') == 'on' && get_post_meta(get_the_ID(), 'prevNext_hide', true) != '1' ): //前次記事の表示がONの時
$noText = '記事がありません'; $noText = '記事がありません';
$nextText = 'Next'; $nextText = 'Next';
$prevText = 'Prev'; $prevText = 'Prev';
if(get_option('fit_postPrevNext_text')){ if(get_option('fit_postPrevNext_text')){
$noText = get_option('fit_postPrevNext_text'); $noText = get_option('fit_postPrevNext_text');
} }
if(get_option('fit_postPrevNext_next')){ if(get_option('fit_postPrevNext_next')){
$nextText = get_option('fit_postPrevNext_next'); $nextText = get_option('fit_postPrevNext_next');
} }
if(get_option('fit_postPrevNext_prev')){ if(get_option('fit_postPrevNext_prev')){
$prevText = get_option('fit_postPrevNext_prev'); $prevText = get_option('fit_postPrevNext_prev');
} }
if(get_option('fit_postPrevNext_category')){ if(get_option('fit_postPrevNext_category')){
$prevpost = get_adjacent_post(true, '', true); //同一カテゴリの前の記事 $prevpost = get_adjacent_post(true, '', true); //同一カテゴリの前の記事
$nextpost = get_adjacent_post(true, '', false); //同一カテゴリの次の記事 $nextpost = get_adjacent_post(true, '', false); //同一カテゴリの次の記事
} }
else { else {
$prevpost = get_adjacent_post(false, '', true); //前の記事 $prevpost = get_adjacent_post(false, '', true); //前の記事
$nextpost = get_adjacent_post(false, '', false); //次の記事 $nextpost = get_adjacent_post(false, '', false); //次の記事
} }
if($prevpost || $nextpost): if($prevpost || $nextpost):
?> ?>
<!-- 前次記事エリア --> <!-- 前次記事エリア -->
<ul class="prevNext"> <ul class="prevNext">
<?php if ( $prevpost ) {//前の記事がある時 <?php if ( $prevpost ) {//前の記事がある時
// prev_thumbnailサイズの画像内容を取得 // prev_thumbnailサイズの画像内容を取得
$prev_thumbnail_id = get_post_thumbnail_id($prevpost->ID); $prev_thumbnail_id = get_post_thumbnail_id($prevpost->ID);
$prev_thumb_img = wp_get_attachment_image_src( $prev_thumbnail_id , 'icatch375' ); $prev_thumb_img = wp_get_attachment_image_src( $prev_thumbnail_id , 'icatch375' );
// サムネイル画像出力 // サムネイル画像出力
$prev_thumb_src = $prev_thumb_img[0]; $prev_thumb_src = $prev_thumb_img[0];
$prev_thumb_width = $prev_thumb_img[1]; $prev_thumb_width = $prev_thumb_img[1];
$prev_thumb_height = $prev_thumb_img[2]; $prev_thumb_height = $prev_thumb_img[2];
?> ?>
<li class="prevNext__item prevNext__item-prev"> <li class="prevNext__item prevNext__item-prev">
<div class="eyecatch"> <div class="eyecatch">
<div class="prevNext__pop"><?php echo $prevText; ?></div> <div class="prevNext__pop"><?php echo $prevText; ?></div>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($prevpost->ID); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($prevpost->ID); ?>">
<?php if(has_post_thumbnail($prevpost->ID)) : ?> <?php if(has_post_thumbnail($prevpost->ID)) : ?>
<img <?php echo fit_correct_src(); ?>="<?php echo $prev_thumb_src; ?>" alt="<?php echo get_the_title($prevpost->ID); ?>" width="<?php echo $prev_thumb_width; ?>" height="<?php echo $prev_thumb_height; ?>" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo $prev_thumb_src; ?>" alt="<?php echo get_the_title($prevpost->ID); ?>" width="<?php echo $prev_thumb_width; ?>" height="<?php echo $prev_thumb_height; ?>" <?php echo fit_dummy_src(); ?>>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>>
<?php else :?> <?php else :?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
<div class="prevNext__title"> <div class="prevNext__title">
<?php if (get_option('fit_postPrevNext_time') == 'on' ) : ?><span class="icon-clock"><?php echo get_the_time(get_option('date_format') , $prevpost->ID ); ?></span><?php endif; ?> <?php if (get_option('fit_postPrevNext_time') == 'on' ) : ?><span class="icon-clock"><?php echo get_the_time(get_option('date_format') , $prevpost->ID ); ?></span><?php endif; ?>
<h3 class="heading heading-secondary"><?php echo get_the_title($prevpost->ID); ?></h3> <h3 class="heading heading-secondary"><?php echo get_the_title($prevpost->ID); ?></h3>
</div> </div>
</a> </a>
</div> </div>
</li> </li>
<?php }else { //前の記事がない時?> <?php }else { //前の記事がない時?>
<li class="prevNext__item prevNext__item-prev"> <li class="prevNext__item prevNext__item-prev">
<div class="eyecatch"> <div class="eyecatch">
<div class="prevNext__pop"><?php echo $prevText; ?></div> <div class="prevNext__pop"><?php echo $prevText; ?></div>
<p class="prevNext__text"><?php echo $noText; ?></p> <p class="prevNext__text"><?php echo $noText; ?></p>
</div> </div>
</li> </li>
<?php }?> <?php }?>
<?php if ( $nextpost ) {//次の記事がある時 <?php if ( $nextpost ) {//次の記事がある時
// next_thumbnailサイズの画像内容を取得 // next_thumbnailサイズの画像内容を取得
$next_thumbnail_id = get_post_thumbnail_id($nextpost->ID); $next_thumbnail_id = get_post_thumbnail_id($nextpost->ID);
$next_thumb_img = wp_get_attachment_image_src( $next_thumbnail_id , 'icatch375' ); $next_thumb_img = wp_get_attachment_image_src( $next_thumbnail_id , 'icatch375' );
// サムネイル画像出力 // サムネイル画像出力
$next_thumb_src = $next_thumb_img[0]; $next_thumb_src = $next_thumb_img[0];
$next_thumb_width = $next_thumb_img[1]; $next_thumb_width = $next_thumb_img[1];
$next_thumb_height = $next_thumb_img[2]; $next_thumb_height = $next_thumb_img[2];
?> ?>
<li class="prevNext__item prevNext__item-next"> <li class="prevNext__item prevNext__item-next">
<div class="eyecatch"> <div class="eyecatch">
<div class="prevNext__pop"><?php echo $nextText; ?></div> <div class="prevNext__pop"><?php echo $nextText; ?></div>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($nextpost->ID); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php echo get_permalink($nextpost->ID); ?>">
<?php if(has_post_thumbnail($nextpost->ID)) : ?> <?php if(has_post_thumbnail($nextpost->ID)) : ?>
<img <?php echo fit_correct_src(); ?>="<?php echo $next_thumb_src; ?>" alt="<?php echo get_the_title($nextpost->ID); ?>" width="<?php echo $next_thumb_width; ?>" height="<?php echo $next_thumb_height; ?>" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo $next_thumb_src; ?>" alt="<?php echo get_the_title($nextpost->ID); ?>" width="<?php echo $next_thumb_width; ?>" height="<?php echo $next_thumb_height; ?>" <?php echo fit_dummy_src(); ?>>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>>
<?php else :?> <?php else :?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" width="600" height="600" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
<div class="prevNext__title"> <div class="prevNext__title">
<?php if (get_option('fit_postPrevNext_time') == 'on' ) : ?><span class="icon-clock"><?php echo get_the_time(get_option('date_format') , $nextpost->ID ); ?></span><?php endif; ?> <?php if (get_option('fit_postPrevNext_time') == 'on' ) : ?><span class="icon-clock"><?php echo get_the_time(get_option('date_format') , $nextpost->ID ); ?></span><?php endif; ?>
<h3 class="heading heading-secondary"><?php echo get_the_title($nextpost->ID); ?></h3> <h3 class="heading heading-secondary"><?php echo get_the_title($nextpost->ID); ?></h3>
</div> </div>
</a> </a>
</div> </div>
</li> </li>
<?php }else { //次の記事がない時 ?> <?php }else { //次の記事がない時 ?>
<li class="prevNext__item prevNext__item-next"> <li class="prevNext__item prevNext__item-next">
<div class="eyecatch"> <div class="eyecatch">
<div class="prevNext__pop"><?php echo $nextText; ?></div> <div class="prevNext__pop"><?php echo $nextText; ?></div>
<p class="prevNext__text"><?php echo $noText; ?></p> <p class="prevNext__text"><?php echo $noText; ?></p>
</div> </div>
</li> </li>
<?php }?> <?php }?>
</ul> </ul>
<!-- /前次記事エリア --> <!-- /前次記事エリア -->
<?php endif; endif; ?> <?php endif; endif; ?>
<?php if ( get_option('fit_postProfile_switch') == 'on' && get_post_meta(get_the_ID(), 'profile_hide', true) != '1' ) : ?> <?php if ( get_option('fit_postProfile_switch') == 'on' && get_post_meta(get_the_ID(), 'profile_hide', true) != '1' ) : ?>
<!-- プロフィール --> <!-- プロフィール -->
<aside class="profile"> <aside class="profile">
<div class="profile__author"> <div class="profile__author">
<?php <?php
$pText = 'この記事を書いた人'; $pText = 'この記事を書いた人';
$pBtnText = '投稿一覧へ'; $pBtnText = '投稿一覧へ';
if ( get_option('fit_postProfile_text')) { if ( get_option('fit_postProfile_text')) {
$pText = get_option('fit_postProfile_text'); $pText = get_option('fit_postProfile_text');
} }
if ( get_option('fit_postProfile_btnText')) { if ( get_option('fit_postProfile_btnText')) {
$pBtnText = get_option('fit_postProfile_btnText'); $pBtnText = get_option('fit_postProfile_btnText');
} }
?> ?>
<div class="profile__text"><?php echo $pText; ?></div> <div class="profile__text"><?php echo $pText; ?></div>
<?php <?php
$author = get_the_author_meta('ID'); $author = get_the_author_meta('ID');
$avatar = get_avatar($author); $avatar = get_avatar($author);
$imgtag= '/<img.*?src=(["\'])(.+?)\1.*?>/i'; $imgtag= '/<img.*?src=(["\'])(.+?)\1.*?>/i';
if(preg_match($imgtag, $avatar, $imgurl)){ if(preg_match($imgtag, $avatar, $imgurl)){
$avatar = $imgurl[2]; $avatar = $imgurl[2];
} }
?> ?>
<img <?php echo fit_correct_src(); ?>="<?php echo $avatar; ?>" alt="<?php echo the_author_meta('display_name'); ?>" width="80" height="80" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo $avatar; ?>" alt="<?php echo the_author_meta('display_name'); ?>" width="80" height="80" <?php echo fit_dummy_src(); ?>>
<h2 class="profile__name"><?php the_author_meta('display_name'); ?></h2> <h2 class="profile__name"><?php the_author_meta('display_name'); ?></h2>
<?php if(get_the_author_meta('user_group',$author)): ?><h3 class="profile__group"><?php the_author_meta('user_group',$author); ?></h3><?php endif; ?> <?php if(get_the_author_meta('user_group',$author)): ?><h3 class="profile__group"><?php the_author_meta('user_group',$author); ?></h3><?php endif; ?>
</div> </div>
<div class="profile__contents"> <div class="profile__contents">
<div class="profile__description"><?php if(get_the_author_meta('description')): ?><?php the_author_meta('description'); ?><?php endif; ?></div> <div class="profile__description"><?php if(get_the_author_meta('description')): ?><?php the_author_meta('description'); ?><?php endif; ?></div>
<ul class="profile__list"> <ul class="profile__list">
<?php if(get_the_author_meta('facebook',$author)): ?><li class="profile__item"><a class="profile__link icon-facebook" href="<?php the_author_meta('facebook',$author); ?>"></a></li><?php endif; ?> <?php if(get_the_author_meta('facebook',$author)): ?><li class="profile__item"><a class="profile__link icon-facebook" href="<?php the_author_meta('facebook',$author); ?>"></a></li><?php endif; ?>
<?php if(get_the_author_meta('twitter',$author)): ?><li class="profile__item"><a class="profile__link icon-twitter" href="<?php the_author_meta('twitter',$author); ?>"></a></li><?php endif; ?> <?php if(get_the_author_meta('twitter',$author)): ?><li class="profile__item"><a class="profile__link icon-twitter" href="<?php the_author_meta('twitter',$author); ?>"></a></li><?php endif; ?>
<?php if(get_the_author_meta('instagram',$author)): ?><li class="profile__item"><a class="profile__link icon-instagram" href="<?php the_author_meta('instagram',$author); ?>"></a></li><?php endif; ?> <?php if(get_the_author_meta('instagram',$author)): ?><li class="profile__item"><a class="profile__link icon-instagram" href="<?php the_author_meta('instagram',$author); ?>"></a></li><?php endif; ?>
<?php if(get_the_author_meta('gplus',$author)): ?><li class="profile__item"><a class="profile__link icon-google-plus" href="<?php the_author_meta('gplus',$author); ?>"></a></li><?php endif; ?> <?php if(get_the_author_meta('gplus',$author)): ?><li class="profile__item"><a class="profile__link icon-google-plus" href="<?php the_author_meta('gplus',$author); ?>"></a></li><?php endif; ?>
<?php if(get_the_author_meta('youtube',$author)): ?><li class="profile__item"><a class="profile__link icon-youtube" href="<?php the_author_meta('youtube',$author); ?>"></a></li><?php endif; ?> <?php if(get_the_author_meta('youtube',$author)): ?><li class="profile__item"><a class="profile__link icon-youtube" href="<?php the_author_meta('youtube',$author); ?>"></a></li><?php endif; ?>
<?php if(get_the_author_meta('linkedin',$author)): ?><li class="profile__item"><a class="profile__link icon-linkedin" href="<?php the_author_meta('linkedin',$author); ?>"></a></li><?php endif; ?> <?php if(get_the_author_meta('linkedin',$author)): ?><li class="profile__item"><a class="profile__link icon-linkedin" href="<?php the_author_meta('linkedin',$author); ?>"></a></li><?php endif; ?>
<?php if(get_the_author_meta('pinterest',$author)): ?><li class="profile__item"><a class="profile__link icon-pinterest" href="<?php the_author_meta('pinterest',$author); ?>"></a></li><?php endif; ?> <?php if(get_the_author_meta('pinterest',$author)): ?><li class="profile__item"><a class="profile__link icon-pinterest" href="<?php the_author_meta('pinterest',$author); ?>"></a></li><?php endif; ?>
</ul> </ul>
<?php if ( get_option('fit_postProfile_btn') == 'on' ) : ?> <?php if ( get_option('fit_postProfile_btn') == 'on' ) : ?>
<div class="btn btn-center"><a class="btn__link btn__link-secondary" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php echo $pBtnText; ?></a></div> <div class="btn btn-center"><a class="btn__link btn__link-secondary" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php echo $pBtnText; ?></a></div>
<?php endif; ?> <?php endif; ?>
</div> </div>
</aside> </aside>
<!-- /プロフィール --> <!-- /プロフィール -->
<?php endif; ?> <?php endif; ?>
...@@ -469,19 +934,39 @@ ...@@ -469,19 +934,39 @@
<?php if (get_option('fit_adPost_doubleLeft') && get_post_meta(get_the_ID(), 'rectangle_hide', true) != '1' || <?php if (get_option('fit_adPost_doubleLeft') && get_post_meta(get_the_ID(), 'rectangle_hide', true) != '1' ||
get_option('fit_adPost_doubleRight') && get_post_meta(get_the_ID(), 'rectangle_hide', true) != '1' ):?> get_option('fit_adPost_doubleRight') && get_post_meta(get_the_ID(), 'rectangle_hide', true) != '1' ):?>
<!-- ダブルレクタングル広告 --> <!-- ダブルレクタングル広告 -->
<div class="rectangle<?php if(get_option('fit_adPost_styleR')){ echo ' rectangle-no';} ?>"> <div class="rectangle<?php if(get_option('fit_adPost_styleR')){ echo ' rectangle-no';} ?>">
<div class="rectangle__item rectangle__item-left"> <div class="rectangle__item rectangle__item-left">
<?php echo get_option('fit_adPost_doubleLeft'); ?> <?php echo get_option('fit_adPost_doubleLeft'); ?>
</div> </div>
<div class="rectangle__item rectangle__item-right"> <div class="rectangle__item rectangle__item-right">
<?php echo get_option('fit_adPost_doubleRight'); ?> <?php echo get_option('fit_adPost_doubleRight'); ?>
</div> </div>
<span class="rectangle__title"><?php echo get_option('fit_adPost_textR'); ?></span> <span class="rectangle__title"><?php echo get_option('fit_adPost_textR'); ?></span>
</div> </div>
<!-- /ダブルレクタングル広告 --> <!-- /ダブルレクタングル広告 -->
<?php endif; ?> <?php endif; ?>
...@@ -489,176 +974,353 @@ ...@@ -489,176 +974,353 @@
<?php if ( get_option('fit_postRelated_switch') == 'on' && get_post_meta(get_the_ID(), 'related_hide', true) != '1' ) : ?> <?php if ( get_option('fit_postRelated_switch') == 'on' && get_post_meta(get_the_ID(), 'related_hide', true) != '1' ) : ?>
<!-- 関連記事 --> <!-- 関連記事 -->
<?php <?php
// 総件数 // 総件数
$max_post_num = 3; $max_post_num = 3;
if(get_option('fit_postRelated_number')){ if(get_option('fit_postRelated_number')){
$max_post_num = get_option('fit_postRelated_number'); $max_post_num = get_option('fit_postRelated_number');
} }
// 現在の記事にタグが設定されている場合 // 現在の記事にタグが設定されている場合
if ( has_tag() ) { if ( has_tag() ) {
// 1.タグ関連の投稿を取得 // 1.タグ関連の投稿を取得
$tags = wp_get_post_tags($post->ID); $tags = wp_get_post_tags($post->ID);
$tag_ids = array(); $tag_ids = array();
foreach($tags as $tag){ foreach($tags as $tag){
array_push( $tag_ids, $tag -> term_id); array_push( $tag_ids, $tag -> term_id);
} }
$tag_args = array( $tag_args = array(
'post__not_in' => array($post -> ID), 'post__not_in' => array($post -> ID),
'tag__not_in' => $tag_ids, 'tag__not_in' => $tag_ids,
'posts_per_page'=> $max_post_num, 'posts_per_page'=> $max_post_num,
'tag__in' => $tag_ids, 'tag__in' => $tag_ids,
'orderby' => 'rand', 'orderby' => 'rand',
); );
$rel_posts = get_posts($tag_args); $rel_posts = get_posts($tag_args);
// 総件数よりタグ関連の投稿が少ない場合は、カテゴリ関連の投稿からも取得する // 総件数よりタグ関連の投稿が少ない場合は、カテゴリ関連の投稿からも取得する
$rel_count = count($rel_posts); $rel_count = count($rel_posts);
if ($max_post_num > $rel_count) { if ($max_post_num > $rel_count) {
$categories = get_the_category($post->ID); $categories = get_the_category($post->ID);
$category_ID = array(); $category_ID = array();
foreach($categories as $category){ foreach($categories as $category){
array_push( $category_ID, $category -> cat_ID); array_push( $category_ID, $category -> cat_ID);
} }
// 取得件数は必要な数のみリクエスト // 取得件数は必要な数のみリクエスト
$cat_args = array( $cat_args = array(
'post__not_in' => array($post -> ID), 'post__not_in' => array($post -> ID),
'posts_per_page'=> ($max_post_num - $rel_count), 'posts_per_page'=> ($max_post_num - $rel_count),
'category__in' => $category_ID, 'category__in' => $category_ID,
'orderby' => 'rand', 'orderby' => 'rand',
); );
$cat_posts = get_posts($cat_args); $cat_posts = get_posts($cat_args);
$rel_posts = array_merge($rel_posts, $cat_posts); $rel_posts = array_merge($rel_posts, $cat_posts);
} }
} }
else { // 現在の記事にタグが設定されていない場合 else { // 現在の記事にタグが設定されていない場合
$categories = get_the_category($post->ID); $categories = get_the_category($post->ID);
$category_ID = array(); $category_ID = array();
foreach($categories as $category){ foreach($categories as $category){
array_push( $category_ID, $category -> cat_ID); array_push( $category_ID, $category -> cat_ID);
} }
// 取得件数は必要な数のみリクエスト // 取得件数は必要な数のみリクエスト
$cat_args = array( $cat_args = array(
'post__not_in' => array($post -> ID), 'post__not_in' => array($post -> ID),
'posts_per_page'=> ($max_post_num), 'posts_per_page'=> ($max_post_num),
'category__in' => $category_ID, 'category__in' => $category_ID,
'orderby' => 'rand', 'orderby' => 'rand',
); );
$cat_posts = get_posts($cat_args); $cat_posts = get_posts($cat_args);
$rel_posts = $cat_posts; $rel_posts = $cat_posts;
} }
$title = '関連する記事'; $title = '関連する記事';
if ( get_option('fit_postRelated_title') ){ if ( get_option('fit_postRelated_title') ){
$title = get_option('fit_postRelated_title'); $title = get_option('fit_postRelated_title');
} }
echo'<aside class="related">'; echo'<aside class="related">';
echo'<h2 class="heading heading-sub">'.$title.'</h2>'; echo'<h2 class="heading heading-sub">'.$title.'</h2>';
// 関連記事が1件以上あれば // 関連記事が1件以上あれば
if( count($rel_posts) > 0 ){ if( count($rel_posts) > 0 ){
echo'<ul class="related__list">'; echo'<ul class="related__list">';
foreach ($rel_posts as $post){ foreach ($rel_posts as $post){
setup_postdata($post); setup_postdata($post);
// thumbnailサイズの画像内容を取得 // thumbnailサイズの画像内容を取得
$thumbnail_id = get_post_thumbnail_id(); $thumbnail_id = get_post_thumbnail_id();
$thumb_img = wp_get_attachment_image_src( $thumbnail_id , 'icatch375' ); $thumb_img = wp_get_attachment_image_src( $thumbnail_id , 'icatch375' );
// サムネイル画像出力 // サムネイル画像出力
$thumb_src = $thumb_img[0]; $thumb_src = $thumb_img[0];
$thumb_width = $thumb_img[1]; $thumb_width = $thumb_img[1];
$thumb_height = $thumb_img[2]; $thumb_height = $thumb_img[2];
?> ?>
<li class="related__item"> <li class="related__item">
<div class="eyecatch"> <div class="eyecatch">
<?php <?php
$cat = get_the_category(); $cat = get_the_category();
if(!empty($cat[0])){ if(!empty($cat[0])){
echo '<span class="eyecatch__cat cc-bg'.$cat[0]->term_id.'">'; echo '<span class="eyecatch__cat cc-bg'.$cat[0]->term_id.'">';
echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>'; echo '<a href="' . get_category_link( $cat[0]->term_id ) . '">' . $cat[0]->cat_name . '</a>';
echo '</span>'; echo '</span>';
} }
?> ?>
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>">
<?php if(has_post_thumbnail()) : ?> <?php if(has_post_thumbnail()) : ?>
<img <?php echo fit_correct_src(); ?>="<?php echo $thumb_src; ?>" alt="<?php the_title(); ?>" width="<?php echo $thumb_width; ?>" height="<?php echo $thumb_height; ?>" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo $thumb_src; ?>" alt="<?php the_title(); ?>" width="<?php echo $thumb_width; ?>" height="<?php echo $thumb_height; ?>" <?php echo fit_dummy_src(); ?>>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" width="375" height="375" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" width="375" height="375" <?php echo fit_dummy_src(); ?>>
<?php else :?> <?php else :?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" width="375" height="375" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" width="375" height="375" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</a> </a>
</div> </div>
<div class="archive__contents"> <div class="archive__contents">
<?php if( !empty(get_option('fit_archiveList_time')) || !empty(get_option('fit_archiveList_update')) || !empty(get_option('fit_archiveList_view')) ): ?> <?php if( !empty(get_option('fit_archiveList_time')) || !empty(get_option('fit_archiveList_update')) || !empty(get_option('fit_archiveList_view')) ): ?>
<ul class="dateList"> <ul class="dateList">
<?php if( !empty(get_option('fit_archiveList_time')) ): ?> <?php if( !empty(get_option('fit_archiveList_time')) ): ?>
<li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li> <li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
<?php if ( !empty(get_option('fit_archiveList_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_archiveList_update')) && empty(get_option('fit_archiveList_time'))) : ?> <?php if ( !empty(get_option('fit_archiveList_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_archiveList_update')) && empty(get_option('fit_archiveList_time'))) : ?>
<li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')); ?></li> <li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
<h3 class="heading heading-secondary"> <h3 class="heading heading-secondary">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3> </h3>
</div> </div>
</li> </li>
<?php <?php
} }
echo'</ul>'; echo'</ul>';
} }
// 関連記事がない場合 // 関連記事がない場合
else{ else{
echo'<p class="related__contents related__contents-max">'.$title.'はありませんでした。</p>'; echo'<p class="related__contents related__contents-max">'.$title.'はありませんでした。</p>';
} }
echo'</aside>'; echo'</aside>';
?> ?>
<?php wp_reset_postdata();?> <?php wp_reset_postdata();?>
<!-- /関連記事 --> <!-- /関連記事 -->
<?php endif; ?> <?php endif; ?>
<!-- コメント --> <!-- コメント -->
<?php comments_template(); ?> <?php comments_template(); ?>
<!-- /コメント --> <!-- /コメント -->
<?php if(!is_user_logged_in() && !is_bot()): ?> <?php if(!is_user_logged_in() && !is_bot()): ?>
<!-- PVカウンター --> <!-- PVカウンター -->
<?php set_post_views(get_the_ID()); ?> <?php set_post_views(get_the_ID()); ?>
<!-- /PVカウンター --> <!-- /PVカウンター -->
<?php endif; ?> <?php endif; ?>
</div> </div>
</main> </main>
<!--/l-main--> <!--/l-main-->
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ):?> <?php if ( get_post_meta(get_the_ID(), 'column_layout', true) && get_post_meta(get_the_ID(), 'column_layout', true) != '0' ):?>
<?php if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' ):?> <?php if ( get_post_meta(get_the_ID(), 'column_layout', true) == '2' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
<?php else:?> <?php else:?>
<?php if ( get_option('fit_postLayout_column') != '1' ):?> <?php if ( get_option('fit_postLayout_column') != '1' ):?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!--/l-wrapper--> <!--/l-wrapper-->
...@@ -669,154 +1331,315 @@ ...@@ -669,154 +1331,315 @@
<?php <?php
if ( get_option('fit_postCategory_switch') == 'on' && get_post_meta(get_the_ID(), 'category_hide', true) != '1') : if ( get_option('fit_postCategory_switch') == 'on' && get_post_meta(get_the_ID(), 'category_hide', true) != '1') :
$cat = get_the_category(); $cat = get_the_category();
?> ?>
<!--l-footerTop--> <!--l-footerTop-->
<div class="l-footerTop"> <div class="l-footerTop">
<div class="wider"> <div class="wider">
<div class="categoryBox"> <div class="categoryBox">
<div class="container"> <div class="container">
<h2 class="heading heading-main u-bold <?php echo 'cc-ft'.$cat[0]->term_id; ?>"><i class="icon-folder"></i><?php echo $cat[0]->cat_name ?><span><?php if(get_option('fit_postCategory_sub')){echo get_option('fit_postCategory_sub');}else{echo 'の最新記事8件';} ?></span></h2> <h2 class="heading heading-main u-bold <?php echo 'cc-ft'.$cat[0]->term_id; ?>"><i class="icon-folder"></i><?php echo $cat[0]->cat_name ?><span><?php if(get_option('fit_postCategory_sub')){echo get_option('fit_postCategory_sub');}else{echo 'の最新記事8件';} ?></span></h2>
<ul class="categoryBox__list"> <ul class="categoryBox__list">
<?php <?php
$number = '8'; $number = '8';
if(get_option('fit_postCategory_number')){ if(get_option('fit_postCategory_number')){
$number = get_option('fit_postCategory_number'); $number = get_option('fit_postCategory_number');
} }
$args = array( $args = array(
'cat'=> $cat[0]->term_id, 'cat'=> $cat[0]->term_id,
'ignore_sticky_posts' => '1', 'ignore_sticky_posts' => '1',
'posts_per_page' => $number, 'posts_per_page' => $number,
); );
$my_query = new WP_Query( $args ); $my_query = new WP_Query( $args );
?> ?>
<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?> <?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
<li class="categoryBox__item"> <li class="categoryBox__item">
<?php if ( get_option('fit_postCategory_aspect') != 'none' ): ?> <?php if ( get_option('fit_postCategory_aspect') != 'none' ): ?>
<div class="eyecatch<?php if(get_option('fit_postCategory_aspect') && get_option('fit_postCategory_aspect') != 'off'): ?> <?php echo get_option('fit_postCategory_aspect');?><?php endif; ?>"> <div class="eyecatch<?php if(get_option('fit_postCategory_aspect') && get_option('fit_postCategory_aspect') != 'off'): ?> <?php echo get_option('fit_postCategory_aspect');?><?php endif; ?>">
<a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>"> <a class="eyecatch__link<?php if (get_option('fit_bsEyecatch_hover') && get_option('fit_bsEyecatch_hover') != 'off' ) : ?> eyecatch__link-<?php echo get_option('fit_bsEyecatch_hover'); ?><?php endif; ?>" href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail()): ?> <?php if ( has_post_thumbnail()): ?>
<?php the_post_thumbnail('icatch375'); ?> <?php the_post_thumbnail('icatch375'); ?>
<?php elseif ( get_fit_noimg()): ?> <?php elseif ( get_fit_noimg()): ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_fit_noimg(); ?>" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php else: ?> <?php else: ?>
<img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>> <img <?php echo fit_correct_src(); ?>="<?php echo get_template_directory_uri(); ?>/img/img_no_375.gif" alt="NO IMAGE" <?php echo fit_dummy_src(); ?>>
<?php endif; ?> <?php endif; ?>
</a> </a>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="categoryBox__contents"> <div class="categoryBox__contents">
<?php if( !empty( get_option('fit_postCategory_time') ) || !empty(get_option('fit_postCategory_update'))): ?> <?php if( !empty( get_option('fit_postCategory_time') ) || !empty(get_option('fit_postCategory_update'))): ?>
<ul class="dateList"> <ul class="dateList">
<?php if( !empty(get_option('fit_postCategory_time') )): ?> <?php if( !empty(get_option('fit_postCategory_time') )): ?>
<li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li> <li class="dateList__item icon-clock"><?php the_time(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
<?php if ( !empty(get_option('fit_postCategory_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_postCategory_update')) && empty(get_option('fit_postCategory_time'))) : ?> <?php if ( !empty(get_option('fit_postCategory_update')) && get_the_time( 'U' ) !== get_the_modified_time( 'U' ) || !empty(get_option('fit_postCategory_update')) && empty(get_option('fit_postCategory_time'))) : ?>
<li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')); ?></li> <li class="dateList__item icon-update"><?php the_modified_date(get_option('date_format')); ?></li>
<?php endif; ?> <?php endif; ?>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
<h2 class="heading heading-tertiary"> <h2 class="heading heading-tertiary">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2> </h2>
</div> </div>
</li> </li>
<?php endwhile; wp_reset_postdata(); ?> <?php endwhile; wp_reset_postdata(); ?>
</ul> </ul>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>
<!-- schema --> <!-- schema -->
<script type="application/ld+json"> <script type="application/ld+json">
<?php <?php
// ユーザー投稿サムネイルの画像サイズを取得 // ユーザー投稿サムネイルの画像サイズを取得
if (has_post_thumbnail()){ if (has_post_thumbnail()){
$thumbnail_id = get_post_thumbnail_id(); $thumbnail_id = get_post_thumbnail_id();
$eyeimg = wp_get_attachment_image_src( $thumbnail_id , 'icatch768' ); $eyeimg = wp_get_attachment_image_src( $thumbnail_id , 'icatch768' );
} }
// ユーザー投稿NO IMAGEサイズを取得 // ユーザー投稿NO IMAGEサイズを取得
if (get_fit_noimg()){ if (get_fit_noimg()){
$noimg_date = get_fit_noimg(); $noimg_date = get_fit_noimg();
$noimg_id = fit_get_imageId($noimg_date); $noimg_id = fit_get_imageId($noimg_date);
$noimg = wp_get_attachment_image_src( $noimg_id, 'icatch768' ); $noimg = wp_get_attachment_image_src( $noimg_id, 'icatch768' );
} }
// ユーザー投稿LOGOサイズを取得 // ユーザー投稿LOGOサイズを取得
if (get_fit_logo()){ if (get_fit_logo()){
$logo_date = get_fit_logo(); $logo_date = get_fit_logo();
$logo_id = fit_get_imageId($logo_date); $logo_id = fit_get_imageId($logo_date);
$logo = wp_get_attachment_image_src( $logo_id, 'full' ); $logo = wp_get_attachment_image_src( $logo_id, 'full' );
} }
// ユーザー投稿AMP LOGOサイズを取得 // ユーザー投稿AMP LOGOサイズを取得
if (get_fit_amplogo()){ if (get_fit_amplogo()){
$amplogo_date = get_fit_amplogo(); $amplogo_date = get_fit_amplogo();
$amplogo_id = fit_get_imageId($amplogo_date); $amplogo_id = fit_get_imageId($amplogo_date);
$amplogo = wp_get_attachment_image_src( $amplogo_id, 'full' ); $amplogo = wp_get_attachment_image_src( $amplogo_id, 'full' );
} }
?> ?>
{ {
"@context": "http://schema.org", "@context": "http://schema.org",
"@type": "Article ", "@type": "Article ",
"mainEntityOfPage":{ "mainEntityOfPage":{
"@type": "WebPage", "@type": "WebPage",
"@id": "<?php the_permalink(); ?>" "@id": "<?php the_permalink(); ?>"
}, },
"headline": "<?php echo get_the_title(); ?>", "headline": "<?php echo get_the_title(); ?>",
"description": "<?php echo get_the_excerpt(); ?>", "description": "<?php echo get_the_excerpt(); ?>",
"image": { "image": {
"@type": "ImageObject", "@type": "ImageObject",
<?php if(has_post_thumbnail()) : ?>"url": "<?php echo $eyeimg[0]; ?>", <?php if(has_post_thumbnail()) : ?>"url": "<?php echo $eyeimg[0]; ?>",
"width": "<?php echo $eyeimg[1]; ?>px", "width": "<?php echo $eyeimg[1]; ?>px",
"height": "<?php echo $eyeimg[2]; ?>px" "height": "<?php echo $eyeimg[2]; ?>px"
<?php elseif ( get_fit_noimg()): ?>"url": "<?php echo $noimg[0]; ?>", <?php elseif ( get_fit_noimg()): ?>"url": "<?php echo $noimg[0]; ?>",
"width": "<?php echo $noimg[1]; ?>px", "width": "<?php echo $noimg[1]; ?>px",
"height": "<?php echo $noimg[2]; ?>px" "height": "<?php echo $noimg[2]; ?>px"
<?php else: ?>"url": "<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif", <?php else: ?>"url": "<?php echo get_template_directory_uri(); ?>/img/img_no_768.gif",
"height": "768px", "height": "768px",
"width": "432px" "width": "432px"
<?php endif; ?> <?php endif; ?>
}, },
"datePublished": "<?php echo get_the_date(DATE_ISO8601); ?>", "datePublished": "<?php echo get_the_date(DATE_ISO8601); ?>",
"dateModified": "<?php if ( get_the_date() != get_the_modified_time() ){ the_modified_date(DATE_ISO8601); } else { echo get_the_date(DATE_ISO8601); } ?>", "dateModified": "<?php if ( get_the_date() != get_the_modified_time() ){ the_modified_date(DATE_ISO8601); } else { echo get_the_date(DATE_ISO8601); } ?>",
"author": { "author": {
"@type": "Person", "@type": "Person",
"name": "<?php the_author_meta('display_name'); ?>" "name": "<?php the_author_meta('display_name'); ?>"
}, },
"publisher": { "publisher": {
"@type": "Organization", "@type": "Organization",
"name": "<?php bloginfo('name'); ?>", "name": "<?php bloginfo('name'); ?>",
"logo": { "logo": {
"@type": "ImageObject", "@type": "ImageObject",
<?php if(get_fit_logo()) : ?>"url": "<?php echo $logo[0]; ?>", <?php if(get_fit_logo()) : ?>"url": "<?php echo $logo[0]; ?>",
"width": "<?php echo $logo[1]; ?>px", "width": "<?php echo $logo[1]; ?>px",
"height": "<?php echo $logo[2]; ?>px" "height": "<?php echo $logo[2]; ?>px"
<?php elseif ( get_fit_amplogo()): ?>"url": "<?php echo $amplogo[0]; ?>", <?php elseif ( get_fit_amplogo()): ?>"url": "<?php echo $amplogo[0]; ?>",
"width": "<?php echo $amplogo[1]; ?>px", "width": "<?php echo $amplogo[1]; ?>px",
"height": "<?php echo $amplogo[2]; ?>px" "height": "<?php echo $amplogo[2]; ?>px"
<?php else: ?>"url": "<?php echo get_template_directory_uri(); ?>/img/amp_default_logo.png", <?php else: ?>"url": "<?php echo get_template_directory_uri(); ?>/img/amp_default_logo.png",
"height": "600px", "height": "600px",
"width": "60px" "width": "60px"
<?php endif; ?> <?php endif; ?>
} }
} }
} }
</script> </script>
<!-- /schema --> <!-- /schema -->
<?php get_footer(); ?> <?php get_footer(); ?>
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