diff options
Diffstat (limited to 'themes/default/template/mail')
16 files changed, 348 insertions, 61 deletions
diff --git a/themes/default/template/mail/index.php b/themes/default/template/mail/index.php index 41732f2fd..c8de97f60 100644 --- a/themes/default/template/mail/index.php +++ b/themes/default/template/mail/index.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ diff --git a/themes/default/template/mail/screenshot-clear.png b/themes/default/template/mail/screenshot-clear.png Binary files differnew file mode 100644 index 000000000..ae879604a --- /dev/null +++ b/themes/default/template/mail/screenshot-clear.png diff --git a/themes/default/template/mail/screenshot-dark.png b/themes/default/template/mail/screenshot-dark.png Binary files differnew file mode 100644 index 000000000..2906c4ec8 --- /dev/null +++ b/themes/default/template/mail/screenshot-dark.png diff --git a/themes/default/template/mail/text/html/footer.tpl b/themes/default/template/mail/text/html/footer.tpl index b1f1b9317..da17e4473 100644 --- a/themes/default/template/mail/text/html/footer.tpl +++ b/themes/default/template/mail/text/html/footer.tpl @@ -1,22 +1,23 @@ -</div> <!-- content --> -<div id="copyright"> -<hr> - {'Sent by'|@translate} - <a href="{$GALLERY_URL}">{$GALLERY_TITLE}</a> + {* <!-- end $CONTENT --> *} + </td></tr> - {* Please, do not remove this copyright. If you really want to, - contact us on http://piwigo.org to find a solution on how - to show the origin of the script...*} - - {'Powered by'|@translate} - <a href="http://piwigo.org" class="Piwigo"> - <span class="Piwigo">Piwigo</span></a> - {$VERSION} + <tr><td id="footer"> + {* <!-- begin FOOTER --> *} +{* <!-- Please, do not remove this copyright. If you really want to, +contact us on http://piwigo.org to find a solution on how +to show the origin of the script... --> *} + + {'Sent by'|translate} <a href="{$GALLERY_URL}">{$GALLERY_TITLE}</a> + - {'Powered by'|translate} <a href="{$PHPWG_URL}" class="Piwigo">Piwigo</a> + {if not empty($VERSION)}{$VERSION}{/if} + + - {'Contact'|translate} + <a href="mailto:{$CONTACT_MAIL}?subject={'A comment on your site'|translate|escape:url}">{'Webmaster'|@translate}</a> + {* <!-- end FOOTER --> *} + </td></tr> + </table> - - {'Contact'|@translate} - <a href="mailto:{$MAIL}?subject={$TITLE_MAIL}">{'Webmaster'|@translate}</a> - -</div> <!-- copyright --> -</div> <!-- the_page --> - -</body> -</html> + </td></tr> + </table> + </body> +</html>
\ No newline at end of file diff --git a/themes/default/template/mail/text/html/global-mail-css.tpl b/themes/default/template/mail/text/html/global-mail-css.tpl index 072bcb0be..59a1bde2f 100644 --- a/themes/default/template/mail/text/html/global-mail-css.tpl +++ b/themes/default/template/mail/text/html/global-mail-css.tpl @@ -1,11 +1,105 @@ -/* Global mail css */ - -body {ldelim} font-family: Univers, Helvetica, Optima; font-size:12px; margin:0px; padding:0px; } -#the_page {ldelim} margin:0px; padding:0px; text-align:left;} -#content {ldelim} margin:0px; padding:30px 0px 0px 30px; width:732px;} -hr {ldelim} width:632px; margin-left:0;} -#copyright {ldelim} font-size:10px; margin:0px; padding:48px 0px 32px 62px;} -.PWG {ldelim} font-family:verdana, sans-serif !important; font-size:0.9em; font-weight:normal; letter-spacing:0px;} -h2 {ldelim} padding:7px 15px; width:617px; font-weight:bold;} -img {ldelim} margin:16px; border:16px solid #aaa; -moz-border-radius: 4px; border-radius: 4px 4px; } -img:hover {ldelim} padding: 15px; border: 1px solid yellow; -moz-border-radius: 4px; border-radius: 4px 4px; } +{strip} +/* page */ +body { + font-family:"Verdana", "Helvetica", "Optima", sans-serif; + font-size:12px; + margin:0px; + padding:0px; +} + +html, body, #bodyTable { + width:100%; + height:100%; +} + +/* main block */ +#header { + padding:20px; +} +#header #title { + font-size:26px; + font-weight:bold; +} +#header #subtitle { + font-size:20px; +} +#content { + padding:0 20px 20px 20px; + font-family:"Verdana", "Helvetica", "Optima", sans-serif; + font-size:13px; +} +#footer { + font-size:10px; + padding:5px; +} +#topSpacer { + margin-bottom:20px; +} + +/* images */ +img { + border:none; +} + +h1, h2, h3, h4, h5 { + margin:0.5em 0 0.25em 0; +} +h1 { font-size:26px; } +h2 { font-size:20px; } +h3 { font-size:16px; } +h4 { font-size:12px; } +h5 { font-size:10px; } + +/* paragraphs */ +p { + margin:0.25em 0 0.5em 0; +} +blockquote { + margin-left:10px; + padding-left:10px; + font-family:"Times",serif; + font-size:14px; +} + +/* list */ +ul, ol { + margin:0.5em 0 0.25em 30px; + padding:0; +} +dl { + margin:0.5em 0 0.25em 10px; +} +dt { + margin:0.25em 0 0 0; + font-weight:bold; +} +dd { + margin:0 0 0.25em 10px; +} + +/* tables */ +#content table { + width:100%; + border-spacing:0; + border-collapse:collapse; +} +#content table td { + padding:2px 3px; +} +#content table th { + font-weight:bold; + text-align:center; + padding:4px 0; +} +#content table tfoot td { + font-size:0.8em; +} + +/* line */ +hr { + border-width:0 0 1px 0; + border-color:#ddd; + border-style:solid; + margin:1em; +} +{/strip}
\ No newline at end of file diff --git a/themes/default/template/mail/text/html/header.tpl b/themes/default/template/mail/text/html/header.tpl index e6af4c024..b98f5be18 100644 --- a/themes/default/template/mail/text/html/header.tpl +++ b/themes/default/template/mail/text/html/header.tpl @@ -1,17 +1,29 @@ ------={$BOUNDARY_KEY} -Content-Type: {$CONTENT_TYPE}; charset="{$CONTENT_ENCODING}"; -Content-Transfer-Encoding: 8bit - -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="{$lang_info.code}" dir="{$lang_info.direction}"> -<head> -<title>Piwigo Mail</title> -<meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}"> -<style><!-- /* Mini style for mails */ -{if isset($GLOBAL_MAIL_CSS)}{$GLOBAL_MAIL_CSS}{/if} -{if isset($MAIL_CSS)}{$MAIL_CSS}{/if} ---></style> -</head> -<body> -<div id="the_page"> -<div id="content" class="content"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}"/> + <title>Piwigo Mail</title> + + <style type="text/css"> + {if isset($GLOBAL_MAIL_CSS)}{$GLOBAL_MAIL_CSS}{/if} + {if isset($MAIL_CSS)}{$MAIL_CSS}{/if} + </style> + </head> + + <body> + <table id="bodyTable" cellspacing="0" cellpadding="10" border="0"> + <tr><td align="center" valign="top"> + + <table id="contentTable" cellspacing="0" cellpadding="0" border="0"> + <tr><td id="header"> + {* <!-- begin HEADER --> *} + <div id="title">{$MAIL_TITLE}</div> + {if not empty($MAIL_SUBTITLE)}<div id="subtitle">{$MAIL_SUBTITLE}</div>{/if} + {* <!-- end HEADER --> *} + </td></tr> + + <tr><td id="content"> +{* <!-- use an invisible div with a bottom margin to force the browser +to merge the margin with the element bellow (typically h1/h2/...) --> *} + <div id="topSpacer"></div> + {* <!-- begin CONTENT --> *}
\ No newline at end of file diff --git a/themes/default/template/mail/text/html/index.php b/themes/default/template/mail/text/html/index.php index 41732f2fd..c8de97f60 100644 --- a/themes/default/template/mail/text/html/index.php +++ b/themes/default/template/mail/text/html/index.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ diff --git a/themes/default/template/mail/text/html/mail-css-clear.tpl b/themes/default/template/mail/text/html/mail-css-clear.tpl new file mode 100644 index 000000000..98b0337d9 --- /dev/null +++ b/themes/default/template/mail/text/html/mail-css-clear.tpl @@ -0,0 +1,73 @@ +{strip} +/* page */ +body { + color:#111; +} + +html, body, #bodyTable { + background:#fff; +} +#contentTable { + width:600px; +} + +/* main block */ +#header { + background:#eee; + background-image:radial-gradient(ellipse at center, #fefefe, #e5e5e5); + border-top:4px solid #f70; + text-align:center; + text-shadow:1px 1px 0px #fff; +} +#header #subtitle { + color:#e06900; +} +#content { + background:#fefefe; + border-width:1px; + border-style:solid; + border-color:#ddd #eee; + box-shadow:inset 0 0 20px #eee; +} +#footer { + background:#eee; + border-bottom:2px solid #f70; +} + +/* links */ +a { + color:#f70; + text-decoration:none; +} +a:hover { + text-decoration:underline; +} + +/* images */ +img.photo { + border:10px solid #ddd; +} +img.photo:hover { + border-color:#eee; +} + +/* paragraphs */ +blockquote { + border-left:2px solid #aaa; + border-radius:2px; +} + +/* tables */ +#content table td { + border-bottom:1px solid #efefef; +} +#content table th { + background:#aaa; + color:#fff; + border-right:1px solid #ddd; +} +#content table tfoot td { + background:#eee; + border-right:1px solid #fff; +} +{/strip}
\ No newline at end of file diff --git a/themes/default/template/mail/text/html/mail-css-dark.tpl b/themes/default/template/mail/text/html/mail-css-dark.tpl new file mode 100644 index 000000000..390a7dfb6 --- /dev/null +++ b/themes/default/template/mail/text/html/mail-css-dark.tpl @@ -0,0 +1,87 @@ +{strip} +/* page */ +body { + color:#fff; +} + +html, body, #bodyTable { + background:#111; +} +#contentTable { + width:600px; +} + +/* main block */ +#header { + background:#444; + background-image:radial-gradient(ellipse at center, #555, #333); + border:1px solid #000; + border-top:4px solid #f36; + text-align:center; + text-shadow:1px 1px 0px #000; +} +#header #title { + color:#eee; +} +#header #subtitle { + color:#C9224C; +} +#content { + background:#111; + border-width:1px; + border-style:solid; + border-color:#666 #000; + box-shadow:inset 0 0 20px #333; +} +#footer { + background:#333; + border:1px solid #000; + border-bottom:2px solid #f36; +} + +/* links */ +a { + color:#f36; + text-decoration:none; +} +a:hover { + text-decoration:underline; +} + +/* images */ +img.photo { + border:10px solid #666; +} +img.photo:hover { + border-color:#999; +} + +h1, h2, h3, h4, h5 { + color:#bbb; +} + +/* paragraphs */ +blockquote { + border-left:2px solid #aaa; + border-radius:2px; +} + +/* tables */ +#content table td { + border-bottom:1px solid #999; +} +#content table th { + background:#666; + border-right:1px solid #aaa; +} +#content table tfoot td { + background:#444; + color:#aaa; + border-right:1px solid #aaa; +} + +/* line */ +hr { + border-color:#555; +} +{/strip}
\ No newline at end of file diff --git a/themes/default/template/mail/text/html/notification_admin.tpl b/themes/default/template/mail/text/html/notification_admin.tpl new file mode 100644 index 000000000..f236b8ee6 --- /dev/null +++ b/themes/default/template/mail/text/html/notification_admin.tpl @@ -0,0 +1,9 @@ +{$CONTENT} + +{if isset($TECHNICAL)} +<p style="padding-top:10px;font-size:11px;"> +{'Connected user: %s'|translate:$TECHNICAL.username}<br> +{'IP: %s'|translate:$TECHNICAL.ip}<br> +{'Browser: %s'|translate:$TECHNICAL.user_agent} +</p> +{/if}
\ No newline at end of file diff --git a/themes/default/template/mail/text/html/notification_by_mail.tpl b/themes/default/template/mail/text/html/notification_by_mail.tpl index 9989a32c0..df3e431e1 100644 --- a/themes/default/template/mail/text/html/notification_by_mail.tpl +++ b/themes/default/template/mail/text/html/notification_by_mail.tpl @@ -38,13 +38,13 @@ {/if} <p>{'See you soon,'|@translate}</p> <p style="text-align:center">{$SEND_AS_NAME}</p> +<hr> <p> -<br><hr> {'To unsubscribe'|@translate}{', click on'|@translate} <a href="{$UNSUBSCRIBE_LINK}">{$UNSUBSCRIBE_LINK}</a><br> {'To subscribe'|@translate}{', click on'|@translate} <a href="{$SUBSCRIBE_LINK}">{$SUBSCRIBE_LINK}</a><br> {'If you encounter problems or have any question, please send a message to'|@translate} <a href="mailto:{$CONTACT_EMAIL}?subject={'[NBM] Problems or questions'|@translate}">{$CONTACT_EMAIL}</a><br> -<hr><br> </p> +<hr> {if not empty($recent_posts)} </div> <div id="nbm_recent_post"> diff --git a/themes/default/template/mail/text/index.php b/themes/default/template/mail/text/index.php index 41732f2fd..c8de97f60 100644 --- a/themes/default/template/mail/text/index.php +++ b/themes/default/template/mail/text/index.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ diff --git a/themes/default/template/mail/text/plain/footer.tpl b/themes/default/template/mail/text/plain/footer.tpl index 8574697e6..0f9ef273e 100644 --- a/themes/default/template/mail/text/plain/footer.tpl +++ b/themes/default/template/mail/text/plain/footer.tpl @@ -1,5 +1,7 @@ +{literal} --- +{/literal} +---- {'Sent by'|@translate} "{$GALLERY_TITLE}" {$GALLERY_URL} -{'Contact'|@translate} {$MAIL} -{'Powered by'|@translate} Piwigo {$VERSION} +{'Powered by'|@translate} "Piwigo{if not empty($VERSION)} {$VERSION}{/if}" {$PHPWG_URL} +{'Contact'|@translate}: {$CONTACT_MAIL}
\ No newline at end of file diff --git a/themes/default/template/mail/text/plain/header.tpl b/themes/default/template/mail/text/plain/header.tpl index 6fcc863d2..31d7456fb 100644 --- a/themes/default/template/mail/text/plain/header.tpl +++ b/themes/default/template/mail/text/plain/header.tpl @@ -1,5 +1,6 @@ ------={$BOUNDARY_KEY} -Content-Type: {$CONTENT_TYPE}; charset="{$CONTENT_ENCODING}"; -Content-Transfer-Encoding: 8bit{literal} - -{/literal}{*note that there must be an empty line to separate the mime headers*} +{$MAIL_TITLE} +{if not empty($MAIL_SUBTITLE)}{$MAIL_SUBTITLE} +{/if} +---- +{literal} +{/literal}
\ No newline at end of file diff --git a/themes/default/template/mail/text/plain/index.php b/themes/default/template/mail/text/plain/index.php index 41732f2fd..c8de97f60 100644 --- a/themes/default/template/mail/text/plain/index.php +++ b/themes/default/template/mail/text/plain/index.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ diff --git a/themes/default/template/mail/text/plain/notification_admin.tpl b/themes/default/template/mail/text/plain/notification_admin.tpl new file mode 100644 index 000000000..e6970842f --- /dev/null +++ b/themes/default/template/mail/text/plain/notification_admin.tpl @@ -0,0 +1,8 @@ +{$CONTENT} + +{if isset($TECHNICAL)} +----------------------------- +{'Connected user: %s'|translate:$TECHNICAL.username} +{'IP: %s'|translate:$TECHNICAL.ip} +{'Browser: %s'|translate:$TECHNICAL.user_agent} +{/if}
\ No newline at end of file |