X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=7622a1a0ce3aacb5e2795fbdd6b9c1e7b572e78e;hb=3ab837f3c783e14e2c8836e73c898041c47f2fd0;hp=2a5fba854146b78ae7b88a08ac40f8ef41cb5bb6;hpb=df3b1be3b7437f3a36d6c1b6cf33cd2f0ad07388;p=friendica.git diff --git a/src/App.php b/src/App.php index 2a5fba8541..7622a1a0ce 100644 --- a/src/App.php +++ b/src/App.php @@ -96,6 +96,41 @@ class App public $force_max_items = 0; public $theme_events_in_profile = true; + 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); + + $this->stylesheets[] = trim($url, '/'); + } + + /** + * Register a javascript file path to be included in the