Changeset 58154 in spip-zone


Ignore:
Timestamp:
Feb 9, 2012, 9:19:45 AM (8 years ago)
Author:
bystrano@…
Message:

remplace les urls codees "en dur" en utilisant la fonction "find_in_path".

Location:
_plugins_/ajax_nav
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/ajax_nav/ajax_nav_affichage_final.php

    r57775 r58154  
    11<?php
    2 include('lib/phpQuery/phpQuery/phpQuery.php');
     2include(find_in_path('lib/phpQuery/phpQuery/phpQuery.php'));
    33
    44function ajax_nav_affichage_final($page) {
  • _plugins_/ajax_nav/ajax_nav_insert_head.php

    r57927 r58154  
    1515
    1616  $ajaxNavFile = ($options['html4Fallback'] == 'on') ?
    17     'plugins/ajax_nav/ajax_nav.js' : '';
     17    find_in_path('ajax_nav.js') : '';
    1818
    1919  $historyLibFile = ($options['html4Fallback'] == 'on') ?
    20     'plugins/ajax_nav/lib/balupton-history.js/scripts/bundled/html4+html5/jquery.history.js' : '';
     20    find_in_path('lib/balupton-history.js/scripts/bundled/html4+html5/jquery.history.js') : '';
    2121
    2222  if ($options['useModernLib'] == "on") {
    23     $flux .= "<script type='text/javascript' src='plugins/ajax_nav/lib/modernizr.js'></script>";
     23    $flux .= "<script type='text/javascript' src='" . find_in_path("lib/modernizr.js") . "'></script>";
    2424  }
    2525
     
    3030    $flux .= "    {
    3131        test : Modernizr.history,
    32         yep : ['plugins/ajax_nav/lib/balupton-history.js/scripts/bundled/html5/jquery.history.js'],
     32        yep : ['" . find_in_path("lib/balupton-history.js/scripts/bundled/html5/jquery.history.js") . "'],
    3333        nope : ['" . $historyLibFile . "']
    3434    },";
     
    3838    {
    3939        test : Modernizr.history,
    40         yep : ['plugins/ajax_nav/ajax_nav.js'],
     40        yep : ['" . find_in_path("ajax_nav.js") . "'],
    4141        nope: ['" . $ajaxNavFile . "'],
    4242        complete : function () {
  • _plugins_/ajax_nav/prive/ajax_nav_header_prive.php

    r57775 r58154  
    22function ajax_nav_header_prive($flux) {
    33 
    4   $flux .= "<link type='text/css' href='../plugins/ajax_nav/prive/ajax_nav_prive.css' rel='stylesheet' />";
     4  $flux .= "<link type='text/css' href='" . find_in_path("prive/ajax_nav_prive.css") . "' rel='stylesheet' />";
    55  return $flux;
    66}
Note: See TracChangeset for help on using the changeset viewer.