. * */ use Friendica\App; use Friendica\Core\Renderer; use Friendica\DI; function duepuntozero_init(App $a) { Renderer::setActiveTemplateEngine('smarty3'); $colorset = DI::pConfig()->get( local_user(), 'duepuntozero','colorset'); if (!$colorset) $colorset = DI::config()->get('duepuntozero', 'colorset'); // user setting have priority, then node settings if ($colorset) { if ($colorset == 'greenzero') DI::page()['htmlhead'] .= ''."\n"; if ($colorset == 'purplezero') DI::page()['htmlhead'] .= ''."\n"; if ($colorset == 'easterbunny') DI::page()['htmlhead'] .= ''."\n"; if ($colorset == 'darkzero') DI::page()['htmlhead'] .= ''."\n"; if ($colorset == 'comix') DI::page()['htmlhead'] .= ''."\n"; if ($colorset == 'slackr') DI::page()['htmlhead'] .= ''."\n"; } DI::page()['htmlhead'] .= <<< EOT EOT; }