Plugin Directory

Changeset 2217555


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

Unenclosed shortcodes should be closed off at the end.

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

Legend:

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

    r2217547 r2217555  
    110110    $id = intval($atts['id']);
    111111    $title = filter_var($atts['title'], FILTER_SANITIZE_STRING);
    112     if(0<strlen($atts['content']) && null == $content){
     112    if(0<strlen($atts['content'])){
    113113        $content = filter_var($atts['content'], FILTER_SANITIZE_STRING);
    114114    }
  • javascript-css-accordion/trunk/readme.txt

    r2217547 r2217555  
    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= Method 1 =
     33
    3234[sdjca id="" title=""]The content to be revealed goes here!![/sdjca]
    3335
     
    3638* The content is what you see when you open the accordion, this can include HTML tags. Do not use "p" tags, use "br" instead.
    3739
     40= Method 2 =
     41
     42You 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
    3851== 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.
    3957
    4058= 0.0.03 =
Note: See TracChangeset for help on using the changeset viewer.