aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2012-08-01 15:00:10 +0200
committerSem <sembrestels@riseup.net>2012-08-01 15:00:10 +0200
commit7f3804f2077c40f1960c717478dece778161c05c (patch)
treef19fa5f6405b506294a5f4233596cd9381c95bab /views/default
parent1bd6ef7e6b6a56ac30dc4b7b1daa9b924a5eddd7 (diff)
downloadelgg-7f3804f2077c40f1960c717478dece778161c05c.tar.gz
elgg-7f3804f2077c40f1960c717478dece778161c05c.tar.bz2
Fixed plugin portability bugs.
Diffstat (limited to 'views/default')
-rw-r--r--views/default/css/lightbox.php8
-rw-r--r--views/default/js/lightbox.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/views/default/css/lightbox.php b/views/default/css/lightbox.php
index 6ba4dd254..b96d9cb05 100644
--- a/views/default/css/lightbox.php
+++ b/views/default/css/lightbox.php
@@ -8,7 +8,7 @@
* @subpackage UI
*/
-$jquery_path = elgg_get_site_url() . 'vendors/jquery/';
+$jquery_path = elgg_get_site_url() . 'mod/colorbox/vendors/jquery/';
?>
/*
@@ -21,7 +21,7 @@ $jquery_path = elgg_get_site_url() . 'vendors/jquery/';
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
-#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
+body > #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
@@ -31,7 +31,7 @@ $jquery_path = elgg_get_site_url() . 'vendors/jquery/';
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block; max-width: none;}
.cboxIframe{width:100%; height:100%; display:block; border:0;}
-#colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;}
+body > #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box;}
/*
User Style:
@@ -39,7 +39,7 @@ $jquery_path = elgg_get_site_url() . 'vendors/jquery/';
ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:#000;}
-#colorbox{}
+body > #colorbox{}
#cboxContent{margin-top:20px;}
.cboxIframe{background:#fff;}
#cboxError{padding:50px; border:1px solid #ccc;}
diff --git a/views/default/js/lightbox.php b/views/default/js/lightbox.php
index 85fd2b717..a7beaadcc 100644
--- a/views/default/js/lightbox.php
+++ b/views/default/js/lightbox.php
@@ -36,6 +36,6 @@ elgg.register_hook_handler('init', 'system', elgg.ui.lightbox.init);
<?php
-$js_path = elgg_get_config('path');
-$js_path = "{$js_path}vendors/jquery/colorbox/colorbox/jquery.colorbox-min.js";
+$js_path = elgg_get_plugins_path();
+$js_path = "{$js_path}colorbox/vendors/jquery/colorbox/colorbox/jquery.colorbox-min.js";
include $js_path;