You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
811 B

  1. <?php
  2. /**
  3. * @package Widgets
  4. *
  5. * @file ChatExt.php
  6. * This file is part of MOVIM.
  7. *
  8. * @brief A jabber chat widget.
  9. *
  10. * @author Guillaume Pasquet <etenil@etenilsrealm.nl>
  11. *
  12. * @version 1.0
  13. * @date 20 October 2010
  14. *
  15. * Copyright (C)2010 MOVIM project
  16. *
  17. * See COPYING for licensing information.
  18. */
  19. require_once(APP_PATH . "widgets/ChatExt/ChatExt.php");
  20. class ChatPop extends WidgetBase
  21. {
  22. function WidgetLoad()
  23. {
  24. $this->addcss('chatpop.css');
  25. $this->addjs('chatpop.js');
  26. }
  27. function build()
  28. {
  29. $chatext = new ChatExt();
  30. echo '<div id="chatpop">';
  31. echo $chatext->preparePop();
  32. echo '</div>';
  33. ?>
  34. <div id="connection">
  35. <?php echo t('Connection').'...'; ?>
  36. </div>
  37. <?php
  38. }
  39. }