svn: /web/php/trunk/ include/layout.inc styles/rtl.css

From: Date: Thu, 06 May 2010 20:37:42 +0000
Subject: svn: /web/php/trunk/ include/layout.inc styles/rtl.css
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-8132@lists.php.net to get a copy of this message
philip Thu, 06 May 2010 20:37:42 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=299093 Log: Added RTL support. Currently limited to the para class, so needs additional CSS. Use manual/fa/ to test. Changed paths: U web/php/trunk/include/layout.inc A web/php/trunk/styles/rtl.css Modified: web/php/trunk/include/layout.inc =================================================================== --- web/php/trunk/include/layout.inc 2010-05-06 19:46:37 UTC (rev 299092) +++ web/php/trunk/include/layout.inc 2010-05-06 20:37:42 UTC (rev 299093) @@ -169,13 +169,21 @@ // Right-to-left support $rtl = ""; + /* Does not appear to work... commenting out. switch ($lang) { case "he": case "ar": $rtl = ' style="direction: rtl"'; break; } + */ + // RTL Hack. Edit styles/rtl.css for rtl specific CSS. + $import_rtl = ''; + if (in_array($lang, array('ar', 'fa', 'he'))) { + $import_rtl = '@import url("' . $_SERVER['STATIC_ROOT'] . '/styles/rtl.css");'; + } + $profile = ""; if (isset($config['profile']) && !empty($config['profile'])) { $profile = ' profile="'; @@ -197,6 +205,7 @@ <style type="text/css" media="all"> @import url("{$_SERVER['STATIC_ROOT']}/styles/site.css"); @import url("{$_SERVER['STATIC_ROOT']}/styles/{$mirror_specific_style}.css"); + $import_rtl </style> <!--[if IE]><![if gte IE 6]><![endif]--> <style type="text/css" media="print"> Added: web/php/trunk/styles/rtl.css =================================================================== --- web/php/trunk/styles/rtl.css (rev 0) +++ web/php/trunk/styles/rtl.css 2010-05-06 20:37:42 UTC (rev 299093) @@ -0,0 +1,3 @@ +.para { + direction:rtl; +}

« previous php.webmaster (#8132) next »