comparison forum/Themes/Vamp/Notify.template.php @ 76:e3e11437ecea website

Add forum code
author Chris Cannam
date Sun, 07 Jul 2013 11:25:48 +0200
parents
children
comparison
equal deleted inserted replaced
75:72f59aa7e503 76:e3e11437ecea
1 <?php
2 /**
3 * Simple Machines Forum (SMF)
4 *
5 * @package SMF
6 * @author Simple Machines
7 * @copyright 2011 Simple Machines
8 * @license http://www.simplemachines.org/about/smf/license.php BSD
9 *
10 * @version 2.0
11 */
12
13 function template_main()
14 {
15 global $context, $settings, $options, $txt, $scripturl;
16
17 echo '
18 <div class="cat_bar">
19 <h3 class="catbg">
20 <span class="ie6_header floatleft"><img src="', $settings['images_url'], '/email_sm.gif" alt="" class="icon" />', $txt['notify'], '</span>
21 </h3>
22 </div>
23 <span class="upperframe"><span></span></span>
24 <div class="roundframe centertext">
25 <p>', $context['notification_set'] ? $txt['notify_deactivate'] : $txt['notify_request'], '</p>
26 <p>
27 <strong><a href="', $scripturl, '?action=notify;sa=', $context['notification_set'] ? 'off' : 'on', ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['yes'], '</a> - <a href="', $context['topic_href'], '">', $txt['no'], '</a></strong>
28 </p>
29 </div>
30 <span class="lowerframe"><span></span></span>';
31 }
32
33 function template_notify_board()
34 {
35 global $context, $settings, $options, $txt, $scripturl;
36
37 echo '
38 <div class="cat_bar">
39 <h3 class="catbg">
40 <span class="ie6_header floatleft"><img src="', $settings['images_url'], '/email_sm.gif" alt="" class="icon" />', $txt['notify'], '</span>
41 </h3>
42 </div>
43 <span class="upperframe"><span></span></span>
44 <div class="roundframe centertext">
45 <p>', $context['notification_set'] ? $txt['notifyboard_turnoff'] : $txt['notifyboard_turnon'], '</p>
46 <p>
47 <strong><a href="', $scripturl, '?action=notifyboard;sa=', $context['notification_set'] ? 'off' : 'on', ';board=', $context['current_board'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['yes'], '</a> - <a href="', $context['board_href'], '">', $txt['no'], '</a></strong>
48 </p>
49 </div>
50 <span class="lowerframe"><span></span></span>';
51 }
52
53 ?>