Changeset 27784 in spip-zone


Ignore:
Timestamp:
Apr 10, 2009, 4:16:20 PM (13 years ago)
Author:
romy@…
Message:

Dissocier les ancres de leurs liens, pour pouvoir les utiliser séparemment

Location:
_plugins_/_stable_/skiplink
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_stable_/skiplink/insere_skiplink.php

    r27276 r27784  
    1717                $page = substr_replace($page, $raccourcis, (strpos($page, $regs[0]) + strlen($regs[0])), 0);
    1818        $remonter = recuperer_fond('remonter', array('lang'=>$GLOBALS['spip_lang']));
     19        $ancre_basse = recuperer_fond('ancre_basse', array('lang'=>$GLOBALS['spip_lang']));
    1920        preg_match(',<\/body\b.*?>,i', $page, $regs);
    2021        if ($regs)
    21                 $page = substr_replace($page, $remonter, strpos($page, $regs[0]), 0);
     22                $page = substr_replace($page, $ancre_basse, strpos($page, $regs[0]), 0);
    2223
    2324        return $page;
  • _plugins_/_stable_/skiplink/raccourcis.html

    r27276 r27784  
    1 <a href="#<:skiplink:ancre_haute:>" id="<:skiplink:ancre_haute:>" name="<:skiplink:ancre_haute:>"></a>
     1<INCLURE{fond=ancre_haute}>
    22<p class="skiplink" id="raccourcis" style="z-index: 100;"><a href="#contenu" accesskey="s"><:skiplink:go_main:></a> | <a href="#navigation" accesskey="n"><:skiplink:go_sidebar:></a>[(#ENV{recherche}|=={'oui'}|?{' '}) | <a href="#recherche" accesskey="4"><:skiplink:go_search:></a>]</p>
  • _plugins_/_stable_/skiplink/remonter.html

    r27276 r27784  
    11<span class="skiplink remonter"><a rel="nofollow" href="#<:skiplink:ancre_haute:>" title="<:skiplink:remonter:>"><img src="#CHEMIN{remonter.png}" alt="<:skiplink:haut:>" /></a></span>
    2 <a href="#bas" id="bas" name="bas"></a>
Note: See TracChangeset for help on using the changeset viewer.