site panel : add dynamic favicon
All checks were successful
Deploy / Deploy to Production (push) Successful in 20s
All checks were successful
Deploy / Deploy to Production (push) Successful in 20s
This commit is contained in:
parent
9be03113e3
commit
88bc02b9cf
6 changed files with 88 additions and 13 deletions
4
site/blueprints/files/fav-ico.yml
Normal file
4
site/blueprints/files/fav-ico.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
title: Favicon version .ico
|
||||||
|
|
||||||
|
accept:
|
||||||
|
extension: ico
|
||||||
5
site/blueprints/files/fav-png.yml
Normal file
5
site/blueprints/files/fav-png.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
title: Favicon version PNG
|
||||||
|
|
||||||
|
accept:
|
||||||
|
extension: png
|
||||||
|
maxwidth: 96
|
||||||
4
site/blueprints/files/fav-svg.yml
Normal file
4
site/blueprints/files/fav-svg.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
title: Favicon version SVG
|
||||||
|
|
||||||
|
accept:
|
||||||
|
extension: svg
|
||||||
|
|
@ -68,20 +68,6 @@ tabs:
|
||||||
label: Description
|
label: Description
|
||||||
type: textarea
|
type: textarea
|
||||||
translate: true
|
translate: true
|
||||||
footerLogo:
|
|
||||||
label: Logo
|
|
||||||
type: files
|
|
||||||
layout: cards
|
|
||||||
image:
|
|
||||||
back: #fff
|
|
||||||
max: 1
|
|
||||||
help: Utilisé en pied de page (page À propos, Blog et Article).
|
|
||||||
|
|
||||||
- width: 1/2
|
|
||||||
sections:
|
|
||||||
contact:
|
|
||||||
type: fields
|
|
||||||
fields:
|
|
||||||
legalNotices:
|
legalNotices:
|
||||||
label: Mentions légales (PDF)
|
label: Mentions légales (PDF)
|
||||||
type: files
|
type: files
|
||||||
|
|
@ -89,4 +75,54 @@ tabs:
|
||||||
accept: application/pdf
|
accept: application/pdf
|
||||||
translate: false
|
translate: false
|
||||||
|
|
||||||
|
- width: 1/1
|
||||||
|
fields:
|
||||||
|
imagesLine:
|
||||||
|
type: line
|
||||||
|
imagesHeadline:
|
||||||
|
type: headline
|
||||||
|
label: Images
|
||||||
|
- width: 1/4
|
||||||
|
fields:
|
||||||
|
footerLogo:
|
||||||
|
label: Logo statique
|
||||||
|
type: files
|
||||||
|
layout: cards
|
||||||
|
image:
|
||||||
|
back: #fff
|
||||||
|
max: 1
|
||||||
|
help: Utilisé en pied de page (page À propos, Blog et Article).
|
||||||
|
- width: 3/4
|
||||||
|
fields:
|
||||||
|
faviconHeadline:
|
||||||
|
type: headline
|
||||||
|
label: Favicon
|
||||||
|
faviconInfo:
|
||||||
|
label: false
|
||||||
|
type: info
|
||||||
|
text: |
|
||||||
|
Il est important de respecter les types de fichier et de format indiqués. Vous pouvez utiliser l'outil en ligne [RealFaviconGenerator](https://realfavicongenerator.net) pour lé générer.
|
||||||
|
faviconICO:
|
||||||
|
label: Version icône (.ico)
|
||||||
|
type: files
|
||||||
|
multiple: false
|
||||||
|
uploads: fav-ico
|
||||||
|
layout: cards
|
||||||
|
width: 1/3
|
||||||
|
faviconPNG:
|
||||||
|
label: Version PNG 96x96 pixels
|
||||||
|
type: files
|
||||||
|
multiple: false
|
||||||
|
layout: cards
|
||||||
|
uploads: fav-png
|
||||||
|
width: 1/3
|
||||||
|
faviconSVG:
|
||||||
|
label: Version SVG
|
||||||
|
type: files
|
||||||
|
multiple: false
|
||||||
|
uploads: fav-svg
|
||||||
|
layout: cards
|
||||||
|
width: 1/3
|
||||||
|
|
||||||
seo: seo/site
|
seo: seo/site
|
||||||
|
files: tabs/files
|
||||||
|
|
|
||||||
16
site/blueprints/tabs/files.yml
Normal file
16
site/blueprints/tabs/files.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
label: Fichiers
|
||||||
|
icon: attachment
|
||||||
|
columns:
|
||||||
|
- width: 1/4
|
||||||
|
fields:
|
||||||
|
manageFilesInfo:
|
||||||
|
label: false
|
||||||
|
type: info
|
||||||
|
text: À droite, tous les fichiers que stocke la page. Supprimez les fichiers inutilisés pour éviter de surcharger inutilement le serveur.
|
||||||
|
|
||||||
|
- width: 3/4
|
||||||
|
sections:
|
||||||
|
filesSection:
|
||||||
|
label: Fichiers
|
||||||
|
type: files
|
||||||
|
batch: true
|
||||||
|
|
@ -18,6 +18,16 @@
|
||||||
<script type="module" src="http://localhost:5173/@vite/client" defer></script>
|
<script type="module" src="http://localhost:5173/@vite/client" defer></script>
|
||||||
<script type="module" src="http://localhost:5173/src/main.js" defer></script>
|
<script type="module" src="http://localhost:5173/src/main.js" defer></script>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
|
<?php if ($site->faviconPNG()->isNotEmpty()): ?>
|
||||||
|
<link rel="icon" type="image/png" href="<?= $site->faviconPNG()->toFile()->url() ?>" sizes="96x96" />
|
||||||
|
<?php endif ?>
|
||||||
|
<?php if ($site->faviconSVG()->isNotEmpty()): ?>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="<?= $site->faviconSVG()->toFile()->url() ?>" />
|
||||||
|
<?php endif ?>
|
||||||
|
<?php if ($site->faviconICO()->isNotEmpty()): ?>
|
||||||
|
<link rel="shortcut icon" href="<?= $site->faviconICO()->toFile()->url() ?>" />
|
||||||
|
<?php endif ?>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue