/[drupal]/contributions/modules/jlightbox/jlightbox.module
ViewVC logotype

Diff of /contributions/modules/jlightbox/jlightbox.module

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

revision 1.10, Sat Apr 18 01:58:00 2009 UTC revision 1.11, Wed May 6 23:57:17 2009 UTC
# Line 1  Line 1 
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
# Line 27  function jlightbox_add() { Line 27  function jlightbox_add() {
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';

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.2