Changeset 5256 in spip-zone
- Timestamp:
- Sep 11, 2006, 12:38:14 PM (15 years ago)
- Location:
- _plugins_/habillages
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/habillages/habillages.php
r5252 r5256 11 11 } 12 12 13 function habillages_header_prive($flux){ 14 15 global $exec; 16 17 $options_file = "mes_options.php"; 18 $plugin_directory = _DIR_PLUGIN_HABILLAGES; 19 $open_options_file = fopen($options_file, 'r'); 20 $options_file_size = filesize ($options_file); 21 $read_options_file = fread ($open_options_file, $options_file_size); 22 $search_template_name = eregi("$plugin_directory/prive/themes/(.*)/img_pack/", $read_options_file, $template_name); 23 $flux .= '<link rel="stylesheet" href="'.$plugin_directory.'/prive/themes/'.$template_name[1].'/img_pack/style.css" />'."\n"; 24 25 return $flux; 26 } 13 27 ?> -
_plugins_/habillages/plugin.xml
r5245 r5256 32 32 <inclure>habillages.php</inclure> 33 33 </pipeline> 34 <pipeline> 35 <nom>header_prive</nom> 36 <action>header_prive</action> 37 <inclure>habillages.php</inclure> 38 </pipeline> 34 39 </plugin>
Note: See TracChangeset
for help on using the changeset viewer.