Fixes for issues #56, #56 and renamed base logo

This commit is contained in:
Ro 2021-10-06 13:21:28 -07:00
commit a475b64aca
3 changed files with 25 additions and 1 deletions

View file

@ -26,6 +26,30 @@ class Render
$settings["global"]["base_url"] . $settings["global"]["background"],
"baseURL" => $settings["global"]["base_url"],
];
//move global theme image assets to public folder
foreach (
new DirectoryIterator(
"../content/themes/" . $this->theme . "/assets/images/global/"
)
as $file
) {
if ($file->isDot()) {
continue;
}
if (!is_file("../public/assets/images/global/" . $file->getFileName())) {
copy(
"../content/themes/" .
$this->theme .
"/assets/images/global/" .
$file->getFileName(),
"../public/assets/images/global/" . $file->getFileName()
);
} else {
//image is already there, so chill
}
//print $file->getFilename() . "\n";
}
//copy current theme assets to public
if (is_file("../public/assets/css/base.css")) {
unlink("../public/assets/css/base.css");

View file

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

File diff suppressed because one or more lines are too long