diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-03-22 01:01:47 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-03-22 01:01:47 +0000 |
commit | 0971ce48d217b7cc8081ae70c4b041ab23fdf29c (patch) | |
tree | 841bd14e9c2a19c207fb8479b1a086112795d04a /template | |
parent | 3609c224c74f50a9049524ebedc996ddd1187108 (diff) |
URL rewriting: capable of fully working with urls without ?
URL rewriting: works with image file instead of image id (change
make_picture_url to generate urls with file name instead of image id)
URL rewriting: completely works with category/best_rated and
picture/best_rated/534 (change 'category.php?' to 'category' in make_index_url
and 'picture.php?' to 'picture' in make_picture_url to see it)
fix: picture category display in upper bar
fix: function rate_picture variables and use of the new user type
fix: caddie icon appears now on category page
fix: admin element_set sql query was using storage_category_id column
(column has moved to #image_categories)
fix: replaced some old $_GET[xxx] with $page[xxx]
fix: pictures have metadata url (use ? parameter - might change later)
git-svn-id: http://piwigo.org/svn/trunk@1092 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template')
-rw-r--r-- | template/yoga/category.tpl | 16 | ||||
-rw-r--r-- | template/yoga/footer.tpl | 6 | ||||
-rw-r--r-- | template/yoga/header.tpl | 16 | ||||
-rw-r--r-- | template/yoga/picture.tpl | 24 | ||||
-rw-r--r-- | template/yoga/theme/clear/themeconf.inc.php | 6 | ||||
-rw-r--r-- | template/yoga/theme/dark/themeconf.inc.php | 6 |
6 files changed, 37 insertions, 37 deletions
diff --git a/template/yoga/category.tpl b/template/yoga/category.tpl index 35cb29c88..5705d5824 100644 --- a/template/yoga/category.tpl +++ b/template/yoga/category.tpl @@ -91,8 +91,8 @@ <input type="submit" name="login" value="{lang:submit}"> </p> <ul class="actions"> - <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}"><img src="{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li> - <li><a href="{U_REGISTER}" title="{lang:Create a new account}"><img src="{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li> + <li><a href="{U_LOST_PASSWORD}" title="{lang:Forgot your password?}"><img src="{pwg_root}{themeconf:icon_dir}/lost_password.png" class="button" alt="{lang:Forgot your password?}"></a></li> + <li><a href="{U_REGISTER}" title="{lang:Create a new account}"><img src="{pwg_root}{themeconf:icon_dir}/register.png" class="button" alt="{lang:register}"/></a></li> </ul> </fieldset> @@ -119,25 +119,25 @@ <!-- END preferred_image_order --> <!-- BEGIN caddie --> - <li><a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a></li> + <li><a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{pwg_root}{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a></li> <!-- END caddie --> <!-- BEGIN edit --> - <li><a href="{edit.URL}" title="{lang:edit category informations}"><img src="{themeconf:icon_dir}/category_edit.png" class="button" alt="{lang:edit}"/></a></li> + <li><a href="{edit.URL}" title="{lang:edit category informations}"><img src="{pwg_root}{themeconf:icon_dir}/category_edit.png" class="button" alt="{lang:edit}"/></a></li> <!-- END edit --> <!-- BEGIN search_rules --> - <li><a href="{search_rules.URL}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{lang:Search rules}"><img src="{themeconf:icon_dir}/search_rules.png" class="button" alt="(?)"></a></li> + <li><a href="{search_rules.URL}" style="border:none;" onclick="popuphelp(this.href); return false;" title="{lang:Search rules}"><img src="{pwg_root}{themeconf:icon_dir}/search_rules.png" class="button" alt="(?)"></a></li> <!-- END search_rules --> <!-- BEGIN mode_normal --> - <li><a href="{mode_normal.URL}" title="{lang:mode_normal_hint}"><img src="{themeconf:icon_dir}/normal_mode.png" class="button" alt="{lang:mode_normal_hint}"></a></li> + <li><a href="{mode_normal.URL}" title="{lang:mode_normal_hint}"><img src="{pwg_root}{themeconf:icon_dir}/normal_mode.png" class="button" alt="{lang:mode_normal_hint}"></a></li> <!-- END mode_normal --> <!-- BEGIN mode_posted --> - <li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}"><img src="{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li> + <li><a href="{mode_posted.URL}" title="{lang:mode_posted_hint}"><img src="{pwg_root}{themeconf:icon_dir}/calendar.png" class="button" alt="{lang:mode_posted_hint}"></a></li> <!-- END mode_posted --> <!-- BEGIN mode_created --> - <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}"><img src="{themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li> + <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}"><img src="{pwg_root}{themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li> <!-- END mode_created --> </ul> diff --git a/template/yoga/footer.tpl b/template/yoga/footer.tpl index 9638ba422..44d905995 100644 --- a/template/yoga/footer.tpl +++ b/template/yoga/footer.tpl @@ -1,16 +1,16 @@ <div id="copyright"> <!-- BEGIN debug --> - {L_GEN_TIME} {debug.TIME} ({debug.NB_QUERIES} {L_SQL_QUERIES_IN} {debug.SQL_TIME}) - + {lang:generation_time} {debug.TIME} ({debug.NB_QUERIES} {lang:sql_queries_in} {debug.SQL_TIME}) - <!-- END debug --> <!-- Please, do not remove this copyright. If you really want to, contact us on http://phpwebgallery.net to find a solution on how to show the origin of the script...--> - {L_POWERED_BY} <a href="http://www.phpwebgallery.net" class="back">PhpWebGallery</a> + {lang:powered_by} <a href="http://www.phpwebgallery.net" class="back">PhpWebGallery</a> {VERSION} <!-- BEGIN contact --> - - {L_SEND_MAIL} + - {lang:send_mail} <a href="mailto:{contact.MAIL}?subject={L_TITLE_MAIL}">{lang:Webmaster}</a> <!-- END contact --> diff --git a/template/yoga/header.tpl b/template/yoga/header.tpl index ccf80d74f..94b401e5c 100644 --- a/template/yoga/header.tpl +++ b/template/yoga/header.tpl @@ -3,14 +3,14 @@ <html lang="{LANG}" dir="{DIR}"> <head> <meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}"> -<link rel="shortcut icon" type="image/x-icon" href="template-common/favicon.ico" /> -<link rel="stylesheet" type="text/css" href="template/{themeconf:template}/default-layout.css"> +<link rel="shortcut icon" type="image/x-icon" href="{pwg_root}template-common/favicon.ico" /> +<link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/default-layout.css"> <!-- the next css is used to fix khtml (Konqueror/Safari) issue the "text/nonsense" prevents gecko based browsers to load it --> -<link rel="stylesheet" type="text/nonsense" href="template/{themeconf:template}/fix-khtml.css"> -<link rel="stylesheet" type="text/css" media="print" href="template/{themeconf:template}/print.css"> -<link rel="stylesheet" type="text/css" href="template/{themeconf:template}/default-colors.css"> -<link rel="stylesheet" type="text/css" href="template/{themeconf:template}/theme/{themeconf:theme}/theme.css"> +<link rel="stylesheet" type="text/nonsense" href="{pwg_root}template/{themeconf:template}/fix-khtml.css"> +<link rel="stylesheet" type="text/css" media="print" href="{pwg_root}template/{themeconf:template}/print.css"> +<link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/default-colors.css"> +<link rel="stylesheet" type="text/css" href="{pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/theme.css"> <!-- BEGIN next --> <link rel="prefetch" href="{next.U_IMG_SRC}"> <!-- END next --> @@ -18,9 +18,9 @@ the "text/nonsense" prevents gecko based browsers to load it --> <meta http-equiv="refresh" content="{REFRESH_TIME};url={U_REFRESH}"> <!-- END refresh --> <title>{GALLERY_TITLE}:{PAGE_TITLE}</title> -<script type="text/javascript" src="include/scripts.js"></script> +<script type="text/javascript" src="{pwg_root}include/scripts.js"></script> <!--[if gte IE 5.5000]> -<script type="text/javascript" src="include/pngfix.js"></script> +<script type="text/javascript" src="{pwg_root}include/pngfix.js"></script> <![endif]--> </head> diff --git a/template/yoga/picture.tpl b/template/yoga/picture.tpl index f89eadf64..50fcf5f5f 100644 --- a/template/yoga/picture.tpl +++ b/template/yoga/picture.tpl @@ -14,38 +14,38 @@ <div id="imageToolBar"> <div class="randomButtons"> - <a href="{U_SLIDESHOW}" title="{L_SLIDESHOW}" rel="nofollow"><img src="{themeconf:icon_dir}/slideshow.png" class="button" alt="{L_SLIDESHOW}"></a> - <a href="{U_METADATA}" title="{L_PICTURE_METADATA}"><img src="{themeconf:icon_dir}/metadata.png" class="button" alt="{L_PICTURE_METADATA}"></a> + <a href="{U_SLIDESHOW}" title="{L_SLIDESHOW}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/slideshow.png" class="button" alt="{L_SLIDESHOW}"></a> + <a href="{U_METADATA}" title="{L_PICTURE_METADATA}"><img src="{pwg_root}{themeconf:icon_dir}/metadata.png" class="button" alt="{L_PICTURE_METADATA}"></a> <!-- BEGIN representative --> - <a href="{representative.URL}" title="{lang:set as category representative}"><img src="{themeconf:icon_dir}/representative.png" class="button" alt="{lang:representative}"/></a> + <a href="{representative.URL}" title="{lang:set as category representative}"><img src="{pwg_root}{themeconf:icon_dir}/representative.png" class="button" alt="{lang:representative}"/></a> <!-- END representative --> <!-- BEGIN favorite --> <a href="{favorite.U_FAVORITE}" title="{favorite.FAVORITE_HINT}"><img src="{favorite.FAVORITE_IMG}" class="button" alt="{favorite.FAVORITE_ALT}"></a> <!-- END favorite --> <!-- BEGIN download --> - <a href="{download.U_DOWNLOAD}" title="{L_DOWNLOAD}"><img src="{themeconf:icon_dir}/save.png" class="button" alt="{L_DOWNLOAD}"></a> + <a href="{download.U_DOWNLOAD}" title="{L_DOWNLOAD}"><img src="{pwg_root}{themeconf:icon_dir}/save.png" class="button" alt="{L_DOWNLOAD}"></a> <!-- END download --> <!-- BEGIN admin --> - <a href="{U_ADMIN}" title="{L_ADMIN}"><img src="{themeconf:icon_dir}/preferences.png" class="button" alt="{L_ADMIN}"></a> + <a href="{U_ADMIN}" title="{L_ADMIN}"><img src="{pwg_root}{themeconf:icon_dir}/preferences.png" class="button" alt="{L_ADMIN}"></a> <!-- END admin --> <!-- BEGIN caddie --> - <a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a> + <a href="{caddie.URL}" title="{lang:add to caddie}"><img src="{pwg_root}{themeconf:icon_dir}/caddie_add.png" class="button" alt="{lang:caddie}"/></a> <!-- END caddie --> </div> <div class="navButtons"> <!-- BEGIN last --> - <a class="navButton prev" href="{last.U_IMG}" rel="last"><img src="{themeconf:icon_dir}/last.png" class="button" alt="{lang:last_page}"></a> + <a class="navButton prev" href="{last.U_IMG}" rel="last"><img src="{pwg_root}{themeconf:icon_dir}/last.png" class="button" alt="{lang:last_page}"></a> <!-- END last --> <!-- BEGIN next --> - <a class="navButton next" href="{next.U_IMG}" title="{L_NEXT_IMG}{next.TITLE_IMG}" rel="next"><img src="{themeconf:icon_dir}/right.png" class="button" alt="next"></a> + <a class="navButton next" href="{next.U_IMG}" title="{L_NEXT_IMG}{next.TITLE_IMG}" rel="next"><img src="{pwg_root}{themeconf:icon_dir}/right.png" class="button" alt="next"></a> <!-- END next --> - <a class="navButton up" href="{U_UP}" title="{L_UP_HINT}" rel="up"><img src="{themeconf:icon_dir}/up.png" class="button" alt="{L_UP_ALT}"></a> + <a class="navButton up" href="{U_UP}" title="{L_UP_HINT}" rel="up"><img src="{pwg_root}{themeconf:icon_dir}/up.png" class="button" alt="{L_UP_ALT}"></a> <!-- BEGIN previous --> - <a class="navButton prev" href="{previous.U_IMG}" title="{L_PREV_IMG}{previous.TITLE_IMG}" rel="prev"><img src="{themeconf:icon_dir}/left.png" class="button" alt="previous"></a> + <a class="navButton prev" href="{previous.U_IMG}" title="{L_PREV_IMG}{previous.TITLE_IMG}" rel="prev"><img src="{pwg_root}{themeconf:icon_dir}/left.png" class="button" alt="previous"></a> <!-- END previous --> <!-- BEGIN first --> - <a class="navButton prev" href="{first.U_IMG}" rel="first"><img src="{themeconf:icon_dir}/first.png" class="button" alt="{lang:first_page}"></a> + <a class="navButton prev" href="{first.U_IMG}" rel="first"><img src="{pwg_root}{themeconf:icon_dir}/first.png" class="button" alt="{lang:first_page}"></a> <!-- END first --> </div> @@ -170,7 +170,7 @@ <!-- BEGIN delete --> <p class="userCommentDelete"> <a href="{comments.comment.delete.U_COMMENT_DELETE}" title="{L_DELETE_COMMENT}"> - <img src="{themeconf:icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{L_DELETE}]"/> + <img src="{pwg_root}{themeconf:icon_dir}/delete.png" class="button" style="border:none;vertical-align:middle; margin-left:5px;" alt="[{L_DELETE}]"/> </a> </p> <!-- END delete --> diff --git a/template/yoga/theme/clear/themeconf.inc.php b/template/yoga/theme/clear/themeconf.inc.php index 314e697c4..10b5d104b 100644 --- a/template/yoga/theme/clear/themeconf.inc.php +++ b/template/yoga/theme/clear/themeconf.inc.php @@ -2,8 +2,8 @@ $themeconf = array( 'template' => 'yoga', 'theme' => 'clear', - 'icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon', - 'admin_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/admin', - 'mime_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/mimetypes/' + 'icon_dir' => 'template/yoga/icon', + 'admin_icon_dir' => 'template/yoga/icon/admin', + 'mime_icon_dir' => 'template/yoga/icon/mimetypes/' ); ?> diff --git a/template/yoga/theme/dark/themeconf.inc.php b/template/yoga/theme/dark/themeconf.inc.php index 784920150..9785a2916 100644 --- a/template/yoga/theme/dark/themeconf.inc.php +++ b/template/yoga/theme/dark/themeconf.inc.php @@ -2,8 +2,8 @@ $themeconf = array( 'template' => 'yoga', 'theme' => 'dark', - 'icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon', - 'admin_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/admin', - 'mime_icon_dir' => PHPWG_ROOT_PATH.'template/yoga/icon/mimetypes/' + 'icon_dir' => 'template/yoga/icon', + 'admin_icon_dir' => 'template/yoga/icon/admin', + 'mime_icon_dir' => 'template/yoga/icon/mimetypes/' ); ?> |