15 return "tpl.glyph.standard.html";
28 $action = $component->getAction();
29 if ($component->isActive() &&
$action !== null) {
30 $tpl->setCurrentBlock(
"with_action");
31 $tpl->setVariable(
"ACTION", $component->getAction());
32 $tpl->parseCurrentBlock();
35 if ($component->isHighlighted()) {
36 $tpl->touchBlock(
"highlighted");
39 if (!$component->isActive()) {
40 $tpl->touchBlock(
"disabled");
42 $tpl->setCurrentBlock(
"with_aria_disabled");
43 $tpl->setVariable(
"ARIA_DISABLED",
"true");
44 $tpl->parseCurrentBlock();
47 $tpl->setVariable(
"LABEL", $this->
txt($component->getAriaLabel()));
52 $tpl->setCurrentBlock(
"with_id");
54 $tpl->parseCurrentBlock();
66 $tpl->touchBlock($component->getType());
69 foreach ($component->getCounters() as $counter) {
70 if ($largest_counter < $counter->getNumber()) {
71 $largest_counter = $counter->getNumber();
73 $n =
"counter_" . $counter->getType();
75 $tpl->setVariable(strtoupper(
$n), $default_renderer->render($counter));
76 $tpl->parseCurrentBlock();
79 if ($largest_counter) {
80 $tpl->setCurrentBlock(
"counter_spacer");
81 $tpl->setVariable(
"COUNTER_SPACER", $largest_counter);
82 $tpl->parseCurrentBlock();
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
if(!array_key_exists('StateId', $_REQUEST)) $id
txt($id)
Get a text from the language file.
getInnerGlyphHTML(Component\Component $component, RendererInterface $default_renderer)
getComponentInterfaceName()
render(Component\Component $component, RendererInterface $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.
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.