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

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

les js sources - pied de page inclus avec nav minimaliste - "icone" - config.js.html à la racine sinon 404 - un peu de style - ...

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