X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=ae914ba6050fdaa2de553f9ed14a0b12226b7a28;hb=19ffc0510b71096442de0456c805543378dd42d6;hp=cd39604789288903c780ffa5e25ab3e075894110;hpb=8d07a69bba06f8cb8e63d46edcbb53fea34aa6d1;p=friendica.git diff --git a/src/App.php b/src/App.php index cd39604789..6ec61db724 100644 --- a/src/App.php +++ b/src/App.php @@ -1,21 +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