32 $tpl_name =
"tpl.primary.html";
35 $tpl_name =
"tpl.standard.html";
39 $action = $component->getAction();
42 $tpl->setVariable(
"ACTION", $action);
43 $label = $component->getLabel();
44 if ($label !== null) {
45 $tpl->setVariable(
"LABEL", $component->getLabel());
47 if ($component->isActive()) {
48 $tpl->setCurrentBlock(
"with_href");
49 $tpl->setVariable(
"HREF", $action);
50 $tpl->parseCurrentBlock();
53 $tpl->touchBlock(
"disabled");
65 $tpl->setVariable(
"FORCE_RENDERING",
"");
73 $tpl->setCurrentBlock(
"with_id");
74 $tpl->setVariable(
"ID", $id);
75 $tpl->parseCurrentBlock();
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
Create styles array
The data for the language used.
getTemplate($name, $purge_unfilled_vars, $purge_unused_blocks)
Get template of component this renderer is made for.
Base class for all component renderers.
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.