source: spip-zone/_plugins_/demo_spip/spip_demo_pipelines.php

Last change on this file was 12832, checked in by renato@…, 14 years ago

curly braces missing

File size: 735 bytes
Line 
1<?php
2
3function spip_demo_header_prive($flux) {
4  $file_demo = '';
5  $name_demo = '';
6  switch(_request('exec')) {
7    case '':
8      $file_demo = 'demo.xml';
9      $name_demo = 'test';
10      break;
11  }
12  if($file_demo && $name_demo) { 
13    $path = _DIR_PLUGIN_SPIP_DEMO."javascript/";
14    $flux .= "<link type='text/css' rel='stylesheet' href='"._DIR_PLUGIN_SPIP_DEMO."javascript/jqModal.css' />
15    <script src='{$path}jquery.dimensions.js'></script>
16    <script src='{$path}jqModal.js'></script>
17    <script src='{$path}jDemo.js'></script>
18    <script type='text/javascript'>
19      jQuery(function(){jQuery.startDemo('"._DIR_PLUGIN_SPIP_DEMO."$file_demo','$name_demo',1,'$path');});
20    </script>
21    ";
22  } 
23  return $flux;
24}
25
26?>
Note: See TracBrowser for help on using the repository browser.