| 1 |
<?php |
<?php |
| 2 |
// $Id: jlightbox.module,v 1.1.2.5 2008/02/24 01:20:51 sun Exp $ |
// $Id: jlightbox.module,v 1.1.2.6 2008/06/04 02:27:13 sun Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 31 |
|
|
| 32 |
// Theme-specific stylesheet override support. |
// Theme-specific stylesheet override support. |
| 33 |
// #178364: path_to_theme() invokes init_theme(), thus it must not be invoked |
// #178364: path_to_theme() invokes init_theme(), thus it must not be invoked |
| 34 |
// in block settings to allow initializing of the selected theme. |
// in block settings to allow initializing of the selected theme. Likewise, |
| 35 |
if (strpos($_GET['q'], 'admin/build/block') === FALSE) { |
// the theme system is initialized later when in maintenance mode. |
| 36 |
|
if (strpos($_GET['q'], 'admin/build/block') === FALSE && !variable_get('site_offline', 0)) { |
| 37 |
$css = path_to_theme() .'/jlightbox.css'; |
$css = path_to_theme() .'/jlightbox.css'; |
| 38 |
if (!file_exists($css)) { |
if (!file_exists($css)) { |
| 39 |
$css = $path .'/css/jlightbox.css'; |
$css = $path .'/css/jlightbox.css'; |