diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-04-09 23:24:34 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-04-09 23:24:34 +0000 |
commit | 5f4f11299a8985557afd1ee4f68432cea40e2d7c (patch) | |
tree | 211f936fbf41f3b5bab3317f5ef65518996ae7e6 | |
parent | bb5821e577cf0b88364eb6dae5f568f0edf4d856 (diff) |
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
-rw-r--r-- | category.php | 2 | ||||
-rw-r--r-- | include/section_init.inc.php | 2 | ||||
-rw-r--r-- | template/yoga/picture.tpl | 2 | ||||
-rw-r--r-- | 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 @@ <div class="randomButtons"> <a href="{U_SLIDESHOW}" title="{lang:slideshow}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/slideshow.png" class="button" alt="{lang:slideshow}"></a> - <a href="{U_METADATA}" title="{lang:picture_show_metadata}"><img src="{pwg_root}{themeconf:icon_dir}/metadata.png" class="button" alt="{lang:picture_show_metadata}"></a> + <a href="{U_METADATA}" title="{lang:picture_show_metadata}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/metadata.png" class="button" alt="{lang:picture_show_metadata}"></a> <!-- BEGIN representative --> <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 --> 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; } |