diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-12-15 20:42:44 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-12-15 20:42:44 +0000 |
| commit | 964482cf5bc7b048e6143f0a27fd0809c97e36ae (patch) | |
| tree | 8441e73ad6868e5fbde33b2d9eec8502ec056919 /LibertySystem.php | |
| parent | d9e1b60fafa4e2a94e17efab894552d3a976241d (diff) | |
| download | liberty-964482cf5bc7b048e6143f0a27fd0809c97e36ae.tar.gz liberty-964482cf5bc7b048e6143f0a27fd0809c97e36ae.tar.bz2 liberty-964482cf5bc7b048e6143f0a27fd0809c97e36ae.zip | |
lots of cleanup and fixed description parameter for img and attachment plugin
Diffstat (limited to 'LibertySystem.php')
| -rwxr-xr-x | LibertySystem.php | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/LibertySystem.php b/LibertySystem.php index b211de5..80ef49e 100755 --- a/LibertySystem.php +++ b/LibertySystem.php @@ -3,7 +3,7 @@ * System class for handling the liberty package * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.49 2006/12/13 18:01:37 squareing Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.50 2006/12/15 20:42:44 squareing Exp $ * @author spider <spider@steelsun.com> */ @@ -606,18 +606,21 @@ $gLibertySystem = new LibertySystem(); */ function liberty_plugins_div_style( $pParamHash ) { $ret = array(); - $ret['style'] = ''; + $ret['style'] = $ret['description'] = ''; if( !empty( $pParamHash ) && is_array( $pParamHash ) ) { foreach( $pParamHash as $key => $value ) { if( !empty( $value ) ) { switch( $key ) { - // rename a couple of parameters - case 'background-color': - $key = 'background'; + // description case 'desc': $key = 'description'; - // these are used as-is + case 'description': + $ret[$key] = $value; + break; + // styling + case 'background-color': + $key = 'background'; case 'float': case 'padding': case 'margin': @@ -631,6 +634,7 @@ function liberty_plugins_div_style( $pParamHash ) { case 'font-family': $ret['style'] .= "$key:$value;"; break; + // align and float are special case 'align': if( $value == 'center' || $value == 'middle' ) { $ret['style'] .= 'text-align:center;'; @@ -638,6 +642,7 @@ function liberty_plugins_div_style( $pParamHash ) { $ret['style'] .= "float:$value;"; } break; + // default just gets re-assigned default: $ret[$key] = $value; break; |
