modify plugin to support RTL

I think you’re looking for the function is_rtl().

Have a look in de codex: http://codex.wordpress.org/Function_Reference/is_rtl

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)