Download the PHP package loveorigami/yii2-shortcodes-pack without Composer
On this page you can find all versions of the php package loveorigami/yii2-shortcodes-pack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download loveorigami/yii2-shortcodes-pack
More information about loveorigami/yii2-shortcodes-pack
Files in loveorigami/yii2-shortcodes-pack
Package yii2-shortcodes-pack
Short Description Shortcodes collection as WP for Yii2
License MIT
Informations about the package yii2-shortcodes-pack
Yii2-shortcodes-pack
Yii2-shortcodes-pack is part of the Yii2-plugins-system that have more usefull shortcodes for our site
0. Shortcodes in pack
Shortcode | Description | Usage | Code |
---|---|---|---|
yt | YouTube link on original video | [yt code="*"] Link on video [/yt] | see |
youtube | Embed YouTube video with parameters | [youtube code="" w="" h="*"] | see |
code | All the blocks of text enclosed in the shortcode [code], will be highlighted | [code style="" lang=""] ... [/code] | see |
container | Bootstrap 3 grid - container (default or fluid) | [container] ... [/container] | see |
row | Bootstrap 3 grid - row | [row] ... [/row] | see |
col | Bootstrap 3 grid - column (lg, md, sm, xs) | [col md=6] ... [/col] | see |
alert | Bootstrap 3 alert messages | [alert close=1] ... [/alert] | see |
label | Bootstrap 3 labels | [label text="*"] | see |
tabs | Bootstrap 3 tabs or pills | [tabs] [tab] ... [/tab] [/tabs] | see |
and more in future releases...
How create my shortcode?
-
It is very easy! See instruction
-
- *
1. Download
Yii2-shortcodes-pack be installed using composer. Run following command to download and install Yii2-shortcodes-pack:
2. Update database schema
The last thing you need to do is updating your database schema by applying the migrations. Make sure that you have properly configured db application component and run the following command:
3. Configure application
Let's start with defining module in @backend/config/main.php
:
That's all, now you have module installed and configured in advanced template.
Next, open @frontend/config/main.php
and add following:
Also do the same thing with @backend/config/main.php
: