123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- if(!defined('DOKU_INC')) die();
- class action_plugin_icons extends DokuWiki_Action_Plugin {
-
- public function register(Doku_Event_Handler $controller) {
- if ($this->getConf('loadFontAwesome')) {
- $controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this,
- '_hookcss');
- }
- }
-
- public function _hookcss(Doku_Event &$event, $param) {
- $event->data['link'][] = array(
- 'type' => 'text/css',
- 'rel' => 'stylesheet',
- 'href' => $this->getConf('fontAwesomeURL'));
- }
- }
|