ID;
$result = '';
if (have_rows('subtemplate',$id)) {
while (have_rows('subtemplate',$id)) {
the_row();
$subtemplateType = get_sub_field('subtemplate_type');
$subtemplateTitle = get_sub_field('section_title');
switch ($subtemplateType) {
case 'featurecirclesicons':
$result .= $this->featureCirclesIcons($subtemplateTitle);
break;
case 'featurecircles':
$result .= $this->featureCircles($subtemplateTitle);
break;
case 'casestudies':
$result .= $this->caseStudies($subtemplateTitle);
break;
case 'slides':
$result .= $this->slides($subtemplateTitle);
break;
case 'oldnew':
$result .= $this->oldNew($subtemplateTitle);
break;
case 'existingnew':
$result .= $this->existingNew($subtemplateTitle);
break;
case 'threecolumn':
$result .= $this->columns($subtemplateTitle);
break;
case 'productoverview':
$result .= $this->productOverview($subtemplateTitle);
break;
case 'getstartedfast':
$result .= $this->startedFast($subtemplateTitle);
break;
case 'bluebox':
$result .= $this->blueBox($subtemplateTitle);
break;
case 'calltoaction':
$result .= $this->callToAction($subtemplateTitle);
break;
case 'galleries':
$result .= $this->galleries($subtemplateTitle);
break;
case 'blogfeatures':
$result .= $this->blogFeatures();
break;
case 'mediafeature':
$result .= $this->galleries($subtemplateTitle);
break;
case 'content':
$result .= $this->content($subtemplateTitle);
break;
case 'contentBoxed':
$result .= $this->contentBoxed($subtemplateTitle);
break;
case 'team':
$result .= $this->team($subtemplateTitle);
break;
case 'teamGeneral':
$result .= $this->teamGeneral($subtemplateTitle);
break;
case 'image':
$result .= $this->image($subtemplateTitle);
break;
case 'faq':
$result .= $this->faq($subtemplateTitle);
break;
case 'values':
$result .= $this->values($subtemplateTitle);
break;
case 'careers':
$result .= $this->careers($subtemplateTitle);
break;
case 'mediadetail':
$result .= $this->mediaDetail($subtemplateTitle);
break;
case 'download':
$result .= $this->download($subtemplateTitle);
break;
case 'contact':
$result .= $this->contactPage($subtemplateTitle);
break;
case 'events':
$result .= $this->eventPage($subtemplateTitle);
break;
}
}
}
return $result;
}
public function featureCirclesIcons($subtemplateTitle) {
$featureCircles = '';
if (have_rows('feature_circles_w_icon')) {
while (have_rows('feature_circles_w_icon')) {
the_row();
$title = get_sub_field('title');
$icon = get_sub_field('icon')['url'];
$description = get_sub_field('description');
$featureCircles .= "{$title}
{$title}
{$colTitle}
{$subtemplateTitle}
Old Way | New Way |
---|
{$quote}
{$quote}
There are no events for this time period
"; } $sidebar = $this->eventSidebar(); $result = "{$quote}
{$quote}