From 5f4f11299a8985557afd1ee4f68432cea40e2d7c Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 9 Apr 2007 23:24:34 +0000 Subject: [PATCH] permalink and category.php redirections are permanent (http code 301) instead of temporary (301) added rel nofollow for the metadata link on picture page changed h2 background color style in dark/mail-css (was not readable when images are not downloaded) git-svn-id: http://piwigo.org/svn/branches/branch-1_7@1949 68402e56-0260-453c-a942-63ccdbb3a9ee --- category.php | 2 +- include/section_init.inc.php | 2 +- template/yoga/picture.tpl | 2 +- template/yoga/theme/dark/mail-css.tpl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/category.php b/category.php index ef7098a4d..eefb90236 100644 --- a/category.php +++ b/category.php @@ -60,7 +60,7 @@ if ( isset($_GET['cat']) ) $url = make_index_url($url_params); if (!headers_sent()) { - set_status_header(302); + set_status_header(301); redirect_http( $url ); } redirect ( $url ); diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 00c8c9137..9b16f937b 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -749,7 +749,7 @@ if ( 'categories'==$page['section'] and isset($page['category']) ) ); if (!headers_sent()) { // this is a permanent redirection - set_status_header(302); + set_status_header(301); redirect_http( $redirect_url ); } redirect( $redirect_url ); diff --git a/template/yoga/picture.tpl b/template/yoga/picture.tpl index d94ea8af6..542f8e952 100644 --- a/template/yoga/picture.tpl +++ b/template/yoga/picture.tpl @@ -18,7 +18,7 @@
{lang:slideshow} - {lang:picture_show_metadata} + {lang:picture_show_metadata} {lang:representative} diff --git a/template/yoga/theme/dark/mail-css.tpl b/template/yoga/theme/dark/mail-css.tpl index 602a482b4..38a73423d 100644 --- a/template/yoga/theme/dark/mail-css.tpl +++ b/template/yoga/theme/dark/mail-css.tpl @@ -7,7 +7,7 @@ body{background-color:#444; color:#fff;} #content {background: transparent url({pwg_root}template/{themeconf:template}/mail/text/html/images/header-bg.png) no-repeat scroll left top;} #copyright {background: transparent url({pwg_root}template/{themeconf:template}/mail/text/html/images/footer-bg.png) no-repeat scroll left bottom; color: #69c;} -h2 { background-color: #ddd;color:#fff48e;background-image: url({pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/images/tableh1_bg.png);} +h2 { background-color: #333;color:#fff48e;background-image: url({pwg_root}template/{themeconf:template}/theme/{themeconf:theme}/images/tableh1_bg.png);} img { margin: 16px; border: 16px solid #111; -moz-border-radius: 4px; border-radius: 4px 4px; } img:hover { padding: 15px; border: 1px solid yellow;background-color:#444;-moz-border-radius: 4px; border-radius: 4px 4px; } a { color: #fff48e; background: transparent;border-bottom:1px dotted #005e89; }