Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
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.

Live.php 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Piwik - free/libre analytics platform
  4. *
  5. * @link http://piwik.org
  6. * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
  7. *
  8. */
  9. namespace Piwik\Plugins\Live;
  10. use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
  11. require_once PIWIK_INCLUDE_PATH . '/plugins/Live/VisitorLog.php';
  12. /**
  13. *
  14. */
  15. class Live extends \Piwik\Plugin
  16. {
  17. /**
  18. * @see Piwik\Plugin::getListHooksRegistered
  19. */
  20. public function getListHooksRegistered()
  21. {
  22. return array(
  23. 'AssetManager.getJavaScriptFiles' => 'getJsFiles',
  24. 'AssetManager.getStylesheetFiles' => 'getStylesheetFiles',
  25. 'Translate.getClientSideTranslationKeys' => 'getClientSideTranslationKeys'
  26. );
  27. }
  28. public function getStylesheetFiles(&$stylesheets)
  29. {
  30. $stylesheets[] = "plugins/Live/stylesheets/live.less";
  31. $stylesheets[] = "plugins/Live/stylesheets/visitor_profile.less";
  32. }
  33. public function getJsFiles(&$jsFiles)
  34. {
  35. $jsFiles[] = "plugins/Live/javascripts/live.js";
  36. $jsFiles[] = "plugins/Live/javascripts/visitorProfile.js";
  37. $jsFiles[] = "plugins/Live/javascripts/visitorLog.js";
  38. }
  39. public function getClientSideTranslationKeys(&$translationKeys)
  40. {
  41. $translationKeys[] = "Live_VisitorProfile";
  42. $translationKeys[] = "Live_NoMoreVisits";
  43. $translationKeys[] = "Live_ShowMap";
  44. $translationKeys[] = "Live_HideMap";
  45. $translationKeys[] = "Live_PageRefreshed";
  46. }
  47. }