Skip to content

Commit

Permalink
* Improve shortcodes documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
r-brown committed Feb 24, 2016
1 parent 643c766 commit b414540
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions options.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,19 @@ function credittracker_print_reference_section()

<p><strong>Examples:</strong></p>

<p><code>[caption id="attachment_11" width="222"]...[/caption]</code></p>
<p><code>[caption id="attachment_11" width="111"]...[/caption]</code></p>

<p>Override [caption] shortcode</p>
<br/>

<p><code>[caption id="22" text="image caption"]...[/caption]</code></p>
<p><code>[caption id="11" text="image caption"]...[/caption]</code></p>

<p>Override [caption] shortcode and use <i>text</i> instead of the standard media property</p>
<br/>

<p><code>[caption id="11"]&lt;a href="%link%"&gt;&lt;img src="11.png" alt="%caption%" title="%copyright%"/&gt;&lt;/a&gt;[/caption]</code></p>

<p>Substitute media attribution within [caption] shortcode</p>
</td>
</tr>
<tr valign="top">
Expand Down Expand Up @@ -373,7 +378,7 @@ function credittracker_page_init()
array(
'id' => 'ct_override_caption_shortcode',
'caption' => __('Override WordPress [caption] shortcode', CREDITTRACKER_SLUG),
'description' => __('Replaces output of standard WordPress [caption] shortcode with improved version (add Image Microdata and Image Credit)', CREDITTRACKER_SLUG),
'description' => __('Replaces output of standard WordPress [caption] shortcode with improved version (add Image Microdata and Image Credit)<br/>Following placeholders can be used to substitute media attribution within [caption] shortcode: standard placeholders and %copyright%', CREDITTRACKER_SLUG),
)
);

Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ Yes you can! Join in on our [GitHub repository](https://github.com/Labs64/credit
* Add Publisher column on media library list
* Allow placeholders inside of 'caption' shortcode
* Introduce new placeholder %copyright% inside of 'caption' shortcode
* Improve shortcodes documentation

= 1.1.6 =
* Adapt, test and approve plugin for WordPress 4.4.2
Expand Down

0 comments on commit b414540

Please sign in to comment.