php_flag magic_quotes_sybase off
</IfModule>
-# Specific OVH Environnement variables
-<IfModule mod_env.c>
- SetEnv PHP_VER 5_4
- SetEnv ZEND_OPTIMIZER 1
- SetEnv REGISTER_GLOBALS 0
- SetEnv MAGIC_QUOTES 0
- SetEnv SESSION_USE_TRANS_SID 0
-</IfModule>
-
# Rewrite for Zend Framework
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
# Redirection to www. subdomain
- RewriteCond %{HTTP_HOST} ^cubedesigners.fr$
+ RewriteCond %{HTTP_HOST} !=www.cubedesigners.fr
+ RewriteCond %{HTTP_HOST} !=www.cubedesigners.com
RewriteRule ^(.*)$ http://www.cubedesigners.fr/$1 [R=301,L]
# Redirect auth header to env
RewriteRule ^.*$ - [E=REMOTE_USER:%{HTTP:Authorization}]
</div>
<div class="footer-bottom">
- <?php
- echo $this->option('copyright');
+ <div class="content">
+ <div class="copyright">
+ <?php
+ echo $this->option('copyright');
- if (!is_null($mentions)) {
- echo ' | <a href="' . $mentions . '">' . ucfirst($mentions_page->title) . '</a>';
- }
- ?>
+ if (!is_null($mentions)) {
+ echo ' <a href="' . $mentions . '">' . ucfirst($mentions_page->title) . '</a>';
+ }
+ ?>
+ </div>
+ <nav class="locales">
+ <?php
+ $fr = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
+ if (!isset($this->enversion)) {
+ $en = 'http://www.cubedesigners.com/en';
+ } else {
+ $en = $this->enversion;
+ }
+ echo $this->link('fr', $fr, array('class' => 'active', array('hreflang' => 'en')));
+ echo $this->link('en', $en, array('hreflang' => 'en'));
+ ?>
+ </nav>
+ </div>
</div>
</div>
</div>
background-color: #191919;
height: 30px;
color: #6c6c6c;
- text-align: center;
+ text-align: left;
font-size: 12px;
line-height: 30px;
+ padding:8px 0;
+
+ .copyright{
+ display:inline-block;
+ float:left;
+ }
+
+ .locales{
+ float:right;
+ a{
+ display:inline-block;
+ line-height: 30px;
+ text-transform: uppercase;
+ height:30px;
+ width:30px;
+ border-radius: 30px;
+ background-color:#282828;
+ color:#616161;
+ text-align:center;
+ margin:0 0 0 10px;
+
+ &.active,&:hover{
+ background-color:#3885e0;
+ color:#fff;
+ }
+ }
+ }
}
}