function <addon>_head(App $a)
{
- $a->registerStylesheet(__DIR__ . '/relative/path/to/addon/stylesheet.css');
+ \Friendica\DI::page()->registerStylesheet(__DIR__ . '/relative/path/to/addon/stylesheet.css');
}
```
function <addon>_footer(App $a)
{
- $a->registerFooterScript(__DIR__ . '/relative/path/to/addon/script.js');
+ \Friendica\DI::page()->registerFooterScript(__DIR__ . '/relative/path/to/addon/script.js');
}
```
return $this->config->getCache()->get('system', 'basepath');
}
- /**
- * @deprecated 2019.09 - use Page->registerStylesheet instead
- * @see Page::registerStylesheet()
- */
- public function registerStylesheet($path)
- {
- $this->page->registerStylesheet($path);
- }
-
- /**
- * @deprecated 2019.09 - use Page->registerFooterScript instead
- * @see Page::registerFooterScript()
- */
- public function registerFooterScript($path)
- {
- $this->page->registerFooterScript($path);
- }
-
/**
* @param Database $database The Friendica Database
* @param Configuration $config The Configuration