Commit 4f0b55fe authored by nirgendswo's avatar nirgendswo

adding theme logic

adding favicons
change commands
parent 001d893c
......@@ -13,6 +13,11 @@ composer.phar
!/resources/files/.gitkeep
!/resources/themes/FuzzyCms
/public/*
!/public/.htaccess
!/public/index.php
!/public/uploads
node_modules
.env
*.log
......
......@@ -45,13 +45,13 @@ class ThemeInstall extends Command
public function handle()
{
$publicDir = base_path().'/public';
$themeDir = base_path().'/resources/views/themes/'.env('APP_THEME').'/dest';
$themeDir = base_path().'/resources/themes/'.env('APP_THEME').'/dest/';
if (!file_exists($themeDir)) {
$this->error('Theme Directory not found');
} else {
File::copyDirectory($themeDir, $publicDir);
$this->info('assets had beed copied');
File::copyDirectory($themeDir, $publicDir, false);
$this->info('Theme had beed copied');
}
}
}
......@@ -7,25 +7,25 @@ use Illuminate\Console\Command;
use Exception;
/**
* Copy all Assets from the Active Theme to the Public-Directory
* delete all cached Files in uploads
*
* @author Björn Hase
*/
class FilesClear extends Command
class UploadsClear extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'files:clear';
protected $signature = 'uploads:clear';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Delete all cached Files';
protected $description = 'Delete all cached Files in uploads';
/**
* Create a new command instance.
......@@ -44,11 +44,11 @@ class FilesClear extends Command
*/
public function handle()
{
$mediaDir = base_path().'/resources/files';
$success = File::cleanDirectory($directory);
$uploadDir = base_path().'/public/uploads';
$success = File::cleanDirectory($upload);
if ($success) {
$this->info('all cached Files has been deleted');
$this->info('All cached Files has been deleted');
}
}
}
......@@ -13,8 +13,8 @@ class Kernel extends ConsoleKernel
* @var array
*/
protected $commands = [
Commands\AssetsInstall::class,
Commands\FilesClear::class
Commands\ThemeInstall::class,
Commands\UploadsClear::class
];
/**
......
<?php
return [
'filesPath' => 'resources/files',
'filesPublicPath' => 'files',
'filesPath' => 'resources/uploads',
'filesPublicPath' => 'uploads',
'repositoryPath' => 'database/files'
];
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="260.000000pt" height="260.000000pt" viewBox="0 0 260.000000 260.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.11, written by Peter Selinger 2001-2013
</metadata>
<g transform="translate(0.000000,260.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M0 1300 l0 -1300 1300 0 1300 0 0 1300 0 1300 -1300 0 -1300 0 0
-1300z m1940 1013 c-1 -10 -18 -88 -38 -173 l-38 -155 -219 -3 -220 -2 -38
-223 c-22 -122 -41 -232 -44 -244 l-5 -23 202 0 202 0 -6 -27 c-2 -16 -12 -82
-22 -148 -9 -66 -20 -123 -23 -126 -3 -4 -95 -4 -203 0 l-198 6 -6 -45 c-37
-249 -121 -770 -124 -774 -6 -6 -512 -108 -516 -104 -1 2 8 46 22 98 37 148
107 495 168 835 54 307 166 1015 166 1055 0 12 7 20 18 21 9 0 206 11 437 23
231 13 435 24 453 25 24 1 32 -3 32 -16z"/>
</g>
</svg>
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
{
"name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
\ No newline at end of file
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="260.000000pt" height="260.000000pt" viewBox="0 0 260.000000 260.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.11, written by Peter Selinger 2001-2013
</metadata>
<g transform="translate(0.000000,260.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M0 1300 l0 -1300 1300 0 1300 0 0 1300 0 1300 -1300 0 -1300 0 0
-1300z m1940 1013 c-1 -10 -18 -88 -38 -173 l-38 -155 -219 -3 -220 -2 -38
-223 c-22 -122 -41 -232 -44 -244 l-5 -23 202 0 202 0 -6 -27 c-2 -16 -12 -82
-22 -148 -9 -66 -20 -123 -23 -126 -3 -4 -95 -4 -203 0 l-198 6 -6 -45 c-37
-249 -121 -770 -124 -774 -6 -6 -512 -108 -516 -104 -1 2 8 46 22 98 37 148
107 495 168 835 54 307 166 1015 166 1055 0 12 7 20 18 21 9 0 206 11 437 23
231 13 435 24 453 25 24 1 32 -3 32 -16z"/>
</g>
</svg>
......@@ -10,6 +10,13 @@
@include('helpers.meta', ['page' => $page])
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<link href="{{ $viewHelper->route($page) }}" rel="canonical">
<link href="/assets/css/styles.css" rel="stylesheet" type="text/css">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment