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

Last change on this file since 21340 was 21340, checked in by mistic100, 11 years ago

too many changes

File size: 5.1 KB
Line 
1{combine_css path=$SUBSCRIBE_TO_PATH|@cat:'template/style.css'}
2
3{* <!-- Menubar & titrePage --> *}
4{if $themeconf.name == "stripped" or $themeconf.parent == "stripped"}
5  {include file=$SUBSCRIBE_TO_ABS_PATH|@cat:'template/themes/stripped.tpl'}
6  {assign var="clear" value="true"}
7{elseif $themeconf.name == "simple-grey" or $themeconf.parent == "simple"}
8  {include file=$SUBSCRIBE_TO_ABS_PATH|@cat:'template/themes/simple.tpl'}
9  {assign var="clear" value="true"}
10{else}
11  {include file=$SUBSCRIBE_TO_ABS_PATH|@cat:'template/themes/default.tpl'}
12{/if}
13
14{include file='infos_errors.tpl'}
15
16 
17{if $IN_VALIDATE or $IN_UNSUBSCRIBE}
18<p>
19  {if !empty($element)}<a href="{$element.url}" title="{$element.name}">{'Return to item page'|@translate}</a><br>{/if}
20  <a href="{$MANAGE_LINK}">{'Manage my subscriptions'|@translate}</a>
21</p>
22{/if}
23 
24<form action="{$MANAGE_LINK}" method="post">
25  {if !empty($global_subscriptions)}
26  <fieldset>
27    <legend>{'Global subscriptions'|@translate}</legend>
28    <table class="subscriptions_list">
29      {foreach from=$global_subscriptions item=sub name=subs_loop}
30      <tr class="{if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if}">
31        <td>
32          {if $sub.type == 'all-images'}
33            <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png"> {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all pictures of the gallery'|@translate}
34          {else $sub.type == 'all-albums'}
35            <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png"> {'You are currently subscribed to comments on %s.'|@translate|sprintf:'all albums of the gallery'|@translate}
36          {/if}
37        </td>
38        <td style="white-space:nowrap;">
39          <div class="actions">
40            <a href="{$MANAGE_LINK}&amp;unsubscribe={$sub.id}">{'Unsubscribe'|@translate}</a>
41            {if $sub.validated == 'false'}<br> <a href="{$MANAGE_LINK}&amp;validate={$sub.id}">{'Validate'|@translate}</a>{/if}
42          </div>
43        </td>
44        <td style="white-space:nowrap;">
45          <i>{$sub.registration_date}</i>
46        </td>
47      </tr>
48      {/foreach}
49    </table>
50  </fieldset>
51  {/if}
52 
53  {if !empty($subscriptions)}
54  <fieldset>
55    <legend>{'Manage my subscriptions'|@translate}</legend>
56    <table class="subscriptions_list">
57      <tr class="header">
58        <th class="chkb"><input type="checkbox" id="check_all"></th>
59        <th colspan="2" class="info">{'Subject'|@translate}</th>
60        <th class="date">{'Followed on'|@translate}</th>
61      </tr>
62     
63      {foreach from=$subscriptions item=sub name=subs_loop}
64      <tr class="{if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if} {if $sub.validated == 'false'}not-validated{/if}">
65        <td class="chkb"><input type="checkbox" name="selected[]" value="{$sub.id}" id="sub-{$sub.id}"></td>
66        <td class="thumb"><label for="sub-{$sub.id}"><img src="{$sub.infos.thumbnail}" alt="{$sub.infos.name}" class="thumbnail"></label></td>
67        <td class="info">
68          <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/{$sub.type}.png">
69          <b><a href="{$sub.infos.url}">{$sub.infos.name}</a></b>
70
71          <div class="actions">
72            <a href="{$MANAGE_LINK}&amp;unsubscribe={$sub.id}">{'Unsubscribe'|@translate}</a>
73            {if $sub.validated == 'false'}| <a href="{$MANAGE_LINK}&amp;validate={$sub.id}">{'Validate'|@translate}</a>{/if}
74          </div>
75        </td>
76        <td class="date">
77          <i>{$sub.registration_date}</i>
78        </td>
79      </tr>
80      {/foreach}
81     
82      <tr class="footer {if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if}"><td colspan="4">
83        <select name="action">
84          <option value="-1">{'Choose an action'|@translate}</option>
85          <option value="unsubscribe">{'Unsubscribe'|@translate}</option>
86          <option value="validate">{'Validate'|@translate}</option>
87        </select>
88        <input type="submit" name="apply_bulk" value="{'Apply action'|@translate}">
89      </td></tr>
90    </table>
91   
92    <p>
93      <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png"> {'comments on a picture'|@translate}.
94      <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album-images.png"> {'comments on all pictures of an album'|@translate}.
95      {if $COA_ACTIVATED}<img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png"> {'comments on an album'|@translate}.{/if}
96    </p>
97  </fieldset>
98  {/if}
99 
100  {if !empty($global_subscriptions) or !empty($subscriptions)}
101    <p>
102      <label><input type="checkbox" name="unsubscribe_all_check" value="1"> {'Unsubscribe from all email notifications'|@translate}</label>
103      <input type="submit" name="unsubscribe_all" value="{'Submit'|@translate}">
104    </p>
105  {/if}
106</form>
107
108{footer_script require="jquery"}{literal}
109jQuery("#check_all").change(function() {
110  if ($(this).is(":checked"))
111    $("input[name^='selected']").attr('checked', 'checked');
112  else
113    $("input[name^='selected']").removeAttr('checked');
114});
115{/literal}{/footer_script}
116
117{if $clear}<div style="clear: both;"></div>
118</div>{/if}
119</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.