Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente |
slideshow:modifier_les_liens_pour_la_langue_fr [08/04/2013 12:15] – berthezene | slideshow:modifier_les_liens_pour_la_langue_fr [12/04/2013 17:29] (Version actuelle) – berthezene |
---|
====== Slideshow : modifier les liens pour la langue FR ====== | ====== Slideshow - Modifier les liens pour la langue FR ====== |
| |
En français, le code du Slideshow, prends en compte la langue et ajoute un fr dans l'url : | En français, le code du Slideshow, prends en compte la langue et ajoute un fr dans l'url : |
<a href="<?php print url($node->field_standard_images[0]["filepath"], array('absolute' => true, 'language' => '')); ?>" rel="lightshow[photogallery-<?php print $node->nid; ?>][<?php print $node->field_standard_images[0]["data"]["alt"] ?>]" ><?php print t('Slideshow'); ?></a> | <a href="<?php print url($node->field_standard_images[0]["filepath"], array('absolute' => true, 'language' => '')); ?>" rel="lightshow[photogallery-<?php print $node->nid; ?>][<?php print $node->field_standard_images[0]["data"]["alt"] ?>]" ><?php print t('Slideshow'); ?></a> |
</code> | </code> |
| |
| et la ligne 44 : |
| <code php> |
| <a class="display_none" href="<?php print url($image["filepath"], array('absolute' => true)); ?>" rel="lightshow[photogallery-<?php print $node->nid; ?>][<?php print $image["data"]["alt"] ?>]"></a> |
| |
| </code> |
| |
| par |
| <code php> |
| <a class="display_none" href="<?php print url($image["filepath"], array('absolute' => true, 'language' => '')); ?>" rel="lightshow[photogallery-<?php print $node->nid; ?>][<?php print $image["data"]["alt"] ?>]"></a> |
| </code> |
| |
| Faire les mêmes corrections pour les fichiers : |
| * node-jobs.tpl.php ; |
| * node-jobs_liste.tpl.php. |
| |
| |
--- //[[berthezene@emse.fr|Gregoire BERTHEZENE]] 08/04/2013 12:10// | --- //[[berthezene@emse.fr|Gregoire BERTHEZENE]] 08/04/2013 12:10// |