Ignore:
Timestamp:
Nov 24, 2013, 6:09:57 PM (10 years ago)
Author:
mistic100
Message:

very big update for Piwigo 2.6

Location:
extensions/UserCollections/template/text
Files:
2 added
1 moved

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/template/text/html/mail.tpl

    r25674 r25678  
    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    2 <html>
    3 <head>
    4   <title>Piwigo Mail</title>
    5   <meta http-equiv="Content-Type" content="text/html; charset={$CONTENT_ENCODING}">
    6  
    7   {math assign=tn_width equation="min(x,150)"  x=$derivative_params->max_width()}
    8   <style type="text/css">{strip}<!--
    9   {$UC_MAIL_CSS}
    10   #the_image a {ldelim}
     1{math assign=tn_width equation="min(x,150)"  x=$derivative_params->max_width()}
     2<style type="text/css">{strip}
     3#contentTable {
     4  width:{math equation="x*4+200" x=$tn_width}px;
     5}
     6
     7#the_image {
     8  text-align:center;
     9  margin:1em 0;
     10}
     11  #the_image a {
     12    border:none;
     13  }
     14  #the_image img {
    1115    width:{$tn_width}px;
    1216    height:{$tn_width}px;
    1317  }
    14   #the_page {ldelim}
    15     width:{math equation="x*4+120" x=$tn_width}px;
    16   }
    17   -->{/strip}</style>
    18 </head>
    1918
    20 <body>
    21 <div id="the_page">
     19#button {
     20  margin-top:2em;
     21  text-align:center;
     22}
    2223
    23 <div id="the_header">
    24 <b>{$MAIL_TITLE}</b>
    25 </div>
    26 
    27 <div id="the_content">
     24#button  a {
     25  padding:8px 15px;
     26  background:#A80D24;
     27  color:#fff;
     28  border:1px solid #CE2E5A;
     29  text-decoration:none;
     30  font-size:14px;
     31  font-weight:bold;
     32}
     33{/strip}</style>
    2834
    2935<p>
    30   {'Hello <b>%s</b>, %s sent you a photos collection from <a href="%s">%s</a>'|@translate|sprintf:$PARAMS.recipient_name:$PARAMS.sender_name:$GALLERY_URL:$GALLERY_TITLE}
     36  {'Hello <b>%s</b>, %s sent you a photos collection from <a href="%s">%s</a>'|translate:$PARAMS.recipient_name:$PARAMS.sender_name:$GALLERY_URL:$GALLERY_TITLE}
    3137</p>
    3238
     39{if isset($THUMBNAILS)}
    3340<p id="the_image">
    34 {foreach from=$thumbnails item=element}
    35   <a href="{$element.URL}">
    36     <span>{$element.NAME|truncate:25:"..."}</span>
    37     <img src="{$element.THUMB}" alt="{$element.TN_ALT}">
     41{foreach from=$THUMBNAILS item=element}
     42  <a href="{$element.URL}" title="{$element.NAME|escape:html}">
     43    <img src="{$element.THUMB}" alt="{$element.TN_ALT|escape:html}" class="photo">
    3844  </a>
    3945{/foreach}
    4046</p>
     47{/if}
    4148
    4249{if $PARAMS.message}
    43 <p>
    44   <blockquote>{$PARAMS.message}</blockquote>
    45 </p>
     50<blockquote>{$PARAMS.message}</blockquote>
    4651{/if}
    4752
    48 <p class="button">
    49   <a href="{$COL_URL}">{'Click here to view the complete collection'|@translate}</a>
     53<p id="button">
     54  <a href="{$COL_URL}">{'Click here to view the complete collection'|translate}</a>
    5055</p>
    51 
    52 </div>
    53 
    54 <div id="the_footer">
    55   {'Sent by'|@translate} <a href="{$GALLERY_URL}">{$GALLERY_TITLE}</a>
    56   - {'Powered by'|@translate} <a href="{$PHPWG_URL}" class="Piwigo">Piwigo</a> {$VERSION}
    57   - User Collections
    58 </div>
    59 
    60 </div>
    61 </body>
    62 </html>
Note: See TracChangeset for help on using the changeset viewer.