added in drupal_add_css() call for alternative lightbox layout
authorStella Power
Mon, 26 Nov 2007 14:36:03 +0000 (14:36 +0000)
committerStella Power
Mon, 26 Nov 2007 14:36:03 +0000 (14:36 +0000)
lightbox2.module

index a3fc6f8..aef89a5 100644 (file)
@@ -329,6 +329,9 @@ function lightbox2_add_files() {
   // Lightbox2 Plus
   if (!variable_get('lightbox2_lite', false)) {
     $css = $path .'/css/lightbox.css';
+    if (variable_get('lightbox2_use_alt_layout', false)) {
+      $css = $path .'/css/lightbox_alt.css';
+    }
     if (function_exists('drupal_add_css')) {
       drupal_add_css($css);
     }