source: spip-zone/_squelettes_/parallelism4spip/parallelism_pipelines.php @ 82658

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

Adaptation SPIP de http://html5up.net/parallelism - premier jet fonctionnel

File size: 1.6 KB
Line 
1<?php
2
3function parallelism_insert_head($flux){
4    $poptroxjs = find_in_path('js/jquery.poptrox.min.js');
5    $configjs = generer_url_public('js/config.js'); //calculer prefix en attendant mieux
6    $skeljs = find_in_path('js/skel.js');
7    $css = find_in_path('css/style.css');
8    // Cette surcharge ne fonctionne pas
9    // $prefixcss = str_replace(".css", "", $css);
10    $flux .= '<script src="'.$poptroxjs.'"></script>
11    <script src="'.$configjs.'"></script>
12    <script src="'.$skeljs.'"></script>'; // surcharge avec config { prefix: /$prefixcss } marche po
13    return $flux;
14    }
15   
16function parallelism_insert_head_css($flux) {
17    $cssnoscript = find_in_path('css/skel-noscript.css');
18    $cssstyle = find_in_path('css/style.css');
19    $cssstyledesktop = find_in_path('css/style-desktop.css');
20    $cssstylenoscript = find_in_path('css/style-noscript.css');
21
22    // générer une css au départ d'un squelette SPIP
23    // $css_icones = generer_url_public('barre_outils_icones.css');
24   
25    $flux .= "<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400' rel='stylesheet' type='text/css' />
26    <noscript>
27      <link rel='stylesheet' type='text/css' media='all' href='$cssnoscript' />
28      <link rel='stylesheet' type='text/css' media='all' href='$cssstyle' />
29      <link rel='stylesheet' type='text/css' media='all' href='$cssstyledesktop' />
30      <link rel='stylesheet' type='text/css' media='all' href='$cssstylenoscript' />
31    </noscript>";
32    //. "<link rel='stylesheet' type='text/css' media='all' href='$css_icones' />";
33    return $flux;
34    }
35
36?>
Note: See TracBrowser for help on using the repository browser.