aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-12-16 22:53:03 +0000
committervdigital <vdigital@piwigo.org>2008-12-16 22:53:03 +0000
commit95609895c98aeb7790ed1025ba6aa176d8854c5c (patch)
tree62c331a5576a660f13af9886cc7cd5128cd851dd
parent4592882498e8f3684acb0c4e598f1a83ab0092ac (diff)
Border removal in mails on thumbnails (2). Need further tests.
git-svn-id: http://piwigo.org/svn/branches/2.0@2994 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_modify.php2
-rw-r--r--include/functions_mail.inc.php2
-rw-r--r--template/yoga/theme/Sylvia/mail-css.tpl5
3 files changed, 6 insertions, 3 deletions
diff --git a/admin/cat_modify.php b/admin/cat_modify.php
index b0876ecb8..01a7c2efc 100644
--- a/admin/cat_modify.php
+++ b/admin/cat_modify.php
@@ -471,7 +471,7 @@ SELECT id, file, path, tn_ext
'image_file' => $element['file'],
'category' => $category
))
- .'"><img src="'.get_thumbnail_url($element).'"/></a>';
+ .'" class="thumblnk"><img src="'.get_thumbnail_url($element).'"/></a>';
}
}
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php
index c6a8e337f..5b917a7cf 100644
--- a/include/functions_mail.inc.php
+++ b/include/functions_mail.inc.php
@@ -710,7 +710,7 @@ function pwg_mail($to, $args = array())
$content.= '<p>'.
nl2br(
preg_replace("/(http:\/\/)([^\s,]*)/i",
- "<a href='$1$2'>$1$2</a>",
+ "<a href='$1$2' class='thumblnk'>$1$2</a>",
htmlspecialchars($args['content']))).
'</p>';
}
diff --git a/template/yoga/theme/Sylvia/mail-css.tpl b/template/yoga/theme/Sylvia/mail-css.tpl
index 7ccd0fbae..8168abba1 100644
--- a/template/yoga/theme/Sylvia/mail-css.tpl
+++ b/template/yoga/theme/Sylvia/mail-css.tpl
@@ -10,4 +10,7 @@ h2 {ldelim} color:#f70;background: transparent url({$ROOT_URL}template/{$themeco
img {ldelim} margin: 16px; border: 16px solid #444; -moz-border-radius: 4px; border-radius: 4px 4px; }
img:hover {ldelim} padding: 15px; border: 0; background-color:#222;-moz-border-radius: 4px; border-radius: 4px 4px; }
a {ldelim} color: #f70; background-color: transparent; border:0; text-decoration: none;}
-a:hover {ldelim} color: #F30; border-bottom: 1px solid #FF3363;} \ No newline at end of file
+a:hover {ldelim} color: #F33; border-bottom: 1px solid #FF3363;}
+a.thumblnk:hover {ldelim} border:0;}
+a.Piwigo {ldelim} font-family: verdana, arial, helvetica, sans-serif; color : #F33; text-decoration: none; border: 0; }
+a.Piwigo:hover {ldelim} border-bottom: 1px solid #FF3363; } \ No newline at end of file