Changeset 96824 in spip-zone


Ignore:
Timestamp:
Apr 27, 2016, 6:25:48 AM (3 years ago)
Author:
erational@…
Message:

fermeture php

Location:
_plugins_/cookiechoices/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/cookiechoices/trunk/cookiechoices_ieconfig.php

    r91697 r96824  
    1111}
    1212
    13 ?>
  • _plugins_/cookiechoices/trunk/cookiechoices_pipelines.php

    r86734 r96824  
    11<?php
    22/**
    3  * Plugin Cookiechoices pour Spip 3.0
     3 * Plugin Cookiechoices pour Spip 3
    44 *
    55 */
     
    1616 */
    1717function cookiechoices_affichage_final($page){
    18   //$js_cookiechoices = parametre_url(generer_url_public('cookiechoices_call.js'), 'lang', $lang);
    19   include_spip('inc/filtres');
    20   if (!$lang) $lang = $GLOBALS["spip_lang"];
    21   $js_cookiechoices = produire_fond_statique("cookiechoices_call.js", array("lang"=>$lang));
     18    include_spip('inc/filtres');
     19    if (!$lang) $lang = $GLOBALS["spip_lang"];
     20    $js_cookiechoices = produire_fond_statique("cookiechoices_call.js", array("lang"=>$lang));
    2221
    23    $script .=           
    24          "<script type='text/javascript' src='".find_in_path('js/cookiechoices.js')."'></script>\n"
    25         . "<script type='text/javascript' src='$js_cookiechoices'></script>\n";
    26  
    27     $pos_body = strpos($page, '</body>');               
    28     if ($pos_body > 0)                                    // pour placer le script uniquement sur les pages HTML
     22    $script .=
     23               "<script type='text/javascript' src='".find_in_path('js/cookiechoices.js')."'></script>\n"
     24             . "<script type='text/javascript' src='$js_cookiechoices'></script>\n";
     25
     26    $pos_body = strpos($page, '</body>');
     27    if ($pos_body > 0)// pour placer le script uniquement sur les pages HTML
    2928          return substr_replace($page, $script, $pos_body, 0);
    30          
    31     return $page;   
     29
     30    return $page;
    3231}
    3332
    34 ?>
  • _plugins_/cookiechoices/trunk/lang/cookiechoices_fr.php

    r91697 r96824  
    3838);
    3939
    40 ?>
  • _plugins_/cookiechoices/trunk/lang/paquet-cookiechoices_fr.php

    r84855 r96824  
    1212);
    1313
    14 ?>
Note: See TracChangeset for help on using the changeset viewer.