-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindexSite.php
72 lines (65 loc) · 2.31 KB
/
indexSite.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
<?php
/**
* Created by PhpStorm.
* User: ValentinLeGentil
* Date: 20/09/2016
* Time: 17:08
*/
/**
* Accueil du site
*/
include_once 'php/path.php';
include_once 'php/include/header.php';
include_once 'php/include/init.php';
$param = array('id_langue' => $_COOKIE["langue"]);
$articles = Article::rechercherParParam($param, 6);
?>
<script src="https://use.fontawesome.com/992faf6002.js"></script>
<link rel="icon" type="image/png" href="img/min/Musee.png" />
<body>
<div class="swicthLangue">
<?php echo Langue::afficherDrapeau($_COOKIE["langue"]); ?>
</div>
<div id="btnConnexion">
<?php
echo '<a href="boutique.php">'.($_COOKIE['langue'] == 2 ? 'Store': 'Boutique').'</a>';
?>
</div>
<div class="reseauxSociaux"><a href="https://www.facebook.com/Quartier-Confluence-203568893403172/?skip_nax_wizard=true"><i class="fa fa-facebook-square" aria-hidden="true"></i></a>
<a href="https://twitter.com/MQConfluence"><i class="fa fa-twitter-square" aria-hidden="true"></i></a></div>
<div id="menu_haut">
<div id="link_container" class="nav_item">
<img src="img/svg/LogoAccueil.svg">
<?php
echo '<span class="nav_txt">'.($_COOKIE['langue'] == 2 ? 'Home': 'Accueil').'</span>';
?>
</div>
<?php
foreach ($articles as $a) {
echo '<div id="link_'.$a->getTitreNavbar().'" class="nav_item">
<img src="img/svg/Logo'.$a->getImageNavbar().'.svg">
<span class="nav_txt">'.$a->getTitreNavbar().'</span>
</div>';
}
?>
<div id="link_Contact" class="nav_item">
<img src="img/svg/LogoContact.svg">
<span class="nav_txt">Contact</span>
</div>
</div>
<div id="container">
<div id="panorama" >
<img src="img/banniere_V2.png">
</div>
<?php
foreach ($articles as $a) {
include 'php/views/main_page/article.php';
}
include 'php/views/main_page/contact.php';
$ml = $_COOKIE['langue'] == 2 ? 'Terms and conditions' : 'Mentions légales';
echo'<a id="mentions_legales" href="php/views/main_page/mentions_legales.php">'.$ml.'</a>';
?>
</div>
</body>
<?php
include_once('php/include/footer.php');