annotate forum/Themes/default/Notify.template.php @ 76:e3e11437ecea website

Add forum code
author Chris Cannam
date Sun, 07 Jul 2013 11:25:48 +0200
parents
children
rev   line source
Chris@76 1 <?php
Chris@76 2 /**
Chris@76 3 * Simple Machines Forum (SMF)
Chris@76 4 *
Chris@76 5 * @package SMF
Chris@76 6 * @author Simple Machines
Chris@76 7 * @copyright 2011 Simple Machines
Chris@76 8 * @license http://www.simplemachines.org/about/smf/license.php BSD
Chris@76 9 *
Chris@76 10 * @version 2.0
Chris@76 11 */
Chris@76 12
Chris@76 13 function template_main()
Chris@76 14 {
Chris@76 15 global $context, $settings, $options, $txt, $scripturl;
Chris@76 16
Chris@76 17 echo '
Chris@76 18 <div class="cat_bar">
Chris@76 19 <h3 class="catbg">
Chris@76 20 <span class="ie6_header floatleft"><img src="', $settings['images_url'], '/email_sm.gif" alt="" class="icon" />', $txt['notify'], '</span>
Chris@76 21 </h3>
Chris@76 22 </div>
Chris@76 23 <span class="upperframe"><span></span></span>
Chris@76 24 <div class="roundframe centertext">
Chris@76 25 <p>', $context['notification_set'] ? $txt['notify_deactivate'] : $txt['notify_request'], '</p>
Chris@76 26 <p>
Chris@76 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>
Chris@76 28 </p>
Chris@76 29 </div>
Chris@76 30 <span class="lowerframe"><span></span></span>';
Chris@76 31 }
Chris@76 32
Chris@76 33 function template_notify_board()
Chris@76 34 {
Chris@76 35 global $context, $settings, $options, $txt, $scripturl;
Chris@76 36
Chris@76 37 echo '
Chris@76 38 <div class="cat_bar">
Chris@76 39 <h3 class="catbg">
Chris@76 40 <span class="ie6_header floatleft"><img src="', $settings['images_url'], '/email_sm.gif" alt="" class="icon" />', $txt['notify'], '</span>
Chris@76 41 </h3>
Chris@76 42 </div>
Chris@76 43 <span class="upperframe"><span></span></span>
Chris@76 44 <div class="roundframe centertext">
Chris@76 45 <p>', $context['notification_set'] ? $txt['notifyboard_turnoff'] : $txt['notifyboard_turnon'], '</p>
Chris@76 46 <p>
Chris@76 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>
Chris@76 48 </p>
Chris@76 49 </div>
Chris@76 50 <span class="lowerframe"><span></span></span>';
Chris@76 51 }
Chris@76 52
Chris@76 53 ?>