19.cache.php 862 B

1234567891011121314151617181920212223242526272829303132
  1. <?php return '/**
  2. * Tagger
  3. *
  4. * DESCRIPTION
  5. *
  6. * This plugin inject JS to add Tab with tag groups into Resource panel
  7. */
  8. $corePath = $modx->getOption(\'tagger.core_path\', null, $modx->getOption(\'core_path\', null, MODX_CORE_PATH) . \'components/tagger/\');
  9. /** @var Tagger $tagger */
  10. $tagger = $modx->getService(
  11. \'tagger\',
  12. \'Tagger\',
  13. $corePath . \'model/tagger/\',
  14. array(
  15. \'core_path\' => $corePath
  16. )
  17. );
  18. $className = \'Tagger\' . $modx->event->name;
  19. $modx->loadClass(\'TaggerPlugin\', $tagger->getOption(\'modelPath\') . \'tagger/events/\', true, true);
  20. $modx->loadClass($className, $tagger->getOption(\'modelPath\') . \'tagger/events/\', true, true);
  21. if (class_exists($className)) {
  22. /** @var TaggerPlugin $handler */
  23. $handler = new $className($modx, $scriptProperties);
  24. $handler->run();
  25. }
  26. return;
  27. return;
  28. ';