1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-28 08:10:07 +02:00

Version 1.1.0 Introducing Plugins, Event-Dispatcher and CookieConsent

This commit is contained in:
Sebastian
2018-02-06 19:19:02 +01:00
parent 5fa14fb838
commit cb9bfdc0c5
87 changed files with 4432 additions and 491 deletions

View File

@@ -15,7 +15,7 @@ class Assets
$this->inlineCSS = array();
}
public function addCSS(string $CSS)
public function addCSS($CSS)
{
$CSSfile = $this->getFileUrl($CSS);
@@ -30,7 +30,7 @@ class Assets
$this->inlineCSS[] = '<style>' . $CSS . '</style>';
}
public function addJS(string $JS)
public function addJS($JS)
{
$JSfile = $this->getFileUrl($JS);
@@ -52,7 +52,7 @@ class Assets
public function renderJS()
{
return implode('<br/>', $this->JS) . implode('<br/>', $this->inlineJS);
return implode('<br/>', $this->JS) . '<br/>' . implode('<br/>', $this->inlineJS);
}
/**
@@ -60,8 +60,8 @@ class Assets
* @params $path string
* @return string or false
*/
public function getFileUrl(string $path)
{
public function getFileUrl($path)
{
$internalFile = __DIR__ . '/../plugins' . $path;
if(file_exists($internalFile))