integration du renommage des url english
This commit is contained in:
parent
10038f0022
commit
f5b61564e4
@ -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>
|
||||
|
@ -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" >
|
@ -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" >
|
@ -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" >
|
@ -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" >
|
@ -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" >
|
@ -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" >
|
@ -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" >
|
@ -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" >
|
Loading…
Reference in New Issue
Block a user