Plugin Directory

Changeset 2217544


Ignore:
Timestamp:
12/24/2019 01:36:12 PM (6 years ago)
Author:
shortdark
Message:

Allowed content to be included inside an enclosed shortcode.

Location:
javascript-css-accordion/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • javascript-css-accordion/trunk/javascript-css-accordion.php

    r2216673 r2217544  
    22/**
    33 * @package javascript-css-accordion
    4  * @version 0.0.01
     4 * @version 0.0.02
    55 * Plugin Name: Javascript CSS Accordion
    66 * Plugin URI: http://www.shortdark.net/wordpress-plugin/javascript-css-accordion/
     
    88 * Author: Neil Ludlow
    99 * Text Domain: javascript-css-accordion
    10  * Version: 0.0.01
     10 * Version: 0.0.02
    1111 * Author URI: http://www.shortdark.net/
    1212 */
     
    110110    $id = intval($atts['id']);
    111111    $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    }
    113115
    114116    if(0 >= $id){
  • javascript-css-accordion/trunk/readme.txt

    r2216673 r2217544  
    3030To add an accordion element you insert the shortcode below into your post in the place you'd like the accordion to be.
    3131
    32 [sdjca id="" title="" content=""]
     32[sdjca id="" title=""]The content to be revealed goes here!![/sdjca]
    3333
    3434* 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.
    3535* 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.
    3737
    3838== Changelog ==
     39
     40= 0.0.02 =
     41
     42* Allowed content to be added using enclosed shortcodes.
    3943
    4044= 0.0.01 =
Note: See TracChangeset for help on using the changeset viewer.