How can I make footers for each language?

Permalink
Hi C5,

I have a bilingual (English/French) site and my legal pages (terms / privacy etc) fit in perfectly as a continuation of the attribution (see pîc attached). (Fundamental theme)... only problem is how to make a separate one for my French pages.
I thought of changing the left global area to just a regular block area, but then I have to add a block to all 40 pages one by one which is not that big a deal but there has to be something easier.... I dread having to edit everything 40x.

Help is appreciated!

1 Attachment

MarcYBB
 
hutman replied on at Permalink Reply
hutman
In 5.6 you could update the theme foooter and change the global area to be like this

<?php
$languageCode = Loader::helper('section', 'multilingual')->getLanguage();
if (strlen($languageCode) === 5) {
   $languageCode = substr($languageCode, 0, 2);
}
if ($languageCode == "en") $languageCode = "";
$a = new GlobalArea($languageCode . 'Footer');
$a->display();
?>

I don't know if that will work in 5.7 or not, but there should be something similar. So it creates a new Global Area for each language.
MarcYBB replied on at Permalink Reply
MarcYBB
Thanks hutman! I can hack my way through CSS files but last time I messed with areas and php well... I don't want to go there. The auto-nav block displays the links in both languages so I am going to have my products and knowledge page links in the header autonav and the footer autonav will be all the legal stuff-
Thanks for taking the time and for getting back so quickly.