Themes

Juzaweb
Docs

Mymo cms support theme and asset management for your project. You can easily use with any Laravel based project.

Create a theme

php artisan theme:make theme_name

List of all themes:

php artisan theme:list

+----------+--------------+---------+----------+
| Name     | Author       | Version | Parent   |
+----------+--------------+---------+----------+
| themeone | Shipu Ahamed | 1.1.0   |          |
| themetwo | Shipu Ahamed | 1.0.0   | themeone |
+----------+--------------+---------+----------+

Example folder structure:

|-- themes/
    |-- themeone/
        |-- assets/
            |-- css/
            |-- img/
            |-- js/
        |-- lang/
            |-- en/
                - content.php
        |-- views/
            |-- auth/
                - login.blade.php
                - register.blade.php
            |-- page/
                - index.blade.php
            |-- post/
                - index.blade.php
                - detail.blade.php
                - item.blade.php
            - header.blade.php
            - footer.blade.php
        - changelog.yml
        - theme.json
    |-- themetwo/

Custom namespaces

Lang::get('theme::group.name');

@trans('theme::group.name');
view('theme::index')

view('theme::partials.sidebar')

Usage

Register Permalink

Add to action file in your plugin

HookAction::registerPermalink('cms', [
    'base' => 'cms',
    'label' => 'Juzaweb CMS',
    'callback' => Vendor\Namespace\CmsController::class
]);