Skip to content

Commit

Permalink
added 'icon' and 'title_teplate' shortcode config params
Browse files Browse the repository at this point in the history
  • Loading branch information
moldcraft committed Sep 23, 2015
1 parent bae5e47 commit 700d033
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions extension/shortcodes/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,27 @@ It contains an array that must be stored in a ``$cfg`` variable and is typically
.. code-block:: php
$cfg = array(
'page_builder' => array(
'title' => __('Demo Shortcode', 'fw'),
'description' => __('Demo shortcode description', 'fw'),
'tab' => __('Demo Elements', 'fw'),
'popup_size' => 'small' // can be large, medium or small
'page_builder' => array(
'title' => __('Demo Shortcode', 'fw'),
'description' => __('Demo shortcode description', 'fw'),
'tab' => __('Demo Elements', 'fw'),
'popup_size' => 'small', // can be large, medium or small
/*
// Icon examples
'icon' => 'dashicons dashicons-admin-site',
'icon' => 'unycon unycon-crown',
'icon' => 'fa fa-btc',
*/
/*
// Title Template examples
// * {{- variable }} - Output with html escape
// * {{= variable }} - Output raw (without html escape)
// * {{ if (execute.any(javascript, code)) { console.log('Hi'); } }}
'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 700d033

Please sign in to comment.