source: spip-zone/_plugins_/rss_js/trunk/rssjs_pipeline.php

Last change on this file was 71393, checked in by dwojylac@…, 8 years ago

commit initial du plugin rss_js

File size: 724 bytes
Line 
1<?php
2function rssjs_inclure_js($flux) {
3        $chemin_rssjs = find_in_path('js/rssjs.js');
4        if ($chemin_rssjs){
5                $flux .= '<!-- plugin rssjs -->'."\n";
6                $flux .= '<script type="text/javascript" src="https://www.google.com/jsapi"></script>'."\n";
7                $flux .= '<script type="text/javascript">google.load("feeds", "1");</script>'."\n";
8                $flux .= '<script type="text/javascript" src="'.$chemin_rssjs.'"></script>'."\n";
9        }
10        return $flux;
11}
12
13function rssjs_inclure_css($flux) {
14        $chemin_rsscss = find_in_path('css/rssjs.css');
15        if ($chemin_rsscss){
16                $flux .= '<!-- plugin rssjs -->'."\n";
17                $flux .= '<link href="'.$chemin_rsscss.'" rel="stylesheet" type="text/css" media="projection, screen, tv" />'."\n";
18        }
19        return $flux;
20}
21
22?>
Note: See TracBrowser for help on using the repository browser.