*/ use Friendica\Core\Hook; use Friendica\DI; function postbox_install() { Hook::register('head', __FILE__, 'postbox_head'); } function postbox_head(string &$b) { /* Check if zen_postbox is active first, only do this if it is not */ if (!function_exists('zen_postbox_install')){ /* Add Postbox Styling to Header DI::page()->registerStylesheet($path) might load before theme so we will append to $b to make it load much much later */ $path = __DIR__ . '/view/postbox.min.css?v=' . DI::app()::VERSION; if (mb_strpos($path, DI::basePath() . DIRECTORY_SEPARATOR) === 0) { $path = mb_substr($path, mb_strlen(DI::basePath() . DIRECTORY_SEPARATOR)); } $b .= ''; } }