Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Následující verze | Předchozí verze | ||
skoda-ep:common:shortcodes [11.10.2017 09:37] Lukáš Čech vytvořeno |
skoda-ep:common:shortcodes [07.02.2018 04:39] (aktuální) Lukáš Čech [List of shortcodes shared between the EP] |
||
---|---|---|---|
Řádek 1: | Řádek 1: | ||
====== Shortcodes ====== | ====== Shortcodes ====== | ||
- | List of current shortcodes shared between the EP | + | Shortcodes use attributes, some are optional, some are required. We will use the following syntax to specify required and optional attributes: |
+ | |||
+ | [shortcode-name **required='this|that'** **required='%d'** //optional='%s'//] | ||
+ | |||
+ | * attribute in **bold** is required | ||
+ | * attribute in //italic// is optional | ||
+ | * this|that means you can choose between "this" **OR** "that" | ||
+ | * **%d** represents a number | ||
+ | * **%s** represents a piece of text | ||
+ | |||
+ | Some shortcodes (Button for example) can have content (i.e. the text you see inside the button.) These are used like this: | ||
+ | |||
+ | [shortcode-name //attributes//]**Content of the shortcode**[/shortcode-name] | ||
+ | |||
+ | Some of the Engagement Platform sites use a visual editor button to insert some shortcodes. You can select these using the following icon: | ||
+ | |||
+ | {{:skoda-ep:common:shortcode_button.png|}} | ||
+ | |||
+ | ===== List of shortcodes available for on the Engagement Platform ===== | ||
* [[.:shortcodes:Instagram feed]] | * [[.:shortcodes:Instagram feed]] | ||
* [[.:shortcodes:Twitter feed]] | * [[.:shortcodes:Twitter feed]] | ||