PHP code example of sirserik / starter-theme

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

    

sirserik / starter-theme example snippets


return [
    'brand' => [
        'name'      => env('THEME_BRAND_NAME', 'Мой сайт'),
        'tagline'   => env('THEME_BRAND_TAGLINE', ''),
        'logo'      => env('THEME_BRAND_LOGO', '/storage/logo.svg'),
        'favicon'   => env('THEME_BRAND_FAVICON', '/favicon.ico'),
        'og_image'  => env('THEME_BRAND_OG_IMAGE', '/storage/og-default.jpg'),
    ],
    'tokens' => [
        'primary'    => '#C41E3A',
        'on-primary' => '#FFFFFF',
        // ...
    ],
    'pages' => [
        'home' => true, 'search' => true, 'sitemap' => true, 'errors' => true,
    ],
    'features' => [
        'apply_form' => true, 'info_form' => true,
        'language_switcher' => true, 'search_widget' => true,
    ],
];

resources/views/components/header.blade.php
resources/views/errors/404.blade.php
resources/views/blocks/v2/hero.blade.php
bash
php artisan vendor:publish --tag=starter-theme-config