echo ws_ifdef_do($hero_image, ws_ifdef_concat('<img src="', $hero_image_url, '" \\>')); ?> <div class="project-tile-hook"> <h2><?php echo ws_ifdef_show($blurby); ?> </h2> </div> </div> <div class="project-tile-info"> <h3 class="centered"><?php echo ws_ifdef_show($title); ?> </h3> <h4 class="centered"><?php echo ws_split_array_by_key(get_field('project_scope_tags'), ', ', function ($cb_tag) { return $cb_tag['scope_tag']->name; }); ?> </h4> </div> </a> </article> <?php
function ws_ifdef_concat($before, $content, $after) { return $before . ws_ifdef_show($content) . $after; }
$story_content = $story['project_story_content']; $sidebar_accumulator .= '<li><a href="#' . $story_title_slug . '">' . $story['project_story_name'] . '</a></li>'; ?> <section id="<?php echo $story_title_slug; ?> " class="<?php echo $story_title_slug; ?> story block crop bg-light"> <?php echo ws_ifdef_do($story_is_container, ws_ifdef_concat('<div class="block-background" style="', ws_ifdef_do($story_style_background_image, 'background-image:url(' . $story_style_background_image . ');') . ws_ifdef_do($story_style_background_color, 'background-color:' . $story_style_background_color . ';'), '" ></div>')); // echos a background container to the frame. echo ws_ifdef_show($story_content); ?> </section> <?php } $sidebar_accumulator .= "</ul>"; // end the sidebar, and echo $sidebar_accumulator; ?> <?php if ($slideshow = get_field('project_slideshow')) { ?>