Changeset 2217544
- Timestamp:
- 12/24/2019 01:36:12 PM (6 years ago)
- Location:
- javascript-css-accordion/trunk
- Files:
-
- 2 edited
-
javascript-css-accordion.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
javascript-css-accordion/trunk/javascript-css-accordion.php
r2216673 r2217544 2 2 /** 3 3 * @package javascript-css-accordion 4 * @version 0.0.0 14 * @version 0.0.02 5 5 * Plugin Name: Javascript CSS Accordion 6 6 * Plugin URI: http://www.shortdark.net/wordpress-plugin/javascript-css-accordion/ … … 8 8 * Author: Neil Ludlow 9 9 * Text Domain: javascript-css-accordion 10 * Version: 0.0.0 110 * Version: 0.0.02 11 11 * Author URI: http://www.shortdark.net/ 12 12 */ … … 110 110 $id = intval($atts['id']); 111 111 $title = filter_var($atts['title'], FILTER_SANITIZE_STRING); 112 $content = filter_var($atts['content'], FILTER_SANITIZE_STRING); 112 if(null == $content){ 113 $content = filter_var($atts['content'], FILTER_SANITIZE_STRING); 114 } 113 115 114 116 if(0 >= $id){ -
javascript-css-accordion/trunk/readme.txt
r2216673 r2217544 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 [sdjca id="" title="" content=""]32 [sdjca id="" title=""]The content to be revealed goes here!![/sdjca] 33 33 34 34 * 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. 35 35 * The title is the text you'd see when the accordion is closed, without any HTML. 36 * The content is what you see when you open the accordion, without any HTML.36 * 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 37 38 38 == Changelog == 39 40 = 0.0.02 = 41 42 * Allowed content to be added using enclosed shortcodes. 39 43 40 44 = 0.0.01 =
Note: See TracChangeset
for help on using the changeset viewer.