PHP code example of jansuchanek / nadmin-layout

1. Go to this page and download the library: Download jansuchanek/nadmin-layout library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jansuchanek / nadmin-layout example snippets

latte
{* Brand *}
<i class="bi {$adminConfig->getBrandIcon()}"></i> {$adminConfig->getBrandName()}

{* Menu *}
{foreach $adminConfig->getMenuItems() as $item}
    {if isset($item['section'])}
        <div class="nav-section">{$item['section']}</div>
    {else}
        <a href="{plink $item['link']}">{$item['label']}</a>
    {/if}
{/foreach}

{* Locales *}
{foreach $adminConfig->getLocales() as $loc}
    <a href="{link switchLocale! locale => $loc['code']}">{$loc['flag']} {$loc['label']}</a>
{/foreach}