Changeset 49092 in spip-zone
- Timestamp:
- Jun 27, 2011, 5:07:32 PM (10 years ago)
- Location:
- _plugins_/svp
- Files:
-
- 1 added
- 6 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/svp/base/svp_declarer.php
r49070 r49092 75 75 'key' => array( 76 76 "PRIMARY KEY" => "id_plugin", 77 "KEY" => "prefixe"),77 "KEY" => "prefixe"), 78 78 'tables_jointures' => array('id_depot' => 'depots_plugins'), 79 79 'principale' => 'oui', -
_plugins_/svp/plugin.xml
r49071 r49092 3 3 <auteur>Eric Lupinacci</auteur> 4 4 <licence>GNU/GPL</licence> 5 <version>0. 8.3</version>5 <version>0.9.0</version> 6 6 <version_base>0.1</version_base> 7 7 <icon>prive/themes/spip/images/svp-64.png</icon> … … 45 45 </pipeline> 46 46 <pipeline> 47 <nom>affiche_enfants</nom>48 <inclure>svp_pipelines.php</inclure>49 </pipeline>50 <pipeline>51 <nom>insert_head_css</nom>52 <inclure>svp_pipelines.php</inclure>53 </pipeline>54 <pipeline>55 47 <nom>header_prive_css</nom> 56 48 <inclure>svp_pipelines.php</inclure> … … 58 50 59 51 <necessite id="SPIP" version='[3.0.0-dev;]' /> 60 <utilise id="Zpip" version='[2.0.2-dev;]' />61 52 62 53 <categorie>maintenance</categorie> -
_plugins_/svp/svp_pipelines.php
r48912 r49092 1 1 <?php 2 /**3 * Insertion dans le pipeline affiche_enfants4 * Affiche un bloc avec la liste des paquets associes au depot affiche5 *6 * @param object $flux7 * @return $flux8 */9 function svp_affiche_enfants($flux){10 if ($flux['args']['exec'] == 'depots') {11 $id_depot = $flux['args']['id_depot'];12 $flux['data'] .= recuperer_fond('prive/squelettes/liste/paquets_plugin_depot',13 array('id_depot'=>$id_depot,14 'titre' => _T('svp:titre_boite_paquets_plugin_depot'),15 'bloc' => '_paquets_plugin'));16 $flux['data'] .= recuperer_fond('prive/squelettes/liste/paquets_autre_depot',17 array('id_depot'=>$id_depot,18 'titre' => _T('svp:titre_boite_paquets_autre_depot'),19 'bloc' => '_paquets_autre'));20 }21 return $flux;22 }23 2 24 3 /** … … 30 9 */ 31 10 function svp_header_prive_css($flux){ 32 $css = find_in_path(' css/svp_prive.css');11 $css = find_in_path('prive/themes/svp_prive.css'); 33 12 $flux .= "\n<link rel='stylesheet' href='$css' type='text/css' />\n"; 34 13 return $flux; 35 14 } 36 15 37 /**38 * Insertion dans le pipeline insert_head_css39 * Permet d'inserer les css necessaires aux page publiques de SVP40 *41 * @param object $flux42 * @return $flux43 */44 function svp_insert_head_css($flux) {45 if ($f = find_in_path('css/svp_habillage.css')) {46 $flux .= '<link rel="stylesheet" href="'.direction_css($f).'" type="text/css" media="all" />';47 }48 return $flux;49 }50 51 16 ?>
Note: See TracChangeset
for help on using the changeset viewer.