Ferreteria/v0.5/layout/event/renderbranch: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | layout‎ | event
Jump to navigation Jump to search
(Created page with "{{fmt/title|'''layout''' system: <code>RenderBranch()</code> method}} ==Specs== * Form: <syntaxhighlight lang=php inline>protected function RenderBranch() : string</sy...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{fmt/title|'''[[../|layout]]''' system: <code>RenderBranch()</code> method}}
{{fmt/title|'''[[../|layout]]''' system: <code>RenderBranch()</code> method}}
{| style="border: solid 1px grey; background: #eef;"
|-
|
|
'''F\layout\{{l/ver/class|cElement}}'''
&rarr; ''F\layout\{{l/ver/class|cNavElement}}''
&rarr; ''F\layout\{{l/ver/class|caLinkElement}}''
&rarr; ''F\layout\{{l/ver/class|cMenuFolder}}''
&rarr; '''F\layout\emerald\{{l/ver/class|cNavbar}}'''
|}
==Specs==
==Specs==
* Form: <syntaxhighlight lang=php inline>protected function RenderBranch() : string</syntaxhighlight>:
* Form: <syntaxhighlight lang=php inline>protected function RenderBranch() : string</syntaxhighlight>:
==Definitions==
* F\layout\{{l/ver/class|cElement}}
<syntaxhighlight lang=php>
if ($this->ShouldDoTwigs()) {
    return $this->RenderTwigs();
} else {
    return '';
}
</syntaxhighlight>
* F\layout\emerald\{{l/ver/class|cNavbar}}:
<syntaxhighlight lang=php>
$sSub = $this->RenderTwigs();
$sOut = "\n<ul class=dropin-menu>$sSub\n</ul>";
return $sOut;
</syntaxhighlight>

Latest revision as of 21:58, 18 July 2022

layout system: RenderBranch() method

F\layout\cElementF\layout\cNavElementF\layout\caLinkElementF\layout\cMenuFolderF\layout\emerald\cNavbar

Specs

  • Form: protected function RenderBranch() : string:

Definitions

if ($this->ShouldDoTwigs()) {
    return $this->RenderTwigs();
} else {
    return '';
}
$sSub = $this->RenderTwigs();
$sOut = "\n<ul class=dropin-menu>$sSub\n</ul>";
return $sOut;