diff --git a/e107_themes/_blank/rtl.css b/e107_themes/_blank/rtl.css new file mode 100644 index 000000000..764dd99ac --- /dev/null +++ b/e107_themes/_blank/rtl.css @@ -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 +} \ No newline at end of file diff --git a/e107_themes/templates/header_default.php b/e107_themes/templates/header_default.php index 950c62848..b298065be 100644 --- a/e107_themes/templates/header_default.php +++ b/e107_themes/templates/header_default.php @@ -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 ' + '; +} + // // FIXME H: Generate JS for image preloads (do we really need this?) //