More RTL support (v11)

Tips submitted by PHPMaker users
Locked
ghasembaghi
User
Posts: 293

More RTL support (v11)

Post by ghasembaghi »

1- in phpmaker go to tools>advanced settings and tick "Use css-flip" checkbox
2- in Windows Explorer goto "C:\Program Files (x86)\PHPMaker 11\language" folder and open any *.xml files and add this line after <global>
<phrase id="dir" value="rtl"/>
note: if your language is ltr change the value to ltr
3- in Windows Explorer open "C:\Program Files (x86)\PHPMaker 11\template\phpv110.zip" end edit template.php:
3.1- find this line:
var EW_CSS_FLIP = <?php echo (EW_CSS_FLIP) ? "true" : "false" ?>;
and replace with:
var EW_CSS_FLIP = <?php if($Language->Phrase("dir")=="rtl") {echo "true";} else {echo "false";} ?>;

3.2- after
<title><?php echo $Language->ProjectPhrase("BodyTitle") ?></title>
add this line:
<?php if($Language->Phrase("dir")=="rtl") $css_perfix='-rtl.css'; else $css_perfix='.css'; ?>
3.3- replace
ew_CssFile("bootstrap.css")
with
preg_replace('/(.css)$/i', $css_perfix, "bootstrap.css")

3.4- replace
ew_CssFile("bootstrap-theme.css")
with
preg_replace('/(.css)$/i', $css_perfix,"bootstrap-theme.css")

3.5- replace
ew_CssFile(EW_PROJECT_STYLESHEET_FILENAME)
with
preg_replace('/(.css)$/i', $css_perfix, EW_PROJECT_STYLESHEET_FILENAME)

3.6- replace this lins:
<!--## if (PROJ.GetV("UseCssFlip")) { ##-->
<body dir="rtl">
<!--## } else { ##-->
<body>
<!--## } ##-->
with
<body dir="<?php echo $Language->Phrase("dir") ?>">


asirha
User
Posts: 83
Location: iran
Contact:

Post by asirha »

where i can download bootstrap 3 rtl for phpmaker11 ?



Locked