Posted By

sagive on 04/29/13


float wordpress RTL ltr

Versions (?)

Direction Dependent Float In Wordpress

 / Published in: PHP


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.

  1. function fright() {
  2. if(is_rtl()) {echo 'fright';} else {echo 'fleft';}
  3. }
  5. function fleft() {
  6. if(is_rtl()) {echo 'fleft';} else {echo 'fleft';}
  7. }

Report this snippet  

You need to login to post a comment.