diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-07-22 05:49:09 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-07-22 05:49:09 +0000 |
commit | 75a329ec022ef21019afb17aecf776a10083e0cb (patch) | |
tree | bd9b22ce6004ac2f11ac189e39cc75bf1439b13a /templates | |
parent | 5369d6897b8d04f8733b852a16639b949077b0b8 (diff) |
issue61, theme support
git-svn-id: file:///var/lib/svn/phpfspot/trunk@237 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'templates')
-rw-r--r-- | templates/calendar.tpl | 28 | ||||
-rw-r--r-- | templates/credits.tpl | 27 | ||||
-rw-r--r-- | templates/export.tpl | 20 | ||||
-rw-r--r-- | templates/footer.tpl | 1 | ||||
-rw-r--r-- | templates/header.tpl | 11 | ||||
-rw-r--r-- | templates/index.tpl | 52 | ||||
-rw-r--r-- | templates/photo_index.tpl | 106 | ||||
-rw-r--r-- | templates/search.tpl | 50 | ||||
-rw-r--r-- | templates/single_photo.tpl | 110 | ||||
-rw-r--r-- | templates/slideshow.tpl | 9 | ||||
-rw-r--r-- | templates/tags.tpl | 36 | ||||
-rw-r--r-- | templates/welcome.tpl | 29 |
12 files changed, 0 insertions, 479 deletions
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 @@ -<table class="calendar"> - <tr> - <td><a href="{$prev_month}" class="prevMonth"><<</a></td> - <td colspan="5"> - {$current_month} - </td> - <td><a href="{$next_month}" class="nextMonth">>></a></td> - </tr> - <tr> - <td>M</td> - <td>T</td> - <td>W</td> - <td>T</td> - <td>F</td> - <td>S</td> - <td>S</td> - </tr> - <!-- matrix --> - {section name="row" loop=$rows step=1} - {section name="col" loop=8 step=1} - {if $matrix[row][col] } - {$matrix[row][col]} - {/if} - {/section} - {/section} - <!-- /matrix --> -</table> - 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 @@ -<!-- Single photo --> -<table> - <tr> - <td class="index_header"> - <b>{$product} {$version}</b><br /> - </td> - </tr> - <tr> - <td> - <div id='matrix'> - <table> - <tr> - <td> - by Andreas Unterkircher<br /> - {mailto address="unki@netshadow.at"} - <hr /> - <a href="http://wiki.bluga.net/HTML_AJAX/HomePage">HTML_AJAX</a> - <hr /> - PHP tag-cloud code by <a href="http://prism-perfect.net/archive/php-tag-cloud-tutorial/">Jenny Ferenc</a>. - </td> - </tr> - </table> - </div> - </td> - </tr> -</table> -<!-- /Single photo --> 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"} - <body> - <div id="frame"> - <table> - <tr> - <td> - <form action="javascript:#" onsubmit="setViewMode(document.getElementsByName('format')[0].options[document.getElementsByName('format')[0].selectedIndex].value); return false;"> - <select name="format"> - <option value="HTML">HTML</option> - <option value="MoinMoin">MoinMoin Wiki</option> - </select> - <input type="image" src="resources/doit.png" alt="Switch View" /> - </form> - <div id="output"></div> - </td> - </tr> - </table> - </div> - </body> -{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 @@ -</html> 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 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> - <head> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <title>{$page_title}</title> - <link href="stylesheet.css" type="text/css" rel="stylesheet" /> - <script type="text/javascript" src="rpc.php?mode=init&client=all"></script> - <script type="text/javascript" src="phpfspot.js"></script> - <link rel="shortcut icon" href="resources/gpl_16.png" type="image/png" /> - <link rel="icon" href="resources/gpl_16.png" type="image/png" /> - </head> 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"} - <body onload="init_phpfspot();"> - <div id="frame"> - <table> - <tr> - <td class="logo" colspan="2"> - {$page_title} - </td> - </tr> - <tr> - <td colspan="2" class="menu"> - <a href="javascript:showPhotoIndex();" onclick="click(this);" title="Show Photo Index"> - <img src="resources/photo_index.png" alt="photo index" /> - </a> - <a href="javascript:resetAll();" onclick="click(this);" title="Reset selected-tags and search results"> - <img src="resources/reload.png" alt="reset tags" /> - </a> - <a href="javascript:showCredits();" onclick="click(this);" title="Show's a little credit page"> - <img src="resources/credits.png" alt="show credits" /> - </a> - </td> - </tr> - <tr> - <td class="options"> - <table> - <tr> - <td> - {include file="search.tpl"} - </td> - </tr> - <tr> - <td> - <div id="tags"> - {include file="tags.tpl"} - </div> - </td> - </tr> - </table> - </td> - <td class="content"> - <div id="content"> - {include file="welcome.tpl"} - </div> - </td> - </tr> - </table> - </div> - <div style="text-align: right; font-size: 10px; color: #ffffff"> - Licensed under GPLv3, <a href="http://oss.netshadow.at/oss/phpfspot/Project" style="font-size: 10px; color: #ffffff">phpfspot</a> - </div> - </body> -{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 --> -<table> - <tr> - <td colspan="3"> - <table style="width: 100%;"> - <tr> - <td class="content_title"> - <b>Photo Index</b> - {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} - </td> - <td class="index_header" style="text-align: right"> - {if $slideshow_link } - <a href="{$slideshow_link}" title="Slideshow" target="_blank"><img src="resources/slideshow.png" /></a> - {/if} - {if $extern_link } - <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a> - {/if} - <a href="{$export_link}" target="_blank" title="this will open a new browser window where you can export this page in several formats"><img src="resources/export.png" /></a> - </td> - </tr> - </table> - </td> - </tr> - <tr> - <td colspan="3"> - <div id="adinfo"></div> - <table class="matrix" id="matrix"> - {section name="row" loop=$rows step=1} - <tr> - {section name="col" loop=$columns step=1} - {if $images[row][col] } - <td class="thumb" onmouseover="setBackGrdColor(this, 'mouseover');" onmouseout="setBackGrdColor(this, 'mouseout');"> - <a href="javascript:showImage({$images[row][col]});" id="{$images[row][col]}" name="image{$img_id[row][col]}" class="thumblink" onclick="click(this);" title="{$img_title[row][col]}"> - <img class="thumb" id="{$images[row][col]}" src="phpfspot_img.php?idx={$images[row][col]}&width={$width}" alt="thumb_{$images[row][col]}" width="{$img_width[row][col]}" height="{$img_height[row][col]}" /> - <br /> - {$img_name[row][col]} - </a> - </div> - {else} - <td> </td> - {/if} - {/section} - </tr> - {/section} - </table> - </td> - </tr> - <tr> - <td style="text-align: left; width: 33%;"> - { if $previous_url == "" } - { if $count != 0 } - <img src="resources/arrow_left_gray.png" alt="first page reached" /> - { /if } - { else } - <a href="{$previous_url}"> - <img src="resources/arrow_left.png" alt="previous photo" /> - </a> - { /if } - </td> - <td style="text-align: center; width: 33%;"> - { if $page_selector == "" } - - { else } - {$page_selector} - { /if} - </td> - <td style="text-align: right; width: 33%;"> - { if $next_url == "" } - { if $count != 0 } - <img src="resources/arrow_right_gray.png" alt="last page reached" /> - { /if } - { else } - <a href="{$next_url}"> - <img src="resources/arrow_right.png" alt="next photo" /> - </a> - { /if} - </td> - </tr> -</table> -<script type="text/javascript"> -<!-- - preloadPhotos(); ---> -</script> -<!-- /Photo Index --> 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 @@ -<table style="width: 100%;"> - <tr> - <td style="vertical-align: middle; text-decoration: underline;"> - <img src="resources/loupe.png" alt="loupe" />Search: - </td> - </tr> - <tr> - <td class="searchfor"> - <table> - <form action="" onsubmit="startSearch(); return false;"> - <tr> - <td>Tag:</td> - <td> - <input type="text" name="searchfor" value="{$searchfor}" size="15" /> - </td> - <td> - <input type="image" src="resources/doit.png" alt="Tag-Search" /> - </td> - </tr> - <tr> - <td>Date:</td> - <td><input type="checkbox" name="consider_date" value="Y" onclick="datesearch();">consider date-search - </tr> - <tr> - <td> </td> - <td>{$from_date} <a href="javascript:showCalendar('from');"><img src="resources/date.png" id="frompic"/></a></td> - </tr> - <tr> - <td> </td> - <td> - {$to_date} <a href="javascript:showCalendar('to');"><img src="resources/date.png" id="topic" /></a> - </td> - <td> - <input type="image" src="resources/doit.png" alt="Tag-Search" /> - </td> - </tr> - <tr> - <td> - Sort-Order: - </td> - <td> - {$sort_field} - </td> - </tr> - </form> - </table> - <div id='calendar'></div> - </td> - </tr> -</table> 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 @@ -<!-- Single photo --> -<table> - <tr> - <td class="content_title" style="text-align: left;"> - <b>Photo {$image_name}</b><br /> - {if $photo_count > 0} - {$photo_number} of {$photo_count} - {if $photo_count == 1} - Photo - {else} - Photos - {/if} - {if $description} - {$description}<br /> - {/if} - {/if} - </td> - <td class="index_header" style="text-align: right;"> - <a href="javascript:autoBrowse();"><img src="resources/slideshow.png" /></a> - {if $extern_link } - <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a> - {/if} - <a href="{$image_url_full}" target="_blank" onclick="click(this);"> - <img src="resources/original.png" alt="original resolution" /> - </a> - </td> - </tr> - <tr> - <td> - <div id='single'> - <table> - <tr> - <td colspan="3"> - { if $next_url == "" } - <a href="javascript:showPhotoIndex();" onclick="click(this);"> - { else } - <a href="{$next_url}" onclick="click(this);"> - { /if } - <img src="{$image_url}" width="{$width}" height="{$height}" alt="photo" /> - </a> - </td> - </tr> - <tr> - <td style="text-align: left; width: 33%;"> - { if $previous_url == "" } - <img src="resources/arrow_left_gray.png" alt="first photo reached" /> - { else } - <a href="{$previous_url}" onclick="click(this);"> - <img src="resources/arrow_left.png" alt="previous photo" /> - </a> - { /if } - </td> - <td style="text-align: center; width: 33%;"> - <a href="javascript:showPhotoIndex({$current});" onclick="click(this);"> - <img src="resources/arrow_up.png" alt="photo index" /> - </a> - </td> - <td style="text-align: right; width: 33%;"> - { if $next_url == "" } - <img src="resources/arrow_right_gray.png" alt="last photo reached" /> - { else } - <a href="{$next_url}" onclick="click(this);" id="next_img" > - <img src="resources/arrow_right.png" alt="next photo" /> - </a> - { /if} - </td> - </tr> - </table> - </div> - </td> - <td style="width: 150px; padding-top: 20px;"> - <div id="photo_details"> - { if $ExifMadeWith } - <u><img src="resources/camera.png" alt="camera icon" /> Image taken with:</u><br /> - {$ExifMadeWith}<br /> - { /if } - { if $ExifMadeOn } - <u><img src="resources/date.png" alt="calendar icon" /> Image made on:</u><br /> - {$ExifMadeOn}<br /> - { /if } - { if $ExifOrigResolution } - <u><img src="resources/image.png" alt="resolution icon" /> Original resolution:</u><br /> - {$ExifOrigResolution}<br /> - { /if } - <u>Size:</u> {$ExifFileSize}<br /> - { if $tags } - <br /> - <u><img src="resources/small_available_tags.png" alt="available tags" /> Tagged with:</u><br /> - { foreach from=$tags key=id item=name } - <a class="smalltag" href="javascript:Tags('add', '{$id}');" onclick="click(this);" onclick="click(this);">{$name}</a><br /> - { /foreach } - { /if } - <hr> - { if $prev_img } - <u><img src="resources/photo.png" alt="photo icon" /> Previous:</u><br /> - <a href="{$previous_url}" onclick="click(this);"> - <img src="phpfspot_img.php?idx={$prev_img}&width={$mini_width}" /><br /> - </a> - { /if} - { if $next_img } - <u><img src="resources/photo.png" alt="photo icon" /> Next:</u><br /> - <a href="{$next_url}" onclick="click(this);" id="next_link"> - <img src="phpfspot_img.php?idx={$next_img}&width={$mini_width}" /><br /> - </a> - { /if} - </div> - </td> - </tr> -</table> -<!-- /Single photo --> 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"} - <body onload="startSlideShow();" style="text-align: center;"> - <div style="margin: 0 auto; padding: 10px;"> - <a href="javascript:window.close();" title="click to close slideshow"> - <img id="slide_img" alt="slideshow_img" /> - </a> - </div> - </body> -{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 @@ -<table> - <tr> - <td style="vertical-align: middle; text-decoration: underline;"> - <img src="resources/available_tags.png" alt="available tags" />Available Tags: - </td> - </tr> - <tr> - <td class="available_tags"> - <div id="available_tags"></div> - </td> - </tr> - <tr> - <td> - <table style="width: 100%;"> - <tr> - <td style="vertical-align: bottom; text-decoration: underline;"> - <img src="resources/selected_tags.png" alt="selected tags" />Selected Tags: - </td> - <td style="vertical-align: bottom; white-space: nowrap;"> - - <input type="radio" name="condition" value="or" onclick="Tags('condition', this);" {if $current_condition == "or" } checked="checked" { /if } title="OR condition" />|| - <input type="radio" name="condition" value="and" onclick="Tags('condition', this);" {if $current_condition == "and" } checked="checked" { /if } title="AND condition" />&& - </td> - </tr> - </table> - </td> - </tr> - <tr> - <td class="selected_tags"> - <div id="selected_tags"></div> - </td> - </tr> - <tr> - <td> </td> - </tr> -</table> 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 @@ -<!-- welcome --> -<table> - <tr> - <td class="index_header" style="text-align: left;"> - phpfspot welcomes you to a dynamic photo gallery for <a href="http://f-spot.org" target="_blank">F-Spot</a><br /> - </td> - </tr> - <tr> - <td> - <div id='single'> - <table> - <tr> - <td> -This application targets to provide an easy way, to presentate your F-Spot<br /> -pictures in the web, in a way where you do not need any of the current<br /> -web2.0 providers or setup complex apps like gallery<br /> -<br /> -You can addept this welcome page in the file "welcome.tpl" in the template<br /> -directory. ;) -<br /><br /> -<a href="javascript:showPhotoIndex();">[ Click here to take a look at your photo index or select a tag from the list on the left ]</a> - </td> - </tr> - </table> - </div> - </td> - </tr> -</table> -<!-- /welcome --> |