From: Andreas Unterkircher Date: Tue, 1 Jan 2008 15:17:35 +0000 (+0100) Subject: issue59, thumbnail matrix is now also free off HTML tables X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=131666c458388902ed2b28dff2b7101aac661e1e issue59, thumbnail matrix is now also free off HTML tables --- diff --git a/phpfspot.class.php b/phpfspot.class.php index 9e78d1d..99f5a17 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -1094,6 +1094,8 @@ class PHPFSPOT { $this->tmpl->assign('rss_link', $rss_link); $this->tmpl->assign('count', $count); $this->tmpl->assign('width', $this->cfg->thumb_width); + $this->tmpl->assign('thumb_container_width', $this->cfg->thumb_width+20); + $this->tmpl->assign('thumb_container_height', $this->cfg->thumb_height); $this->tmpl->assign('images', $images); $this->tmpl->assign('img_width', $img_width); $this->tmpl->assign('img_height', $img_height); diff --git a/themes/default/stylesheet.css b/themes/default/stylesheet.css index b07fff1..97e4fa8 100644 --- a/themes/default/stylesheet.css +++ b/themes/default/stylesheet.css @@ -101,8 +101,6 @@ img { border: none; } -img.thumb { -} a { font-size: 14px; @@ -134,18 +132,10 @@ a.smalltag:hover { color: #00aa44; } -a.thumblink { - font-size: 12px; -} - a.calendar { font-size: 10px; } -a.thumblink:hover { - color: #4761ab; -} - #single { padding: 10px; display: table; @@ -168,9 +158,8 @@ table.matrix { margin-right: auto; } -td.thumb { +div.thumb { text-align: center; - display: table-cell; vertical-align: top; -moz-border-radius: 3px; border-radius: 3px; @@ -178,8 +167,26 @@ td.thumb { margin: 5px; background-color: #eeeeee; padding: 10px; + float: left; } +div.thumb img.thumb { + border: 0px; + padding: 0px; + margin: 0px; +} + +div.thumb a.thumblink { + font-size: 12px; + border: 0px; +} + +div.thumb a.thumblink:hover { + color: #4761ab; +} + +.clearboth { clear: both; } + #photo_details { width: 150px; font-size: 12px; diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl index 9ceb0dc..1ca25b8 100644 --- a/themes/default/templates/photo_index.tpl +++ b/themes/default/templates/photo_index.tpl @@ -46,25 +46,20 @@
- {section name="row" loop=$rows step=1} - {section name="col" loop=$columns step=1} {if $images[row][col] } - {/if} {/section} - {/section} -
+ - {else} -  
+