Version 5.0.0 beta 6
This commit is contained in:
1 parent
57d9db6ce2
commit
fa2a720105
115 files changed
+1823
-1147
No files matched your search
@@ -220,7 +220,12 @@ class Menu
|
||||
*/
|
||||
public function linkHtml(): string
|
||||
{
|
||||
return Theme::i()->getTemplate( 'menu', 'core', 'front' )->link( $this );
|
||||
if( $this->hasContent() )
|
||||
{
|
||||
return Theme::i()->getTemplate( 'menu', 'core', 'front' )->link( $this );
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -230,7 +235,12 @@ class Menu
|
||||
*/
|
||||
public function contentHtml(): string
|
||||
{
|
||||
return Theme::i()->getTemplate( 'menu', 'core', 'front' )->content( $this );
|
||||
if( $this->hasContent() )
|
||||
{
|
||||
return Theme::i()->getTemplate( 'menu', 'core', 'front' )->content( $this );
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user