blob: 57fdfe64c2701c6483eaa42e0ae9fd9a1c198823 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?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().
" " . ($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;
|