Changeset 448242
- Timestamp:
- 10/07/2011 01:06:35 AM (15 years ago)
- Location:
- easy-spoiler/trunk
- Files:
-
- 4 edited
-
easy-spoiler.css (modified) (3 diffs)
-
easy-spoiler.php (modified) (6 diffs)
-
js/easy-spoiler.js (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-spoiler/trunk/easy-spoiler.css
r429733 r448242 215 215 -khtml-border-bottom-right-radius: 0px; 216 216 margin:0px 0px; 217 padding: 10px;217 padding:5px; 218 218 border:0px; 219 219 border-bottom: 1px solid #ddd; … … 245 245 -khtml-border-bottom-right-radius: 0px; 246 246 margin:0px 0px; 247 padding: 10px;247 padding:5px; 248 248 border:0px; 249 249 border-bottom: 1px solid #ddd; … … 311 311 .easySpoilerRow 312 312 {margin:1px 0px;padding:0px;border:0;outline:5px;font-size:100%;vertical-align:middle; 313 border-collapse:collapse; border-spacing:1px; border-style:dashed;313 border-collapse:collapse; border-spacing:1px; 314 314 margin-left:auto; margin-right:auto;text-align:justify;} 315 315 316 316 .easySpoilerSpoils 317 {margin:0px 0px;padding:5px; border:1;outline:0px;font-size:100%;vertical-align:middle;318 border-collapse:collapse; border-spacing:0px; border-style:dashed;317 {margin:0px 0px;padding:5px;outline:0px;font-size:100%;vertical-align:middle; 318 border-collapse:collapse; border-spacing:0px; 319 319 margin-left:auto; margin-right:auto;text-align:justify;} 320 320 -
easy-spoiler/trunk/easy-spoiler.php
r434396 r448242 2 2 /* 3 3 Plugin Name: Easy Spoiler 4 Version: 1.6 4 Version: 1.6.2 5 5 Plugin URI: http://www.dyerware.com/main/products/easy-spoiler 6 6 Description: Creates an attractive container to hide a spoiler within a post or page. Works in comments and widgets as well. Also supports clustering spoilers into groups. … … 78 78 var $GBL_TITLEPARSECHAROPEN = '('; 79 79 var $GBL_TITLEPARSECHARCLOSE = ')'; 80 var $GBL_TITLEWRAP = true; 81 82 /* 83 var $GBL_BORDERWIDTH = 0; 84 var $GBL_BORDERSTYLE = "none"; 85 */ 80 86 81 87 … … 172 178 'GBL_INNERTEXTCOLOR', 'GBL_BUTTONLINE', 'GBL_REFRESHIFRAMES', 'GBL_ANIMATIONSPEED', 'GBL_TITLEBARBUTTON', 173 179 'GBL_SHOWSELECT', 'GBL_SELECT', 'GBL_TITLEBOLD', 'GBL_TITLESIZE', 'GBL_TITLEPARSE', 'GBL_TITLEPARSECHAROPEN', 174 'GBL_TITLEPARSECHARCLOSE', 180 'GBL_TITLEPARSECHARCLOSE','GBL_TITLEWRAP', 175 181 ); 176 182 $this->op = (object) array(); … … 447 453 } 448 454 449 $spoilertitle = $spoilerConfig['intro'] . ': ' . $spoilerConfig['title']; 455 if ($spoilerConfig['intro'] == '') 456 $spoilertitle = $spoilerConfig['title']; 457 else 458 $spoilertitle = $spoilerConfig['intro'] . ': ' . $spoilerConfig['title']; 450 459 } 451 460 … … 503 512 $fontWeight = "bold"; 504 513 514 $titleWrap = "normal"; 515 if ($this->GBL_TITLEWRAP == false) 516 $titleWrap = "nowrap"; 517 505 518 $doShowButtons = ""; 506 519 $doSelButtons = ""; … … 602 615 } 603 616 617 $hideButtons = ""; 618 if ($this->GBL_SHOWSELECT == false && $this->GBL_TITLEBARBUTTON) 619 { 620 $hideButtons = "padding:0px;"; 621 } 622 623 //border-style:{$this->GBL_BORDERSTYLE}; border:{$this->GBL_BORDERWIDTH}px; 604 624 605 625 return <<<ecbCode 606 626 {$begin} 607 627 <div class={$tableCSS} style='{$gblLineColor}'> 608 609 628 <table class='easySpoilerTable' border='0' style='text-align:center;' align='center' bgcolor='FFFFFF' > 610 629 611 <tr ><th class={$titlea} style='font-weight:{$fontWeight};text-align:left;vertical-align:middle;font-size:{$titleSize}%;{$gblOuterBkg}{$gblLineColor}{$gblTitleColor}'>{$spoilertitle}</th>612 <th class={$titleb} style=' text-align:right;vertical-align:middle;font-size:100%;{$gblOuterBkg}{$gblLineColor} white-space:nowrap;'>630 <tr style='white-space:{$titleWrap};'><th class={$titlea} style='white-space:{$titleWrap};font-weight:{$fontWeight};text-align:left;vertical-align:middle;font-size:{$titleSize}%;{$gblOuterBkg}{$gblLineColor}{$gblTitleColor}'>{$spoilertitle}</th> 631 <th class={$titleb} style='{$hideButtons}text-align:right;vertical-align:middle;font-size:100%;{$gblOuterBkg}{$gblLineColor} white-space:nowrap;'> 613 632 <a href='' {$selAction} class={$buttonOtherCSS} style='font-size:100%;{$gblButtonTextColor}{$gblButtonBkg}${doBorder}{$gblButtonLine} ${doSelButtons} margin: 3px 0px 3px; padding: 4px; ' align='right'>{$this->GBL_SELECT}</a><a href='' {$buttonAction} id={$spoilerbutton} class={$buttonCSS} value={$show} align='right' style='font-size:100%;{$gblButtonTextColor}{$gblButtonBkg}${doBorder}{$gblButtonLine}${doShowButtons} margin: 3px 0px 3px 5px; padding: 4px;"'>{$this->GBL_SHOW}</></th> 614 633 </tr> -
easy-spoiler/trunk/js/easy-spoiler.js
r422967 r448242 1 1 /** 2 2 * Handle: easySpoiler 3 * Version: 1. 03 * Version: 1.1 4 4 * Enqueue: true 5 5 * … … 14 14 { 15 15 var myName = id + '_action'; 16 var me= document.getElementById(myName);16 var b = document.getElementById(myName); 17 17 var e = document.getElementById(id); 18 18 19 19 if(e.style.display == 'block') 20 20 { … … 23 23 else 24 24 {e.style.display = 'none';} 25 me.value=showName; 26 me.innerText=showName; 25 26 if (navigator.userAgent.indexOf("Firefox")!=-1) 27 { 28 b.firstChild.nodeValue=showName; 29 } 30 else 31 { 32 b.nodeValue=showName; 33 b.innerText=showName; 34 } 35 27 36 } 28 37 else … … 31 40 {jQuery("#" + id).fadeIn(speed);} 32 41 e.style.display = 'block'; 33 me.value=hideName; 34 me.innerText=hideName; 42 43 if (navigator.userAgent.indexOf("Firefox")!=-1) 44 { 45 b.firstChild.nodeValue=hideName; 46 } 47 else 48 { 49 b.value=hideName; 50 b.innerText=hideName; 51 } 35 52 36 53 if (doIframes) … … 63 80 {jQuery("#" + id).slideUp(speed);} 64 81 e.style.display = 'none'; 65 me.value=showName; 66 me.innerText=showName; 82 83 if (navigator.userAgent.indexOf("Firefox")!=-1) 84 { 85 b.firstChild.nodeValue=showName; 86 } 87 else 88 { 89 me.value=showName; 90 me.innerText=showName; 91 } 67 92 } 68 93 } -
easy-spoiler/trunk/readme.txt
r434396 r448242 6 6 Requires at least: 2.8 7 7 Tested up to: 3.2.1 8 Stable tag: 1.6 8 Stable tag: 1.6.2 9 9 10 10 This plugin allows you to create a container for spoilers within pages, posts, comments, and widgets. Also supports spoiler groups. … … 69 69 == Upgrade Notice == 70 70 71 = 1.6.2 = 72 * Fix for fireFox show button not changing to 'hide' 73 * Fix for spoiler group aesthetics where padding was incorrect 74 * Removed dashed inner border 75 71 76 = 1.6 = 72 77 * You can now embed shortcodes within the spoiler title via a new enable/disable checkbox on the admin panel. Note you cannot use the angular brackets. Rather, you use parens: (myshortcode)xxx(/myshortcode). You can replace the use of parens with something else in the admin panel as well. … … 123 128 == Changelog == 124 129 130 = 1.6.2 = 131 * Fix for fireFox show button not changing to 'hide' 132 * Fix for spoiler group aesthetics where padding was incorrect 133 * Removed dashed inner border 134 125 135 = 1.6 = 126 136 * You can now embed shortcodes within the spoiler title via a new enable/disable checkbox on the admin panel. Note you cannot use the angular brackets. Rather, you use parens: (myshortcode)xxx(/myshortcode). You can replace the use of parens with something else in the admin panel as well.
Note: See TracChangeset
for help on using the changeset viewer.