6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * The idea is to inlcude here some functions to make easier
10 * the right to left implementation by "functionize" some
16 function html_tag( $tag,
20 GLOBAL $languages, $language;
22 $align = strtolower( $align );
23 $dir = strtolower( $dir );
25 if ( isset( $languages[$language]['DIR']) ) {
26 $dir = $languages[$language]['DIR'];
31 if ( $dir == 'ltr' ) {
44 $alg = " ALIGN=\"$rgt\"";
47 $alg = " ALIGN=\"$lft\"";
50 return( "<$tag DIR=\"$dir\"$alg $xtra>" );