*/
use Friendica\App;
use Friendica\Core\Addon;
function highlightjs_install()
{
Addon::registerHook('page_end', __FILE__, 'highlightjs_page_end');
}
function highlightjs_uninstall()
{
Addon::unregisterHook('page_end', __FILE__, 'highlightjs_page_end');
}
function highlightjs_page_end(App $a, &$b)
{
$basedir = $a->get_baseurl() . '/addon/highlightjs/asset';
if ($a->getCurrentTheme() == 'frio') {
$style = 'bootstrap';
} else {
$style = 'default';
}
$a->page['htmlhead'] .= <<< HTML
HTML;
$b .= <<< HTML
HTML;
}