12-04-2022

mise en place de $_SESSION pour la localisation
This commit is contained in:
2022-04-12 12:22:54 +02:00
parent 629d9fd711
commit 053598bf47
5 changed files with 43 additions and 68 deletions

View File

@@ -26,9 +26,10 @@
<link rel="stylesheet" type="text/css" href="css/sls.css" />
<?php include 'functions.php';
$domain = 'sentier';
localize($domain);
<?php include 'functions.php';
session_start();
$domain = 'sentier';
localize($domain);
?>
<?php
@@ -48,7 +49,7 @@ $wp = (($_SERVER['SERVER_NAME'] == "sur-le-sentier.fr") ? "blog" : "wordpress");
</head>
<body>
<?php //echo "Session language: " . $_SESSION['language']; ?>
<script>
$("#exemple, body").vegas({
@@ -135,9 +136,9 @@ $("#exemple, body").vegas({
<div class="myForm">
<form name="langSelect" action="" method="get" >
<form name="langSelect" action="index.php" method="get" >
<select name="lang" id="lang" class="mySelect">
<option>Language</option>
<option value="">Language</option>
<option value="de_DE">German</option>
<option value="en_US">English</option>
<option value="es_ES">Spanish</option>
@@ -149,7 +150,7 @@ $("#exemple, body").vegas({
</div>
<div class="vegas-info">
<?php echo gettext('Powered by'); ?> <a href="https://wordpress.org">WordPress</a> - <a href="https://www.zenphoto.org">Zenphoto</a> - <a href="https://vegas.jaysalvat.com">Vegas Background Slideshow 2</a>. <a href="">License des photos</a>. (c) 2013-<?php echo date('Y'); ?> sur-le-sentier.fr
<a href="close.php">close</a>a><?php echo gettext('Powered by'); ?> <a href="https://wordpress.org">WordPress</a> - <a href="https://www.zenphoto.org">Zenphoto</a> - <a href="https://vegas.jaysalvat.com">Vegas Background Slideshow 2</a>. <a href="">License des photos</a>. (c) 2013-<?php echo date('Y'); ?> sur-le-sentier.fr
</div>
</body>