Plugin Directory

Changeset 448242


Ignore:
Timestamp:
10/07/2011 01:06:35 AM (15 years ago)
Author:
dyerware
Message:

v1.6.2 update

Location:
easy-spoiler/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • easy-spoiler/trunk/easy-spoiler.css

    r429733 r448242  
    215215-khtml-border-bottom-right-radius: 0px; 
    216216margin:0px 0px;
    217 padding:10px;
     217padding:5px;
    218218border:0px;
    219219border-bottom: 1px solid #ddd; 
     
    245245-khtml-border-bottom-right-radius: 0px; 
    246246margin:0px 0px;
    247 padding:10px;   
     247padding:5px;   
    248248border:0px;
    249249border-bottom: 1px solid #ddd; 
     
    311311.easySpoilerRow
    312312{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;
     313border-collapse:collapse; border-spacing:1px;
    314314margin-left:auto; margin-right:auto;text-align:justify;}
    315315
    316316.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;
     318border-collapse:collapse; border-spacing:0px;
    319319margin-left:auto; margin-right:auto;text-align:justify;}
    320320
  • easy-spoiler/trunk/easy-spoiler.php

    r434396 r448242  
    22/*
    33Plugin Name: Easy Spoiler
    4 Version: 1.6
     4Version: 1.6.2
    55Plugin URI: http://www.dyerware.com/main/products/easy-spoiler
    66Description: 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.
     
    7878    var $GBL_TITLEPARSECHAROPEN =  '(';
    7979    var $GBL_TITLEPARSECHARCLOSE = ')';
     80    var $GBL_TITLEWRAP = true;
     81   
     82    /*
     83    var $GBL_BORDERWIDTH = 0;
     84    var $GBL_BORDERSTYLE = "none";
     85    */
    8086   
    8187   
     
    172178            'GBL_INNERTEXTCOLOR', 'GBL_BUTTONLINE', 'GBL_REFRESHIFRAMES', 'GBL_ANIMATIONSPEED', 'GBL_TITLEBARBUTTON',
    173179            'GBL_SHOWSELECT', 'GBL_SELECT', 'GBL_TITLEBOLD', 'GBL_TITLESIZE', 'GBL_TITLEPARSE', 'GBL_TITLEPARSECHAROPEN',
    174             'GBL_TITLEPARSECHARCLOSE',
     180            'GBL_TITLEPARSECHARCLOSE','GBL_TITLEWRAP',
    175181        );
    176182        $this->op = (object) array();
     
    447453            }
    448454           
    449             $spoilertitle = $spoilerConfig['intro'] . ': ' . $spoilerConfig['title'];
     455            if ($spoilerConfig['intro'] == '')
     456                $spoilertitle = $spoilerConfig['title'];
     457            else
     458                $spoilertitle = $spoilerConfig['intro'] . ': ' . $spoilerConfig['title'];
    450459        }
    451460         
     
    503512            $fontWeight = "bold";
    504513       
     514        $titleWrap = "normal";
     515        if ($this->GBL_TITLEWRAP == false)
     516            $titleWrap = "nowrap";
     517           
    505518        $doShowButtons = "";
    506519        $doSelButtons = "";
     
    602615       }
    603616
     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;
    604624
    605625       return <<<ecbCode
    606626{$begin}
    607627<div class={$tableCSS} style='{$gblLineColor}'>
    608 
    609628<table class='easySpoilerTable' border='0' style='text-align:center;' align='center' bgcolor='FFFFFF' >
    610629
    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;'>
    613632<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>
    614633</tr>
  • easy-spoiler/trunk/js/easy-spoiler.js

    r422967 r448242  
    11/**
    22 * Handle: easySpoiler
    3  * Version: 1.0
     3 * Version: 1.1
    44 * Enqueue: true
    55 *
     
    1414{
    1515    var myName = id + '_action';
    16     var me = document.getElementById(myName);
     16    var b = document.getElementById(myName);
    1717    var e = document.getElementById(id);
    18    
     18       
    1919    if(e.style.display == 'block')
    2020    {
     
    2323        else
    2424            {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       
    2736    }
    2837    else
     
    3140            {jQuery("#" + id).fadeIn(speed);}
    3241        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        }   
    3552       
    3653        if (doIframes)
     
    6380            {jQuery("#" + id).slideUp(speed);}
    6481        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        }
    6792    }
    6893}
  • easy-spoiler/trunk/readme.txt

    r434396 r448242  
    66Requires at least: 2.8
    77Tested up to: 3.2.1
    8 Stable tag: 1.6
     8Stable tag: 1.6.2
    99
    1010This plugin allows you to create a container for spoilers within pages, posts, comments, and widgets.  Also supports spoiler groups.
     
    6969== Upgrade Notice ==
    7070
     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
    7176= 1.6 =
    7277 * 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.
     
    123128== Changelog ==
    124129
     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
    125135= 1.6 =
    126136 * 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.