/[drupal]/contributions/themes/bidi/template.php
ViewVC logotype

Contents of /contributions/themes/bidi/template.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue May 9 13:32:39 2006 UTC (3 years, 6 months ago) by ayman
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +5 -6 lines
File MIME type: text/x-php
Drupal 4.7 compatibility.
1 <?php
2 function phptemplate_stylesheet_import($stylesheet, $media = 'all') {
3 $rtl = in_array(locale_initialize(), array('ar', 'fa', 'he', 'ur'));
4 if (!$rtl) {
5 return theme_stylesheet_import($stylesheet, $media);
6 }
7 if ($stylesheet == base_path() . 'misc/drupal.css') {
8 $stylesheet = 'misc/drupal-rtl.css';
9 }
10 if ($stylesheet == base_path() . path_to_theme() . '/style.css') {
11 $stylesheet = base_path() . path_to_theme() . '/style-rtl.css';
12 }
13 return theme_stylesheet_import($stylesheet, $media);
14 }
15

  ViewVC Help
Powered by ViewVC 1.1.2