Author: sevein
Date: Wed Mar 28 17:36:10 2012
New Revision: 11304

Log:
Fix header links, including lang swithcer

Modified:
   trunk/plugins/qtDominionPlugin/templates/_header.php

Modified: trunk/plugins/qtDominionPlugin/templates/_header.php
==============================================================================
--- trunk/plugins/qtDominionPlugin/templates/_header.php        Wed Mar 28 
16:33:56 2012        (r11303)
+++ trunk/plugins/qtDominionPlugin/templates/_header.php        Wed Mar 28 
17:36:10 2012        (r11304)
@@ -10,10 +10,16 @@
 
         <ul id="header-nav" class="nav nav-pills">
 
-          <li><a href="#"><?php echo __('Home') ?></a></li>
-          <li><a href="#"><?php echo __('Sitemap') ?></a></li>
-          <li><a href="#"><?php echo __('Contact us') ?></a></li>
-          <li><a href="#"><?php echo __('Français') ?></a></li>
+          <li><?php echo link_to(__('Home'), '@homepage') ?></li>
+          <li><?php echo link_to(__('Sitemap'), array('module' => 
'staticpage', 'slug' => 'sitemap')) ?></li>
+          <li><?php echo link_to(__('Contact us'), array('module' => 
'staticpage', 'slug' => 'contact')) ?></li>
+
+          <?php foreach (array('en', 'fr') as $item): ?>
+            <?php if ($sf_user->getCulture() != $item): ?>
+              <li><?php echo link_to(format_language($item, $item), 
array('sf_culture' => $item) + $sf_request->getParameterHolder()->getAll()) 
?></li>
+              <?php break; ?>
+            <?php endif; ?>
+          <?php endforeach; ?>
 
         </ul>
 

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to