File "page.php"
Full path: /home/xs854402/smcse.co.jp/public_html/wp-content/themes/Sumitomo-Mitsui/page.php
File
size: 9.2 B (9.2 KB bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php get_header(); ?>
<main class="corporate">
<?php include('template/bottom-corporate.php'); ?>
<?php include('template/breadcrumb.php'); ?>
<section class="p-child">
<div class="p-child__heading">
<div class="p-child__inner l-inner">
<div class="p-child__container">
<?php include('template/sidebar-child.php'); ?>
<?php
if(!is_page('download')) :
the_content();
else :
?>
<div class="p-child__contents">
<div class="p-child__policy">
<p class="p-child__entitle c-entitle c-entitle--capitalize">download</p>
<h2 class="p-child__title c-title">ダウンロード</h2>
<div class="p-child__policyContainer">
<p class="p-child__policyText c-text">こちらのページからは会社概要パンフレットのPDFや取引業者様向けのファイルなどがダウンロードしてご利用いただけます。</p>
<p class="p-child__policyText p-child__policyText--next c-text">「Microsoft Edge」や「Google Chrome」でファイルをダウンロードする場合、「安全にダウンロードすることはできません。」と表示されます。ボタンを右クリック → 「名前を付けてリンク先を保存…」の操作でダウンロードください。</p>
<input id="block-01" type="checkbox" class="p-child__method">
<label class="p-child__methodLabel" for="block-01">安全なダウンロードの方法はこちら</label>
<?php include('template/method.php'); ?>
<div class="p-child__policyContents">
<div class="p-child__policyBlock">
<p class="p-relatedItem__title">カタログダウンロード</p>
<?php if(have_rows('catalogue')) : ?>
<div class="p-child__downloadContents">
<?php while (have_rows('catalogue')) : the_row(); ?>
<?php if (get_sub_field('catalogue-block')) : ?>
<?php
$group = get_sub_field('catalogue-block');
foreach($group as $field) :
?>
<div class="p-child__downloadBlock">
<?php
$acf_row_image = $field['catalogue-img'];
$url = $acf_row_image['url'];
$alt = $acf_row_image['alt'];
if ($url) :
?>
<div class="p-child__downloadImg">
<img src="<?php echo $url; ?>" alt="<?php echo $alt; ?>">
</div>
<?php endif; ?>
<a href="<?php echo $field['catalogue-url']; ?>" download="" class="p-child__download">右クリックで保存</a>
<p class="p-child__downloadText c-text"><?php echo $field['catalogue-text']; ?></p>
</div>
<?php endforeach; ?>
<?php endif; ?>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>
<div class="p-child__policyBlock">
<p class="p-relatedItem__title">取引業者様用書類ダウンロード</p>
<?php if(have_rows('document')) : ?>
<div class="p-child__downloadContents">
<?php while (have_rows('document')) : the_row(); ?>
<?php if (get_sub_field('document-block')) : ?>
<?php
$group = get_sub_field('document-block');
foreach($group as $field) :
?>
<div class="p-child__downloadBlock">
<?php
$acf_row_image = $field['document-img'];
$url = $acf_row_image['url'];
$alt = $acf_row_image['alt'];
if ($url) :
?>
<div class="p-child__downloadImg">
<img src="<?php echo $url; ?>" alt="<?php echo $alt; ?>">
</div>
<?php endif; ?>
<a href="<?php echo $field['document-url']; ?>" download="" class="p-child__download">右クリックで保存</a>
<p class="p-child__documentTitle"><?php echo $field['document-title']; ?></p>
<p class="p-child__documentText c-text"><?php echo $field['document-text']; ?></p>
</div>
<?php endforeach; ?>
<?php endif; ?>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>
<div class="p-child__policyBlock">
<p class="p-relatedItem__title">取引業者様用書類ダウンロード</p>
<?php if(have_rows('xls')) : ?>
<div class="p-child__downloadXls">
<?php while (have_rows('xls')) : the_row(); ?>
<?php if (get_sub_field('xls-title')) : ?>
<a href="<?php echo the_sub_field('xls-link'); ?>" download="<?php echo the_sub_field('xls-title'); ?>" class="p-child__xls"><?php echo the_sub_field('xls-title'); ?><span></span></a>
<?php endif; ?>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>
<input id="block-02" type="checkbox" class="p-child__method">
<label class="p-child__methodLabel p-child__methodLabel--bottom" for="block-02">安全なダウンロードの方法はこちら</label>
<?php include('template/method.php'); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php if(is_page(array('company', 'philosophy'))){include('template/related-business.php');} ?>
</section>
</main>
<?php get_footer();