dixonsatit/yii2-agency-theme

Yii 2 Agency Theme Asset Bundle

Installs: 832

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 4

Forks: 3

Open Issues: 0

Language:JavaScript

Type:yii2-extension

1.0.2 2015-07-24 06:28 UTC

This package is auto-updated.

Last update: 2024-04-05 10:40:17 UTC


README

Yii 2 Agency Theme base on Agency - One Page Bootstrap Theme

This package contains an Asset Bundle for Yii 2.0 Framework which registers the CSS files for the Agency - One Page Bootstrap Theme

Installation

The preferred way to install this extension is through composer.

Either run

php composer require dixonsatit/yii2-agency-theme

or add

"dixonsatit/yii2-agency-theme": "*"

to the require section of your composer.json file.

Usage

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

        'view'=>[
            'theme'=>[
                'pathMap'=>[
                    '@app/views'=>'@dixonsatit/agencyTheme/views'
                ]
            ]
        ],

Customization

  • create folder /themes/agency you application
  • copy file from vendor/dixonsatit/yii2-agency-theme/views to /themes/agency/
  • edit config/main.php to:
 'view'=>[
            'theme'=>[
                'pathMap'=>[
                    '@app/views'=>'@app/themes/agency'
                ]
            ]
        ],

Agency Theme

เป็น theme ที่สร้างมาจาก Agency - One Page Bootstrap Theme โดยใช้ Asset Bundle for Yii 2.0 Framework

การใช้งาน

หลังจากติดตั้งเสร็จ ให้ทำการตั้งค่าที่ config/main.php

        'view'=>[
            'theme'=>[
                'pathMap'=>[
                    '@app/views'=>'@dixonsatit/agencyTheme/views'
                ]
            ]
        ],

ในการใช้งานจริงเราไม่ควรแก้ไขไฟล์ที่ vendor/dixonsatit/yii2-agency-theme/views เราควร copy ไฟล์ view มาไว้ที่ application ของเรา

  • สร้างโฟลเดอร์ /themes/agency ที่ application ของคุณ
  • copy ไฟล์ทั้งหมดที่อยู่ใน view จาก vendor/dixonsatit/yii2-agency-theme/views ไปไว้ที่ /themes/agency ใน application ของคุณ
  • ตั้งค่า view ใหม่ เป็น
 'view'=>[
            'theme'=>[
                'pathMap'=>[
                    '@app/views'=>'@app/themes/agency'
                ]
            ]
        ],

จากนั้นคุณสามารถปรับเปลี่ยน view ต่างๆ ได้ตามต้องการ ^^