X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=9a09bcfce0ba8d425599c7ff735d75daa3c788b0;hb=3564daf24dd66c6eeba2ef86722a7c80b076e3fa;hp=c32cf79d98e4363860c3d194719263fac9271158;hpb=7a6706b0f72cb4a1c1e370e8363aec7faaf6703c;p=friendica.git diff --git a/src/App.php b/src/App.php index c32cf79d98..9a09bcfce0 100644 --- a/src/App.php +++ b/src/App.php @@ -1,21 +1,20 @@ tag of every page. + * Inclusion is done in App->initHead(). + * The path can be absolute or relative to the Friendica installation base folder. + * + * @see App->initHead() + * + * @param string $path + */ + public function registerStylesheet($path) + { + $url = str_replace($this->get_basepath() . DIRECTORY_SEPARATOR, '', $path); + + $this->stylesheets[] = trim($url, '/'); + } + + /** + * Register a javascript file path to be included in the