From 21e5440db59e4ee3ba71c3a8935a123cc48aea46 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Tue, 23 Feb 2010 00:04:14 -0800 Subject: started my own theme need to clean this up, some code should perhaps go into main, other should stay in my theme --- themes/arun/templates/calendar.tpl | 28 ++++++ themes/arun/templates/credits.tpl | 20 ++++ themes/arun/templates/export.tpl | 14 +++ themes/arun/templates/footer.tpl | 2 + themes/arun/templates/header.tpl | 21 ++++ themes/arun/templates/index.tpl | 46 +++++++++ themes/arun/templates/photo_index.tpl | 179 +++++++++++++++++++++++++++++++++ themes/arun/templates/search.tpl | 72 +++++++++++++ themes/arun/templates/single_photo.tpl | 135 +++++++++++++++++++++++++ themes/arun/templates/slideshow.tpl | 28 ++++++ themes/arun/templates/tags.tpl | 15 +++ themes/arun/templates/welcome.tpl | 32 ++++++ 12 files changed, 592 insertions(+) create mode 100644 themes/arun/templates/calendar.tpl create mode 100644 themes/arun/templates/credits.tpl create mode 100644 themes/arun/templates/export.tpl create mode 100644 themes/arun/templates/footer.tpl create mode 100644 themes/arun/templates/header.tpl create mode 100644 themes/arun/templates/index.tpl create mode 100644 themes/arun/templates/photo_index.tpl create mode 100644 themes/arun/templates/search.tpl create mode 100644 themes/arun/templates/single_photo.tpl create mode 100644 themes/arun/templates/slideshow.tpl create mode 100644 themes/arun/templates/tags.tpl create mode 100644 themes/arun/templates/welcome.tpl (limited to 'themes/arun/templates') diff --git a/themes/arun/templates/calendar.tpl b/themes/arun/templates/calendar.tpl new file mode 100644 index 0000000..8c1d27e --- /dev/null +++ b/themes/arun/templates/calendar.tpl @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + {section name="row" loop=$rows step=1} + {section name="col" loop=8 step=1} + {if isset($matrix[row][col]) } + {$matrix[row][col]} + {/if} + {/section} + {/section} + +
<< + {$current_month} + >>
MTWTFSS
+ diff --git a/themes/arun/templates/credits.tpl b/themes/arun/templates/credits.tpl new file mode 100644 index 0000000..2bc7b28 --- /dev/null +++ b/themes/arun/templates/credits.tpl @@ -0,0 +1,20 @@ +
+ {$product} {$version}
+
+
+ by Andreas Unterkircher
+ Licensed under GPLv3, phpfspot +
+ Some extensions:

+ HTML_AJAX - AJAX communication with the server +
+ Jenny Ferenc - PHP tag-cloud code +
+ Silvestre Herrera's - the most icons are from the Nuovo icon kit. +
+ Lightbox2 - photo preview +
+ Ajax Auto Suggest - Auto-Completion +
+ F-Spot database version: {$db_version} +
diff --git a/themes/arun/templates/export.tpl b/themes/arun/templates/export.tpl new file mode 100644 index 0000000..d7443de --- /dev/null +++ b/themes/arun/templates/export.tpl @@ -0,0 +1,14 @@ +{include file="header.tpl"} + +
+
+ + +
+
+ +{include file="footer.tpl"} diff --git a/themes/arun/templates/footer.tpl b/themes/arun/templates/footer.tpl new file mode 100644 index 0000000..70723d9 --- /dev/null +++ b/themes/arun/templates/footer.tpl @@ -0,0 +1,2 @@ + + diff --git a/themes/arun/templates/header.tpl b/themes/arun/templates/header.tpl new file mode 100644 index 0000000..9e6fce5 --- /dev/null +++ b/themes/arun/templates/header.tpl @@ -0,0 +1,21 @@ + + + + + {$page_title} + + + + + + { if isset($use_lightbox) } + + + + + { /if } + { if isset($use_autocomplete) } + + + { /if } + diff --git a/themes/arun/templates/index.tpl b/themes/arun/templates/index.tpl new file mode 100644 index 0000000..c4378b2 --- /dev/null +++ b/themes/arun/templates/index.tpl @@ -0,0 +1,46 @@ +{include file="header.tpl"} + + + + +
+ Loading...  Loading... +
+ + + + + + +
+ +
+
+ {include file="search.tpl"} +
+
+ {include file="tags.tpl"} +
+
+ + + +
+ { $initial_content } +
+
+ +{include file="footer.tpl"} diff --git a/themes/arun/templates/photo_index.tpl b/themes/arun/templates/photo_index.tpl new file mode 100644 index 0000000..9e4fbb0 --- /dev/null +++ b/themes/arun/templates/photo_index.tpl @@ -0,0 +1,179 @@ + + + + +
+
+ Photo Index + {if isset($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 isset($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 isset($from_date) && isset($to_date) } +
+ Results are limited to a date within {$from_date} to {$to_date}. + {/if} +
+
+ {if isset($rss_link) } + + {/if} +
+
+ + + +{ if isset($tag_result) } + +
+ +
+ Tags: +
+
+ { $selected_tags } +
+{ /if } + + + +
+ + {section name="thumb" loop=$thumbs step=1} + + {if isset($images[thumb]) } + +
+ { if isset($user_friendly_url) } + + { else } + + { /if } + +
+ {$img_name[thumb]} +
+ + { if isset($use_lightbox) } + + { /if } + + { if isset($img_rating[thumb]) } +
+ {section name="rating" loop=$img_rating[thumb] step=1} + + {/section} + { /if } +
+ + {/if} + + {/section} + +
+
+
+ + +
+ { if !isset($next_url) || $next_url == "" } + { if $count != 0 } + last page reached + { /if } + { else } + + next photo + + { /if} +
+ + +
+ { if !isset($previous_url) || $previous_url == "" } + { if $count != 0 } + first page reached + { /if } + { else } + + previous photo + + { /if } +
+ + +
+ { if isset($page_selector) && $page_selector != "" } + {$page_selector} + { /if} +
+
+
+ + diff --git a/themes/arun/templates/search.tpl b/themes/arun/templates/search.tpl new file mode 100644 index 0000000..acbcf3d --- /dev/null +++ b/themes/arun/templates/search.tpl @@ -0,0 +1,72 @@ + +Search: + +
+
+ + + + + + + + + + + + + + + + + + + + + { if isset($has_rating) } + { /if } + + + + + +
Tag: + { if isset($use_autocomplete) } + + { literal } + + { /literal } + { else } + + { /if } + + +
Date: + { if ! isset($date_search_enabled) } + + { else } + + { /if } + consider date-range +  
 {$search_from_date} from
 {$search_to_date} to + +
+ Sort-Order:  + + + +   +
+
+
+
diff --git a/themes/arun/templates/single_photo.tpl b/themes/arun/templates/single_photo.tpl new file mode 100644 index 0000000..25235df --- /dev/null +++ b/themes/arun/templates/single_photo.tpl @@ -0,0 +1,135 @@ + +
+
+ Photo {$image_name}
+ {if $photo_count > 0} + {$photo_number} of {$photo_count} + {if $photo_count == 1} + Photo + {else} + Photos + {/if} + {if isset($description) && $description != "" } + - {$description}
+ {/if} + {/if} +
+
+ + + +  Auto-Browse + {if isset($extern_link) } +  External Link + {/if} + original resolution Fullsize +
+
+ +

+ +

+ { if isset($ExifMadeWith) } + camera icon Image taken with:
+ {$ExifMadeWith}
+ { /if } + { if isset($ExifMadeOn) } + calendar icon Image made on:
+ {$ExifMadeOn}
+ { /if } + { if isset($ExifOrigResolution) } + resolution icon Original resolution:
+ {$ExifOrigResolution}px
+ { /if } + Size: {$ExifFileSize}
+ { if isset($image_rating) && $image_rating > 0 } + rating Rating:
+ {section name="rating" loop=$image_rating step=1} + + {/section} +
+ { /if } + { if isset($has_versions) } +
+ Versions:
+ +
+ { /if } + { if isset($tags) } +
+ available tags Tagged with:
+ { foreach from=$tags key=id item=name } + {$name}
+ { /foreach } + { /if } +
+ { if isset($prev_img) && isset($previous_url) } + photo icon Previous:
+ +
+
+ { /if} + { if isset($next_img) && isset($next_url) } + photo icon Next:
+ +
+
+ { /if} +
+ + + +
+ { if !isset($next_url) || $next_url == "" } + + { else } + + { /if } + {$image_filename} + +
+ + + +
+ + + { if !isset($previous_url) || $previous_url == "" } + first photo reached + { else } + + previous photo + + { /if } + + + + photo index + + + + { if !isset($next_url) || $next_url == "" } + last photo reached + { else } + + next photo + + { /if} +
+

+ + diff --git a/themes/arun/templates/slideshow.tpl b/themes/arun/templates/slideshow.tpl new file mode 100644 index 0000000..1e64dbc --- /dev/null +++ b/themes/arun/templates/slideshow.tpl @@ -0,0 +1,28 @@ +{include file="header.tpl"} + + + + + +
+ + + + +
+
+ + slideshow_img + +
+
+
+ +
+
+
+ + +{include file="footer.tpl"} diff --git a/themes/arun/templates/tags.tpl b/themes/arun/templates/tags.tpl new file mode 100644 index 0000000..e36ddda --- /dev/null +++ b/themes/arun/templates/tags.tpl @@ -0,0 +1,15 @@ + +Selected Tags: + +   + || + && +{ if isset($preset_selected_tags) } +
{ $preset_selected_tags }
+{ else } +
no tags selected
+{ /if } + +Available Tags: + +
{ $preset_available_tags }
diff --git a/themes/arun/templates/welcome.tpl b/themes/arun/templates/welcome.tpl new file mode 100644 index 0000000..b169343 --- /dev/null +++ b/themes/arun/templates/welcome.tpl @@ -0,0 +1,32 @@ + +
+Welcome, these are some of my pictures. +
+
+ + +

+ + random image + + + random image + + + random image + + + random image + + + random image + + + random image + +

+

+ Index of all photos. +

+
+ -- cgit v1.2.3-18-g5258