Posted By

sagive on 04/29/13


Tagged

float wordpress RTL ltr


Versions (?)

Direction Dependent Float In Wordpress


 / Published in: PHP
 

URL: http://goo.gl/x36Dr

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. }
  4.  
  5. function fleft() {
  6. if(is_rtl()) {echo 'fleft';} else {echo 'fleft';}
  7. }

Report this snippet  

You need to login to post a comment.