Add translator documentation.
Whitespace updates.
This commit is contained in:
parent
b1ff67a55e
commit
5d557a2656
@ -44,7 +44,6 @@ if (!defined('STATUSNET')) {
|
|||||||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
|
||||||
* @link http://status.net/
|
* @link http://status.net/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class MoreMenu extends Menu
|
class MoreMenu extends Menu
|
||||||
{
|
{
|
||||||
const SOFT_MAX = 5;
|
const SOFT_MAX = 5;
|
||||||
@ -57,7 +56,6 @@ class MoreMenu extends Menu
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function show()
|
function show()
|
||||||
{
|
{
|
||||||
$items = $this->getItems();
|
$items = $this->getItems();
|
||||||
@ -72,7 +70,6 @@ class MoreMenu extends Menu
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Event::handle('StartNav', array($this, &$tag, &$items))) {
|
if (Event::handle('StartNav', array($this, &$tag, &$items))) {
|
||||||
|
|
||||||
$this->out->elementStart('ul', $attrs);
|
$this->out->elementStart('ul', $attrs);
|
||||||
|
|
||||||
$total = count($items);
|
$total = count($items);
|
||||||
@ -89,10 +86,10 @@ class MoreMenu extends Menu
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($total > self::SOFT_MAX + 1) {
|
if ($total > self::SOFT_MAX + 1) {
|
||||||
|
|
||||||
$this->out->elementStart('li', array('class' => 'more_link'));
|
$this->out->elementStart('li', array('class' => 'more_link'));
|
||||||
$this->out->element('a', array('href' => '#',
|
$this->out->element('a', array('href' => '#',
|
||||||
'onclick' => 'SN.U.showMoreMenuItems("'.$menuID.'"); return false;'),
|
'onclick' => 'SN.U.showMoreMenuItems("'.$menuID.'"); return false;'),
|
||||||
|
// TRANS: Link description to show more items in a list.
|
||||||
_('More ▼'));
|
_('More ▼'));
|
||||||
$this->out->elementEnd('li');
|
$this->out->elementEnd('li');
|
||||||
|
|
||||||
@ -123,5 +120,4 @@ class MoreMenu extends Menu
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user