Ferreteria/v0.5/layout/event/renderbranch: Difference between revisions
< 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}}''' | |||
→ ''F\layout\{{l/ver/class|cNavElement}}'' | |||
→ ''F\layout\{{l/ver/class|caLinkElement}}'' | |||
→ ''F\layout\{{l/ver/class|cMenuFolder}}'' | |||
→ '''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\cElement → F\layout\cNavElement → F\layout\caLinkElement → F\layout\cMenuFolder → F\layout\emerald\cNavbar |
Specs
- Form:
protected function RenderBranch() : string
:
Definitions
- F\layout\cElement
if ($this->ShouldDoTwigs()) {
return $this->RenderTwigs();
} else {
return '';
}
- F\layout\emerald\cNavbar:
$sSub = $this->RenderTwigs();
$sOut = "\n<ul class=dropin-menu>$sSub\n</ul>";
return $sOut;