summaryrefslogtreecommitdiff
path: root/modules/mod_images.tpl
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-21 19:26:26 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-21 19:26:26 +0100
commit4ba9b3906b27e3571767689d2764b67dfe007e30 (patch)
tree494f4e6a65d34a4338c14de4144595a2df8c65b5 /modules/mod_images.tpl
downloadstock-4ba9b3906b27e3571767689d2764b67dfe007e30.tar.gz
stock-4ba9b3906b27e3571767689d2764b67dfe007e30.tar.bz2
stock-4ba9b3906b27e3571767689d2764b67dfe007e30.zip
Initial stock package — forked from fisheye
StockAssembly (was FisheyeGallery), StockComponent (was FisheyeImage), StockBase (was FisheyeBase). All fisheye_ table prefixes and FISHEYE_ constants renamed to stock_/STOCK_. DB schema will need rework before install; this gives a non-clashing base to diverge from fisheye. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'modules/mod_images.tpl')
-rwxr-xr-xmodules/mod_images.tpl41
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/mod_images.tpl b/modules/mod_images.tpl
new file mode 100755
index 0000000..e192a46
--- /dev/null
+++ b/modules/mod_images.tpl
@@ -0,0 +1,41 @@
+{strip}
+{if $gBitSystem->isPackageActive( 'stock' ) && $modImages}
+ {bitmodule title="$moduleTitle" name="stock_images"}
+ <ul class="list-unstyled">
+ {foreach from=$modImages item=modImg}
+ <li class="{cycle values='odd,even'} item">
+ <a href="{$modImg.display_url}" title="{$modImg.title|escape} - {$modImg.last_modified|bit_short_datetime}, by {displayname user=$modImg.modifier_user ?? '' real_name=$modImg.modifier_real_name ?? '' nolink=1}{if (strlen($modImg.title) > $maxlen) && ($maxlen > 0)}, {$modImg.title|escape}{/if}">
+ <img src="{$modImg.thumbnail_url}" title="{$modImg.title|escape}" alt="{$modImg.title|escape}" />
+
+ {if !empty($modImg.has_machine_name)}
+ <br />
+ {if $maxlen gt 0}
+ {$modImg.title|escape|truncate:$maxlen:"...":true}
+ {else}
+ {$modImg.title|escape}
+ {/if}
+ {/if}
+ </a>
+
+ {if !empty($module_params.description)}
+ <br />
+ {if $maxlendesc gt 0}
+ {$modImg.data|escape|truncate:$maxlendesc:"...":true}
+ {else}
+ {$modImg.data|escape}
+ {/if}
+ {/if}
+ {if !$userGallery}
+ <br/>{tr}By{/tr} {displayname hash=$modImg}
+ {/if}
+ </li>
+ {foreachelse}
+ <li></li>
+ {/foreach}
+ </ul>
+ {if $userGallery}
+ <a href="{$smarty.const.STOCK_PKG_URL}index.php?user_id={$userGallery}">{tr}See more...{/tr}</a>
+ {/if}
+ {/bitmodule}
+{/if}
+{/strip}