$value = '<em style="color: #444">' . ((bool) $value ? "yes" : "no") . '</em>'; break; case 'integer': case 'int': case 'float': $value = '<span style="font-family: monospace; font-size: 1.2em;">' . $value . '</span>'; break; default: $value = strlen(trim($value)) ? htmlentities($value) : '∅'; } $list[$item->key] = '<dt>' . $item->key . '</dt><dd>' . $value . '</dd>'; } natcasesort($list); if ($list) { $url = './admin/module/editor/index/' . $module->id; $button = UI_HTML_Elements::LinkButton($url, '', 'button tiny edit'); $button = UI_HTML_Tag::create('div', $button, array('style' => "position: absolute; right: 3px; top: 1px;")); $list = UI_HTML_Tag::create('dl', $list, array('class' => 'index-config')); $url = './admin/module/viewer/index/' . $module->id; $link = UI_HTML_Tag::create('a', $module->title, array('href' => $url, 'class' => 'module')); $heading = UI_HTML_Tag::create('h4', $link, array('class' => 'index-config-module')); $listModules[] = $heading . $list; } } $panel = ' <fieldset> <legend class="info">Konfiguration</legend> <div style="max-height: 320px; overflow: auto;"> ' . join($listModules) . ' </div> </fieldset>';
<?php $listModulesInstalled = array(); foreach ($modulesInstalled as $moduleId => $module) { $desc = explode("\n", $module->description); $desc = trim(array_shift($desc)); $label = $desc ? '<acronym title="' . $desc . '">' . $module->title . '</acronym>' : $module->title; $label = '<span class="module">' . $label . '</span>'; $link = '<a href="./admin/module/viewer/view/' . $moduleId . '">' . $label . '</a>'; $listModulesInstalled[$module->title] = '<li>' . $link . '</li>'; } natcasesort($listModulesInstalled); $panel = ' <fieldset style="position: relative"> <legend class="info">Module installiert <span class="small">(' . count($listModulesInstalled) . ')</span></legend> <div style="position: absolute; right: 8px; top: 16px;"> ' . UI_HTML_Elements::LinkButton('./admin/module/installer', '', 'button tiny icon add') . ' </div> <div style="max-height: 160px; overflow: auto"> <ul>' . join($listModulesInstalled) . '</ul> </div> </fieldset>'; $env->clock->profiler->tick('Template: index/index - installed'); return $panel;
height: 18px; padding: 0 6px; margin: 0; margin-left: 0.5em; background-color: #777; border-radius: 9px; line-height: 1.6em; text-align: center; font-size: 0.9em; font-size: 11.5px; color: white; } .badge.badge-fail{ background-color: #922; } .badge.badge-update{ background-color: #05A; } </style> <fieldset> <legend>Instanzen ' . $badgeNrUpdates . '</legend> <div style="position: absolute; right: 8px; top: 16px;"> ' . UI_HTML_Elements::LinkButton('./admin/instance/', '', 'button tiny edit') . ' </div> ' . $list . ' </fieldset> '; $env->clock->profiler->tick('Template: index/index - instances'); return $panel;