Changeset 96170 in spip-zone


Ignore:
Timestamp:
Mar 23, 2016, 7:03:43 PM (3 years ago)
Author:
brunobergot@…
Message:

règles de codage + bonnes pratiques sécu

Location:
_plugins_/responsivenav/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/responsivenav/trunk/responsivenav_fonctions.php

    r96168 r96170  
    11<?php
     2
     3if (!defined('_ECRIRE_INC_VERSION')) return;
    24
    35// on définit le point de rupture par défaut
     
    57// et accepte les em, px...
    68define('_RESPONSIVENAV_BREAKPOINT', '40em');
    7 
    89
    910?>
  • _plugins_/responsivenav/trunk/responsivenav_pipelines.php

    r96168 r96170  
    11<?php
     2
     3if (!defined('_ECRIRE_INC_VERSION')) return;
     4
    25/**
    36 * Utilisations de pipelines par Responsive Nav
     
    1518// on insert la feuille de styles
    1619function responsivenav_insert_head_css($flux) {
    17     $flux .= '<link rel="stylesheet" href="'.produire_fond_statique('css/responsive-nav.css').'" type="text/css" />';
    18     $flux .= '<link rel="stylesheet" href="'.produire_fond_statique('css/responsive-nav.spip.css').'" type="text/css" />';
    19     return $flux;
     20        $flux .= '<link rel="stylesheet" href="'.produire_fond_statique('css/responsive-nav.css').'" type="text/css" />';
     21        $flux .= '<link rel="stylesheet" href="'.produire_fond_statique('css/responsive-nav.spip.css').'" type="text/css" />';
     22        return $flux;
    2023}
    2124
    2225// on insert le script
    2326function responsivenav_insert_head($flux) {
    24     $flux .= '<script type="text/javascript" src="'.produire_fond_statique('js/responsive-nav.js').'"></script>';
     27        $flux .= '<script type="text/javascript" src="'.produire_fond_statique('js/responsive-nav.js').'"></script>';
     28
    2529        if (test_plugin_actif('Zpip')){
    2630                $flux .= '<script>$(function() {  var nav = responsiveNav(".menu.menu-container",{jsClass: "js-responsivenav"});}); </script>';
    27                 } else {
    28                         $flux .= '<script>$(function() {  var nav = responsiveNav("#nav",{jsClass: "js-responsivenav"});}); </script>';
    29                 }
    30        
    31     return $flux;
     31        } else {
     32                $flux .= '<script>$(function() {  var nav = responsiveNav("#nav",{jsClass: "js-responsivenav"});}); </script>';
     33        }
     34
     35        return $flux;
    3236}
    3337
Note: See TracChangeset for help on using the changeset viewer.