aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-12-16 22:55:08 +0000
committervdigital <vdigital@piwigo.org>2008-12-16 22:55:08 +0000
commita7a4a7d2f4f81602524e843bb3308dcb09502394 (patch)
treeef075bda83dff4b4578605218ffa821b25f891fd
parentc2a47b78a4b95409309f689a08e0b4fda2b2ea42 (diff)
Border removal in mails on thumbnails (2). Need further tests.
merge -c2994 from branch 2.0 to trunk git-svn-id: http://piwigo.org/svn/trunk@2995 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