25 if ($component->getImage()) {
26 if ($component->getImageAction()) {
27 $tpl->setCurrentBlock(
"image_action_begin");
28 $tpl->setVariable(
"IMG_HREF", $component->getImageAction());
29 $tpl->parseCurrentBlock();
32 $tpl->setVariable(
"IMAGE", $default_renderer->render($component->getImage(), $default_renderer));
34 if ($component->getImageAction()) {
35 $tpl->touchBlock(
"image_action_end");
39 if ($component->isHighlighted()) {
40 $tpl->touchBlock(
"highlight");
42 $tpl->touchBlock(
"no_highlight");
45 $title = $component->getTitle();
46 if ($component->getTitleAction()) {
47 $tpl->setCurrentBlock(
"title_action_begin");
48 $tpl->setVariable(
"HREF", $component->getTitleAction());
49 $tpl->parseCurrentBlock();
58 if ($component->getTitleAction()) {
59 $tpl->touchBlock(
"title_action_end");
62 if (is_array($component->getSections())) {
63 foreach ($component->getSections() as
$section) {
64 $tpl->setCurrentBlock(
"section");
65 $tpl->setVariable(
"SECTION", $default_renderer->render(
$section, $default_renderer));
66 $tpl->parseCurrentBlock();
71 $tpl->setCurrentBlock(
"action");
73 $obj_icon = $component->getObjectIcon();
74 if ($obj_icon !== null) {
75 $tpl->setVariable(
"OBJECT_ICON", $default_renderer->render($obj_icon, $default_renderer));
78 $progress = $component->getProgress();
79 if ($progress !== null) {
80 $tpl->setVariable(
"PROGRESS_STATUS", $default_renderer->render($progress));
85 $certificate_icon =
new StandardIcon(
"cert",
"Certificate",
"medium",
false);
86 $certificate_icon = $certificate_icon->withIsOutlined(
true);
87 $tpl->setVariable(
"PROGRESS_STATUS", $default_renderer->render($certificate_icon));
90 $dropdown = $component->getActions();
91 if ($dropdown !== null) {
92 $tpl->setVariable(
"DROPDOWN", $default_renderer->render($dropdown));
95 $tpl->parseCurrentBlock();
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
if(@file_exists(dirname(__FILE__).'/lang/eng.php')) $certificate
getComponentInterfaceName()
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.