2017 © Pedro Peláez
 

library theme

simple theme support for laravel

image

konversation/theme

simple theme support for laravel

  • Sunday, August 31, 2014
  • by niclasleonbock
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Konversation/Theme

simple theme support for laravel, (*1)

Features

  • Automatic view resolving to override templates in themes
  • Asset management (publish assets to public or remove them, e.g. via artisan)
  • Configurable paths for base, views and public

Usage

<?php
use Konversation\Theme\ThemeProviderInterface;

class KonversationThemeProvider implements ThemeProviderInterface
{
    public function getIdentifier()
    {
        return 'niclasleonbock/konversation';
    }
    public function getName()
    {
        return 'Konversation';
    }

    public function getVersion()
    {
        return 'first one';
    }

    public function getAuthorName()
    {
        return 'niclasleonbock';
    }
    public function getAuthorEmail()
    {
        return 'me@bock.ga';
    }
    public function getAuthorWebsite()
    {
        return 'https://bock.ga/';
    }
}

Theme::register(new KonversationThemeProvider());
Theme::setTheme('niclasleonbock/konversation');

You can simply override views by placing them in app/themes/{vendor}/{name}/views (default path)., (*2)

By default, assets will be copied from app/themes/{vendor}/{name}/assets/* to public/themes/{vendor}/{name} using the artisan command theme:publish-assets., (*3)

More documentation to come, so long, please refer to the source code., (*4)

The Versions

31/08 2014

dev-master

9999999-dev

simple theme support for laravel

  Sources   Download

The Requires

 

by Avatar niclasleonbock