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
This commit is contained in:
vdigital
2008-12-16 22:55:08 +00:00
parent c2a47b78a4
commit a7a4a7d2f4
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -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>';
}
}
+1 -1
View File
@@ -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>';
}
+4 -1
View File
@@ -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;}
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; }