source: spip-zone/_plugins_/sjcycle/trunk/sjcycle_pipelines.php @ 82655

Last change on this file since 82655 was 82655, checked in by chankalan@…, 7 years ago

ajout fonctionnalités (liens_individuels historique + tooltip et mediabox comme avant) + choix du message pauseonhover + langue (en cours)

File size: 1.4 KB
Line 
1<?php
2
3if (!defined("_ECRIRE_INC_VERSION")) return;
4
5// include_spip('inc/config');
6
7function sjcycle_insert_head_css($flux){
8        $conf_sjcycle = lire_config('sjcycle');
9
10        if($conf_sjcycle['tooltip']) {
11                $flux .="\n".'<link rel="stylesheet" href="'.find_in_path('lib/jquery.tooltip.css').'" type="text/css" media="all" />';
12        }
13        $flux .= "\n".'<link rel="stylesheet" type="text/css" href="'.find_in_path('css/sjcycle.css').'" media="all" />'."\n";
14        return $flux;
15}
16
17function sjcycle_insert_head($flux){
18        $conf_sjcycle = lire_config('sjcycle');
19
20        $flux .="\n".'<script src="'.find_in_path('lib/jquery.cycle2.js').'" type="text/javascript"></script>';
21        $flux .="\n".'<script src="'.find_in_path('lib/jquery.cycle2.flip.js').'" type="text/javascript"></script>';
22        $flux .="\n".'<script src="'.find_in_path('lib/jquery.cycle2.carousel.js').'" type="text/javascript"></script>';
23        $flux .="\n".'<script src="'.find_in_path('lib/jquery.cycle2.scrollVert.js').'" type="text/javascript"></script>';
24        $flux .="\n".'<script src="'.find_in_path('lib/jquery.cycle2.shuffle.js').'" type="text/javascript"></script>';
25        $flux .="\n".'<script src="'.find_in_path('lib/jquery.cycle2.tile.js').'" type="text/javascript"></script>';
26        if($conf_sjcycle['tooltip']) {
27                $flux .="\n".'<script src="'.find_in_path('lib/jquery.tooltip.js').'" type="text/javascript" charset="utf-8"></script>';
28        }
29       
30        return $flux;
31}
32
33?>
Note: See TracBrowser for help on using the repository browser.