Changeset 922127
- Timestamp:
- 05/28/2014 03:49:41 AM (12 years ago)
- Location:
- smpl-shortcodes/trunk
- Files:
-
- 2 edited
-
assets/js/smpl-shortcodes.js (modified) (1 diff)
-
includes/shortcodes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smpl-shortcodes/trunk/assets/js/smpl-shortcodes.js
r864309 r922127 10 10 return false; //Prevent the browser jump to the link anchor 11 11 }); 12 $("p.trigger.open").addClass("active").next(".toggle_container").show('slow'); 12 13 }); 13 14 // End Toggles -
smpl-shortcodes/trunk/includes/shortcodes.php
r909064 r922127 522 522 $default = array( 523 523 'title' => '', 524 'open' => 'false' 524 'open' => 'false', 525 'class' => '' 525 526 ); 526 527 extract( shortcode_atts( $default, $atts ) ); … … 531 532 532 533 // Is toggle open? 533 $classes = 'panel-collapse collapse';534 534 if( $open == 'true' ) { 535 $class es .= ' in';535 $class .= ' open'; 536 536 } 537 537 538 538 $output = ' 539 <p class="trigger ">539 <p class="trigger '.$class.'"> 540 540 <a href="#'.$toggle_id.'">'.$title.'</a> 541 541 </p>
Note: See TracChangeset
for help on using the changeset viewer.