<div class="photo-section grid" data-columns> <?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <?php /* Image */ if (has_post_thumbnail()) { ?> <a class="column strip" href="<?php echo _s_get_feat_img_url('full'); ?> " data-strip-group="strip" data-strip-caption="<?php the_title(); ?> "> <?php the_post_thumbnail('medium'); ?> </a> <?php } ?> <?php }
<?php /** * Template part for the services hero. * * @package _s */ // set up hero image if (has_post_thumbnail()) { $h_img = _s_get_feat_img_url('hero'); } else { $h_img = get_bloginfo('template_directory') . '/assets/img/hero-fallback.jpg'; } // set up hero text/class if (get_field('hero_text')) { $h_txt = get_field('hero_text'); $class = 'hero-section--has-text'; } else { $class = 'hero-section--no-text'; } ?> <section class="services-hero hero-section bg-cover <?php echo $class; ?> txt--center" style="background-image: url('<?php echo $h_img; ?> ');"> <?php /* Text */