<?php $last = 0; $counter = 1; if (is_array($boxmetadata['lambda_page_item'])) { foreach ($boxmetadata['lambda_page_item'] as $singlebox) { $gridsize = isset($singlebox['grid_size']) ? $singlebox['grid_size'] : '960'; if (isset($gridsize) && $gridsize != "960") { $last = $last + $gridsize + 20; } //Design Exceptions $boxtitle = isset($singlebox['box_title']) && $singlebox['box_type'] != 'testimonialcarousel' ? $singlebox['box_title'] : false; $overflow = isset($singlebox['box_type']) && $singlebox['box_type'] == 'testimonialcarousel' ? true : false; $entrycontent = isset($singlebox['box_type']) && $singlebox['box_type'] == 'simple_textbox' ? true : false; $sidebar = isset($singlebox['box_type']) && $singlebox['box_type'] == 'sidebarwidget' ? true : false; if (isset($singlebox['box_type']) && $singlebox['box_type'] != 'service_column') { build_grid_opener($gridsize, $last, $boxtitle, $overflow, $entrycontent, $singlebox, $sidebar); } else { build_article_opener($gridsize, $last, $boxtitle, $overflow, $entrycontent, $singlebox); } if (isset($singlebox['box_type'])) { switch ($singlebox['box_type']) { case "simple_textbox": render_simple_textbox($singlebox['extra_content']); break; case "simple_quote": render_simple_quote($singlebox['quote'], $singlebox['quote_cite']); break; case "call_to_action": render_cta_box($singlebox['cta_headline'], $singlebox['cta_content'], $singlebox['cta_buttonlink'], $singlebox['cta_buttontext']); break; case "rev_slider":
# viewport exceptions #----------------------------------------------------------------- $activate_desktop = isset($singlebox['activate_desktop']) && $singlebox['activate_desktop'] == 'on' ? ' lambda-hide-desktop ' : ''; $activate_landscape = isset($singlebox['activate_landscape']) && $singlebox['activate_landscape'] == 'on' ? ' lambda-hide-tablet ' : ''; $activate_mobile = isset($singlebox['activate_mobile']) && $singlebox['activate_mobile'] == 'on' ? ' lambda-hide-mobile ' : ''; #----------------------------------------------------------------- # fill up row #----------------------------------------------------------------- if (isset($gridsize) && $gridsize != "960") { $row = $row + $gridsize + 20; } #----------------------------------------------------------------- # start single box output #----------------------------------------------------------------- if ($singlebox['box_type'] != 'hrow') { build_grid_opener($gridsize, $boxtitle, $entrycontent, $singlebox, $sidebar, $boxclass); } #----------------------------------------------------------------- # create box content #----------------------------------------------------------------- switch ($singlebox['box_type']) { case "blog_excerpt": render_lambda_blog_grid($singlebox); break; case "call_to_action": render_cta_box($singlebox); break; case "clientbox": render_clientbox($singlebox); break; case "hrow":