Notify.template.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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.1 Alpha 1
  11. */
  12. function template_main()
  13. {
  14. global $context, $settings, $options, $txt, $scripturl;
  15. echo '
  16. <div class="cat_bar">
  17. <h3 class="catbg">
  18. <span class="ie6_header floatleft"><img src="', $settings['images_url'], '/email_sm.gif" alt="" class="icon" />', $txt['notify'], '</span>
  19. </h3>
  20. </div>
  21. <span class="upperframe"><span></span></span>
  22. <div class="roundframe centertext">
  23. <p>', $context['notification_set'] ? $txt['notify_deactivate'] : $txt['notify_request'], '</p>
  24. <p>
  25. <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>
  26. </p>
  27. </div>
  28. <span class="lowerframe"><span></span></span>';
  29. }
  30. function template_notify_board()
  31. {
  32. global $context, $settings, $options, $txt, $scripturl;
  33. echo '
  34. <div class="cat_bar">
  35. <h3 class="catbg">
  36. <span class="ie6_header floatleft"><img src="', $settings['images_url'], '/email_sm.gif" alt="" class="icon" />', $txt['notify'], '</span>
  37. </h3>
  38. </div>
  39. <span class="upperframe"><span></span></span>
  40. <div class="roundframe centertext">
  41. <p>', $context['notification_set'] ? $txt['notifyboard_turnoff'] : $txt['notifyboard_turnon'], '</p>
  42. <p>
  43. <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>
  44. </p>
  45. </div>
  46. <span class="lowerframe"><span></span></span>';
  47. }
  48. ?>