Dotclear

source: plugins/subscribeToComments/default-templates/subscribetocomments.html @ 2294

Revision 2294, 7.5 KB checked in by Moe, 13 years ago (diff)

Subscribe to comments 1.3.2 :

  • limited subscribers list to the current blog (closes #461)
  • moved _public.php classes in inc/
  • switched to GPL v2
  • PHP 5.3 compatibility ?
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{tpl:BlogLanguage}}" 
4     lang="{{tpl:BlogLanguage}}">
5<head>
6  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7  <meta name="MSSmartTagsPreventParsing" content="TRUE" />
8  <meta name="robots" content="noindex, nofollow" />
9  <title>{{tpl:lang Subscribe to comments}} - {{tpl:BlogName encode_html="1"}}</title>
10 
11  <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" />
12  <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" />
13
14  <link rel="alternate" type="application/rss+xml" title="RSS 2.0" 
15     href="{{tpl:BlogFeedURL type="rss2"}}" />
16  <link rel="alternate" type="application/atom+xml" title="Atom 1.0" 
17     href="{{tpl:BlogFeedURL type="atom"}}" />
18  <link rel="meta" type="application/xbel+xml" title="Blogroll" 
19     href="{{tpl:BlogrollXbelLink}}" />
20
21     <style type="text/css">
22          label {cursor:pointer;}
23     </style>
24     
25     {{tpl:include src="_head.html"}}
26     
27     <script type="text/javascript">
28     //<![CDATA[
29     /* http://www.dustindiaz.com/getelementsbyclass/ */
30     function subscribeTC(action) {
31          var els = document.getElementsByTagName('input');
32          var elsLen = els.length;
33          var pattern = new RegExp("(^|\\\\s)"+'subscribeTCEntries'+"(\\\\s|$)");
34          for (i = 0; i < elsLen; i++) {
35               if (pattern.test(els[i].className)) {
36                    if (action == 'all') {
37                    els[i].checked = 'checked';
38                    } else {
39                    els[i].checked = !els[i].checked;
40                    }
41               }
42          }
43     }
44     $(function() {
45               $('input[name="remove"]').click(function() {
46                    return window.confirm('{{tpl:lang Remove selected subscriptions?}}');
47               });
48     });
49     
50     /* l10n */
51     prompt_allow = '{{tpl:lang Allow emails?}}';
52     prompt_block = '{{tpl:lang Block emails?}}';
53     prompt_delete = '{{tpl:lang Delete the account?}}';
54     //]]>
55     </script>
56</head>
57
58<body class="dc-subscribe">
59<div id="page">
60{{tpl:include src="_top.html"}}
61
62<div id="wrapper">
63
64<div id="main">
65     <div id="content">
66
67<div class="content-inner">
68     <div id="content-info">
69          <h2>
70               <tpl:SubscribeToCommentsIfMessage>
71                    <em>{{tpl:SubscribeToCommentsMessage}}</em> -
72               </tpl:SubscribeToCommentsIfMessage>
73               {{tpl:lang Subscribe to comments}}
74          </h2>
75     </div>
76
77     <tpl:SysIfFormError>
78          <p class="error">{{tpl:lang Error:}} {{tpl:SysFormError}}</p>
79     </tpl:SysIfFormError>
80
81     <div id="comments">
82          <form method="post" action="{{tpl:SubscribeToCommentsURL}}" id="comment-form">
83               <p><input type="hidden" name="subscribeToCommentsNonce"
84                    value="{{tpl:SubscribeToCommentsNonce}}" /></p>
85               <tpl:SubscribeToCommentsLoggedIfNot>
86                    <tpl:SubscribeToCommentsEntryIf>
87                         <p><a href="{{tpl:EntryURL}}">{{tpl:lang Get back to}}
88                              {{tpl:EntryTitle encode_html="1"}}</a>
89                         </p>
90                         <tpl:EntryIf show_comments="1">
91                         <h3>{{tpl:lang Subscribe to one entry}}</h3>
92                    </tpl:EntryIf>
93               </tpl:SubscribeToCommentsEntryIf>
94               <fieldset>
95                         <!-- #<legend>{{tpl:lang Email address}}</legend>-->
96                         <p>{{tpl:lang To login, you have to click on the link given in previously sent emails.}}
97                              {{tpl:lang Click on the button below to resend informations to your email address.}}
98                         </p>
99                         
100                    <p class="field">
101                              <label for="email">{{tpl:lang Email address}}:</label>
102                              <input type="text" name="email" id="email" size="30" maxlength="255" 
103                                   value="{{tpl:SubscribeToCommentsEmail}}" />
104                         </p>
105
106                         <tpl:SubscribeToCommentsEntryIf>
107                              <tpl:EntryIf show_comments="1">
108                                   <input type="hidden" name="post_id" value="{{tpl:EntryID}}" />
109                                   <p><input type="submit" class="submit" name="subscribe" 
110                                        value="{{tpl:lang Subscribe to}} {{tpl:EntryTitle encode_html="1"}}" /></p>
111                              </tpl:EntryIf>
112                         </tpl:SubscribeToCommentsEntryIf>
113                         
114                         <p><input type="submit" class="submit" name="resend" 
115                              value="{{tpl:lang Resend account informations to this
116                                   email address}}" /></p>
117                    </fieldset>
118               </tpl:SubscribeToCommentsLoggedIfNot>
119
120               <tpl:SubscribeToCommentsLoggedIf>
121                    <p style="text-align:right;">
122                         <input type="submit" class="submit" name="logout" 
123                         value="{{tpl:lang Logout}}" /></p>
124                    <tpl:SubscribeToCommentsEntryIf>
125                         <p>
126                              <a href="{{tpl:EntryURL}}">{{tpl:lang Get back to}}
127                              {{tpl:EntryTitle encode_html="1"}}</a>
128                         </p>
129                         <tpl:EntryIf show_comments="1">
130                              <h3>{{tpl:lang Subscribe to one entry}}</h3>
131                              <input type="hidden" name="post_id" value="{{tpl:EntryID}}" />
132                              <p><input type="submit" class="submit" name="subscribe" 
133                                   value="{{tpl:lang Subscribe to}} {{tpl:EntryTitle encode_html="1"}}" /></p>
134                         </tpl:EntryIf>
135                    </tpl:SubscribeToCommentsEntryIf>
136                    <p>{{tpl:lang Email address}} :
137                         <strong>{{tpl:SubscribeToCommentsEmail}}</strong></p>
138
139                    <h3>{{tpl:lang Remove subscriptions}}</h3>
140                    <fieldset>
141                         <legend>{{tpl:lang Entries}}</legend>
142                         <ul>
143                         <tpl:SubscribeToCommentsEntries>
144                              <li>
145                                   <input type="checkbox" name="entries[]" value="{{tpl:EntryID}}" 
146                                        id="post_{{tpl:EntryID}}" class="subscribeTCEntries"
147                                        style="width: auto;" />
148                                   <label for="post_{{tpl:EntryID}}">
149                                        {{tpl:EntryTitle encode_html="1"}}
150                                        ({{tpl:EntryDate format="%d/%m/%Y"}})
151                                   </label>
152                                        (<a href="{{tpl:EntryURL}}#comments">{{tpl:EntryCommentCount}}</a>)
153                              </li>
154                         </tpl:SubscribeToCommentsEntries>
155                         </ul>
156                         <p>
157                              <a href="#" onclick="javascript:subscribeTC('all');return false;">
158                                   {{tpl:lang select all}}</a>
159                               - <a href="#" onclick="javascript:subscribeTC('invert');
160                                   return false;">
161                                   {{tpl:lang invert selection}}</a>
162                         </p>
163                         <p><input type="submit" class="submit" name="remove"
164                              value="{{tpl:lang Remove selected subscriptions}}" /></p>
165                    </fieldset>
166
167                    <h3>{{tpl:lang Account}}</h3>
168                    <fieldset>
169                         <legend>{{tpl:lang Change email address}}</legend>
170                         <p class="field">
171                              <label for="new_email">
172                                   {{tpl:lang New email address}}:</label>
173                              <input type="text" name="new_email" id="new_email" size="30"
174                                   maxlength="255"  />
175                         </p>
176                         <p>
177                              {{tpl:lang You'll have 24 hours to click on the link sent to the new email address to confirm the change.}}
178                         </p>
179                         <p>
180                              <input type="submit" class="submit" name="requestChangeEmail" 
181                                   value="{{tpl:lang Change email address}}" />
182                         </p>
183                         <p>
184                              <tpl:SubscribeToCommentsBlockedIf>
185                                   <input type="submit" class="submit" name="allowEmails"
186                                        value="{{tpl:lang Allow emails}}"
187                                        onclick="javascript:return(
188                                        window.confirm(prompt_allow));" />
189                              </tpl:SubscribeToCommentsBlockedIf>
190                              <tpl:SubscribeToCommentsBlockedIfNot>
191                                   <input type="submit" class="submit" name="blockEmails"
192                                        value="{{tpl:lang Block emails}}"
193                                        onclick="javascript:return(
194                                        window.confirm(prompt_block));" />
195                              </tpl:SubscribeToCommentsBlockedIfNot>
196                         </p>
197                         <p>
198                              <input type="submit" class="submit" name="deleteAccount" 
199                                   value="{{tpl:lang Delete all subscriptions and the account}}"
200                                   onclick="javascript:return(
201                                        window.confirm(prompt_delete));" />
202                         </p>
203                    </fieldset>             
204               </tpl:SubscribeToCommentsLoggedIf>
205          </form>
206  </div><!-- End #comments -->
207
208</div><!-- End #content-inner -->
209 
210     </div><!-- End #content -->
211</div> <!-- End #main -->
212
213<div id="sidebar">
214  <div id="blognav">
215    {{tpl:Widgets type="nav"}}
216  </div> <!-- End #blognav -->
217 
218  <div id="blogextra">
219    {{tpl:Widgets type="extra"}}
220  </div> <!-- End #blogextra -->
221</div><!-- End #sidebar -->
222
223</div> <!-- End #wrapper -->
224
225{{tpl:include src="_footer.html"}}
226</div> <!-- End #page -->
227</body>
228</html>
Note: See TracBrowser for help on using the repository browser.

Sites map