summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 23:44:19 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 23:44:19 +0000
commit16619439ab7d67331722cc00e3b24f451ee8fa6a (patch)
tree54ab10952f535c100f3536d32fe1dddea13ddd73
parente697faf23bf70ed43d074a2f437aae362580e003 (diff)
Move some accounting stuff from publicgroupnav to action
More dl's and dd's. Rather than replicate them in every sub-class, let's just put them in one place.
-rw-r--r--lib/action.php5
-rw-r--r--lib/publicgroupnav.php5
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/action.php b/lib/action.php
index ed8b5c352..9534073ec 100644
--- a/lib/action.php
+++ b/lib/action.php
@@ -297,7 +297,12 @@ class Action extends HTMLOutputter // lawsuit
function showCore()
{
$this->elementStart('div', array('id' => 'core'));
+ $this->elementStart('dl', array('id' => 'site_nav_local_views'));
+ $this->element('dt', null, _('Local views'));
+ $this->elementStart('dd');
$this->showLocalNav();
+ $this->elementEnd('dd');
+ $this->elementEnd('dl');
$this->showContentBlock();
$this->showAside();
$this->elementEnd('div');
diff --git a/lib/publicgroupnav.php b/lib/publicgroupnav.php
index 1e5ed7359..7860783fa 100644
--- a/lib/publicgroupnav.php
+++ b/lib/publicgroupnav.php
@@ -77,9 +77,6 @@ class PublicGroupNav extends Widget
function show()
{
- $this->action->elementStart('dl', array('id' => 'site_nav_local_views'));
- $this->action->element('dt', null, _('Local views'));
- $this->action->elementStart('dd', null);
$this->action->elementStart('ul', array('class' => 'nav'));
$this->out->menuItem(common_local_url('public'), _('Public'),
@@ -97,7 +94,5 @@ class PublicGroupNav extends Widget
_("Popular notices"), $this->action == 'favorited', 'nav_timeline_favorited');
$this->action->elementEnd('ul');
- $this->action->elementEnd('dd');
- $this->action->elementEnd('dl');
}
}