/** * Formats an individual block in a row * * @author Andi Ruggles <*****@*****.**> * @author Mark Furrow <*****@*****.**> */ protected static function setColumnsData() { $combo_classes = array('combo'); foreach (self::$column_definitions as $placement) { $content = ''; $content_type = get_field($placement . '_content_type', self::$ID); if (!empty($content_type)) { array_push($combo_classes, $content_type); } if ($content_type == 'text') { $content .= self::textBlock(get_field('text_' . $placement, self::$ID)); } elseif ($content_type == 'image') { $content .= self::imageTag(get_field('image_' . $placement, self::$ID)); $content .= self::mediaCaption(get_field('caption_' . $placement, self::$ID)); } elseif ($content_type == 'testimonial') { $content .= self::fullTestimonial(get_field('testimonial_' . $placement, self::$ID)); } else { // $content .= self::responsiveVideo(get_field('video_'.$placement, self::$ID)); // $content .= self::mediaCaption(get_field('caption_'.$placement, self::$ID)); $content .= self::solarBoxVideo($placement); } switch ($placement) { case 'left': self::$left = self::columnWrapper($content_type, $content); break; case 'middle': self::$middle = self::columnWrapper($content_type, $content); break; case 'right': self::$right = self::columnWrapper($content_type, $content); break; } } self::$combo_class = implode('_', $combo_classes); }
</div> <!-- #content --> <div id="sidebar"><?php dynamic_sidebar('sidebar-faq'); ?> </div> </div> <!-- .row --> </div> <!-- #right --> </div> <!-- .<?php echo $bodyClass; ?> .interior-content --> </div> <!-- .container-fluid --> </div> <!-- #interior --> <?php } } ?> <?php PageBlocks::output(); ?> <?php get_footer();