Saturday, 29 December 2012 23:05
Modified: Tuesday, 11 October 2016 11:17

rtl support for dj-classifieds

This is how to add RTL support for DJ-Classifieds ver. 2.1.4:

  1. Download this file style_rtl.css (updated 02/01/2013)
  2. upload the file to components/com_djclassifieds/assets/ folder via ftp
  3. next, open file components/com_djclassifieds/djclassifieds.php
  4. after lines 49-53 (below is the code that you'll find there):
$par = &JComponentHelper::getParams( 'com_djclassifieds' );
if($par->get('include_css','1')){
$cs = JURI::base().'components/com_djclassifieds/assets/style_default.css';
$document->addStyleSheet($cs);
}

add:

if($document->direction=='rtl'){
$cs = JURI::base().'components/com_djclassifieds/assets/style_rtl.css';
$document->addStyleSheet($cs);
}
 

DJ-Classifieds

Ultimate classified ads solution for Joomla.

Learn more