X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=ae914ba6050fdaa2de553f9ed14a0b12226b7a28;hb=19ffc0510b71096442de0456c805543378dd42d6;hp=4cdaa94ccd6f4b2ae4fb44ce7a15e0510e3c486a;hpb=fce72cbbc8151a824269b7492e9ec7b6d551aa36;p=friendica.git diff --git a/src/App.php b/src/App.php index 4cdaa94ccd..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