Action: rtl


Current version: 4.3 svn
Credits: Evaggelos Balaskas
Description: Trying to resolve bug 267

{{rtl}}


/actions/rtl.php


<?php
// Evaggelos Balaskas 06.03.2009

if ( !isset( $_SESSION['rtl'] ) ) 
{
    
$_SESSION['rtl'] = 1;
}
else 
{
    
$_SESSION['rtl'] = 1;
}

?>


/handlers/page/show.php
line: 63


Before:


echo $data;


After:


<?php
// ..

if ( !isset( $_SESSION['rtl'] ) ) 

    
$_SESSION['rtl'] = 0;

if ( 
$_SESSION['rtl'] ) 
{
    echo 
'<div dir="rtl">';
}

echo 
$data;

if ( 
$_SESSION['rtl'] )
{
    echo 
'</div>'
    
$_SESSION['rtl'] = 0;
}

?>

Test Page


You want to see how it works?
http://ebalaskas.gr/wiki/wacko/righttoleft/testpage

Documentation


Nothing here

How to


Just copy-paste

To Do

  • find someone to test it with Right-to-left languages

There are no referring pages