2
0

Likes.template.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_popup()
  13. {
  14. global $context, $settings, $options, $txt;
  15. // Since this is a popup of its own we need to start the html, etc.
  16. echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  17. <html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ' dir="rtl"' : '', '>
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
  20. <meta name="robots" content="noindex" />
  21. <title>', $context['page_title'], '</title>
  22. <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?alp21" />
  23. <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js"></script>
  24. </head>
  25. <body id="likes_popup">
  26. <div class="windowbg">
  27. <ul id="likes">';
  28. foreach ($context['likers'] as $liker => $like_details)
  29. {
  30. echo '
  31. <li>
  32. <span class="floatleft avatar">', $like_details['profile']['avatar']['image'], '</span>
  33. <span class="floatright">', $like_details['time'], '</span>
  34. <span class="floatleft">
  35. ', $like_details['profile']['link_color'], '<br />
  36. ', $like_details['profile']['group'], '
  37. </span>
  38. </li>';
  39. }
  40. echo '
  41. </ul>
  42. <br class="clear" />
  43. <a href="javascript:self.close();">', $txt['close_window'], '</a>
  44. </div>
  45. </body>
  46. </html>';
  47. }
  48. ?>