2017 © Pedro Peláez
 

yii2-extension yii2-flat-theme

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

image

p2made/yii2-flat-theme

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  • Sunday, April 15, 2018
  • by p2m
  • Repository
  • 3 Watchers
  • 1 Stars
  • 247 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 14 % Grown

The README.md

P2Flat Theme v0.5.2-beta

License Total Downloads Monthly Downloads Latest Stable Version Latest Unstable Version Dependency Status, (*1)

--, (*2)

Flat Theme from ShapeBootstrap as a frontend UI for Yii 2 Framework., (*3)

Flat Theme contains AssetBundles for Yii 2.0 Framework which registers the CSS & JS files for the SB Admin 2 UI., (*4)

It declares p2made/yii2-asset-collection as a dependancy., (*5)

¡¡¡ On Hold !!!

Updates in the dependencies to the original appear to have broken some elememts & it's a right mess for which I don't immediately have time., (*6)

Installation

The preferred way to install Flat Theme is through composer. Depending on your composer installation, run one of the following commands:, (*7)

composer require p2made/yii2-flat-theme "^0.5"

or, (*8)

php composer.phar require p2made/yii2-flat-theme "^0.5"

Alternatively add:, (*9)

"p2made/yii2-flat-theme": "^0.5"

to the requires section of your composer.json file & p2y2bootstrapSocialAsset will be installed next time you run composer update., (*10)

The files are installed via Yii's recommended usage of the fxp/composer-asset-plugin., (*11)

Quick Start

Once the extension is installed, you can have a preview by reconfiguring the path mappings of the view component:, (*12)

    'components' => [
        'view' => [
            'theme' => [
                'pathMap' => [
                    '@app/views' => '@vendor/p2made/yii2-flat-theme/example-views/flat'
                ],
            ],
        ],
    ],

This asset bundle provides sample files for layout and view (see folder example-views/), they are not meant to be customized directly in the vendor/ folder. If you do that, your changes will be lost next time you run composer update., (*13)

Therefore it is recommended to copy the views into your application and adjust them to your needs., (*14)

To view the sample pages in site/pages/ you need to modify actions() in the SiteController:, (*15)

public function actions()
{
    return [
        ...
        'page' => [
            'class' => 'yii\web\ViewAction',
        ],
    ];
}

And then...

P2Flat Theme uses P2Y2Things which requires some Yii 2 assets to be nullified to avoid conflicts through double loading. Modify common/config/main.php with..., (*16)

    'components' => [
        'assetManager' => [
            'bundles' => [
                'yii\web\JqueryAsset' => [
                    'sourcePath' => null, 'js' => [],
                ],
                'yii\bootstrap\BootstrapAsset' => [
                    'sourcePath' => null, 'css' => [],
                ],
                'yii\bootstrap\BootstrapPluginAsset' => [
                    'sourcePath' => null, 'js' => [],
                ],
                'yii\jui\JuiAsset' => [
                    'sourcePath' => null, 'css' => [], 'js' => [],
                ],
                '\rmrevin\yii\fontawesome\AssetBundle' => [
                    'sourcePath' => null, 'css' => [],
                ],
            ],
        ],
        ...
    ],

Customization

  • Copy files from vendor/p2made/yii2-flat-theme/example-views/flat (or other theme) to @app/views.
  • Remove the custom view configuration from your application by deleting the path mappings, if you have made them before.
  • Edit your views adhering to html markup http://shapebootstrap.net/item/flat-theme-free-responsive-multipurpose-site-template/ & the example views.

Known Issues

  • sample pages in site/pages/ return a 403 error when viewed in the Y11 2 Advanced backend.

I've not been able to resolve this. It may be an issue on my development machine., (*17)

To Do

The Versions

15/04 2018

dev-master

9999999-dev

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

15/04 2018

0.5.2-beta

0.5.2.0-beta

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

13/04 2018

0.6.0

0.6.0.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

10/06 2017

0.5.1

0.5.1.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

03/06 2017

0.5.0

0.5.0.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

02/06 2017

0.4.1

0.4.1.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

15/04 2017

0.4.0

0.4.0.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

04/04 2017

0.3.3

0.3.3.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

04/04 2017

0.3.2

0.3.2.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

26/02 2017

0.3.1

0.3.1.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

16/02 2017

0.2.1

0.2.1.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface

29/01 2017

0.1.15

0.1.15.0

Flat Theme from ShapeBootstrap, http://shapebootstrap.net, as a frontend UI for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

frontend extension php yii2 ui bundle yii asset theme admin flat user-interface