mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-04 06:41:01 +01:00
added non modular and colorized
This commit is contained in:
@@ -419,12 +419,15 @@ class AdminController
|
||||
|
||||
if (count($flags)) {
|
||||
// Filter by state
|
||||
$pageStates = array('modular', 'visible', 'nonvisible', 'routable', 'nonroutable', 'published', 'nonpublished');
|
||||
$pageStates = array('modular', 'nonmodular', 'visible', 'nonvisible', 'routable', 'nonroutable', 'published', 'nonpublished');
|
||||
|
||||
if (count(array_intersect($pageStates, $flags)) > 0) {
|
||||
if (in_array('modular', $flags))
|
||||
$collection = $collection->modular();
|
||||
|
||||
if (in_array('nonmodular', $flags))
|
||||
$collection = $collection->nonModular();
|
||||
|
||||
if (in_array('visible', $flags))
|
||||
$collection = $collection->visible();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user