|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +return [ |
| 6 | + 'dot_navigation' => [ |
| 7 | + //enable menu item active if any child is active |
| 8 | + 'active_recursion' => true, |
| 9 | + 'containers' => [ |
| 10 | + 'left_menu' => [ |
| 11 | + 'type' => 'ArrayProvider', |
| 12 | + 'options' => [ |
| 13 | + 'items' => [ |
| 14 | + [ |
| 15 | + 'options' => [ |
| 16 | + 'label' => 'Pages', |
| 17 | + 'route' => [], |
| 18 | + ], |
| 19 | + 'attributes' => [ |
| 20 | + 'class' => 'nav-link dropdown-toggle', |
| 21 | + 'href' => '#', |
| 22 | + ], |
| 23 | + 'pages' => [ |
| 24 | + [ |
| 25 | + 'options' => [ |
| 26 | + 'label' => 'Home', |
| 27 | + 'uri' => '/home', |
| 28 | + ], |
| 29 | + 'attributes' => [ |
| 30 | + 'class' => 'dropdown-item', |
| 31 | + ], |
| 32 | + ], |
| 33 | + [ |
| 34 | + 'options' => [ |
| 35 | + 'label' => 'About Us', |
| 36 | + 'uri' => '/page/about-us', |
| 37 | + ], |
| 38 | + 'attributes' => [ |
| 39 | + 'class' => 'dropdown-item', |
| 40 | + ], |
| 41 | + ], |
| 42 | + [ |
| 43 | + 'options' => [ |
| 44 | + 'label' => 'Who We Are', |
| 45 | + 'uri' => '/page/who-we-are', |
| 46 | + ], |
| 47 | + 'attributes' => [ |
| 48 | + 'class' => 'dropdown-item', |
| 49 | + ], |
| 50 | + ], |
| 51 | + [ |
| 52 | + 'options' => [ |
| 53 | + 'label' => 'Premium content', |
| 54 | + 'uri' => '/page/premium-content', |
| 55 | + ], |
| 56 | + 'attributes' => [ |
| 57 | + 'class' => 'dropdown-item', |
| 58 | + ], |
| 59 | + ], |
| 60 | + ], |
| 61 | + ], |
| 62 | + [ |
| 63 | + 'options' => [ |
| 64 | + 'label' => 'Contribute', |
| 65 | + 'uri' => 'https://github.com/dotkernel', |
| 66 | + ], |
| 67 | + 'attributes' => [ |
| 68 | + 'class' => 'nav-link', |
| 69 | + 'target' => '_blank', |
| 70 | + ], |
| 71 | + ], |
| 72 | + [ |
| 73 | + 'options' => [ |
| 74 | + 'label' => 'Contact Us', |
| 75 | + 'uri' => '/contact/form', |
| 76 | + ], |
| 77 | + 'attributes' => [ |
| 78 | + 'class' => 'nav-link', |
| 79 | + ], |
| 80 | + ], |
| 81 | + [ |
| 82 | + 'options' => [ |
| 83 | + 'label' => 'Disabled', |
| 84 | + 'uri' => '/', |
| 85 | + ], |
| 86 | + 'attributes' => [ |
| 87 | + 'class' => 'nav-link disabled', |
| 88 | + ], |
| 89 | + ], |
| 90 | + ], |
| 91 | + ], |
| 92 | + ], |
| 93 | + 'guest_menu' => [ |
| 94 | + 'type' => 'ArrayProvider', |
| 95 | + 'options' => [ |
| 96 | + 'items' => [ |
| 97 | + [ |
| 98 | + 'options' => [ |
| 99 | + 'label' => 'Log in', |
| 100 | + 'uri' => '/user/login', |
| 101 | + ], |
| 102 | + 'attributes' => [ |
| 103 | + 'class' => 'nav-link', |
| 104 | + ], |
| 105 | + ], |
| 106 | + ], |
| 107 | + ], |
| 108 | + ], |
| 109 | + 'user_menu' => [ |
| 110 | + 'type' => 'ArrayProvider', |
| 111 | + 'options' => [ |
| 112 | + 'items' => [ |
| 113 | + [ |
| 114 | + 'options' => [ |
| 115 | + 'label' => 'Profile', |
| 116 | + 'uri' => '/account/details', |
| 117 | + ], |
| 118 | + 'attributes' => [ |
| 119 | + 'class' => 'nav-link', |
| 120 | + ], |
| 121 | + ], |
| 122 | + [ |
| 123 | + 'options' => [ |
| 124 | + 'label' => 'Log out', |
| 125 | + 'uri' => '/user/logout', |
| 126 | + ], |
| 127 | + 'attributes' => [ |
| 128 | + 'class' => 'nav-link', |
| 129 | + ], |
| 130 | + ], |
| 131 | + ], |
| 132 | + ], |
| 133 | + ], |
| 134 | + 'user_profile_menu' => [ |
| 135 | + 'type' => 'ArrayProvider', |
| 136 | + 'options' => [ |
| 137 | + 'items' => [ |
| 138 | + [ |
| 139 | + 'options' => [ |
| 140 | + 'label' => 'Avatar', |
| 141 | + 'uri' => '/account/avatar', |
| 142 | + ], |
| 143 | + ], |
| 144 | + [ |
| 145 | + 'options' => [ |
| 146 | + 'label' => 'Details', |
| 147 | + 'uri' => '/account/details', |
| 148 | + ], |
| 149 | + ], |
| 150 | + [ |
| 151 | + 'options' => [ |
| 152 | + 'label' => 'Change password', |
| 153 | + 'uri' => '/account/change-password', |
| 154 | + ], |
| 155 | + ], |
| 156 | + [ |
| 157 | + 'options' => [ |
| 158 | + 'label' => 'Delete account', |
| 159 | + 'uri' => '/account/delete-account', |
| 160 | + ], |
| 161 | + ], |
| 162 | + ], |
| 163 | + ], |
| 164 | + ], |
| 165 | + ], |
| 166 | + //register custom providers here |
| 167 | + 'provider_manager' => [], |
| 168 | + ], |
| 169 | +]; |
0 commit comments