<article class="<?php echo ws_parity($i, 'left', 'right'); ?> col-sm-6 project project-tile element <?php echo ws_derive_scope_string(get_field('project_scope_tags')); ?> "> <a href="<?php the_permalink(); ?> "> <div class="project-tile-image"> <?php 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);
function ws_ifdef_show($content) { return ws_ifdef_do($content, $content); }
$story_style_background_color = $story['project_story_background_color']; $story_is_container = $story['is_container']; $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')) {