X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=ae914ba6050fdaa2de553f9ed14a0b12226b7a28;hb=19ffc0510b71096442de0456c805543378dd42d6;hp=c416a0b126d180bfda848a4e004607ed2886d5ab;hpb=e6e8ebbac5ec0b7d93c164c2ffd4c6c80fb845fc;p=friendica.git diff --git a/src/App.php b/src/App.php index c416a0b126..6ec61db724 100644 --- a/src/App.php +++ b/src/App.php @@ -1,17 +1,18 @@ tag of every page. + * Inclusion is done in App->initHead(). + * The path can be absolute or relative to the Friendica installation base folder. + * + * @see initHead() + * + * @param string $path + */ + public function registerStylesheet($path) + { + $url = str_replace($this->getBasePath() . DIRECTORY_SEPARATOR, '', $path); + + $this->stylesheets[] = trim($url, '/'); + } + + /** + * Register a javascript file path to be included in the