Changeset 25344 for trunk/themes


Ignore:
Timestamp:
Nov 5, 2013, 8:23:29 PM (11 years ago)
Author:
mistic100
Message:

feature 2965: apply new template on pwg_mail()
TODO : review other mail functions, configuration GUI

Location:
trunk/themes/default/template/mail/text
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/mail/text/html/footer.tpl

    r5287 r25344  
    1 </div> <!-- content -->
    2 <div id="copyright">
    3 <hr>
    4   {'Sent by'|@translate}
    5   <a href="{$GALLERY_URL}">{$GALLERY_TITLE}</a>
     1            {* <!-- end $CONTENT --> *}
     2          </td></tr>
    63
    7  {* Please, do not remove this copyright. If you really want to,
    8       contact us on http://piwigo.org to find a solution on how
    9       to show the origin of the script...*}
    10   - {'Powered by'|@translate}
    11   <a href="http://piwigo.org" class="Piwigo">
    12   <span class="Piwigo">Piwigo</span></a>
    13   {$VERSION}
     4          <tr><td id="footer">
     5            {* <!-- begin FOOTER --> *}
     6{* <!-- Please, do not remove this copyright. If you really want to,
     7contact us on http://piwigo.org to find a solution on how
     8to show the origin of the script... --> *}
     9     
     10            {'Sent by'|translate} <a href="{$GALLERY_URL}">{$GALLERY_TITLE}</a>
     11            - {'Powered by'|translate} <a href="{$PHPWG_URL}" class="Piwigo">Piwigo</a>
     12            {if not empty($VERSION)}{$VERSION}{/if}
     13           
     14            - {'Contact'|translate}
     15            <a href="mailto:{$CONTACT_MAIL}?subject={'A comment on your site'|translate|escape:url}">{'Webmaster'|@translate}</a>
     16            {* <!-- end FOOTER --> *}
     17          </td></tr>
     18        </table>
    1419
    15   - {'Contact'|@translate}
    16   <a href="mailto:{$MAIL}?subject={$TITLE_MAIL}">{'Webmaster'|@translate}</a>
    17 
    18 </div> <!-- copyright -->
    19 </div> <!-- the_page -->
    20 
    21 </body>
     20      </td></tr>
     21    </table>
     22  </body>
    2223</html>
  • trunk/themes/default/template/mail/text/html/global-mail-css.tpl

    r5695 r25344  
    1 /* Global mail css */
     1{strip}
     2/* page */
     3body {
     4  font-family:"Verdana", "Helvetica", "Optima", sans-serif;
     5  font-size:12px;
     6  margin:0px;
     7  padding:0px;
     8}
    29
    3 body {ldelim} font-family: Univers, Helvetica, Optima; font-size:12px; margin:0px; padding:0px; }
    4 #the_page {ldelim} margin:0px; padding:0px; text-align:left;}
    5 #content {ldelim} margin:0px; padding:30px 0px 0px 30px; width:732px;}
    6 hr {ldelim} width:632px; margin-left:0;}
    7 #copyright {ldelim} font-size:10px; margin:0px; padding:48px 0px 32px 62px;}
    8 .PWG {ldelim} font-family:verdana, sans-serif !important; font-size:0.9em; font-weight:normal; letter-spacing:0px;}
    9 h2 {ldelim} padding:7px 15px; width:617px; font-weight:bold;}
    10 img {ldelim} margin:16px; border:16px solid #aaa; -moz-border-radius: 4px; border-radius: 4px 4px; }
    11 img:hover {ldelim} padding: 15px; border: 1px solid yellow; -moz-border-radius: 4px; border-radius: 4px 4px; }
     10html, body, #bodyTable {
     11  width:100%;
     12  height:100%;
     13}
     14
     15/* main block */
     16#header {
     17  padding:20px;
     18}
     19#header #title {
     20  font-size:26px;
     21  font-weight:bold;
     22}
     23#header #subtitle {
     24  font-size:20px;
     25}
     26#content {
     27  padding:0 20px 20px 20px;
     28}
     29#footer {
     30  font-size:10px;
     31  padding:5px;
     32}
     33#topSpacer {
     34  margin-bottom:20px;
     35}
     36
     37/* images */
     38img {
     39  border:none;
     40}
     41
     42h1, h2, h3, h4, h5 {
     43  margin:0.5em 0 0.25em 0;
     44}
     45h1 { font-size:26px; }
     46h2 { font-size:20px; }
     47h3 { font-size:16px; }
     48h4 { font-size:12px; }
     49h5 { font-size:10px; }
     50
     51/* paragraphs */
     52p {
     53  margin:0.25em 0 0.5em 0;
     54}
     55blockquote {
     56  margin-left:10px;
     57  padding-left:10px;
     58  font-family:"Times",serif;
     59  font-size:14px;
     60}
     61
     62/* list */
     63ul, ol {
     64  margin:0.5em 0 0.25em 30px;
     65  padding:0;
     66}
     67dl {
     68  margin:0.5em 0 0.25em 10px;
     69}
     70dt {
     71  margin:0.25em 0 0 0;
     72  font-weight:bold;
     73}
     74dd {
     75  margin:0 0 0.25em 10px;
     76}
     77
     78/* tables */
     79#content table {
     80  width:100%;
     81  border-spacing:0;
     82  border-collapse:collapse;
     83}
     84#content table td {
     85  padding:2px 3px;
     86}
     87#content table th {
     88  font-weight:bold;
     89  text-align:center;
     90  padding:4px 0;
     91}
     92#content table tfoot td {
     93  font-size:0.8em;
     94}
     95
     96/* line */
     97hr {
     98  border-width:0 0 1px 0;
     99  border-color:#ddd;
     100  border-style:solid;
     101  margin:1em;
     102}
     103{/strip}
  • trunk/themes/default/template/mail/text/html/header.tpl

    r24951 r25344  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
     1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    22<html lang="{$lang_info.code}" dir="{$lang_info.direction}">
    3 <head>
    4 <title>Piwigo Mail</title>
    5 <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
    6 <style><!-- /* Mini style for mails */
    7 {if isset($GLOBAL_MAIL_CSS)}{$GLOBAL_MAIL_CSS}{/if}
    8 {if isset($MAIL_CSS)}{$MAIL_CSS}{/if}
    9 --></style>
    10 </head>
    11 <body>
    12 <div id="the_page">
    13 <div id="content" class="content">
     3  <head>
     4    <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}"/>
     5    <title>Piwigo Mail</title>
     6
     7    <style type="text/css">
     8    {if isset($GLOBAL_MAIL_CSS)}{$GLOBAL_MAIL_CSS}{/if}
     9    {if isset($MAIL_CSS)}{$MAIL_CSS}{/if}
     10    </style>
     11  </head>
     12
     13  <body>
     14    <table id="bodyTable" cellspacing="0" cellpadding="10" border="0">
     15      <tr><td align="center" valign="top">
     16
     17        <table id="contentTable" cellspacing="0" cellpadding="0" border="0">
     18          <tr><td id="header">
     19            {* <!-- begin HEADER --> *}
     20            <div id="title">{$MAIL_TITLE}</div>
     21            {if not empty($MAIL_SUBTITLE)}<div id="subtitle">{$MAIL_SUBTITLE}</div>{/if}
     22            {* <!-- end HEADER --> *}
     23          </td></tr>
     24
     25          <tr><td id="content">
     26{* <!-- use an invisible div with a bottom margin to force the browser
     27to merge the margin with the element bellow (typically h1/h2/...) --> *}
     28            <div id="topSpacer"></div>
     29            {* <!-- begin CONTENT --> *}
  • trunk/themes/default/template/mail/text/plain/footer.tpl

    r9354 r25344  
     1{literal}
    12
    2 --
     3{/literal}
     4----
    35{'Sent by'|@translate} "{$GALLERY_TITLE}" {$GALLERY_URL}
    4 {'Contact'|@translate} {$MAIL}
    5 {'Powered by'|@translate} Piwigo {$VERSION}
     6{'Powered by'|@translate} "Piwigo{if not empty($VERSION)} {$VERSION}{/if}" {$PHPWG_URL}
     7{'Contact'|@translate}: {$CONTACT_MAIL}
  • trunk/themes/default/template/mail/text/plain/header.tpl

    r24951 r25344  
     1{$MAIL_TITLE}
     2{if not empty($MAIL_SUBTITLE)}{$MAIL_SUBTITLE}
     3{/if}
     4----
    15{literal}
    2 
    3 {/literal}{*note that there must be an empty line to separate the mime headers*}
     6{/literal}
Note: See TracChangeset for help on using the changeset viewer.