Changeset 2839770
- Timestamp:
- 12/27/2022 11:10:55 AM (3 years ago)
- Location:
- jquery-collapse-o-matic/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
collapse-o-matic.php (modified) (14 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jquery-collapse-o-matic/trunk/README.md
r2629515 r2839770 1 1 #Collapse-O-Matic 2 2 * Contributors: twinpictures, baden03 3 * Donate link: https://plugin s.twinpictures.de/plugins/collapse-o-matic/3 * Donate link: https://pluginoven.com/panares-fund/ 4 4 * Tags: collapse, expand, collapsible, expandable, expandable content, collapsable content, shortcode, hidden, hide, display, accordion, accordion, jQuery, javascript, roll-your-own, twinpictures, read me, read more, more, plugin oven 5 5 * Requires at least: 4.9 6 * Tested up to: 5.8.27 * Stable tag: 1.8. 26 * Tested up to: 6.1.1 7 * Stable tag: 1.8.3 8 8 * Requires PHP: 7.2 9 9 * License: GPLv2 or later -
jquery-collapse-o-matic/trunk/collapse-o-matic.php
r2629515 r2839770 5 5 Plugin URI: https://pluginoven.com/plugins/collapse-o-matic/ 6 6 Description: Collapse-O-Matic adds an [expand] shortcode that wraps content into a lovely, jQuery collapsible div. 7 Version: 1.8. 27 Version: 1.8.3 8 8 Author: twinpictures, baden03 9 9 Author URI: https://twinpictures.de/ … … 30 30 * @var string 31 31 */ 32 var $version = '1.8. 2';32 var $version = '1.8.3'; 33 33 34 34 /** … … 119 119 $load_in_footer = true; 120 120 } 121 wp_register_script('collapseomatic-js', plugins_url('js/collapse.js', __FILE__), array('jquery'), '1.7. 0', $load_in_footer);121 wp_register_script('collapseomatic-js', plugins_url('js/collapse.js', __FILE__), array('jquery'), '1.7.2', $load_in_footer); 122 122 123 123 //prep options for injection … … 307 307 $ewclass = ''; 308 308 if($elwrapclass){ 309 $ewclass = 'class="'. $elwrapclass.'"';309 $ewclass = 'class="'.esc_attr($elwrapclass).'"'; 310 310 } 311 311 $ewo = '<'.$elwraptag.' '.$ewclass.'>'; … … 322 322 $collapse_class = 'collapseomatic_content_inline '; 323 323 } 324 $eDiv = '<'.$targtag.' id="target-'.$id.'" class="'. $collapse_class.$inline_class.$targclass.'">'.$content.'</'.$targtag.'>';324 $eDiv = '<'.$targtag.' id="target-'.$id.'" class="'.esc_attr($collapse_class.$inline_class.$targclass).'">'.$content.'</'.$targtag.'>'; 325 325 } 326 326 if($excerpt){ … … 334 334 } 335 335 if($excerptpos == 'above-trigger'){ 336 $nibble = '<'.$excerpttag.' id="excerpt-'. $id.'" class="'.$excerptclass.'">'.$excerpt.'</'.$excerpttag.'>';336 $nibble = '<'.$excerpttag.' id="excerpt-'.esc_attr($id).'" class="'.esc_attr($excerptclass).'">'.$excerpt.'</'.$excerpttag.'>'; 337 337 } 338 338 else{ 339 $nibble = '<'.$excerpttag.' id="excerpt-'. $id.'" class="collapseomatic_excerpt '.$excerptclass.'">'.$excerpt.'</'.$excerpttag.'>';339 $nibble = '<'.$excerpttag.' id="excerpt-'.esc_attr($id).'" class="collapseomatic_excerpt '.esc_attr($excerptclass).'">'.$excerpt.'</'.$excerpttag.'>'; 340 340 } 341 341 //swapexcerpt … … 344 344 $swapexcerpt = do_shortcode($swapexcerpt); 345 345 $swapexcerpt = apply_filters( 'colomat_swapexcerpt', $swapexcerpt ); 346 $nibble .= '<'.$excerpttag.' id="swapexcerpt-'. $id.'" style="display:none;">'.$swapexcerpt.'</'.$excerpttag.'>';346 $nibble .= '<'.$excerpttag.' id="swapexcerpt-'.esc_attr($id).'" style="display:none;">'.$swapexcerpt.'</'.$excerpttag.'>'; 347 347 } 348 348 } 349 349 $altatt = ''; 350 350 if(!empty($alt)){ 351 $altatt = 'alt="'. $alt.'" title="'.$alt.'"';351 $altatt = 'alt="'.esc_attr($alt).'" title="'.esc_attr($alt).'"'; 352 352 } 353 353 else if( empty($notitle) ){ 354 $altatt = 'title="'. $title.'"';354 $altatt = 'title="'.esc_attr($title).'"'; 355 355 } 356 356 $relatt = ''; 357 357 if(!empty($rel)){ 358 $relatt = 'rel="'. $rel.'"';358 $relatt = 'rel="'.esc_attr($rel).'"'; 359 359 } 360 360 … … 366 366 367 367 if($togglegroup){ 368 $groupatt = 'data-togglegroup="'. $togglegroup.'"';368 $groupatt = 'data-togglegroup="'.esc_attr($togglegroup).'"'; 369 369 } 370 370 $inexatt = ''; 371 371 //var_dump($tabindex); 372 372 if(!empty($tabindex) || $tabindex == 0 ){ 373 $inexatt = 'tabindex="'. $tabindex.'"';373 $inexatt = 'tabindex="'.esc_attr($tabindex).'"'; 374 374 } 375 375 if($expanded && $expanded != 'false'){ … … 390 390 $effatt = ''; 391 391 if($animation_effect){ 392 $effatt = 'data-animation_effect="'. $animation_effect.'"';392 $effatt = 'data-animation_effect="'.esc_attr($animation_effect).'"'; 393 393 } 394 394 … … 396 396 $duratt = ''; 397 397 if($duration){ 398 $duratt = 'data-duration="'. $duration.'"';398 $duratt = 'data-duration="'.esc_attr($duration).'"'; 399 399 } 400 400 … … 402 402 if($scrollonclose && (is_numeric($scrollonclose) || $scrollonclose == 0)){ 403 403 $trigclass .= ' scroll-to-trigger'; 404 $closeanchor = '<input type="hidden" id="scrollonclose-'. $id.'" name="'.$scrollonclose.'"/>';404 $closeanchor = '<input type="hidden" id="scrollonclose-'.esc_attr($id).'" name="'.esc_attr($scrollonclose).'"/>'; 405 405 } 406 406 407 407 //deal with image from collapse-commander 408 408 if( !empty($trigtype) && $trigtype == 'image' && !empty($triggerimage) && strtolower($tag) == 'img' ){ 409 $imageclass = 'collapseomatic noarrow' . $trigclass;409 $imageclass = 'collapseomatic noarrow' . esc_attr($trigclass); 410 410 $image_atts = array( 'id' => $id, 'class' => $imageclass, 'alt' => $alt ); 411 411 if(!$notitle){ … … 418 418 $title = wp_get_attachment_image( $triggerimage, 'full' ); 419 419 } 420 $link = $closeanchor.'<'.$tag.' class="collapseomatic '. $trigclass.'" id="'.$id.'" '.$relatt.' '.$inexatt.' '.$altatt.' '.$anchor.' '.$groupatt.' '.$effatt.' '.$duratt.'>'.$startwrap.$title.$endwrap.'</'.$tag.'>';420 $link = $closeanchor.'<'.$tag.' class="collapseomatic '.esc_attr($trigclass).'" id="'.esc_attr($id).'" '.$relatt.' '.$inexatt.' '.$altatt.' '.$anchor.' '.$groupatt.' '.$effatt.' '.$duratt.'>'.$startwrap.$title.$endwrap.'</'.$tag.'>'; 421 421 } 422 422 … … 436 436 $swapalt_attr = "alt='".$swapalt."'"; 437 437 } 438 $link .= "<".$tag." id='swap-". $id."' ".$swapalt_attr." class='colomat-swap' style='display:none;'>".$startwrap.$swaptitle.$endwrap."</".$tag.">";438 $link .= "<".$tag." id='swap-".esc_attr($id)."' ".$swapalt_attr." class='colomat-swap' style='display:none;'>".$startwrap.$swaptitle.$endwrap."</".$tag.">"; 439 439 } 440 440 … … 642 642 $se_array = array( 643 643 __('Slide Only', 'jquery-collapse-o-matic') => 'slideToggle', 644 __('Slide & Fade', 'jquery-collapse-o-matic') => 'slideFade' 644 __('Slide & Fade', 'jquery-collapse-o-matic') => 'slideFade', 645 __('Fade Only', 'jquery-collapse-o-matic') => 'fadeOnly' 645 646 ); 646 647 foreach( $se_array as $key => $value){ -
jquery-collapse-o-matic/trunk/readme.txt
r2629515 r2839770 2 2 3 3 Contributors: twinpictures, baden03 4 Donate link: https://plugin s.twinpictures.de/plugins/collapse-o-matic/4 Donate link: https://pluginoven.com/panares-fund/ 5 5 Tags: collapse, expand, collapsible, expandable, expandable content, collapsable content, shortcode, hidden, hide, display, accordion, accordion, jQuery, javascript, roll-your-own, twinpictures, read me, read more, more, plugin oven 6 6 Requires at least: 4.9 7 Tested up to: 5.8.28 Stable tag: 1.8. 27 Tested up to: 6.1.1 8 Stable tag: 1.8.3 9 9 Requires PHP: 7.2 10 10 License: GPLv2 or later … … 51 51 52 52 == Changelog == 53 54 = 1.8.3 = 55 * added fadeOnly effect option 56 * fully tested with WordPress version 6.0.1 57 * swap title also swaps the title attribute if used 58 * escaped all attributes before output 53 59 54 60 = 1.8.2 = … … 404 410 405 411 == Upgrade Notice == 406 * custom css now added to new core.css file that is not affected if no default style is loaded. 407 * fully tested with WordPress version 5.8.2 412 * added fadeOnly effect option 413 * fully tested with WordPress version 6.0.1 414 * swap title also swaps the title attribute if used 415 * escaped all attributes before output
Note: See TracChangeset
for help on using the changeset viewer.