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

Last change on this file since 12600 was 12600, checked in by mistic100, 12 years ago

fix many bugs, and management page

File size: 3.2 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">
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'|@translate}</legend>
61    <table class="subscriptions_list">
62      <tr class="throw">
63        <th>{'Item'|@translate}</th>
64        <th>{'Date'|@translate}</th>
65        <th>{'Unsubscribe'|@translate}</th>
66      </tr>
67      {foreach from=$subscriptions item=sub name=subs_loop}
68      <tr class="{if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if}">
69        <td>
70          {if $sub.type == 'image'}
71          <img src="{$SUBSCRIBE_TO_PATH}template/picture.png" alt="(P)">
72          {else}
73          <img src="{$SUBSCRIBE_TO_PATH}template/folder_picture.png" alt="(A)">
74          {/if}
75          <a href="{$sub.infos.url}">{$sub.infos.name}</a>
76        </td>
77        <td>{$sub.registration_date}</td>
78        <td><a href="{$MANAGE_LINK}&amp;unsubscribe={$sub.id}">{'Unsubscribe'|@translate}</a></td>
79      </tr>
80      {/foreach}
81    </table>
82   
83    <p>
84      <input type="hidden" name="unsubscribe" value="all">
85      <input type="submit" value="{'Unsubscribe from all email notifications'|@translate}">
86    </p>
87  </fieldset>
88  {elseif !empty($subscriptions) and $subscriptions == 'none'}
89  <p>
90    {'You are not subscribed to any comment.'|@translate}
91  </p>
92  {/if}
93
94</div> <!-- content -->
95
96{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
Note: See TracBrowser for help on using the repository browser.