data)) {
if($this->getTag($this->data['header']) !== NULL) {
$this->data['header'] = $this->t($this->data['header']);
}
}
$this->includeAtTemplateBase('includes/header.php');
?>
data['header'])) { echo($this->data['header']); } else { echo($this->t('{status:some_error_occurred}')); } ?>
t('{status:intro}')); ?>
data['remaining'])) {
echo('' . $this->t('{status:validfor}', array('%SECONDS%' => $this->data['remaining'])) . '
');
}
if(isset($this->data['sessionsize'])) {
echo('' . $this->t('{status:sessionsize}', array('%SIZE%' => $this->data['sessionsize'])) . '
');
}
?>
t('{status:attributes_header}')); ?>
data['attributes'];
function present_list($attr) {
if (is_array($attr) && count($attr) > 1) {
$str = '';
foreach ($attr as $value) {
$str .= '- ' . htmlspecialchars($attr) . '
';
}
$str .= '
';
return $str;
} else {
return htmlspecialchars($attr[0]);
}
}
function present_assoc($attr) {
if (is_array($attr)) {
$str = '';
foreach ($attr AS $key => $value) {
$str .= "\n" . '- ' . htmlspecialchars($key) . '
- ' . present_list($value) . '
';
}
$str .= '
';
return $str;
} else {
return htmlspecialchars($attr);
}
}
function present_attributes($t, $attributes, $nameParent) {
$alternate = array('odd', 'even'); $i = 0;
$parentStr = (strlen($nameParent) > 0)? strtolower($nameParent) . '_': '';
$str = (strlen($nameParent) > 0)? '':
'';
foreach ($attributes as $name => $value) {
$nameraw = $name;
$name = $t->getAttributeTranslation($parentStr . $nameraw);
if (preg_match('/^child_/', $nameraw)) {
$parentName = preg_replace('/^child_/', '', $nameraw);
foreach($value AS $child) {
$str .= '| ' . present_attributes($t, $child, $parentName) . ' |
';
}
} else {
if (sizeof($value) > 1) {
$str .= '';
if ($nameraw !== $name)
$str .= htmlspecialchars($name).' ';
$str .= ''.htmlspecialchars($nameraw).'';
$str .= ' | ';
foreach ($value AS $listitem) {
if ($nameraw === 'jpegPhoto') {
$str .= ' . ') ';
} else {
$str .= '- ' . present_assoc($listitem) . '
';
}
}
$str .= ' |
';
} elseif(isset($value[0])) {
$str .= '';
if ($nameraw !== $name)
$str .= htmlspecialchars($name).' ';
$str .= ''.htmlspecialchars($nameraw).'';
$str .= ' | ';
if ($nameraw === 'jpegPhoto') {
$str .= ' . ') |
';
} else {
$str .= '' . htmlspecialchars($value[0]) . ' | ';
}
}
}
$str .= "\n";
}
$str .= '
';
return $str;
}
echo(present_attributes($this, $attributes, ''));
// consent style listing end
if (isset($this->data['logout'])) {
echo('' . $this->t('{status:logout}') . '
');
echo('' . $this->data['logout'] . '
');
}
if (isset($this->data['logouturl'])) {
echo('' . $this->t('{status:logout}') . '
');
echo('[ ' . $this->t('{status:logout}') . ' ]
');
}
?>
t('{core:frontpage:about_header}'); ?>
t('{core:frontpage:about_text}'); ?>
includeAtTemplateBase('includes/footer.php'); ?>