integration du renommage des url english

This commit is contained in:
root 2016-09-13 17:24:07 +02:00
parent 10038f0022
commit f5b61564e4
13 changed files with 10 additions and 10 deletions

View File

@ -28,16 +28,8 @@
<li><a href="contact.php">Contact</a></li>
<li class="has-dropdown"><a href="">Langue</a>
<ul class="dropdown">
<?php foreach ($registered_languages as $lang) { ?>
<?php
$current_dir= basename (getcwd ());
if ($current_dir == "htdocs")
$len= 1;
else
$len= 4;
$link= substr_replace ($_SERVER['REQUEST_URI'], $lang['loc'], 0, $len);
?>
<li><a href="<?php echo $link; ?>"><?php echo $lang['name']; ?></a></li>
<?php foreach ($registered_languages as $code => $lang) { ?>
<li><a href="<?php echo url_translate ($_SERVER['REQUEST_URI'], $code); ?>"><?php echo $lang['name']; ?></a></li>
<?php } ?>
</ul>
</li>

View File

@ -1,3 +1,4 @@
<?php include ("../lib/i18n.php"); ?>
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >

View File

@ -1,3 +1,4 @@
<?php include ("../lib/i18n.php"); ?>
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >

View File

@ -1,3 +1,4 @@
<?php include ("../lib/i18n.php"); ?>
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >

View File

@ -1,3 +1,4 @@
<?php include ("../lib/i18n.php"); ?>
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >

View File

@ -1,3 +1,4 @@
<?php include ("../lib/i18n.php"); ?>
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >

View File

@ -1,3 +1,4 @@
<?php include ("../lib/i18n.php"); ?>
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >

View File

@ -1,3 +1,4 @@
<?php include ("../lib/i18n.php"); ?>
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >

View File

@ -1,3 +1,4 @@
<?php include ("../lib/i18n.php"); ?>
<!DOCTYPE html>
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >