source: spip-zone/_plugins_/freeradio/freeradio_pipeline.php @ 48073

Last change on this file since 48073 was 48073, checked in by fruzzin@…, 10 years ago

Import initial

File size: 757 bytes
Line 
1<?php
2/**
3 * plugin FreeRadio
4 * Radio Web
5 *
6 * Auteurs :
7 * Franck Ruzzin
8 * le 09/05/2011
9 *
10 **/
11
12if (!defined('_DIR_PLUGIN_FREERADIO')){
13        $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__))));
14        define('_DIR_PLUGIN_FREERADIO',(_DIR_PLUGINS.end($p))."/");
15}
16
17function freeradio_insert_head($flux){ 
18        $flux .= "<script language='javascript' type='text/JavaScript'>var freeradioRoot=\"" . _DIR_PLUGIN_FREERADIO . "\"</script>\n";
19        $flux .= "<script src='" . _DIR_PLUGIN_FREERADIO . "javascript/freeradio_spip-min.js' type='text/javascript'></script>\n";
20        $flux .= "<link rel='stylesheet' href='" . _DIR_PLUGIN_FREERADIO . "css/freeradio.css' type='text/css' media='all' />\n";
21        return $flux;
22}
23       
24?>
Note: See TracBrowser for help on using the repository browser.