Skip to content

Commit

Permalink
Merge pull request #828 from jiminy/fix/menu-new-line
Browse files Browse the repository at this point in the history
new line symbols in TbBaseMenu
  • Loading branch information
amrbedair committed May 23, 2014
2 parents fb16bd5 + e1fbd2e commit f8c3813
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/widgets/TbBaseMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ protected function renderMenu($items) {
$n = count($items);

if ($n > 0) {
echo CHtml::openTag('ul', $this->htmlOptions);
echo CHtml::openTag('ul', $this->htmlOptions) . "\n";

$count = 0;
foreach ($items as $item) {
$count++;

if (isset($item['divider'])) {
echo '<li class="' . $this->getDividerCssClass() . '"></li>';
echo "<li class=\"{$this->getDividerCssClass()}\"></li>\n";
} else {
$options = isset($item['itemOptions']) ? $item['itemOptions'] : array();
$classes = array();
Expand Down Expand Up @@ -97,7 +97,7 @@ protected function renderMenu($items) {
}
}

echo CHtml::openTag('li', $options);
echo CHtml::openTag('li', $options) . "\n";

$menu = $this->renderMenuItem($item);

Expand All @@ -120,11 +120,11 @@ protected function renderMenu($items) {
$this->controller->widget('booster.widgets.TbDropdown', $dropdownOptions);
}

echo '</li>';
echo "</li>\n";
}
}

echo '</ul>';
echo "</ul>\n";
}
}

Expand Down

0 comments on commit f8c3813

Please sign in to comment.