summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2014-11-03 23:53:29 +0000
committerlsces <lester@lsces.co.uk>2014-11-03 23:53:29 +0000
commitdd7d834989f46b24285ad0e1c876324617cf4857 (patch)
tree8c2e3a89ce77e529780154fc75fc095814a13440 /modules
parent818c1f7f176f1763280ff2e172e2341ec28e8b33 (diff)
downloadfisheye-dd7d834989f46b24285ad0e1c876324617cf4857.tar.gz
fisheye-dd7d834989f46b24285ad0e1c876324617cf4857.tar.bz2
fisheye-dd7d834989f46b24285ad0e1c876324617cf4857.zip
Modify random banner moduule to use responsive set of images.
Need to document how to make a set of pictures.
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_banner_rand.php2
-rw-r--r--modules/mod_banner_rand.tpl26
2 files changed, 20 insertions, 8 deletions
diff --git a/modules/mod_banner_rand.php b/modules/mod_banner_rand.php
index 6363c37..a375e86 100644
--- a/modules/mod_banner_rand.php
+++ b/modules/mod_banner_rand.php
@@ -21,7 +21,7 @@ $display = TRUE;
$listHash = $module_params;
-$listHash['size'] = $title;
+$listHash['size'] = 'extra-large';
$listHash['gallery_id'] = $module_rows;
$listHash['max_records'] = 5;
$listHash['sort_mode'] = 'random';
diff --git a/modules/mod_banner_rand.tpl b/modules/mod_banner_rand.tpl
index f450b19..6a0db01 100644
--- a/modules/mod_banner_rand.tpl
+++ b/modules/mod_banner_rand.tpl
@@ -1,10 +1,22 @@
{strip}
-<div id="banner">
- <ul id="background">
- {foreach from=$modImages item=modImg}
- <li><img src="/liberty/download_file.php?attachment_id={$modImg.image_id}" title="{$modImg.title|escape}" alt="{$modImg.title|escape}" /></li>
- {/foreach}
- </ul>
- <div id="overlay"></div>
+<div id="xsbanner" class="col-xs-12 visible-xs">
+ <div id="banner-xs" class="visible-xs">
+ </div>
</div>
+<div id="banner" class="col-xs-12 hidden-xs">
+ <div id="banner">
+ <ul id="background">
+ {foreach from=$modImages item=modImg}
+ <li><img src="/liberty/download_file.php?attachment_id={$modImg.image_id}" title="{$modImg.title|escape}" alt="{$modImg.title|escape}" /></li>
+ {/foreach}
+ </ul>
+ </div>
+ <div id="overlay">
+ <div id="banner-md" class="visible-sm visible-md">
+ </div>
+ <div id="banner-lg" class="visible-lg">
+ </div>
+ </div>
+</div>
+<div class="clear"></div>
{/strip}