Compare commits
4 Commits
chapril-ma
...
chapril-1.
Author | SHA1 | Date | |
---|---|---|---|
3c7cc4b353 | |||
7d39054c31 | |||
|
e86f95021d | ||
|
5a19e4022b |
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
.directory
|
||||
temp/*
|
||||
*~
|
@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
## Unreleased
|
||||
## 1.3.0 - 2020-11-03
|
||||
|
||||
### Added
|
||||
|
||||
|
@ -11,7 +11,7 @@ $timeBeforeDeletion = 60 * 60 * 24 * 7;
|
||||
|
||||
// EN: Theme's name (must be in the themes directory)
|
||||
// FR : Nom du thème (doit être dans le dossier themes)
|
||||
$theme = "dark";
|
||||
$theme = "chapril";
|
||||
|
||||
// EN: Language used if those requested by the user are not available
|
||||
// FR : Langue utilisée si celles demandées par l'utilisateurice ne sont pas disponibles
|
||||
|
@ -78,7 +78,7 @@ if (badQuery()) {
|
||||
if (!isset($params['mainColor']) OR !is_string($params['mainColor']))
|
||||
$params['mainColor'] = "#000000";
|
||||
|
||||
header('Location: ' . $instPath . "?" . http_build_query($params));
|
||||
header('Location: ' . $rootPath . "?" . http_build_query($params));
|
||||
exit;
|
||||
}
|
||||
|
||||
@ -121,11 +121,11 @@ if (badQuery()) {
|
||||
|
||||
<main>
|
||||
|
||||
<header>
|
||||
<header style="margin-top: 20px;">
|
||||
<a id="linkTitles" href="./">
|
||||
<img alt="" id="logo" src="themes/<?php echo $theme; ?>/icons/128.png">
|
||||
<img alt="" id="logo" src="themes/<?php echo $theme; ?>/icons/chapril-libreqr-logo.png">
|
||||
<div id="titles">
|
||||
<h1>LibreQR</h1>
|
||||
<h1>QrcodeChaprilOrg</h1>
|
||||
<h2><?= $loc['subtitle'] ?></h2>
|
||||
</div>
|
||||
</a>
|
||||
|
@ -42,7 +42,7 @@ $loc = array(
|
||||
'metaText_qr' => "
|
||||
<h3>Qu'est-ce qu'un code QR ?</h3>
|
||||
Un code QR est un code-barres en 2 dimensions dans lequel du texte est inscrit en binaire. Il peut être décodé avec un appareil muni d'un capteur photo et d'un logiciel adéquat.
|
||||
<a href='https://fr.wikipedia.org/wiki/Code_QR'>Code QR sur Wikipédia</a>
|
||||
<a href='https://fr.wikipedia.org/wiki/Code_QR'>Code QR sur Wikipédia</a> Votre code QR est conservé 7 jours avant suppression automatique.
|
||||
",
|
||||
'metaText_legal' => "LibreQR " . $libreqrVersion . " est un logiciel libre dont le <a href='https://code.antopie.org/miraty/libreqr/'>code source</a> est disponible selon les termes de l'<abbr title='GNU Affero General Public License version 3 ou toute version ultérieure'><a href='LICENSE.html'>AGPLv3</a>+</abbr>.",
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
"name": "LibreQR",
|
||||
"short_name": "LibreQR",
|
||||
"description": "<?= $loc['subtitle'] ?>",
|
||||
"start_url": "<?= $instPath; ?>",
|
||||
"scope": "<?= $instPath; ?>",
|
||||
"start_url": "<?= $rootPath; ?>",
|
||||
"scope": "<?= $rootPath; ?>",
|
||||
"display": "standalone",
|
||||
"theme_color": "<?= $variablesTheme["bg"]; ?>",
|
||||
"background_color": "<?= $variablesTheme["bg"]; ?>",
|
||||
|
@ -5,7 +5,7 @@
|
||||
<Description><?= $loc['opensearch_actionName'] ?></Description>
|
||||
<?php
|
||||
foreach($themeDimensionsIcons as $dimIcon) {
|
||||
echo ' <Image height="' . $dimIcon . '" width="' . $dimIcon . '" type="image/png">' . $instPath . 'themes/' . $theme . '/icons/' . $dimIcon . '.png</Image>' . "\n";
|
||||
echo ' <Image height="' . $dimIcon . '" width="' . $dimIcon . '" type="image/png">' . $rootPath . 'themes/' . $theme . '/icons/' . $dimIcon . '.png</Image>' . "\n";
|
||||
} ?>
|
||||
<Language>*</Language>
|
||||
<InputEncoding>UTF-8</InputEncoding>
|
||||
@ -16,7 +16,7 @@
|
||||
$bgColor = htmlspecialchars(urlencode((isset($_GET['bgColor'])) ? $_GET['bgColor'] : '%23FFFFFF'));
|
||||
$mainColor = htmlspecialchars(urlencode((isset($_GET['mainColor'])) ? $_GET['mainColor'] : '%23000000'));
|
||||
?>
|
||||
<Url type="text/html" template="<?= $instPath; ?>">
|
||||
<Url type="text/html" template="<?= $rootPath; ?>">
|
||||
<Param name="txt" value="{searchTerms}"/>
|
||||
<Param name="redondancy" value="<?= $redondancy ?>"/>
|
||||
<Param name="margin" value="<?= $margin ?>"/>
|
||||
@ -24,7 +24,7 @@
|
||||
<Param name="bgColor" value="<?= $bgColor ?>"/>
|
||||
<Param name="mainColor" value="<?= $mainColor ?>"/>
|
||||
</Url>
|
||||
<Url type="application/opensearchdescription+xml" rel="self" template="<?= $instPath; ?>opensearch.php">
|
||||
<Url type="application/opensearchdescription+xml" rel="self" template="<?= $rootPath; ?>opensearch.php">
|
||||
<Param name="redondancy" value="<?= $redondancy ?>"/>
|
||||
<Param name="margin" value="<?= $margin ?>"/>
|
||||
<Param name="size" value="<?= $size ?>"/>
|
||||
|
@ -75,12 +75,12 @@ main {
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 18px;
|
||||
margin: 0px;
|
||||
background-color: @bg;
|
||||
color: @text;
|
||||
font-weight: normal;
|
||||
font-size: 20px;
|
||||
height: 99%;
|
||||
height: 96%;
|
||||
}
|
||||
|
||||
html {
|
||||
@ -237,7 +237,7 @@ header, footer {
|
||||
|
||||
#txt {
|
||||
background-color: @bgTextField;
|
||||
color: @text;
|
||||
color: @fgTextField;
|
||||
padding: 10px;
|
||||
margin: 10px;
|
||||
width: 500px;
|
||||
@ -253,7 +253,7 @@ input[type=submit] {
|
||||
}
|
||||
|
||||
#txt::placeholder {
|
||||
color: @secondaryText;
|
||||
color: @fgDefaultTextField;
|
||||
opacity: 1;
|
||||
font-family: "Ubuntu", sans-serif;
|
||||
font-weight: normal;
|
||||
|
0
temp/.gitkeep
Executable file → Normal file
BIN
themes/chapril/icons/128.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
themes/chapril/icons/16.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
themes/chapril/icons/192.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
themes/chapril/icons/256.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
themes/chapril/icons/32.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
themes/chapril/icons/384.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
BIN
themes/chapril/icons/48.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
themes/chapril/icons/512.png
Normal file
After Width: | Height: | Size: 8.9 KiB |
BIN
themes/chapril/icons/64.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
themes/chapril/icons/96.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
themes/chapril/icons/chapril-libreqr-favicon.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
themes/chapril/icons/chapril-libreqr-logo.png
Normal file
After Width: | Height: | Size: 62 KiB |
BIN
themes/chapril/icons/source.png
Normal file
After Width: | Height: | Size: 13 KiB |
17
themes/chapril/theme.php
Executable file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512); // Liste les dimensions des icones
|
||||
|
||||
$variablesTheme = array(
|
||||
"bg" => "#67a3f2",
|
||||
"bgField" => "#2e5281",
|
||||
"bgTextField" => "white",
|
||||
"fgTextField" => "black",
|
||||
"fgDefaultTextField" => "#999999",
|
||||
"bgHelp" => "#2e5281",
|
||||
"border" => "#2e5281",
|
||||
"borderHover" => "#808080",
|
||||
"borderFocus" => "white",
|
||||
"text" => "white",
|
||||
"secondaryText" => "white"
|
||||
); // Définit les couleurs du thème
|