/[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.1.2.6, Wed Jun 4 02:27:13 2008 UTC revision 1.1.2.7, Wed May 6 23:57:25 2009 UTC
# Line 1  Line 1 
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
# Line 31  function jlightbox_add() { Line 31  function jlightbox_add() {
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';

Legend:
Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7

  ViewVC Help
Powered by ViewVC 1.1.2