mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
add TEXTDIRECTION CSS in default header
This commit is contained in:
40
e107_themes/_blank/rtl.css
Normal file
40
e107_themes/_blank/rtl.css
Normal file
@@ -0,0 +1,40 @@
|
||||
/* Right to Left StyleSheet
|
||||
* Only a few redefinitions are necessary
|
||||
* as this file is loaded after all other CSS files and other definitions
|
||||
*/
|
||||
|
||||
/* Core Formatting */
|
||||
.left {
|
||||
text-align: right
|
||||
}
|
||||
|
||||
.right {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
.f-left {
|
||||
float: right
|
||||
}
|
||||
|
||||
.f-right {
|
||||
float: left
|
||||
}
|
||||
|
||||
.clear-r {
|
||||
clear: right
|
||||
}
|
||||
|
||||
.clear-l {
|
||||
clear: left
|
||||
}
|
||||
|
||||
/* RESET CSS *********************************************************************************************/
|
||||
/* Global */
|
||||
*, body {
|
||||
direction: rtl;
|
||||
text-align: right
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: right
|
||||
}
|
@@ -9,8 +9,8 @@
|
||||
* Default Header
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_themes/templates/header_default.php,v $
|
||||
* $Revision: 1.43 $
|
||||
* $Date: 2009-10-28 22:37:30 $
|
||||
* $Revision: 1.44 $
|
||||
* $Date: 2009-10-29 00:16:39 $
|
||||
* $Author: marj_nl_fr $
|
||||
*/
|
||||
|
||||
@@ -310,6 +310,7 @@ if (function_exists('headerjs')) {echo headerjs(); }
|
||||
e107::getJs()->renderJs('header', 4);
|
||||
e107::getJs()->renderJs('header_inline', 4);
|
||||
|
||||
// FIXME description and keywords meta tags shouldn't be sent on all pages
|
||||
$diz_merge = (defined("META_MERGE") && META_MERGE != FALSE && $pref['meta_description'][e_LANGUAGE]) ? $pref['meta_description'][e_LANGUAGE]." " : "";
|
||||
$key_merge = (defined("META_MERGE") && META_MERGE != FALSE && $pref['meta_keywords'][e_LANGUAGE]) ? $pref['meta_keywords'][e_LANGUAGE]."," : "";
|
||||
|
||||
@@ -360,10 +361,20 @@ if(function_exists('theme_head'))
|
||||
|
||||
//
|
||||
// Unobtrusive JS, prevent 3rd party code overload
|
||||
// FIXME: TEXTDIRECTION compatibility CSS (marj?)
|
||||
//
|
||||
require_once(e_FILE."/e_css.php");
|
||||
|
||||
// FIXME: TEXTDIRECTION compatibility CSS (marj?)
|
||||
// TODO: probably better to externalise along with some other things above
|
||||
// possibility to overwrite some CSS definition according to TEXTDIRECTION
|
||||
// especially usefull for rtl.css
|
||||
// see _blank theme for examples
|
||||
if(defined('TEXTDIRECTION') && file_exists(e_FILE.'/'.strtolower(TEXTDIRECTION).'.css'))
|
||||
{
|
||||
echo '
|
||||
<link rel="stylesheet" href="'.THEME_ABS.strtolower(TEXTDIRECTION).'.css" type="text/css" media="all" />';
|
||||
}
|
||||
|
||||
//
|
||||
// FIXME H: Generate JS for image preloads (do we really need this?)
|
||||
//
|
||||
|
Reference in New Issue
Block a user