source: extensions/Subscribe_to_comments/template/subscribtions_page.tpl @ 14421

Last change on this file since 14421 was 12607, checked in by mistic100, 13 years ago

display thumbnails on mails and subscriptions list
fix misplaced field on comment form
move management link to profile page

File size: 3.1 KB
Line 
1{combine_css path=$SUBSCRIBE_TO_PATH|@cat:'template/style.css'}
2
3{$MENUBAR}
4
5{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}
6
7<div id="content" class="content stc">
8  <div class="titrePage">
9    <ul class="categoryActions">
10      {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
11    </ul>
12    <h2>{'Subscriptions of'|@translate} <i>{$EMAIL}</i></h2>
13  </div> <!-- titrePage -->
14 
15  {if !empty($errors)}
16  <div class="errors">
17    <ul>
18      {foreach from=$errors item=error}
19      <li>{$error}</li>
20      {/foreach}
21    </ul>
22  </div>
23  {/if}
24  {if !empty($infos)}
25  <div class="infos">
26    <ul>
27      {foreach from=$infos item=info}
28      <li>{$info}</li>
29      {/foreach}
30    </ul>
31  </div>
32  {/if}
33 
34  {if !empty($unsubscribe_form)}
35  <form action="" method="post">
36  <fieldset>
37    <legend>{'Unsubscribe from email notification'|@translate}</legend>
38   
39    <p>
40      <label><input type="radio" name="unsubscribe" value="{$unsubscribe_form}" checked="checked"> {'Only unsubscribe notifications for comments from:'|@translate} <a href="{$element.url}" target="_blank">{$element.name}</a></label>
41      <label><input type="radio" name="unsubscribe" value="all"> {'Unsubscribe from all email notifications'|@translate}</label>
42      <br>
43      <label><input type="submit" value="Unsubscribe notifications for {$EMAIL}"></label>
44      <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>
45    </p>
46  </fieldset>
47  </form>
48  {/if}
49 
50  {if !empty($validate)}
51  <p>
52    {if empty($errors)}<a href="{$element.url}">{'Return to item page'|@translate}</a><br>{/if}
53    <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>
54  </p>
55  {/if}
56 
57  {if !empty($subscriptions) and $subscriptions != 'none'}
58  <form action="{$MANAGE_LINK}" method="post">
59  <fieldset>
60    <legend>{'Manage my subscriptions to comments'|@translate}</legend>
61    <table class="subscriptions_list">
62      {foreach from=$subscriptions item=sub name=subs_loop}
63      <tr class="{if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if}">
64        <td><img src="{$sub.infos.thumbnail}" alt="{$sub.infos.name}" class="thumbnail"></td>
65        <td>
66          {if $sub.type == 'image'}
67          <img src="{$SUBSCRIBE_TO_PATH}template/picture.png" alt="(P)">
68          {else}
69          <img src="{$SUBSCRIBE_TO_PATH}template/folder_picture.png" alt="(A)">
70          {/if}
71          <a href="{$sub.infos.url}">{$sub.infos.name}</a>
72          <br>{$sub.registration_date}
73        </td>
74        <td><a href="{$MANAGE_LINK}&amp;unsubscribe={$sub.id}">{'Unsubscribe'|@translate}</a></td>
75      </tr>
76      {/foreach}
77    </table>
78   
79    <p>
80      <input type="hidden" name="unsubscribe" value="all">
81      <input type="submit" value="{'Unsubscribe from all email notifications'|@translate}">
82    </p>
83  </fieldset>
84  {elseif !empty($subscriptions) and $subscriptions == 'none'}
85  <p>
86    {'You are not subscribed to any comment.'|@translate}
87  </p>
88  {/if}
89
90</div> <!-- content -->
91
92{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.