PHP code example of lyrasoft / theme-nexus

1. Go to this page and download the library: Download lyrasoft/theme-nexus 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/ */

    

lyrasoft / theme-nexus example snippets


namespace App\Module\Admin;

class AdminMiddleware extends AbstractLifecycleMiddleware
{
    // ...
    
    protected function preprocess(ServerRequestInterface $request): void
    {
        // ...
        
        // Remove bootstrap CSS, bootstrap styles was merged to nexus.css
        // $this->asset->css('css/admin/bootstrap.min.css');

        // ...

        $this->asset->js('vendor/nexus/libs/ribble/dist/ribble.js');
        $this->asset->css('@vite/scss/admin/nexus.scss');

        // ...
shell
php ./vendor/lyrasoft/theme-nexus/bin/remove-skote
shell
php windwalker pkg:install
js
export function install() {
    return [
        installVendors(
            [
                ...
            ],
        ),
        // Add below lines
        callbackAfterBuild(async () => {
            await symlink('vendor/lyrasoft/theme-nexus/', 'theme/nexus/');
            await symlink('theme/nexus/src/js/', 'www/assets/vendor/nexus/');
        })
    ];
}