Skip to content

Commit

Permalink
description improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Sep 23, 2015
1 parent 700d033 commit 779c4f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extension/shortcodes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,24 @@ It contains an array that must be stored in a ``$cfg`` variable and is typically
/*
// Icon examples
// Note: By default is loaded {your-shortcode}/static/img/page_builder.png
'icon' => 'http://.../image-16x16.png', // background color should be #8c8c8c
'icon' => 'dashicons dashicons-admin-site',
'icon' => 'unycon unycon-crown',
'icon' => 'fa fa-btc',
*/
/*
// Title Template examples
//
// Syntax:
// * {{- variable }} - Output with html escape
// * {{= variable }} - Output raw (without html escape)
// * {{ if (execute.any(javascript, code)) { console.log('Hi'); } }}
//
// Available variables:
// * title - shortcode title (from config)
// * o - an object with all shortcode options values
'title_template' => '{{- title }} Lorem {{- o.option_id }} ipsum {{= o["option-id"] }}',
'title_template' => '{{- title }}: {{- o.label }}{{ if (o.target == "_blank") { }} <span class="dashicons dashicons-external"></span>{{ } }}',
*/
Expand Down

0 comments on commit 779c4f9

Please sign in to comment.