Plugin Directory

Changeset 139336


Ignore:
Timestamp:
07/26/2009 03:24:34 AM (17 years ago)
Author:
aradke
Message:

Tagging version 0.3.3

Location:
shadows
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • shadows/tags/0.3.3/readme.txt

    r135992 r139336  
    55Requires at least: 2.5
    66Tested up to: 2.8
    7 Stable Tag: 0.3.2
     7Stable Tag: 0.3.3
    88
    99This is a plugin to add a range of shadow types to a range of objects. Currently supported are images, divs and blockquotes.
     
    7979== Changelog ==
    8080
     81= 0.3.3 =
     82* Added support to include the border widths in the calculation for the OS X style shadows
     83
    8184= 0.3.2 =
    8285* Addressed a bug causing images to sometimes not display in IE with OS X style shadows
  • shadows/tags/0.3.3/shadows.php

    r135992 r139336  
    44Plugin URI: http://deepport.net/computing/wordpress-shadows-plugin/
    55Description: Adds a range of shadow types to images, divs and blockquotes
    6 Version: 0.3.2
     6Version: 0.3.3
    77Author: Andrew Radke
    88Author URI: http://deepport.net/
     
    8282            $style = '';
    8383        } else {
     84            $borderwidthleft = 0;
     85            $borderwidthright = 0;
     86            preg_match_all ( '/border[^;"]*/ims',$style, $borders );
     87            foreach ( $borders[0] as $border) {
     88                $borderwidth = preg_replace ('/border-(top|bottom)/i', '\\1', $border);
     89                if ($borderwidth != $border) continue;
     90
     91                $borderwidth = preg_replace ('/border-left[^\d]*(\d*)px.*/i', '\\1', $border);
     92                if ($borderwidth != $border) {
     93                    $borderwidthleft = $borderwidth;
     94                    continue;
     95                }
     96                $borderwidth = preg_replace ('/border-right[^\d]*(\d*)px.*/i', '\\1', $border);
     97                if ($borderwidth != $border) {
     98                    $borderwidthright = $borderwidth;
     99                    continue;
     100                }
     101                $borderwidth = preg_replace ('/[^\d]*(\d*)px.*/i', '\\1', $border);
     102                $borderwidthleft = $borderwidth;
     103                $borderwidthright = $borderwidth;
     104            }
     105            $width = $width + $borderwidthleft + $borderwidthright;
     106
    84107            preg_match_all ( '/margin[^;"]*/ims',$style, $margins );
    85108            $style = '';
  • shadows/trunk/readme.txt

    r135992 r139336  
    55Requires at least: 2.5
    66Tested up to: 2.8
    7 Stable Tag: 0.3.2
     7Stable Tag: 0.3.3
    88
    99This is a plugin to add a range of shadow types to a range of objects. Currently supported are images, divs and blockquotes.
     
    7979== Changelog ==
    8080
     81= 0.3.3 =
     82* Added support to include the border widths in the calculation for the OS X style shadows
     83
    8184= 0.3.2 =
    8285* Addressed a bug causing images to sometimes not display in IE with OS X style shadows
  • shadows/trunk/shadows.php

    r135992 r139336  
    44Plugin URI: http://deepport.net/computing/wordpress-shadows-plugin/
    55Description: Adds a range of shadow types to images, divs and blockquotes
    6 Version: 0.3.2
     6Version: 0.3.3
    77Author: Andrew Radke
    88Author URI: http://deepport.net/
     
    8282            $style = '';
    8383        } else {
     84            $borderwidthleft = 0;
     85            $borderwidthright = 0;
     86            preg_match_all ( '/border[^;"]*/ims',$style, $borders );
     87            foreach ( $borders[0] as $border) {
     88                $borderwidth = preg_replace ('/border-(top|bottom)/i', '\\1', $border);
     89                if ($borderwidth != $border) continue;
     90
     91                $borderwidth = preg_replace ('/border-left[^\d]*(\d*)px.*/i', '\\1', $border);
     92                if ($borderwidth != $border) {
     93                    $borderwidthleft = $borderwidth;
     94                    continue;
     95                }
     96                $borderwidth = preg_replace ('/border-right[^\d]*(\d*)px.*/i', '\\1', $border);
     97                if ($borderwidth != $border) {
     98                    $borderwidthright = $borderwidth;
     99                    continue;
     100                }
     101                $borderwidth = preg_replace ('/[^\d]*(\d*)px.*/i', '\\1', $border);
     102                $borderwidthleft = $borderwidth;
     103                $borderwidthright = $borderwidth;
     104            }
     105            $width = $width + $borderwidthleft + $borderwidthright;
     106
    84107            preg_match_all ( '/margin[^;"]*/ims',$style, $margins );
    85108            $style = '';
Note: See TracChangeset for help on using the changeset viewer.