<section class="splash splash--full container__full"> <?php afsp_imgix('splash__image', false, 'si', '100vw', 3000, 1500, 768, 700); ?> </section>
$container = 'container'; if (get_sub_field('l_image_location') != 'none') { $img_class = get_sub_field('l_image_location'); $container = 'container__' . $img_class; ?> <section class="landing--flex container"> <?php switch ($img_class) { case 'full': afsp_imgix('landing__image--' . $img_class, true, 'l', '100vw', 1532, 768, 768, 500); break; case 'left': case 'right': afsp_imgix('landing__image--' . $img_class, true, 'l', '(min-width: 768px) 50vw, 100vw', 768, 500, '', ''); break; } } ?> <div class="landing__<?php echo $img_class; ?> "> <?php if ($counter == 1) { ?> <h1 class="landing__title"><?php
the_post(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <header class="entry-header"> <?php $image = get_field('b_featured_image'); if (!empty($image)) { afsp_imgix('feed__image', false, 'b_featured', '100vw', 1532, 768, 768, 768); } ?> <?php the_title(sprintf('<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>'); ?> <?php if ('post' === get_post_type()) { ?> <div class="entry-meta"> <span class="posted-on"> <?php $date = DateTime::createFromFormat('Y-m-d', get_field('b_date')); // echo $date->format('F j, Y');
<?php $image = get_field('b_featured_image'); if (!empty($image)) { ?> <a class="feed__image" href="<?php the_permalink(); ?> "> <?php afsp_imgix('', false, 'b_featured', '(min-width:768px) 40vw, 100vw', 768, 768, 768, 768); ?> </a> <?php } ?> <div class="feed__body feed__body--third"> <div class="feed__quote"><?php the_field('b_pull_quote_for_feed'); ?> </div> <a class="feed__title" href="<?php the_permalink(); ?> "><?php
?> <?php if (have_rows('fg_features')) { $i = 0; while (have_rows('fg_features')) { the_row(); $i++; $row = get_field('fg_features'); if ($i == 1) { ?> <section class="splash container"> <?php afsp_imgix('splash__image', true, 'fg', '100vw', 1532, 768, 768, 768); ?> </section> <section class="program-feature container"> <h1 class="landing__title"><?php the_title(); ?> </h1> <h2 class="program-feature__header"><?php the_sub_field('fg_header'); ?> </h2> <div class="program-feature__body"><?php the_sub_field('fg_body'); ?>
?> <a class="program__item <?php echo get_sub_field('pg_program_department'); ?> " href="<?php the_permalink(); ?> "> <table> <tbody> <tr> <td> <?php afsp_imgix('program__image', false, 'si', '(min-width: 1200px) 23vw, (min-width: 768px) 29vw, (min-width: 667px) 42vw, 84vw', '768', '768', '', ''); ?> </td> </tr> <tr> <td class="program__title"><?php the_title(); ?> </td> </tr> </tbody> </table> </a> <?php
$programs = new WP_Query($args); echo '<pre>'; var_dump($programs); echo '</pre>'; // The Loop if ($programs->have_posts()) { while ($programs->have_posts()) { $programs->the_post(); if (get_the_title() == $selectedProgram) { ?> <div class="chapter__programs"> <h2>Featured Program</h2> <?php echo afsp_imgix('', false, 'si', '100vw', 700, 350, '', ''); // lovely piece of code resides at inc/imgix.php ?> <a href="<?php the_permalink(); ?> "> <h3><?php the_title(); ?> </h3> <p>Learn more about this program ››</p> </a> <div class="program-buttons"> <a class="features__button" href="<?php
$file_name = preg_replace("/[\\s]/", "-", $file_name); ?> <div class="state-sheet__button"><a href="<?php get_home_url(); ?> /about-suicide/state-fact-sheets/#<?php echo $file_name; ?> ">Get state facts</a></div> </div> </section> <section class="splash splash--volunteer"> <?php echo afsp_imgix('splash__image', false, 'v', '100vw', 3000, 1000, 768, 768); // lovely piece of code resides at inc/imgix.php ?> </section> <section class="volunteer container__full"> <div class="container"> <div class="volunteer__cta"> <p class="volunteer__body">It doesn't take much to make a big difference, and there are opportunities for all levels of commitment.<br><br>Contact us to learn how you can get involved in your community. <?php if (get_field('ch_use_email')) { $volunteer = 'mailto:' . get_field('v_staff_email') . '?subject=I\'m interested in volunteering with ' . get_the_title(); } else { $volunteer = get_field('ch_alternate_volunteer');
<div class="feed__item feed__item--standard"> <?php $image = get_field('b_featured_image'); if (!empty($image)) { ?> <a class="feed__image" href="<?php the_permalink(); ?> "> <?php afsp_imgix('feed__image', false, 'b_featured', '(min-width:768px) 40vw, 100vw', 768, 512, 768, 768); ?> </a> <?php } ?> <div class="feed__body"> <a class="feed__title" href="<?php the_permalink(); ?> "><?php the_title(); ?> </a>
<a class="block__link block__link--<?php echo $category; ?> <?php echo $row_class; ?> " href="<?php the_permalink(); ?> "> <table> <tr> <td> <?php afsp_imgix('block__image', false, 'si', '100vw', 400, 300, 768, 768); ?> </td> </tr> <tr> <td class="block__link-text"> <span class="block__category"><?php echo $category_text; ?> </span> <br /><?php the_title(); ?> </td> </tr>
<iframe src="https://player.vimeo.com/video/178517589" frameborder="0" allowfullscreen></iframe> </div> <?php $voices = get_field('nspw_voice'); if ($voices) { foreach ($voices as $post) { // variable must be called $post (IMPORTANT) setup_postdata($post); $image = get_field('b_featured_image'); ?> <div> <?php afsp_imgix('nspw__image', false, 'b_featured', '(min-width:768px) 25vw, 50vw, 100vw', 768, 768, '', ''); ?> <img class="nspw__image" src="<?php echo $image['url']; ?> " /> <a class="nspw__overlay" href="<?php the_permalink(); ?> "><?php the_title(); ?> </a> </div> <?php
* @package afsp */ get_header(); get_template_part('template-parts/title'); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <section class="splash container"> <?php afsp_imgix('splash__image', false, 'sicta', '100vw', 1532, 768, 768, 768); ?> <div class="splash__cta"> <?php if (get_field('sicta_call_to_action')) { ?> <h2 class="splash__action"><?php the_field('sicta_call_to_action'); ?> </h2> <?php }
<?php while (have_posts()) { the_post(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <section class="bio__intro"> <?php if (get_field('bio_image')) { echo afsp_imgix('bio__image', false, 'bio', '(min-width:768px) 10vw, 100vw', 768, 768, '', ''); } else { ?> <img class="bio__image" src="http://placehold.it/768/fc4c02/ffffff?text=Image+Coming+Soon" /> <?php } ?> <div class="bio__info"> <?php the_title('<h1 class="bio__name">', '</h1>'); ?>
*/ get_header(); get_template_part('template-parts/title'); ?> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <section class="grant container"> <?php if (get_field('g_image')) { echo afsp_imgix('grant__image', false, 'g', '(min-width:768px) 10vw, 100vw', 768, 768, '', ''); } else { ?> <img class="grant__image" src="http://placehold.it/768/fc4c02/ffffff?text=Image+Coming+Soon" /> <?php } if (have_rows('g_grantees')) { ?> <div class="grant__info"> <h1 class="grant__title"><?php the_title(); ?> </h1>
while (have_rows('pf_content_block')) { the_row(); ?> <div class="program-feature__block program-feature__block--<?php echo $rows; ?> x"> <?php if (get_sub_field('pf_content_type') == 'image') { $content_image = get_sub_field('pf_image'); ?> <?php afsp_imgix('program-feature__image', true, 'pf', '100vw', 960, 480, '', ''); ?> <?php } elseif (get_sub_field('pf_content_type') == 'video') { ?> <div class="program-feature__video"> <?php if (get_sub_field('pf_video_source') === 'youtube') { ?> <iframe width="700" height="394" src="https://www.youtube.com/embed/<?php echo the_sub_field('pf_video_id'); ?>
} ?> <a class="lost__link <?php echo $row_class; ?> " href="<?php echo $link; ?> "> <table> <tr> <td> <?php afsp_imgix('lost__image', true, 'lo', '100vw', 400, 300, 768, 768); ?> </td> </tr> <tr> <td class="lost__link-text"><?php the_sub_field('lo_link_text'); ?> </td> </tr> </table> </a> <?php }