2017 © Pedro Peláez
 

yii2-extension yii2-triangle-theme

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

image

p2made/yii2-triangle-theme

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

  • Sunday, April 15, 2018
  • by p2m
  • Repository
  • 1 Watchers
  • 0 Stars
  • 145 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 11 Versions
  • 4 % Grown

The README.md

P2Triangle Theme v0.7.2-beta

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


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

P2Triangle Theme contains AssetBundles for Yii 2.0 Framework which registers the CSS & JS files for the Triangle UI., (*3)

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

!!! This theme still has some rough & unfinished bits. It's only been let out of the cage so I can begin using it in other projects., (*5)

Installation

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

composer require --prefer-dist p2made/yii2-triangle-theme "^0.7"

or, (*7)

php composer.phar require --prefer-dist p2made/yii2-triangle-theme "^0.7"

Alternatively add:, (*8)

"p2made/yii2-triangle-theme": "^0.7"

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

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

Quick Start

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

    'components' => [
        'view' => [
            'theme' => [
                'pathMap' => [
                    '@app/views' => '@vendor/p2made/yii2-triangle-theme/views/multicolor',
                    // for the single color version use this line instead...
                    //'@app/views' => '@vendor/p2made/yii2-triangle-theme/views/singlecolor',
                ],
            ],
        ],
    ],

This asset bundle provides sample files for layout and view (see folder 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., (*12)

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

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

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

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

    '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-triangle-theme/views-preview/sb-admin-2 (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/triangle-free-responsive-multipurpose-template/ & the example views.

Known Issues

  • sample pages in site/pages/ return a 403 error when viewed in the Y11 2 Advanced backend. This doesn't happen in the Y11 2 Advanced frontend.

I've not been able to resolve this. It may be an issue on my development machine. For my own use of this theme it isn't important as I'll only be using this as a frontend., (*16)

The Versions

15/04 2018

dev-master

9999999-dev

Triangle 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 user-interface

15/04 2018

0.7.2-beta

0.7.2.0-beta

Triangle 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 user-interface

13/04 2018

0.8.0

0.8.0.0

Triangle 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 user-interface

10/06 2017

0.7.1

0.7.1.0

Triangle 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 user-interface

03/06 2017

0.7.0

0.7.0.0

Triangle 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 user-interface

02/06 2017

0.6.1

0.6.1.0

Triangle 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 user-interface

15/04 2017

0.6.0

0.6.0.0

Triangle 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 user-interface

04/04 2017

0.5.5

0.5.5.0

Triangle 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 user-interface

26/02 2017

0.5.0

0.5.0.0

Triangle 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 user-interface

16/02 2017

0.4.1

0.4.1.0

Triangle 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 user-interface

29/01 2017

0.3.18

0.3.18.0

Triangle 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 user-interface