diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-09-27 22:12:18 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-10-03 14:22:34 +0200 |
commit | 64628978d76c19e946754acc922144aff739b83d (patch) | |
tree | 431c8c058fbe654f0adff107416bf9cfbf88d85f /application/views | |
parent | 53b51fbf09f101da341fc0c3fb811982d6150631 (diff) |
Add colorbox on thumnail pages
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views')
-rw-r--r-- | application/views/file/fragments/thumbnail.php | 3 | ||||
-rw-r--r-- | application/views/header.php | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/application/views/file/fragments/thumbnail.php b/application/views/file/fragments/thumbnail.php index 6bd82fcb9..0d7455369 100644 --- a/application/views/file/fragments/thumbnail.php +++ b/application/views/file/fragments/thumbnail.php @@ -1,8 +1,9 @@ +<?php register_js_include("/data/js/jquery.colorbox.js"); ?> <!-- Comment markers background: http://stackoverflow.com/a/14776780/953022 --> <div class="container container-wide"> <div class="upload_thumbnails"><!-- <?php foreach($items as $key => $item): ?> - --><a href="<?php echo site_url("/".$item["id"])."/"; ?>" title="<?php echo htmlentities($item["filename"]); ?>" data-content="<?php echo htmlentities($item["tooltip"]); ?>" data-id="<?php echo $item["id"]; ?>"><img class="thumb" src="<?php echo site_url("file/thumbnail/".$item["id"]); ?>"></a><!-- + --><a rel="gallery" class="colorbox" href="<?php echo site_url("/".$item["id"])."/"; ?>" title="<?php echo htmlentities($item["filename"]); ?>" data-content="<?php echo htmlentities($item["tooltip"]); ?>" data-id="<?php echo $item["id"]; ?>"><img class="thumb" src="<?php echo site_url("file/thumbnail/".$item["id"]); ?>"></a><!-- <?php endforeach; ?> --> </div> diff --git a/application/views/header.php b/application/views/header.php index 8f246aeb8..ab947bd45 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -16,6 +16,7 @@ if (is_cli_client() && !isset($force_full_html)) { <link href="<?php echo link_with_mtime("/data/css/ui-lightness/jquery-ui-1.10.3.custom.min.css"); ?>" rel="stylesheet"> <link href="<?php echo link_with_mtime("/data/css/bootstrap.min.css"); ?>" rel="stylesheet"> <link href="<?php echo link_with_mtime("/data/css/style.css"); ?>" rel="stylesheet"> + <link href="<?php echo link_with_mtime("/data/css/colorbox.css"); ?>" rel="stylesheet"> <?php if (file_exists(FCPATH."data/local/style.css")) { echo '<link href="'.link_with_mtime("/data/local/style.css").'" rel="stylesheet">'; |