Changeset 90063 in spip-zone for _plugins_/pgn4spip


Ignore:
Timestamp:
Jun 9, 2015, 7:05:10 PM (6 years ago)
Author:
jack@…
Message:

find_in_path et DIR_LIB_PGN4WEB pour permettre le fonctionnement en install dans plugins/auto

Location:
_plugins_/pgn4spip/trunk
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/pgn4spip/trunk/boardLive.html

    r66136 r90063  
    2626<!-- was <link href="pgn4web/live-compact.css" type="text/css" rel="stylesheet" /> -->
    2727<style type="text/css">
    28 @import url("pgn4web/fonts/pgn4web-font-LiberationSans.css");
    29 @import url("pgn4web/fonts/pgn4web-font-ChessSansPiratf.css");
     28<!-- @import url("pgn4web/fonts/pgn4web-font-LiberationSans.css");
     29@import url("pgn4web/fonts/pgn4web-font-ChessSansPiratf.css"); -->
     30@import url ("#CHEMIN{pgn4web/fonts/pgn4web-font-LiberationSans.css}")
     31@import url ("#CHEMIN{pgn4web/fonts/pgn4web-font-ChessSansPiratf.css}")
    3032
    3133html,
     
    168170</style>
    169171
    170 <link rel="shortcut icon" href="pgn4web/pawn.ico" />
    171 <script src="pgn4web/pgn4web.js" type="text/javascript"></script>
    172 <script src="pgn4web/fide-lookup.js" type="text/javascript"></script>
     172<link rel="shortcut icon" href="#CHEMIN{pgn4web/pawn.ico}" />
     173<script src="#CHEMIN{pgn4web/pgn4web.js}" type="text/javascript"></script>
     174<script src="#CHEMIN{pgn4web/fide-lookup.js}" type="text/javascript"></script>
    173175<script type="text/javascript">
    174176
     
    267269}
    268270else
    269         pieceFontRoot = "pgn4web/";
     271        pieceFontRoot = "('find_in_path(lib/pgn4web/)";
    270272
    271273SetImagePath("" + pieceFontRoot + pieceFont + "/" + pieceSize);
  • _plugins_/pgn4spip/trunk/paquet.xml

    r86051 r90063  
    22        prefix="pgn4spip"
    33        categorie="divers"
    4         version="2.61.1"
    5         etat="stable"
    6         compatibilite="[2.0.0;3.1.*]"
     4        version="2.61.2"
     5        etat="test"
     6        compatibilite="[3.0.0;3.1.*]"
    77        logo="pgn4spip.png"
    88        documentation="http://contrib.spip.net/pgn4spip"
     
    1515        <credit lien="http://pgn4web.casaschi.net">Paolo Casaschi's pgn4web 2.61</credit>
    1616
     17            <lib nom="pgn4web" lien="http://test.jack31.org/IMG/zip/pgn4web.zip" />
     18       
    1719        <pipeline nom="pre_propre" action="prepropre" inclure="pgn4spip_fonctions.php" />
    1820        <pipeline nom="post_propre" action="postpropre" inclure="pgn4spip_postpropre.php" />
  • _plugins_/pgn4spip/trunk/pgn4spip_fonctions.php

    r66136 r90063  
    3838define('PLUGIN_Name', "pgn4spip");
    3939define('PATH_Conf', PLUGIN_Name . '/' . PLUGIN_Name . '_conf.php');
    40 if (!function_exists('ReadCurrentConfiguration')) require _DIR_PLUGINS . PATH_Conf;
     40if (!function_exists('ReadCurrentConfiguration')) require _DIR_LIB_PGN4WEB . PATH_Conf;
    4141
    4242define('TAG_pgn', "[pP][gG][nN]"); // pgn or PGN
    43 define('PATH_board', PLUGIN_Name . "/pgn4web/board.html");
     43define('PATH_board',_DIR_RACINE . 'lib/pgn4web/board.html');
    4444define('PATH_live', PLUGIN_Name . "/boardLive.html");
    4545define('indFullPattern', 0);
  • _plugins_/pgn4spip/trunk/pgn4spip_options.php

    r66136 r90063  
    1212 **********************************************************************************/
    1313define('PLUGIN_Name', "pgn4spip");
    14 define('PATH_Conf', PLUGIN_Name . '/' . PLUGIN_Name . '_conf.php');
    15 if (!function_exists('ReadCurrentConfiguration')) require _DIR_PLUGINS . PATH_Conf;
     14define('_DIR_LIB_PGN4WEB', _DIR_RACINE . 'lib/pgn4web/');
     15
     16define('find_in_path(pgn4spip/pgn4spip_conf.php)', 'pgn4spip_conf.php');
     17if (!function_exists('ReadCurrentConfiguration')) require 'pgn4spip_conf.php';
    1618
    1719// Init $optValue with default values of options overriden with the current configuration
    1820ReadCurrentConfiguration($optValue); // read from the config form
    19 ?>
Note: See TracChangeset for help on using the changeset viewer.