From 75a329ec022ef21019afb17aecf776a10083e0cb Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 22 Jul 2007 05:49:09 +0000 Subject: issue61, theme support git-svn-id: file:///var/lib/svn/phpfspot/trunk@237 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.class.php | 1 + phpfspot_cfg.php.dist | 5 + phpfspot_tmpl.php | 7 +- stylesheet.css | 199 ------------------------------ templates/calendar.tpl | 28 ----- templates/credits.tpl | 27 ---- templates/export.tpl | 20 --- templates/footer.tpl | 1 - templates/header.tpl | 11 -- templates/index.tpl | 52 -------- templates/photo_index.tpl | 106 ---------------- templates/search.tpl | 50 -------- templates/single_photo.tpl | 110 ----------------- templates/slideshow.tpl | 9 -- templates/tags.tpl | 36 ------ templates/welcome.tpl | 29 ----- themes/default/stylesheet.css | 199 ++++++++++++++++++++++++++++++ themes/default/templates/calendar.tpl | 28 +++++ themes/default/templates/credits.tpl | 27 ++++ themes/default/templates/export.tpl | 20 +++ themes/default/templates/footer.tpl | 1 + themes/default/templates/header.tpl | 11 ++ themes/default/templates/index.tpl | 52 ++++++++ themes/default/templates/photo_index.tpl | 106 ++++++++++++++++ themes/default/templates/search.tpl | 50 ++++++++ themes/default/templates/single_photo.tpl | 110 +++++++++++++++++ themes/default/templates/slideshow.tpl | 9 ++ themes/default/templates/tags.tpl | 36 ++++++ themes/default/templates/welcome.tpl | 29 +++++ 29 files changed, 690 insertions(+), 679 deletions(-) delete mode 100644 stylesheet.css delete mode 100644 templates/calendar.tpl delete mode 100644 templates/credits.tpl delete mode 100644 templates/export.tpl delete mode 100644 templates/footer.tpl delete mode 100644 templates/header.tpl delete mode 100644 templates/index.tpl delete mode 100644 templates/photo_index.tpl delete mode 100644 templates/search.tpl delete mode 100644 templates/single_photo.tpl delete mode 100644 templates/slideshow.tpl delete mode 100644 templates/tags.tpl delete mode 100644 templates/welcome.tpl create mode 100644 themes/default/stylesheet.css create mode 100644 themes/default/templates/calendar.tpl create mode 100644 themes/default/templates/credits.tpl create mode 100644 themes/default/templates/export.tpl create mode 100644 themes/default/templates/footer.tpl create mode 100644 themes/default/templates/header.tpl create mode 100644 themes/default/templates/index.tpl create mode 100644 themes/default/templates/photo_index.tpl create mode 100644 themes/default/templates/search.tpl create mode 100644 themes/default/templates/single_photo.tpl create mode 100644 themes/default/templates/slideshow.tpl create mode 100644 themes/default/templates/tags.tpl create mode 100644 themes/default/templates/welcome.tpl diff --git a/phpfspot.class.php b/phpfspot.class.php index 23eb541..825f92d 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -150,6 +150,7 @@ class PHPFSPOT { $this->tmpl->assign('to_date', $this->get_calendar('to')); $this->tmpl->assign('sort_field', $this->get_sort_field()); $this->tmpl->assign('content_page', 'welcome.tpl'); + $this->tmpl->assign('template_path', 'themes/'. $this->cfg->theme_name); $this->tmpl->show("index.tpl"); diff --git a/phpfspot_cfg.php.dist b/phpfspot_cfg.php.dist index adbe0da..07795c6 100644 --- a/phpfspot_cfg.php.dist +++ b/phpfspot_cfg.php.dist @@ -32,6 +32,8 @@ class PHPFSPOT_CFG { var $web_path = "/phpfspot"; + var $theme_name = "default"; + /* it's enough if this database is readonly for the webserver */ var $fspot_db = "/var/www/f-spot-dbs/photos.db"; @@ -114,6 +116,9 @@ class PHPFSPOT_CFG { if(!isset($this->hide_tags)) $this->showError("Please set \$hide_tags in phpfspot_cfg"); + if(!isset($this->theme_name)) + $this->showError("Please set \$theme_name in phpfspot_cfg"); + if(isset($this->error_found) && $this->error_found) exit(1); diff --git a/phpfspot_tmpl.php b/phpfspot_tmpl.php index 9609477..996ff44 100644 --- a/phpfspot_tmpl.php +++ b/phpfspot_tmpl.php @@ -29,8 +29,13 @@ class PHPFSPOT_TMPL extends Smarty { public function __construct($parent) { + if(!file_exists($parent->cfg->base_path .'/themes/'. $parent->cfg->theme_name .'/templates')) { + print "No templates found in ". $parent->cfg->base_path .'/themes/'. $parent->cfg->theme_name .'/templates'; + exit(1); + } + $this->Smarty(); - $this->template_dir = $parent->cfg->base_path .'/templates'; + $this->template_dir = $parent->cfg->base_path .'/themes/'. $parent->cfg->theme_name .'/templates'; $this->compile_dir = $parent->cfg->base_path .'/templates_c'; $this->config_dir = $parent->cfg->base_path .'/smarty_config'; $this->cache_dir = $parent->cfg->base_path .'/smarty_cache'; diff --git a/stylesheet.css b/stylesheet.css deleted file mode 100644 index 33ef1bf..0000000 --- a/stylesheet.css +++ /dev/null @@ -1,199 +0,0 @@ -body { - background-color: #000000; - color: rgb(26,151,15); - font-family: sans-serif; - font-style: normal; - border: solid 1px #ffffff; - border-color: rgb(15,15,15); - padding: 10px; -} - -table, tr, td { - border-collapse: collapse; - padding: 0px; - empty-cells: show; - vertical-align: top; -} - -td.options { - width: 250px; - max-width: 250px; - min-width: 250px; - padding: 2px; - padding-top: 8px; - border-top: solid 1px #000000; - border-right: solid 1px #000000; -} - -td.available_tags,td.selected_tags { - border-bottom: solid 1px #000000; - padding-top: 10px; - padding-bottom: 10px; - padding-right: 10px; - line-height: 21px; -} - -td.searchfor { - border-bottom: solid 1px #000000; - padding-top: 10px; - padding-bottom: 10px; - padding-right: 10px; - line-height: 21px; - font-size: 12px; - vertical-align: middle; -} - -td.logo { - font-weight: bolder; - height: 40px; - border-bottom: solid 1px #000000; -} - -td.content { - border-top: solid 1px #000000; -} - -td.menu { - padding-top: 5px; - padding-bottom: 5px; -} - -td.index_header { - background-color: #eeeeee; - padding: 10px; - vertical-align: middle; - white-space: nowrap; -} - -td.content_title { - background-color: #eeeeee; - padding: 10px; - vertical-align: middle; -} - - -img { - border: none; -} - -img.thumb { -} - -a { - font-size: 14px; - color: #008200; - text-decoration: none; -} - -a:hover { - color: #00aa44; -} - -a.tag { - color: #000000; - text-decoration: underline; -} - -a.tag:hover { - color: #00aa44; -} - -a.smalltag { - font-size: 12px; - color: #000000; - text-decoration: underline; - font-style: italic; -} - -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; - margin-left: 10px; - margin-right: 10px; - table-layout: fixed; - border: hidden; - border-spacing: 10px; - border-collapse: separate; -} - -table.matrix { - padding: 10px; - display: table; - margin-left: 5px; - margin-right: 10px; - table-layout: fixed; - border-style: hidden; - border-spacing: 10px; - border-collapse: separate; -} - -td.thumb { - text-align: center; - display: table-cell; - vertical-align: top; - -moz-border-radius: 3px; - border-radius: 3px; - border: dashed 1px #888888; - margin: 5px; - background-color: #eeeeee; - padding: 10px; -} - -#photo_details { - width: 150px; - font-size: 12px; - padding: 10px; - -moz-border-radius: 1em; - border-radius: 1em; - border: dashed 1px #888888; -} - -#frame { - padding: 10px; - background-color: #ffffff; -} - -#available_tags { - clip: auto; - overflow: auto; -} - -table.calendar tr td { - border: solid 1px #ffffff; - padding: 1px; - text-align: center; - font-size: 10px; -} - -.prevMonth { - font-size: 10px; - text-align: left; -} -.nextMonth { - font-size: 10px; - text-align: right; -} -#calendar { - position: absolute; - width: 140px; - height: 200px; - background-color: #000000; - visibility: hidden; - z-index: 1000; -} diff --git a/templates/calendar.tpl b/templates/calendar.tpl deleted file mode 100644 index 1f52732..0000000 --- a/templates/calendar.tpl +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - - - - - - - - {section name="row" loop=$rows step=1} - {section name="col" loop=8 step=1} - {if $matrix[row][col] } - {$matrix[row][col]} - {/if} - {/section} - {/section} - -
<< - {$current_month} - >>
MTWTFSS
- diff --git a/templates/credits.tpl b/templates/credits.tpl deleted file mode 100644 index 44c4800..0000000 --- a/templates/credits.tpl +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - -
- {$product} {$version}
-
-
- - - - -
- by Andreas Unterkircher
- {mailto address="unki@netshadow.at"} -
- HTML_AJAX -
- PHP tag-cloud code by Jenny Ferenc. -
-
-
- diff --git a/templates/export.tpl b/templates/export.tpl deleted file mode 100644 index a3e5641..0000000 --- a/templates/export.tpl +++ /dev/null @@ -1,20 +0,0 @@ -{include file="header.tpl"} - -
- - - - -
-
- - -
-
-
-
- -{include file="footer.tpl"} diff --git a/templates/footer.tpl b/templates/footer.tpl deleted file mode 100644 index 5f85cab..0000000 --- a/templates/footer.tpl +++ /dev/null @@ -1 +0,0 @@ - diff --git a/templates/header.tpl b/templates/header.tpl deleted file mode 100644 index acef8eb..0000000 --- a/templates/header.tpl +++ /dev/null @@ -1,11 +0,0 @@ - - - - - {$page_title} - - - - - - diff --git a/templates/index.tpl b/templates/index.tpl deleted file mode 100644 index f42a124..0000000 --- a/templates/index.tpl +++ /dev/null @@ -1,52 +0,0 @@ -{include file="header.tpl"} - -
- - - - - - - - - - - -
- - - - - - - -
- {include file="search.tpl"} -
-
- {include file="tags.tpl"} -
-
-
-
- {include file="welcome.tpl"} -
-
-
-
- Licensed under GPLv3, phpfspot -
- -{include file="footer.tpl"} diff --git a/templates/photo_index.tpl b/templates/photo_index.tpl deleted file mode 100644 index 08c8999..0000000 --- a/templates/photo_index.tpl +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - -
- - - - - -
- 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} - {if $count == 1} - {$count} image has been found. - {else} - {$count} images have been found. - {/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} - -
-
-
- - {section name="row" loop=$rows step=1} - - {section name="col" loop=$columns step=1} - {if $images[row][col] } - - {/if} - {/section} - - {/section} -
- - thumb_{$images[row][col]} -
- {$img_name[row][col]} -
- - {else} -
 
-
- { if $previous_url == "" } - { if $count != 0 } - first page reached - { /if } - { else } - - previous photo - - { /if } - - { if $page_selector == "" } -   - { else } - {$page_selector} - { /if} - - { if $next_url == "" } - { if $count != 0 } - last page reached - { /if } - { else } - - next photo - - { /if} -
- - diff --git a/templates/search.tpl b/templates/search.tpl deleted file mode 100644 index 1498e70..0000000 --- a/templates/search.tpl +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - -
- loupeSearch: -
- - - - - - - - - - - - - - - - - - - - - - - - -
Tag: - - - -
Date:consider date-search -
 {$from_date}
  - {$to_date} - - -
- Sort-Order: - - {$sort_field} -
-
-
diff --git a/templates/single_photo.tpl b/templates/single_photo.tpl deleted file mode 100644 index bb8c917..0000000 --- a/templates/single_photo.tpl +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - - - - - -
- 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 $extern_link } - - {/if} - - original resolution - -
-
- - - - - - - - - -
- { if $next_url == "" } - - { else } - - { /if } - photo - -
- { if $previous_url == "" } - first photo reached - { else } - - previous photo - - { /if } - - - photo index - - - { if $next_url == "" } - last photo reached - { else } - - next photo - - { /if} -
-
-
-
- { if $ExifMadeWith } - camera icon Image taken with:
- {$ExifMadeWith}
- { /if } - { if $ExifMadeOn } - calendar icon Image made on:
- {$ExifMadeOn}
- { /if } - { if $ExifOrigResolution } - resolution icon Original resolution:
- {$ExifOrigResolution}
- { /if } - Size: {$ExifFileSize}
- { if $tags } -
- available tags Tagged with:
- { foreach from=$tags key=id item=name } - {$name}
- { /foreach } - { /if } -
- { if $prev_img } - photo icon Previous:
- -
-
- { /if} - { if $next_img } - photo icon Next:
- -
-
- { /if} -
-
- diff --git a/templates/slideshow.tpl b/templates/slideshow.tpl deleted file mode 100644 index bba5cd2..0000000 --- a/templates/slideshow.tpl +++ /dev/null @@ -1,9 +0,0 @@ -{include file="header.tpl"} - -
- - slideshow_img - -
- -{include file="footer.tpl"} diff --git a/templates/tags.tpl b/templates/tags.tpl deleted file mode 100644 index 4f32ad0..0000000 --- a/templates/tags.tpl +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - -
- available tagsAvailable Tags: -
-
-
- - - - - -
- selected tagsSelected Tags: - -   - || - && -
-
-
-
 
diff --git a/templates/welcome.tpl b/templates/welcome.tpl deleted file mode 100644 index 9845755..0000000 --- a/templates/welcome.tpl +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - -
- phpfspot welcomes you to a dynamic photo gallery for F-Spot
-
-
- - - - -
-This application targets to provide an easy way, to presentate your F-Spot
-pictures in the web, in a way where you do not need any of the current
-web2.0 providers or setup complex apps like gallery
-
-You can addept this welcome page in the file "welcome.tpl" in the template
-directory. ;) -

-[ Click here to take a look at your photo index or select a tag from the list on the left ] -
-
-
- diff --git a/themes/default/stylesheet.css b/themes/default/stylesheet.css new file mode 100644 index 0000000..33ef1bf --- /dev/null +++ b/themes/default/stylesheet.css @@ -0,0 +1,199 @@ +body { + background-color: #000000; + color: rgb(26,151,15); + font-family: sans-serif; + font-style: normal; + border: solid 1px #ffffff; + border-color: rgb(15,15,15); + padding: 10px; +} + +table, tr, td { + border-collapse: collapse; + padding: 0px; + empty-cells: show; + vertical-align: top; +} + +td.options { + width: 250px; + max-width: 250px; + min-width: 250px; + padding: 2px; + padding-top: 8px; + border-top: solid 1px #000000; + border-right: solid 1px #000000; +} + +td.available_tags,td.selected_tags { + border-bottom: solid 1px #000000; + padding-top: 10px; + padding-bottom: 10px; + padding-right: 10px; + line-height: 21px; +} + +td.searchfor { + border-bottom: solid 1px #000000; + padding-top: 10px; + padding-bottom: 10px; + padding-right: 10px; + line-height: 21px; + font-size: 12px; + vertical-align: middle; +} + +td.logo { + font-weight: bolder; + height: 40px; + border-bottom: solid 1px #000000; +} + +td.content { + border-top: solid 1px #000000; +} + +td.menu { + padding-top: 5px; + padding-bottom: 5px; +} + +td.index_header { + background-color: #eeeeee; + padding: 10px; + vertical-align: middle; + white-space: nowrap; +} + +td.content_title { + background-color: #eeeeee; + padding: 10px; + vertical-align: middle; +} + + +img { + border: none; +} + +img.thumb { +} + +a { + font-size: 14px; + color: #008200; + text-decoration: none; +} + +a:hover { + color: #00aa44; +} + +a.tag { + color: #000000; + text-decoration: underline; +} + +a.tag:hover { + color: #00aa44; +} + +a.smalltag { + font-size: 12px; + color: #000000; + text-decoration: underline; + font-style: italic; +} + +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; + margin-left: 10px; + margin-right: 10px; + table-layout: fixed; + border: hidden; + border-spacing: 10px; + border-collapse: separate; +} + +table.matrix { + padding: 10px; + display: table; + margin-left: 5px; + margin-right: 10px; + table-layout: fixed; + border-style: hidden; + border-spacing: 10px; + border-collapse: separate; +} + +td.thumb { + text-align: center; + display: table-cell; + vertical-align: top; + -moz-border-radius: 3px; + border-radius: 3px; + border: dashed 1px #888888; + margin: 5px; + background-color: #eeeeee; + padding: 10px; +} + +#photo_details { + width: 150px; + font-size: 12px; + padding: 10px; + -moz-border-radius: 1em; + border-radius: 1em; + border: dashed 1px #888888; +} + +#frame { + padding: 10px; + background-color: #ffffff; +} + +#available_tags { + clip: auto; + overflow: auto; +} + +table.calendar tr td { + border: solid 1px #ffffff; + padding: 1px; + text-align: center; + font-size: 10px; +} + +.prevMonth { + font-size: 10px; + text-align: left; +} +.nextMonth { + font-size: 10px; + text-align: right; +} +#calendar { + position: absolute; + width: 140px; + height: 200px; + background-color: #000000; + visibility: hidden; + z-index: 1000; +} diff --git a/themes/default/templates/calendar.tpl b/themes/default/templates/calendar.tpl new file mode 100644 index 0000000..1f52732 --- /dev/null +++ b/themes/default/templates/calendar.tpl @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + {section name="row" loop=$rows step=1} + {section name="col" loop=8 step=1} + {if $matrix[row][col] } + {$matrix[row][col]} + {/if} + {/section} + {/section} + +
<< + {$current_month} + >>
MTWTFSS
+ diff --git a/themes/default/templates/credits.tpl b/themes/default/templates/credits.tpl new file mode 100644 index 0000000..44c4800 --- /dev/null +++ b/themes/default/templates/credits.tpl @@ -0,0 +1,27 @@ + + + + + + + + +
+ {$product} {$version}
+
+
+ + + + +
+ by Andreas Unterkircher
+ {mailto address="unki@netshadow.at"} +
+ HTML_AJAX +
+ PHP tag-cloud code by Jenny Ferenc. +
+
+
+ diff --git a/themes/default/templates/export.tpl b/themes/default/templates/export.tpl new file mode 100644 index 0000000..a3e5641 --- /dev/null +++ b/themes/default/templates/export.tpl @@ -0,0 +1,20 @@ +{include file="header.tpl"} + +
+ + + + +
+
+ + +
+
+
+
+ +{include file="footer.tpl"} diff --git a/themes/default/templates/footer.tpl b/themes/default/templates/footer.tpl new file mode 100644 index 0000000..5f85cab --- /dev/null +++ b/themes/default/templates/footer.tpl @@ -0,0 +1 @@ + diff --git a/themes/default/templates/header.tpl b/themes/default/templates/header.tpl new file mode 100644 index 0000000..5d66f2d --- /dev/null +++ b/themes/default/templates/header.tpl @@ -0,0 +1,11 @@ + + + + + {$page_title} + + + + + + diff --git a/themes/default/templates/index.tpl b/themes/default/templates/index.tpl new file mode 100644 index 0000000..f42a124 --- /dev/null +++ b/themes/default/templates/index.tpl @@ -0,0 +1,52 @@ +{include file="header.tpl"} + +
+ + + + + + + + + + + +
+ + + + + + + +
+ {include file="search.tpl"} +
+
+ {include file="tags.tpl"} +
+
+
+
+ {include file="welcome.tpl"} +
+
+
+
+ Licensed under GPLv3, phpfspot +
+ +{include file="footer.tpl"} diff --git a/themes/default/templates/photo_index.tpl b/themes/default/templates/photo_index.tpl new file mode 100644 index 0000000..08c8999 --- /dev/null +++ b/themes/default/templates/photo_index.tpl @@ -0,0 +1,106 @@ + + + + + + + + + + + + + +
+ + + + + +
+ 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} + {if $count == 1} + {$count} image has been found. + {else} + {$count} images have been found. + {/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} + +
+
+
+ + {section name="row" loop=$rows step=1} + + {section name="col" loop=$columns step=1} + {if $images[row][col] } + + {/if} + {/section} + + {/section} +
+ + thumb_{$images[row][col]} +
+ {$img_name[row][col]} +
+ + {else} +
 
+
+ { if $previous_url == "" } + { if $count != 0 } + first page reached + { /if } + { else } + + previous photo + + { /if } + + { if $page_selector == "" } +   + { else } + {$page_selector} + { /if} + + { if $next_url == "" } + { if $count != 0 } + last page reached + { /if } + { else } + + next photo + + { /if} +
+ + diff --git a/themes/default/templates/search.tpl b/themes/default/templates/search.tpl new file mode 100644 index 0000000..1498e70 --- /dev/null +++ b/themes/default/templates/search.tpl @@ -0,0 +1,50 @@ + + + + + + + +
+ loupeSearch: +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Tag: + + + +
Date:consider date-search +
 {$from_date}
  + {$to_date} + + +
+ Sort-Order: + + {$sort_field} +
+
+
diff --git a/themes/default/templates/single_photo.tpl b/themes/default/templates/single_photo.tpl new file mode 100644 index 0000000..bb8c917 --- /dev/null +++ b/themes/default/templates/single_photo.tpl @@ -0,0 +1,110 @@ + + + + + + + + + + +
+ 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 $extern_link } + + {/if} + + original resolution + +
+
+ + + + + + + + + +
+ { if $next_url == "" } + + { else } + + { /if } + photo + +
+ { if $previous_url == "" } + first photo reached + { else } + + previous photo + + { /if } + + + photo index + + + { if $next_url == "" } + last photo reached + { else } + + next photo + + { /if} +
+
+
+
+ { if $ExifMadeWith } + camera icon Image taken with:
+ {$ExifMadeWith}
+ { /if } + { if $ExifMadeOn } + calendar icon Image made on:
+ {$ExifMadeOn}
+ { /if } + { if $ExifOrigResolution } + resolution icon Original resolution:
+ {$ExifOrigResolution}
+ { /if } + Size: {$ExifFileSize}
+ { if $tags } +
+ available tags Tagged with:
+ { foreach from=$tags key=id item=name } + {$name}
+ { /foreach } + { /if } +
+ { if $prev_img } + photo icon Previous:
+ +
+
+ { /if} + { if $next_img } + photo icon Next:
+ +
+
+ { /if} +
+
+ diff --git a/themes/default/templates/slideshow.tpl b/themes/default/templates/slideshow.tpl new file mode 100644 index 0000000..bba5cd2 --- /dev/null +++ b/themes/default/templates/slideshow.tpl @@ -0,0 +1,9 @@ +{include file="header.tpl"} + +
+ + slideshow_img + +
+ +{include file="footer.tpl"} diff --git a/themes/default/templates/tags.tpl b/themes/default/templates/tags.tpl new file mode 100644 index 0000000..4f32ad0 --- /dev/null +++ b/themes/default/templates/tags.tpl @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + +
+ available tagsAvailable Tags: +
+
+
+ + + + + +
+ selected tagsSelected Tags: + +   + || + && +
+
+
+
 
diff --git a/themes/default/templates/welcome.tpl b/themes/default/templates/welcome.tpl new file mode 100644 index 0000000..9845755 --- /dev/null +++ b/themes/default/templates/welcome.tpl @@ -0,0 +1,29 @@ + + + + + + + + +
+ phpfspot welcomes you to a dynamic photo gallery for F-Spot
+
+
+ + + + +
+This application targets to provide an easy way, to presentate your F-Spot
+pictures in the web, in a way where you do not need any of the current
+web2.0 providers or setup complex apps like gallery
+
+You can addept this welcome page in the file "welcome.tpl" in the template
+directory. ;) +

+[ Click here to take a look at your photo index or select a tag from the list on the left ] +
+
+
+ -- cgit v1.2.3-18-g5258