Changeset 48614 in spip-zone


Ignore:
Timestamp:
Jun 8, 2011, 9:24:14 PM (10 years ago)
Author:
romy@…
Message:

Séparer les appels des css et js

Location:
_plugins_/links
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/links/links_pipelines.php

    r48310 r48614  
    11<?php
     2
     3function links_insert_head_css($flux) {
     4        $flux .= '<link rel="stylesheet" href="'.find_in_path('css/links.css').'" type="text/css" media="all" />';
     5        return $flux;
     6}
    27
    38function links_insert_head($flux) {
    49        $flux .= '<script type="text/javascript">var links_site = \''.$GLOBALS['meta']['adresse_site'].'\';</script>';
    510        $flux .= '<script src="'.find_in_path('links.js').'" type="text/javascript"></script>';
    6         $flux .= '<link rel="stylesheet" href="'.find_in_path('css/links.css').'" type="text/css" media="all" />';
    711        return $flux;
    812}
  • _plugins_/links/plugin.xml

    r48441 r48614  
    66<auteur>[romy.tetue.net->http://romy.tetue.net] et C&eacute;dric Morin</auteur>
    77<licence>(c) GPL 2011</licence>
    8 <version>2.2.1</version>
     8<version>2.2.2</version>
    99<etat>test</etat>
    1010<prefix>links</prefix>
     
    1212<necessite id='SPIP' version='[2.0.0;]' />
    1313<necessite id="spip_bonux" version="[2.2.13;]" />
     14<pipeline>
     15        <nom>insert_head_css</nom>
     16        <inclure>links_pipelines.php</inclure>
     17</pipeline>
    1418<pipeline>
    1519        <nom>insert_head</nom>
     
    3640<pipeline>
    3741        <nom>insert_head_css</nom>
    38         <action>insert_head</action>
     42        <inclure>links_pipelines.php</inclure>
     43</pipeline>
     44<pipeline>
     45        <nom>insert_head</nom>
    3946        <inclure>links_pipelines.php</inclure>
    4047</pipeline>
Note: See TracChangeset for help on using the changeset viewer.