summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-01-30 15:07:18 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-01-30 15:07:18 +0000
commit7c16280fe1b011b1b705c4faebb3115e1518f240 (patch)
treea38b1bd044fe4d6f8927714f02db8f93c74b8e88
parent67a5604ac60f1d1c796f12ab9eb11981a779a8bd (diff)
downloadliberty-7c16280fe1b011b1b705c4faebb3115e1518f240.tar.gz
liberty-7c16280fe1b011b1b705c4faebb3115e1518f240.tar.bz2
liberty-7c16280fe1b011b1b705c4faebb3115e1518f240.zip
autoalign text with images when floated right
-rwxr-xr-xLibertySystem.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/LibertySystem.php b/LibertySystem.php
index ff354cc..cf86776 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.57 2007/01/11 10:30:13 squareing Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.58 2007/01/30 15:07:18 squareing Exp $
* @author spider <spider@steelsun.com>
*/
@@ -687,6 +687,11 @@ function liberty_plugins_div_style( $pParamHash ) {
$ret['style'] = $ret['description'] = '';
if( !empty( $pParamHash ) && is_array( $pParamHash ) ) {
+ // if align is right and text-align isn't set, we'll align that right as well
+ if( empty( $pParamHash['text-align'] ) && ( !empty( $pParamHash['align'] ) && $pParamHash['align'] == 'right' || !empty( $pParamHash['align'] ) && $pParamHash['align'] == 'right' )) {
+ $pParamHash['text-align'] = 'right';
+ }
+
foreach( $pParamHash as $key => $value ) {
if( !empty( $value ) ) {
switch( $key ) {