blob: 859afbe283baba6d17750bebf0ccb8d1138ba091 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
$i=0;
$fieldText = '';
foreach ($filter->getFields() as $field) {
if ($i > 0) {
$fieldText .= ' <b>'._('und').'</b> ';
}
$valueNames = $field->getValidValues();
$ops = $field->getValidCompareOperators();
$fieldText .= htmlReady($field->getName()." ".$field->getCompareOperatorAsText().
" " . (count($valueNames) ? $valueNames[$field->getValue()] : $field->getValue()));
$i++;
}
if ($filter->show_user_count) {
$user_count = count($filter->getUsers());
$fieldText .= ' ('.sprintf(_('%s Personen'), $user_count);
if (!$user_count) {
$fieldText .= Icon::create('exclaim-circle', 'attention', ['title' => _("Niemand erfüllt diese Bedingung.")])->asImg();
}
$fieldText .= ')';
}
echo $fieldText;
?>
|