Last change
on this file since 93773 was
93773,
checked in by p@…, 5 years ago
|
Simplifier le pipeline CSS
|
-
Property svn:executable set to
*
|
File size:
893 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * Utilisations de pipelines par foundation-4-spip |
---|
4 | * |
---|
5 | * @plugin foundation-4-spip |
---|
6 | * @copyright 2013 |
---|
7 | * @author Phenix |
---|
8 | * @licence GNU/GPL |
---|
9 | * @package SPIP\Foundation\Pipelines |
---|
10 | */ |
---|
11 | |
---|
12 | if (!defined('_ECRIRE_INC_VERSION')) return; |
---|
13 | |
---|
14 | /* |
---|
15 | * Pipeline Insert_head |
---|
16 | */ |
---|
17 | function foundation_6_insert_head ($flux) { |
---|
18 | |
---|
19 | // Si on est en mode app, on revoie le bon squelette |
---|
20 | if (_FOUNDATION_SASS) { |
---|
21 | $flux .= recuperer_fond('inclure/head-foundation-app'); |
---|
22 | } |
---|
23 | else { |
---|
24 | $flux .= recuperer_fond('inclure/head-foundation'); |
---|
25 | } |
---|
26 | |
---|
27 | return $flux; |
---|
28 | } |
---|
29 | |
---|
30 | /* |
---|
31 | * Pipeline Insert_head_css |
---|
32 | */ |
---|
33 | function foundation_6_insert_head_css ($flux) { |
---|
34 | |
---|
35 | // Si on est en mode app, on revoie le bon squelette |
---|
36 | if (_FOUNDATION_SASS) { |
---|
37 | $flux .= recuperer_fond('inclure/css/head-foundation-app'); |
---|
38 | } |
---|
39 | else { |
---|
40 | $flux .= recuperer_fond('inclure/css/head-foundation'); |
---|
41 | } |
---|
42 | |
---|
43 | return $flux; |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.