From fe77f9c729f4b248507c0377c4a883f2c3d18c2e Mon Sep 17 00:00:00 2001 From: hyzboy Date: Tue, 30 Aug 2016 02:34:47 +0400 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=A2=9E=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E9=9A=94=E7=BA=BF=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui_navbar.php | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/ui_navbar.php b/ui_navbar.php index 71a223a..5c381f0 100644 --- a/ui_navbar.php +++ b/ui_navbar.php @@ -39,6 +39,15 @@ $this->link=$l; } + public function IsSeparator() + { + if($this->text==null + &&$this->link==null) + return(true); + else + return(false); + } + public function SetSubMenu($sm) { $this->sub_menu=$sm; @@ -113,12 +122,19 @@ } else { - if($this->active==$mi->GetLink()) - echo '
  • '; + if($mi->IsSeparator()) + { + echo '
  • '; + } else - echo '
  • '; + { + if($this->active==$mi->GetLink()) + echo '
  • '; + else + echo '
  • '; - echo ''.$mi->GetText().'
  • '; + echo ''.$mi->GetText().''; + } } } }