| 1 |
<?php |
<?php |
| 2 |
// $Id: jlightbox.module,v 1.9 2008/10/15 08:14:30 sun Exp $ |
// $Id: jlightbox.module,v 1.10 2009/04/18 01:58:00 sun Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 27 |
|
|
| 28 |
// Theme-specific stylesheet override support. |
// Theme-specific stylesheet override support. |
| 29 |
// #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 |
| 30 |
// in block settings to allow initializing of the selected theme. |
// in block settings to allow initializing of the selected theme. Likewise, |
| 31 |
if (strpos($_GET['q'], 'admin/build/block') === FALSE) { |
// the theme system is initialized later when in maintenance mode. |
| 32 |
|
if (strpos($_GET['q'], 'admin/build/block') === FALSE && !variable_get('site_offline', 0)) { |
| 33 |
$css = path_to_theme() .'/jlightbox.css'; |
$css = path_to_theme() .'/jlightbox.css'; |
| 34 |
if (!file_exists($css)) { |
if (!file_exists($css)) { |
| 35 |
$css = $path .'/css/jlightbox.css'; |
$css = $path .'/css/jlightbox.css'; |