This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquotes.php
86 lines (80 loc) · 3.9 KB
/
quotes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
require('function.php');
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Liste des citation - SEARCH | IslandGAME</title>
<meta name="description" content="Une page simple qui vous donne un accès plus rapide au contenu pour développer et rechercher sans perdre de temps.">
<meta name="Keywords" content="islandgame,search,gratuit,free,outil,developper,dev,french,francais,gate,portail,vie,privée,open,source,duckduckgo">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<link rel="icon" type="image/png" href="assets/img/favicon.png"/>
<!-- OG -->
<meta property="og:url" content="https://islandgame.fr/search">
<meta property="og:image:alt" content="Search Logo Icon">
<meta property="og:site_name" content="SEARCH | IslandGAME" />
<meta property="og:title" content="SEARCH - IslandGAME"/>
<meta property="og:type" content="website"/>
<meta property="og:image" content="https://islandgame.fr/search/assets/img/favicon.png"/>
<meta property="og:description" content="Une page simple qui vous donne un accès plus rapide au contenu pour développer et rechercher sans perdre de temps."/>
<!-- Twitter Card -->
<meta name="twitter:url" content="https://islandgame.fr/search">
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="SEARCH | IslandGAME" />
<meta name="twitter:title" content="SEARCH - IslandGAME" />
<meta name="twitter:description" content="Une page simple qui vous donne un accès plus rapide au contenu pour développer et rechercher sans perdre de temps." />
<meta name="twitter:image" content="https://islandgame.fr/search/assets/img/favicon.png" />
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="assets/img/favicon.png">
<meta name="theme-color" content="#0b716b">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="green">
<meta name="apple-mobile-web-app-title" content="The Gate">
<link rel="apple-touch-icon-precomposed" href="assets/img/favicon.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="assets/img/favicon.png">
<meta name="msapplication-TileColor" content="#0b716b">
<!-- End colors and to homescreen -->
<!-- Bootstrap Core-->
<link type="text/css" rel="stylesheet" href="assets/css/bootstrap.min.css" media="screen,projection"/>
<!-- Font Awesome V5 -->
<link href="https://use.fontawesome.com/releases/v5.0.2/css/all.css" rel="stylesheet">
<!-- Custom CSS Card -->
<style>
.card {
margin: 7px !important;
}
</style>
</head>
<body onLoad="Enter()">
<!-- Get all quotes -->
<?php
$json = file_get_contents('quotes.json'); // Get JSON data
$quotes = json_decode($json,true); // Decoding JSON
foreach ($quotes as $key => $quote) {
// For each quotes, get the key and the content
?>
<div class="container">
<div class="card">
<div class="card-body">
<?php echo '<b>' . $key . '.</b> '. $quote["quote"] . ' - ' . $quote["author"] . '<br>' ;?>
</div>
</div>
</div>
<?php }; ?>
<!-- Bootstrap core JavaScript -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script defer src="assets/js/popper.min.js"></script>
<script defer src="assets/js/bootstrap.min.js"></script>
<!-- Init -->
<script type="text/javascript" src="assets/js/init.js"></script>
<!-- L'heure tourne .. -->
<script type="text/javascript">window.onload = date_heure('date_heure');</script>
</body>
</html>