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