import v1.1.0_beta1 | 2009-08-21

This commit is contained in:
2019-07-17 22:16:19 +02:00
parent 2c1152f0d3
commit 8dee6b1a10
2306 changed files with 251360 additions and 23428 deletions

View File

@ -58,14 +58,15 @@ class Zend_View_Helper_HtmlList extends Zend_View_Helper_FormElement
foreach ($items as $item) {
if (!is_array($item)) {
if ($escape) {
$item = $this->view->escape($item);
$item = $this->view->escape($item);
}
$list .= '<li>' . $item . '</li>';
$list .= '<li>' . $item . '</li>' . self::EOL;
} else {
if (5 < strlen($list)) {
$list = substr($list, 0, strlen($list) - 5) . $this->htmlList($item, $ordered, $attribs, $escape) . '</li>';
if (6 < strlen($list)) {
$list = substr($list, 0, strlen($list) - 6)
. $this->htmlList($item, $ordered, $attribs, $escape) . '</li>' . self::EOL;
} else {
$list .= '<li>' . $this->htmlList($item, $ordered, $attribs, $escape) . '</li>';
$list .= '<li>' . $this->htmlList($item, $ordered, $attribs, $escape) . '</li>' . self::EOL;
}
}
}
@ -81,6 +82,6 @@ class Zend_View_Helper_HtmlList extends Zend_View_Helper_FormElement
$tag = 'ol';
}
return '<' . $tag . $attribs . '>' . $list . '</' . $tag . '>';
return '<' . $tag . $attribs . '>' . self::EOL . $list . '</' . $tag . '>' . self::EOL;
}
}