mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Pass params to parent class
This commit is contained in:
parent
678bf9a43a
commit
ada36aaab8
@ -10,7 +10,7 @@ class GridFieldConfig_RecordEditor extends GridFieldGridFieldConfig_RecordEditor
|
||||
{
|
||||
public function __construct($itemsPerPage = null)
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct($itemsPerPage);
|
||||
|
||||
$this->removeComponentsByType([
|
||||
GridField_ActionMenu::class,
|
||||
|
@ -10,7 +10,7 @@ class GridFieldConfig_RelationEditor extends GridFieldGridFieldConfig_RelationEd
|
||||
{
|
||||
public function __construct($itemsPerPage = null, $showPagination = null, $showAdd = null)
|
||||
{
|
||||
parent::__construct();
|
||||
parent::__construct($itemsPerPage, $showPagination, $showAdd);
|
||||
|
||||
$this->removeComponentsByType([
|
||||
GridField_ActionMenu::class,
|
||||
|
@ -1,14 +1,25 @@
|
||||
<% if $Submenu %>
|
||||
<nav>
|
||||
<ul class="nav flex-column">
|
||||
<% with $Page.Level(1) %>
|
||||
<li class="nav-item-level1 nav-item {$CSSClass} $ExtraClass">
|
||||
<b class="nav-link">
|
||||
$MenuTitle.XML
|
||||
<% if $isCurrent || $isSection %><i class="visually-hidden">(current)</i><% end_if %>
|
||||
</b>
|
||||
</li>
|
||||
<% end_with %>
|
||||
<% if $TopLevelSubmenu %>
|
||||
<% with $Page.Level(1) %>
|
||||
<li class="nav-item-level1 nav-item {$CSSClass} $ExtraClass">
|
||||
<b class="nav-link">
|
||||
$MenuTitle.XML
|
||||
<% if $isCurrent || $isSection %><i class="visually-hidden">(current)</i><% end_if %>
|
||||
</b>
|
||||
</li>
|
||||
<% end_with %>
|
||||
<% else %>
|
||||
<% with $Page %>
|
||||
<li class="nav-item-level1 nav-item {$CSSClass} $ExtraClass">
|
||||
<b class="nav-link">
|
||||
$MenuTitle.XML
|
||||
<% if $isCurrent || $isSection %><i class="visually-hidden">(current)</i><% end_if %>
|
||||
</b>
|
||||
</li>
|
||||
<% end_with %>
|
||||
<% end_if %>
|
||||
|
||||
<% loop $Submenu %>
|
||||
<% include NavItem %>
|
||||
|
Loading…
Reference in New Issue
Block a user