Skip to content
Permalink
Browse files

fix thumbnail alignment in listing view

  • Loading branch information...
following5 committed Aug 22, 2017
1 parent e166792 commit 63539d0bbf3cfd8fb6cca80a93a29b3b7f3b2d22
Showing with 8 additions and 1 deletion.
  1. +1 −0 htdocs/config2/settings-dist.inc.php
  2. +2 −1 htdocs/templates2/ocstyle/viewcache.tpl
  3. +5 −0 htdocs/viewcache.php
@@ -267,6 +267,7 @@
*/
$opt['logic']['pictures']['thumb_max_width'] = 175;
$opt['logic']['pictures']['thumb_max_height'] = 175;
$opt['logic']['pictures']['listing_thumbs_per_row'] = 4;
/* Defaults for picture replacement on declined license
*
@@ -462,8 +462,9 @@ function showalllists()
</div>
<div class="content2-container content2-section-no-p" style="float:left"> {* bottom margin would not work without float:left - why? *}
{assign var=piccount value=0} {* see redmine #1092 *}
{foreach from=$pictures item=pictureItem}
<div class="viewcache-pictureblock">
<div class="viewcache-pictureblock" {if $piccount++ % $pictures_per_row == 0}style="clear:both"{/if}>
<div class="img-shadow">
<!-- a href="{$pictureItem.url|escape}" target="_blank" -->
<img class="enlargegroup_cachepics" src="thumbs.php?type=2&uuid={$pictureItem.uuid|urlencode}" longdesc="{$pictureItem.url|escape}" alt="{$pictureItem.title|escape}" border="0" align="bottom" onclick="enlarge(this)" />
@@ -282,6 +282,11 @@ function getChildWaypoints($cacheid)
$tpl->assign_rs('pictures', $rs);
sql_free_result($rs);
$tpl->assign('pictures_per_row', $opt['logic']['pictures']['listing_thumbs_per_row']);
// REDISGN TODO:
// This works fine with a static canvas width. Probably needs dynamic calculation
// in responsive design.
$tpl->assign('childWaypoints', getChildWaypoints($cacheid));
if ($login->userid != 0) {

0 comments on commit 63539d0

Please sign in to comment.
You can’t perform that action at this time.