Skip to content

Commit

Permalink
Merge pull request #26 from getherbie/feature/configurable-contentwra…
Browse files Browse the repository at this point in the history
…pper-classes

Feature/configurable-contentwrapper-classes
  • Loading branch information
tbreuss committed Mar 1, 2016
2 parents ccf4eab + 8117c59 commit 773e878
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/twig/classes/HerbieExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,10 @@ public function functionContent($segmentId = 0, $wrap = false)
if (empty($wrap)) {
return $content;
}
return sprintf('<div class="placeholder-%s">%s</div>', $segmentId, $content);
if(!$placeholderName = $this->config->get('twig.content_container_class')){
$placeholderName = 'placeholder';
}
return sprintf('<div class="'.$placeholderName.'-%s">%s</div>', $segmentId, $content);
}

/**
Expand Down

0 comments on commit 773e878

Please sign in to comment.