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

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

fix translation errors

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            {assign var=str value='all pictures of the gallery'|@translate}
34            <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png">
35          {else $sub.type == 'all-albums'}
36            {assign var=str value='all albums of the gallery'|@translate}
37            <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png">
38          {/if}
39          {'You are currently subscribed to comments on %s.'|@translate|sprintf:$str}
40        </td>
41        <td style="white-space:nowrap;">
42          <div class="actions">
43            <a href="{$MANAGE_LINK}&amp;unsubscribe={$sub.id}">{'Unsubscribe'|@translate}</a>
44            {if $sub.validated == 'false'}<br> <a href="{$MANAGE_LINK}&amp;validate={$sub.id}">{'Validate'|@translate}</a>{/if}
45          </div>
46        </td>
47        <td style="white-space:nowrap;">
48          <i>{$sub.registration_date}</i>
49        </td>
50      </tr>
51      {/foreach}
52    </table>
53  </fieldset>
54  {/if}
55 
56  {if !empty($subscriptions)}
57  <fieldset>
58    <legend>{'Manage my subscriptions'|@translate}</legend>
59    <table class="subscriptions_list">
60      <tr class="header">
61        <th class="chkb"><input type="checkbox" id="check_all"></th>
62        <th colspan="2" class="info">{'Subject'|@translate}</th>
63        <th class="date">{'Followed on'|@translate}</th>
64      </tr>
65     
66      {foreach from=$subscriptions item=sub name=subs_loop}
67      <tr class="{if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if} {if $sub.validated == 'false'}not-validated{/if}">
68        <td class="chkb"><input type="checkbox" name="selected[]" value="{$sub.id}" id="sub-{$sub.id}"></td>
69        <td class="thumb"><label for="sub-{$sub.id}"><img src="{$sub.infos.thumbnail}" alt="{$sub.infos.name}" class="thumbnail"></label></td>
70        <td class="info">
71          <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/{$sub.type}.png">
72          <b><a href="{$sub.infos.url}">{$sub.infos.name}</a></b>
73
74          <div class="actions">
75            <a href="{$MANAGE_LINK}&amp;unsubscribe={$sub.id}">{'Unsubscribe'|@translate}</a>
76            {if $sub.validated == 'false'}| <a href="{$MANAGE_LINK}&amp;validate={$sub.id}">{'Validate'|@translate}</a>{/if}
77          </div>
78        </td>
79        <td class="date">
80          <i>{$sub.registration_date}</i>
81        </td>
82      </tr>
83      {/foreach}
84     
85      <tr class="footer {if $smarty.foreach.subs_loop.index is odd}row1{else}row2{/if}"><td colspan="4">
86        <select name="action">
87          <option value="-1">{'Choose an action'|@translate}</option>
88          <option value="unsubscribe">{'Unsubscribe'|@translate}</option>
89          <option value="validate">{'Validate'|@translate}</option>
90        </select>
91        <input type="submit" name="apply_bulk" value="{'Apply action'|@translate}">
92      </td></tr>
93    </table>
94   
95    <p>
96      <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/image.png"> {'comments on a picture'|@translate}.
97      <img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album-images.png"> {'comments on all pictures of an album'|@translate}.
98      {if $COA_ACTIVATED}<img src="{$ROOT_URL}{$SUBSCRIBE_TO_PATH}template/album.png"> {'comments on an album'|@translate}.{/if}
99    </p>
100  </fieldset>
101  {/if}
102 
103  {if !empty($global_subscriptions) or !empty($subscriptions)}
104    <p>
105      <label><input type="checkbox" name="unsubscribe_all_check" value="1"> {'Unsubscribe from all email notifications'|@translate}</label>
106      <input type="submit" name="unsubscribe_all" value="{'Submit'|@translate}">
107    </p>
108  {/if}
109</form>
110
111{footer_script require="jquery"}{literal}
112jQuery("#check_all").change(function() {
113  if ($(this).is(":checked"))
114    $("input[name^='selected']").attr('checked', 'checked');
115  else
116    $("input[name^='selected']").removeAttr('checked');
117});
118{/literal}{/footer_script}
119
120{if $clear}<div style="clear: both;"></div>
121</div>{/if}
122</div> <!-- content -->
Note: See TracBrowser for help on using the repository browser.