Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
test.smcse.co.jp
/
wp-content
/
themes
/
Sumitomo-Mitsui
/
template
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php if (have_rows('bottom-fv')) : while (have_rows('bottom-fv')) : the_row(); $acf_row_image_pc = get_sub_field('bottom-fv-img-pc'); $acf_row_image_sp = get_sub_field('bottom-fv-img-sp'); $url_pc = $acf_row_image_pc['url']; $url_sp = $acf_row_image_sp['url']; ?> <style> <?php if($url_sp) : ?> .p-bottomCorporate { background-image: url(<?php echo $url_sp; ?>); } <?php else : ?> .p-bottomCorporate { background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/images/common/fv-bottom-sp.jpg'); } <?php endif; ?> <?php if($url_pc) : ?> @media screen and (min-width: 768px) { .p-bottomCorporate { background-image: url(<?php echo $url_pc; ?>); } } <?php else : ?> @media screen and (min-width: 768px) { .p-bottomCorporate { background-image: url('<?php echo get_stylesheet_directory_uri(); ?>/images/common/fv-bottom.jpg'); } } <?php endif; ?> </style> <section class="p-bottomCorporate"> <div class="p-bottomCorporate__container"> <div class="p-bottomCorporate__wrap"> <?php if(get_sub_field('bottom-fv-title')) : ?> <h1 class="p-bottomCorporate__title"><?php the_sub_field('bottom-fv-title'); ?></h1> <?php else : ?> <h1 class="p-bottomCorporate__title"><?php the_title(); ?></h1> <?php endif; ?> <?php if(get_sub_field('bottom-fv-text')) : ?> <p class="p-bottomCorporate__text"><?php the_sub_field('bottom-fv-text'); ?></p> <?php endif; ?> </div> </div> </section> <?php endwhile; endif;