Notify.template.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Simple Machines Forum (SMF)
  4. *
  5. * @package SMF
  6. * @author Simple Machines
  7. * @copyright 2013 Simple Machines and individual contributors
  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="generic_icons mail icon"></span>', $txt['notify'], '
  19. </h3>
  20. </div>
  21. <div class="roundframe centertext">
  22. <p>', $context['notification_set'] ? $txt['notify_deactivate'] : $txt['notify_request'], '</p>
  23. <p>
  24. <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>
  25. </p>
  26. </div>';
  27. }
  28. function template_notify_board()
  29. {
  30. global $context, $settings, $options, $txt, $scripturl;
  31. echo '
  32. <div class="cat_bar">
  33. <h3 class="catbg">
  34. <span class="generic_icons mail icon"></span>', $txt['notify'], '
  35. </h3>
  36. </div>
  37. <div class="roundframe centertext">
  38. <p>', $context['notification_set'] ? $txt['notifyboard_turnoff'] : $txt['notifyboard_turnon'], '</p>
  39. <p>
  40. <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>
  41. </p>
  42. </div>';
  43. }
  44. ?>