Return to Snippet

Revision: 63346
at April 29, 2013 06:44 by sagive


Initial Code
function fright() {
    if(is_rtl()) {echo 'fright';} else {echo 'fleft';}
}

function fleft() {
    if(is_rtl()) {echo 'fleft';} else {echo 'fleft';}
}

Initial URL
http://goo.gl/x36Dr

Initial Description
This snippet is great for someone creating a wp theme which supports RTL as well as LTR since in enables you to use one function for multiple instances.

Initial Title
Direction Dependent Float In Wordpress

Initial Tags
wordpress

Initial Language
PHP