diff --git a/src/App.php b/src/App.php index 3f67dbada9..c00f898f34 100644 --- a/src/App.php +++ b/src/App.php @@ -99,6 +99,15 @@ class App public $stylesheets = []; public $footerScripts = []; + /** + * Register a stylesheet file path to be included in the 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); @@ -106,6 +115,15 @@ class App $this->stylesheets[] = trim($url, '/'); } + /** + * Register a javascript file path to be included in the