From a8c8bd8ee5c29db5512230eaeb65e44794e21b89 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 6 Jan 2008 09:40:29 +0100 Subject: issue59, further cleanup code after removing html tables Signed-off-by: Andreas Unterkircher --- themes/default/stylesheet.css | 8 +--- themes/default/templates/credits.tpl | 4 +- themes/default/templates/photo_index.tpl | 72 ++++++++++++++++--------------- themes/default/templates/single_photo.tpl | 42 +++++++++--------- themes/default/templates/welcome.tpl | 2 +- 5 files changed, 63 insertions(+), 65 deletions(-) (limited to 'themes') diff --git a/themes/default/stylesheet.css b/themes/default/stylesheet.css index 0918848..7550311 100644 --- a/themes/default/stylesheet.css +++ b/themes/default/stylesheet.css @@ -84,19 +84,13 @@ td.searchfor { font-weight: bolder; } -td.index_header,div.index_header { +div.header { background-color: #eeeeee; padding: 10px; vertical-align: middle; white-space: nowrap; } -td.content_title,div.content_title { - background-color: #eeeeee; - padding: 10px; - vertical-align: middle; -} - img { border: none; } diff --git a/themes/default/templates/credits.tpl b/themes/default/templates/credits.tpl index a940b03..ce9feb8 100644 --- a/themes/default/templates/credits.tpl +++ b/themes/default/templates/credits.tpl @@ -1,7 +1,7 @@ -
+
{$product} {$version}
-
+
by Andreas Unterkircher
Licensed under GPLv3, phpfspot
diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl index f4a38d2..05d0ecd 100644 --- a/themes/default/templates/photo_index.tpl +++ b/themes/default/templates/photo_index.tpl @@ -1,45 +1,47 @@ -
- Photo Index - {if $searchfor } - {if $count == 1} - {$count} image is the result for your search about "{$searchfor}". +
+
+ Photo Index + {if $searchfor } + {if $count == 1} + {$count} image is the result for your search about "{$searchfor}". + {else} + {$count} images are the result for your search about "{$searchfor}". + {/if} + {elseif $tag_result} + {if $count == 1} + {$count} image has been found for the selected tags. + {else} + {$count} images have been found for the selected tags. + {/if} {else} - {$count} images are the result for your search about "{$searchfor}". + {if $count == 1} + {$count} image has been found. + {else} + {$count} images have been found. + {/if} {/if} - {elseif $tag_result} - {if $count == 1} - {$count} image has been found for the selected tags. - {else} - {$count} images have been found for the selected tags. + {if $from_date && $to_date } + Results are limited to a date within {$from_date} to {$to_date}. {/if} - {else} - {if $count == 1} - {$count} image has been found. - {else} - {$count} images have been found. +
+
+ {if $slideshow_link } + {/if} - {/if} - {if $from_date && $to_date } - Results are limited to a date within {$from_date} to {$to_date}. - {/if} -
-
- {if $slideshow_link } - - {/if} - {if $extern_link } - - {/if} - {if $export_link } - - {/if} - {if $rss_link } - - {/if} + {if $extern_link } + + {/if} + {if $export_link } + + {/if} + {if $rss_link } + + {/if} +
-
+
{section name="row" loop=$rows step=1} {section name="col" loop=$columns step=1} {if $images[row][col] } diff --git a/themes/default/templates/single_photo.tpl b/themes/default/templates/single_photo.tpl index c87118a..39e3bf4 100644 --- a/themes/default/templates/single_photo.tpl +++ b/themes/default/templates/single_photo.tpl @@ -1,26 +1,28 @@ -
- Photo {$image_name}
- {if $photo_count > 0} - {$photo_number} of {$photo_count} - {if $photo_count == 1} - Photo - {else} - Photos +
+
+ Photo {$image_name}
+ {if $photo_count > 0} + {$photo_number} of {$photo_count} + {if $photo_count == 1} + Photo + {else} + Photos + {/if} + {if $description} +  {$description}
+ {/if} {/if} - {if $description} -  {$description}
+
+
+ + {if $extern_link } + {/if} - {/if} -
-
- - {if $extern_link } - - {/if} - - original resolution - + + original resolution + +
diff --git a/themes/default/templates/welcome.tpl b/themes/default/templates/welcome.tpl index 832e306..12414b6 100644 --- a/themes/default/templates/welcome.tpl +++ b/themes/default/templates/welcome.tpl @@ -1,5 +1,5 @@ -
+
phpfspot welcomes you to a dynamic photo gallery for F-Spot
-- cgit v1.2.3-18-g5258