Skip to content

Commit

Permalink
[FEATURE] configurable content-wrapper-class
Browse files Browse the repository at this point in the history
  • Loading branch information
Netzweberei committed Mar 1, 2016
1 parent 883f8ae commit 8117c59
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 8117c59

Please sign in to comment.