$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": render_rev_slider($singlebox['rev_slider']); break; case "standard_slider": render_standard_slider($singlebox['standard_slider']); break; case "soundcloud": render_soundcloud($singlebox); break; case "simple_video": post_format_video($singlebox, $counter);
case "service_box": render_service_box($singlebox); break; case "service_column": render_service_column($singlebox); break; case "sidebarwidget": render_simple_sidebar($singlebox); break; case "simple_textbox": if (!empty($singlebox['extra_content'])) { render_simple_textbox($singlebox['extra_content']); } break; case "simple_quote": render_simple_quote($singlebox); break; case "featured_slider": render_featured_slider($singlebox, $gridsize, $boxcounter); break; case "simple_video": render_simple_video($singlebox); break; case "testimonialcarousel": render_testimonial_carousel($singlebox, '', $boxcounter, 'page'); break; case "testimonial": echo render_testimonial($singlebox); break; } #-----------------------------------------------------------------