Changeset 2217555
- Timestamp:
- 12/24/2019 01:55:58 PM (6 years ago)
- Location:
- javascript-css-accordion/trunk
- Files:
-
- 2 edited
-
javascript-css-accordion.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
javascript-css-accordion/trunk/javascript-css-accordion.php
r2217547 r2217555 110 110 $id = intval($atts['id']); 111 111 $title = filter_var($atts['title'], FILTER_SANITIZE_STRING); 112 if(0<strlen($atts['content']) && null == $content){112 if(0<strlen($atts['content'])){ 113 113 $content = filter_var($atts['content'], FILTER_SANITIZE_STRING); 114 114 } -
javascript-css-accordion/trunk/readme.txt
r2217547 r2217555 30 30 To add an accordion element you insert the shortcode below into your post in the place you'd like the accordion to be. 31 31 32 = Method 1 = 33 32 34 [sdjca id="" title=""]The content to be revealed goes here!![/sdjca] 33 35 … … 36 38 * The content is what you see when you open the accordion, this can include HTML tags. Do not use "p" tags, use "br" instead. 37 39 40 = Method 2 = 41 42 You can also use unenclosed shortcodes like this... 43 44 [sdjca id="" title="" content="" /] 45 46 * The id should be a number (an integer). If you have more than one accordion on a page, each accordion must have a unique id. 47 * The title is the text you'd see when the accordion is closed, without any HTML. 48 * The content is what you see when you open the accordion, without any HTML. 49 * The shortcode should have the trailing / at the end, especially if you are using more than one accordion in your post/page. 50 38 51 == Changelog == 52 53 = 0.0.04 = 54 55 * Bugfix: only show enclosed content if the content attribute does not exist. 56 * Update: update to the installation instructions. 39 57 40 58 = 0.0.03 =
Note: See TracChangeset
for help on using the changeset viewer.