Configured and customized qrcode.libre-service.eu code.
|
@ -11,7 +11,7 @@ $timeBeforeDeletion = 60 * 60 * 24 * 2;
|
|||
|
||||
// EN: Theme's name (must be in the themes directory)
|
||||
// FR : Nom du thème (doit être dans le dossier themes)
|
||||
$theme = "libreqr";
|
||||
$theme = "libre-service.eu";
|
||||
|
||||
// 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
|
||||
|
@ -27,5 +27,5 @@ $fileNameLenght = 32;
|
|||
|
||||
// EN: Will be printed at the bottom of the interface
|
||||
// FR : Sera affiché en bas de l'interface
|
||||
$customTextEnabled = false;
|
||||
$customText = "This LibreQR instance is hosted by <a href='https://foo.example/'>foo</a>.";
|
||||
$customTextEnabled = true;
|
||||
$customText = "Cette instance de LibreQR est hébergée par <a href='https://www.libre-service.eu/'>https://www.libre-service.eu/</a>.";
|
||||
|
|
2
inc.php
|
@ -8,7 +8,7 @@ define("DEFAULT_SIZE", 4);
|
|||
define("DEFAULT_BGCOLOR", "FFFFFF");
|
||||
define("DEFAULT_MAINCOLOR", "000000");
|
||||
|
||||
$libreqrVersion = "1.4.0dev";
|
||||
$libreqrVersion = "libre-service.eu-1.3.0";
|
||||
|
||||
// Defines the locale to be used
|
||||
if ($forceLocale == false AND isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
|
||||
|
|
|
@ -110,7 +110,7 @@ if (
|
|||
<a id="linkTitles" href="./">
|
||||
<img alt="" id="logo" src="themes/<?php echo $theme; ?>/icons/128.png">
|
||||
<div id="titles">
|
||||
<h1>LibreQR</h1>
|
||||
<h1>QRCode.libre-service.eu</h1>
|
||||
<h2><?= $loc['subtitle'] ?></h2>
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
@ -41,7 +41,7 @@ $loc = array(
|
|||
A QR code is a 2 dimensional barcode in which text is written in binary. It can be decoded with a device equipped with a photo sensor and an adequate software.
|
||||
<a href='https://en.wikipedia.org/wiki/QR_code'>QR code on Wikipedia</a>.
|
||||
",
|
||||
'metaText_legal' => "LibreQR " . $libreqrVersion . " is a free software whose <a href='https://code.antopie.org/miraty/libreqr/'>source code</a> is available under the terms of the <abbr title='GNU Affero General Public License version 3 or any later version'><a href='LICENSE.html'>AGPLv3</a>+</abbr>.",
|
||||
'metaText_legal' => "<a href='https://code.antopie.org/miraty/libreqr/'>LibreQR</a> version " . $libreqrVersion . " is a free software whose <a href='https://forge.devinsy.fr/libre-service.eu/qrcode.libre-service.eu-libreqr/'>source code</a> is available under the terms of the <abbr title='GNU Affero General Public License version 3 or any later version'><a href='LICENSE.html'>AGPLv3</a>+</abbr>.",
|
||||
|
||||
'opensearch_description' => "Generate QR codes from your search or address bar",
|
||||
);
|
||||
|
|
|
@ -41,7 +41,7 @@ $loc = array(
|
|||
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>.
|
||||
",
|
||||
'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>.",
|
||||
'metaText_legal' => "<a href='https://code.antopie.org/miraty/libreqr/'>LibreQR</a> version " . $libreqrVersion . " est un logiciel libre dont le <a href='https://forge.devinsy.fr/libre-service.eu/qrcode.libre-service.eu-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>.",
|
||||
|
||||
'opensearch_description' => "Générez des codes QR depuis votre barre de recherche ou d'adresse",
|
||||
);
|
||||
|
|
BIN
themes/libre-service.eu/icons/128.png
Executable file
After Width: | Height: | Size: 207 B |
BIN
themes/libre-service.eu/icons/16.png
Executable file
After Width: | Height: | Size: 163 B |
BIN
themes/libre-service.eu/icons/192.png
Executable file
After Width: | Height: | Size: 249 B |
BIN
themes/libre-service.eu/icons/256.png
Executable file
After Width: | Height: | Size: 246 B |
BIN
themes/libre-service.eu/icons/32.png
Executable file
After Width: | Height: | Size: 187 B |
BIN
themes/libre-service.eu/icons/384.png
Executable file
After Width: | Height: | Size: 293 B |
BIN
themes/libre-service.eu/icons/48.png
Executable file
After Width: | Height: | Size: 217 B |
BIN
themes/libre-service.eu/icons/512.png
Executable file
After Width: | Height: | Size: 354 B |
BIN
themes/libre-service.eu/icons/64.png
Executable file
After Width: | Height: | Size: 198 B |
BIN
themes/libre-service.eu/icons/96.png
Executable file
After Width: | Height: | Size: 231 B |
BIN
themes/libre-service.eu/icons/source.png
Executable file
After Width: | Height: | Size: 6.2 KiB |
29
themes/libre-service.eu/theme.php
Executable file
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
// List icons dimensions
|
||||
$themeDimensionsIcons = array(16, 32, 48, 64, 96, 128, 192, 256, 384, 512);
|
||||
|
||||
$colorScheme = array(
|
||||
// Light theme
|
||||
"text-light" => "#2a2a2a",
|
||||
"bg-light" => "white",
|
||||
"bgField-light" => "#eeeeee",
|
||||
"bgHelp-light" => "#ececec",
|
||||
"bgTextarea-light" => "#e5e5e5",
|
||||
"textareaText-light" => "#2a2a2a",
|
||||
"textareaPlaceholder-light" => "#868686",
|
||||
"border-light" => "#65666b",
|
||||
"borderHover-light" => "#46484e",
|
||||
"borderFocus-light" => "#2a2a2a",
|
||||
// Dark theme
|
||||
"text-dark" => "white",
|
||||
"bg-dark" => "#2a2a2a",
|
||||
"bgField-dark" => "#31363B",
|
||||
"bgHelp-dark" => "#151616",
|
||||
"bgTextarea-dark" => "#232629",
|
||||
"textareaText-dark" => "white",
|
||||
"textareaPlaceholder-dark" => "#bababa",
|
||||
"border-dark" => "#5f5f5f",
|
||||
"borderHover-dark" => "#808080",
|
||||
"borderFocus-dark" => "white"
|
||||
);
|