Skip to content

Commit 1cacbc4

Browse files
committed
Add dark theme
1 parent f56ddba commit 1cacbc4

25 files changed

Lines changed: 37 additions & 26 deletions
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php switch ($_SESSION['theme']) {
2+
case "0":
3+
echo "";
4+
break;
5+
6+
case "1":
7+
echo "dark";
8+
break;
9+
10+
default:
11+
echo "";
12+
}

books-reader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
require 'actions/functions/conversionDateHour.php';
1515
require 'actions/functions/colorDateEmpruntFunction.php'; ?>
1616
<!DOCTYPE html>
17-
<html lang="fr">
17+
<html lang="fr" data-bs-theme="<?php include 'actions/users/decodeThemeAction.php'; ?>">
1818
<head>
1919
<meta charset="UTF-8">
2020
<meta name="viewport" content="width=device-width, initial-scale=1.0">

books.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
require 'actions/functions/conversionDateHour.php';
1313
require 'actions/functions/colorDateEmpruntFunction.php'; ?>
1414
<!DOCTYPE html>
15-
<html lang="fr">
15+
<html lang="fr" data-bs-theme="<?php include 'actions/users/decodeThemeAction.php'; ?>">
1616
<head>
1717
<meta charset="UTF-8">
1818
<meta name="viewport" content="width=device-width, initial-scale=1.0">

configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
require_once 'actions/database.php';
1212
?>
1313
<!DOCTYPE html>
14-
<html lang="fr">
14+
<html lang="fr" data-bs-theme="<?php include 'actions/users/decodeThemeAction.php'; ?>">
1515
<head>
1616
<meta charset="UTF-8">
1717
<meta name="viewport" content="width=device-width, initial-scale=1.0">

emprunts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
require 'actions/functions/conversionDate.php';
1515
require 'actions/functions/colorDateEmpruntFunction.php'; ?>
1616
<!DOCTYPE html>
17-
<html lang="fr">
17+
<html lang="fr" data-bs-theme="<?php include 'actions/users/decodeThemeAction.php'; ?>">
1818
<head>
1919
<meta charset="UTF-8">
2020
<meta name="viewport" content="width=device-width, initial-scale=1.0">

gestion/add-book.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
require '../actions/functions/logFunction.php';
1313
require 'actions/books/addBooksAction.php'; ?>
1414
<!DOCTYPE html>
15-
<html lang="fr">
15+
<html lang="fr" data-bs-theme="<?php include '../actions/users/decodeThemeAction.php'; ?>">
1616
<head>
1717
<meta charset="UTF-8">
1818
<meta name="viewport" content="width=device-width, initial-scale=1.0">

gestion/bookfind.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
?>
3131

3232
<!DOCTYPE html>
33-
<html lang="fr">
33+
<html lang="fr" data-bs-theme="<?php include '../actions/users/decodeThemeAction.php'; ?>">
3434

3535
<head>
3636
<meta charset="UTF-8">

gestion/books-reader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
require '../actions/functions/conversionDateHour.php';
1616
require '../actions/functions/colorDateEmpruntFunction.php'; ?>
1717
<!DOCTYPE html>
18-
<html lang="fr">
18+
<html lang="fr" data-bs-theme="<?php include '../actions/users/decodeThemeAction.php'; ?>">
1919
<head>
2020
<meta charset="UTF-8">
2121
<meta name="viewport" content="width=device-width, initial-scale=1.0">

gestion/books.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
require 'actions/users/securityAdminAction.php';
1515
$gestion = true; ?>
1616
<!DOCTYPE html>
17-
<html lang="fr">
17+
<html lang="fr" data-bs-theme="<?php include '../actions/users/decodeThemeAction.php'; ?>">
1818
<head>
1919
<meta charset="UTF-8">
2020
<meta name="viewport" content="width=device-width, initial-scale=1.0">

gestion/config-ht.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
require 'actions/users/securityAdminAction.php';
1313
?>
1414
<!DOCTYPE html>
15-
<html lang="fr">
15+
<html lang="fr" data-bs-theme="<?php include '../actions/users/decodeThemeAction.php'; ?>">
1616
<head>
1717
<meta charset="UTF-8">
1818
<meta name="viewport" content="width=device-width, initial-scale=1.0">

0 commit comments

Comments
 (0)