BEST Offers , For All Sximo 5 LTS licence Holer , Upgrade Licence For only $14 Normal Price on Codecanyon $31
New product Sximopress ( Wordpress Builder ) 1.0 has been realesed . download it now !

S5 Ultimate

The Real PHP Application Makers

Custom Theme

Let try to create your own Themes/Template
  • Create folder Inside /public/frontend
    /public/frontend/mytheme
    Put all assets ( css , images, JS ) and other library inside your new folder theme
  • Create Folder Inside /resources/views/layouts/
    /resources/views/layouts/mytheme
  • Theme folder file structure
    There are number minimal file for every theme :
    index.blade.php
    info.json 
    template/ 
        page.blade.php 
        Backend.blade.php 
Here are sample sceleton for:
index.php
    <!DOCTYPE html>
    <html lang=”en”>
    <head>
    <meta charset=”utf-8”>
    <title> {{ $pageTitle}} | {{ CNF_APPNAME }} </title>
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0” />
    <meta name=”description” content=”Bootstrap 3 template for corporate business” />
    <link rel=”shortcut icon” href=”{{ asset(‘favicon.ico’)}}” type=”image/x-icon”>
    <!—css -->
    <link href=”{{ asset(‘frontend/mytheme/css/your_css_file.css’)}}” rel=”stylesheet” />
    <!—Javascript -->
    <script src=”{{ asset(‘frontend/mytheme/js/your_js_file.js’)}}”></script>
    </head>
    
    <body>
        <section id=”main-content” >
            @include($pages)
        </section>
    </body>
    </html>
Info.json
    {
        "name"     : "My Own Theme",
        "folder"   : "mytheme",
        "author"   : "My Name TM",
        "template" :
            {
                "Default Page" : "page",
                "Backend Template": "backend"
            }
    }
Template/page.blade.php
{!! $content !!}
Template/backend.blade.php
    @extends('layouts.app')
    @section('content')
        {!! $content !!}
    @stop
That’s !
Depending on your template , you may want to create a lot of template . all you have to do is just register all your template at json file .

Please Register Purchased Code for full access Docs


Last Update : 2017-10-11 05:23:18