Merge pull request #452 from KingYes/master

Added RTL Support..
This commit is contained in:
Mike Jolley 2012-01-05 03:34:33 -08:00
commit f64fa5ce1e
1 changed files with 8 additions and 1 deletions

View File

@ -770,6 +770,13 @@ class woocommerce {
$css = file_exists(get_stylesheet_directory() . '/woocommerce/style.css') ? get_stylesheet_directory_uri() . '/woocommerce/style.css' : $this->plugin_url() . '/assets/css/woocommerce.css';
wp_register_style('woocommerce_frontend_styles', $css );
wp_enqueue_style( 'woocommerce_frontend_styles' );
// Check if rtl exists and is rtl.
if (file_exists($this->plugin_path() . '/assets/css/woocommerce-rtl.css') && is_rtl())
{
wp_enqueue_style('woocommerce_frontend_styles_rtl', $this->plugin_url() . '/assets/css/woocommerce-rtl.css', array('woocommerce_frontend_styles'));
}
endif;
if ($lightbox_en) wp_enqueue_style( 'woocommerce_fancybox_styles', $this->plugin_url() . '/assets/css/fancybox'.$suffix.'.css' );
@ -1216,4 +1223,4 @@ class woocommerce {
*/
$GLOBALS['woocommerce'] = new woocommerce();
endif; // class_exists check
endif; // class_exists check