Last change
on this file since 107913 was
53144,
checked in by kent1@…, 10 years ago
|
if (!defined('_ECRIRE_INC_VERSION')) return; partout
|
File size:
1.5 KB
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined("_ECRIRE_INC_VERSION")) return; |
---|
4 | |
---|
5 | function Nyro_insert_head($flux){ |
---|
6 | include_spip("inc/filtres"); |
---|
7 | $config = @unserialize($GLOBALS['meta']['nyroceros']); |
---|
8 | if (!is_array($config)) |
---|
9 | $config = array(); |
---|
10 | $config = array_merge(array( |
---|
11 | 'traiter_toutes_images' => 'oui', |
---|
12 | 'installer_diapo_auto' => 'non', |
---|
13 | 'selecteur_galerie' => '#documents_portfolio .nyroceros', |
---|
14 | 'selecteur_commun' => '.nyroceros', |
---|
15 | 'bgcolor' => '#000000', |
---|
16 | 'preload' => 'oui' |
---|
17 | ), $config); |
---|
18 | |
---|
19 | $flux .=' |
---|
20 | <script src="'.url_absolue(find_in_path('js/jquery.nyroModal-1.5.0.js')).'" type="text/javascript"></script> |
---|
21 | <script src="'.url_absolue(find_in_path('js/nyromodal.js')).'" type="text/javascript"></script>'; |
---|
22 | |
---|
23 | if ($config['installer_diapo_auto'] == 'oui'){ |
---|
24 | $flux .='<script src="'.url_absolue(find_in_path('js/nyrodiapo.js')).'" type="text/javascript"></script>'; |
---|
25 | } |
---|
26 | |
---|
27 | $flux .=' |
---|
28 | <script type="text/javascript">/* <![CDATA[ */ |
---|
29 | var nyro_traiter_toutes_images='.($config['traiter_toutes_images'] == 'oui'?'true':'false').'; |
---|
30 | var nyro_bgcolor="'.$config['bgcolor'].'"; |
---|
31 | var nyro_selecteur_galerie="'.$config['selecteur_galerie'].'"; |
---|
32 | var nyro_selecteur_commun="'.$config['selecteur_commun'].'"; |
---|
33 | var nyro_preload='.($config['preload'] == 'non'?'false':'true').'; |
---|
34 | //onAjaxLoad is defined in private area only |
---|
35 | if (window.jQuery) |
---|
36 | (function($){if(typeof onAjaxLoad == "function") onAjaxLoad(nyro_init); |
---|
37 | $(nyro_init); |
---|
38 | })(jQuery); |
---|
39 | /* ]]> */</script> |
---|
40 | <link rel="stylesheet" href="'.url_absolue(find_in_path('styles/nyroModal.full.css')).'" type="text/css" media="all" /> |
---|
41 | '; |
---|
42 | return $flux; |
---|
43 | } |
---|
44 | |
---|
45 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.