24 if ($component->getImage()) {
25 $tpl->setVariable(
"IMAGE", $default_renderer->render($component->getImage(), $default_renderer));
28 if ($component->isHighlighted()) {
29 $tpl->touchBlock(
"highlight");
31 $tpl->touchBlock(
"no_highlight");
34 if ($component->getTitleAction()) {
35 $tpl->setCurrentBlock(
"title_action_begin");
36 $tpl->setVariable(
"HREF", $component->getTitleAction());
37 $tpl->parseCurrentBlock();
40 $tpl->setVariable(
"TITLE", $component->getTitle());
42 if ($component->getTitleAction()) {
43 $tpl->touchBlock(
"title_action_end");
46 if (is_array($component->getSections())) {
47 foreach ($component->getSections() as
$section) {
48 $tpl->setCurrentBlock(
"section");
49 $tpl->setVariable(
"SECTION", $default_renderer->render(
$section, $default_renderer));
50 $tpl->parseCurrentBlock();
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
getComponentInterfaceName()
Create styles array
The data for the language used.
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
getTemplate($name, $purge_unfilled_vars, $purge_unused_blocks)
Get template of component this renderer is made for.
Base class for all component renderers.