* A multisite for a multilingual site
I am currently doing local tests with a multisite WordPress - multisite because there are different languages (English, Spanish, French).
Since it is a local installation, I use sub-directories, not sub-domains, for instance :
- /blog/ for English (root site)
- /es/ for Spanish
- /fr/ for French.
* Customize the footer
I've created a child theme (.css) from Twenty Ten, and didn't changed the template (.php) that much, just add a splash page for each site and a special footer. As you might know, some WP-themes provide the possibility to customize the footer, but it's not the case here with Twenty Ten Theme - unless I use the widgets, but I want to have the control over each footer.
What do I mean by customization? I actually want to add special texts and different images for each site/langage, a newsletter box, etc.
Here is an exemple of
footer-english.php (the real content of the site isn't fixed yet) :
* My efforts so far...
I've seen there are many WP plugins or trick to customize the template, per-post, per-page, per-category, per-tag.
I've already took a look at this tuturial for example, but it's not for Multisite WP.
But this time, the issue is I would like a custom footer per-site.
I assume there is something to do with the ID of each site (I don't know yet how to get it, but it's pretty easy), and link it to a conditional tag, something like :
- if English, get footer-english
- elseif Spanish, get footer-spanish
- and so on
But I'm infortunately not good enough at php to do that alone.
* Any clue?
Any idea how I could do that? I would like to do it for once, or at least reduce to minimum the selection from the WP dashboard.
Thanks a lot!