File "single-interview.php"
Full path: /home/xs854402/smcse.co.jp/public_html/wp-content/themes/Sumitomo-Mitsui/single-interview.php
File
size: 10.44 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php get_header('employment'); ?>
<main>
<?php include('template/bottom-interview.php'); ?>
<?php include('template/breadcrumb.php'); ?>
<section class="p-interview">
<div class="p-interview__heading">
<?php
$post_name = $post->post_name;
if($post_name == 'round-table-discussion') :
?>
<div class="p-interview__inner l-inner">
<p class="p-interview__entitle c-entitle">cross talk</p>
<h2 class="p-interview__title c-title">特別座談会</h2>
<?php
if(have_rows('introduction')) :
while (have_rows('introduction')) : the_row();
?>
<div class="p-interview__headingBlock">
<?php
$acf_row_image = get_sub_field('introduction-img');
$url = $acf_row_image['url'];
$alt = $acf_row_image['alt'];
if ($url) :
?>
<div class="p-interview__img c-img">
<img src="<?php echo $url; ?>" alt="<?php echo $alt; ?>">
</div>
<?php endif; ?>
<div class="p-interview__wrap">
<h3 class="p-interview__theme"><?php the_sub_field('introduction-title'); ?></h3>
<?php if(get_sub_field('introduction-text')) : ?>
<p class="p-interview__crossText c-text"><?php the_sub_field('introduction-text'); ?></p>
<?php endif; ?>
<div class="p-interview__info p-interview__info--cross">
<div class="p-interview__crossWrap">
<div class="p-interview__infoBlock">
<p class="p-interview__position"><?php the_sub_field('introduction-position'); ?></p>
<p class="p-interview__name"><?php the_sub_field('introduction-name'); ?> <?php if(get_sub_field('introduction-year')) {echo the_sub_field('introduction-year').'入社'; } ?></p>
</div>
<div class="p-interview__infoBlock">
<p class="p-interview__position"><?php the_sub_field('introduction-position02'); ?></p>
<p class="p-interview__name"><?php the_sub_field('introduction-name02'); ?> <?php if(get_sub_field('introduction-year02')) {echo the_sub_field('introduction-year02').'入社'; } ?></p>
</div>
<div class="p-interview__infoBlock">
<p class="p-interview__position"><?php the_sub_field('introduction-position03'); ?></p>
<p class="p-interview__name"><?php the_sub_field('introduction-name03'); ?> <?php if(get_sub_field('introduction-year03')) {echo the_sub_field('introduction-year03').'入社'; } ?></p>
</div>
<div class="p-interview__infoBlock">
<p class="p-interview__position"><?php the_sub_field('introduction-position04'); ?></p>
<p class="p-interview__name"><?php the_sub_field('introduction-name04'); ?> <?php if(get_sub_field('introduction-year04')) {echo the_sub_field('introduction-year04').'入社'; } ?></p>
</div>
</div>
</div>
</div>
</div>
<?php
endwhile;
endif;
?>
</div>
<?php else : ?>
<div class="p-interview__inner l-inner">
<p class="p-interview__entitle c-entitle">interview</p>
<h2 class="p-interview__title c-title">社員インタビュー</h2>
<?php
if(have_rows('introduction')) :
while (have_rows('introduction')) : the_row();
?>
<div class="p-interview__headingBlock">
<?php
$acf_row_image = get_sub_field('introduction-img');
$url = $acf_row_image['url'];
$alt = $acf_row_image['alt'];
if ($url) :
?>
<div class="p-interview__img c-img">
<img src="<?php echo $url; ?>" alt="<?php echo $alt; ?>">
</div>
<?php endif; ?>
<div class="p-interview__wrap p-interview__wrap--single">
<h3 class="p-interview__theme"><?php the_sub_field('introduction-title'); ?></h3>
<?php if(get_sub_field('introduction-text')) : ?>
<p class="p-interview__crossText c-text"><?php the_sub_field('introduction-text'); ?></p>
<?php endif; ?>
<div class="p-interview__info">
<div class="p-interview__infoBlock">
<p class="p-interview__position"><?php the_sub_field('introduction-position'); ?></p>
<p class="p-interview__name p-interview__name--single"><?php the_sub_field('introduction-name'); ?> <?php if(get_sub_field('introduction-year')) {echo the_sub_field('introduction-year').'入社'; } ?></p>
</div>
</div>
</div>
</div>
<?php
endwhile;
endif;
?>
</div>
<?php endif;?>
</div>
<div class="p-interview__contents">
<div class="p-interview__inner l-inner">
<?php
if(have_rows('interview-blocks')) :
while (have_rows('interview-blocks')) : the_row();
?>
<?php if (get_sub_field('interview-block')) : ?>
<?php
$group = get_sub_field('interview-block');
if ($group) :
?>
<div class="p-interview__block">
<?php
$acf_row_image = $group['interview-img'];
$url = $acf_row_image['url'];
$alt = $acf_row_image['alt'];
if ($url) :
?>
<div class="p-interview__blockImg c-img">
<img src="<?php echo $url; ?>" alt="<?php echo $alt; ?>">
</div>
<?php endif; ?>
<div class="p-interview__blockWrap">
<h3 class="p-interview__blockTheme"><?php echo $group['interview-title']; ?></h3>
<p class="p-interview__blockText c-text"><?php echo $group['interview-text']; ?></p>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<?php
endwhile;
endif;
?>
</div>
</div>
<?php
if(!($post_name == 'round-table-discussion')) :
?>
<?php if(have_rows('week')) : ?>
<div class="p-interview__weeks">
<div class="p-interview__inner l-inner">
<p class="p-interview__entitle c-entitle c-entitle--capitalize">one week's work</p>
<h2 class="p-interview__title c-title">ある1週間の仕事</h2>
<div class="p-interview__container">
<div class="p-interview__schedule">
<?php while (have_rows('week')) : the_row(); ?>
<?php if (get_sub_field('week-block')) : ?>
<?php
$group = get_sub_field('week-block');
if ($group) :
?>
<div class="p-interview__list">
<p class="p-interview__day"><?php echo $group['week-title']; ?></p>
<p class="p-interview__action"><?php echo $group['week-text']; ?></p>
</div>
<?php endif; ?>
<?php endif; ?>
<?php endwhile; ?>
</div>
<div class="p-interview__scheduleWrap">
<?php if(get_field('week-subject')) : ?>
<h3 class="p-interview__scheduleTheme"><?php echo the_field('week-subject'); ?></h3>
<?php endif; ?>
<?php if(get_field('week-description')) : ?>
<p class="p-interview__blockText c-text"><?php echo the_field('week-description'); ?></p>
<?php endif; ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php endif;?>
</section>
<?php if(!have_rows('week')) : ?>
<div class="p-related--reset">
<?php include('template/read-other.php'); ?>
</div>
<?php else : ?>
<?php include('template/read-other.php'); ?>
<?php endif; ?>
</main>
<?php get_footer('employment');