From 7c16280fe1b011b1b705c4faebb3115e1518f240 Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Tue, 30 Jan 2007 15:07:18 +0000 Subject: autoalign text with images when floated right --- LibertySystem.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'LibertySystem.php') 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 */ @@ -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 ) { -- cgit v1.3