1 | <?php |
---|
2 | // --------------------------------------------------------------------- |
---|
3 | // |
---|
4 | // Sktheme : manage themes under SPIP (squelettes + habillages) |
---|
5 | // |
---|
6 | // Copyright (c) 2006 - Skedus |
---|
7 | // |
---|
8 | // This program is free software; you can redistribute it and/or modify |
---|
9 | // it under the terms of the GNU General Public License as published by |
---|
10 | // the Free Software Foundation; either version 2 of the License, or |
---|
11 | // (at your option) any later version. |
---|
12 | // |
---|
13 | // You should have received a copy of the GNU General Public License |
---|
14 | // along with this program; |
---|
15 | // |
---|
16 | // --------------------------------------------------------------------- |
---|
17 | |
---|
18 | include_spip('inc/presentation'); |
---|
19 | |
---|
20 | // Build 'onglets' for all pages |
---|
21 | function sktheme_public_choice_onglets() { |
---|
22 | |
---|
23 | debut_onglet(); |
---|
24 | // onglet($texte, $lien, $onglet_ref, $onglet, $icone="") |
---|
25 | onglet(_T('sktheme:public_choice'), "?exec=sktheme_public_choice", "sktheme_public_choice", "sktheme_public_choice", ""); |
---|
26 | //onglet(_T('sktheme:private_choice'), "?exec=sktheme_private_choice", "sktheme_public_choice", "sktheme_private_choice", ""); |
---|
27 | onglet(_T('sktheme:configuration'), "?exec=sktheme_config", "sktheme_public_choice", "sktheme_config", ""); |
---|
28 | onglet(_T('sktheme:documentation'), "?exec=sktheme_doc", "sktheme_public_choice", "sktheme_doc", ""); |
---|
29 | fin_onglet(); |
---|
30 | |
---|
31 | } |
---|
32 | function sktheme_private_choice_onglets() { |
---|
33 | |
---|
34 | debut_onglet(); |
---|
35 | // onglet($texte, $lien, $onglet_ref, $onglet, $icone="") |
---|
36 | onglet(_T('sktheme:public_choice'), "?exec=sktheme_public_choice", "sktheme_private_choice", "sktheme_public_choice", ""); |
---|
37 | //onglet(_T('sktheme:private_choice'), "?exec=sktheme_private_choice", "sktheme_private_choice", "sktheme_private_choice", ""); |
---|
38 | onglet(_T('sktheme:configuration'), "?exec=sktheme_config", "sktheme_private_choice", "sktheme_config", ""); |
---|
39 | onglet(_T('sktheme:documentation'), "?exec=sktheme_doc", "sktheme_private_choice", "sktheme_doc", ""); |
---|
40 | fin_onglet(); |
---|
41 | |
---|
42 | } |
---|
43 | function sktheme_config_onglets() { |
---|
44 | |
---|
45 | debut_onglet(); |
---|
46 | // onglet($texte, $lien, $onglet_ref, $onglet, $icone="") |
---|
47 | onglet(_T('sktheme:public_choice'), "?exec=sktheme_public_choice", "sktheme_config", "sktheme_public_choice", ""); |
---|
48 | //onglet(_T('sktheme:private_choice'), "?exec=sktheme_private_choice", "sktheme_config", "sktheme_private_choice", ""); |
---|
49 | onglet(_T('sktheme:configuration'), "?exec=sktheme_config", "sktheme_config", "sktheme_config", ""); |
---|
50 | onglet(_T('sktheme:documentation'), "?exec=sktheme_doc", "sktheme_config", "sktheme_doc", ""); |
---|
51 | fin_onglet(); |
---|
52 | |
---|
53 | } |
---|
54 | function sktheme_doc_onglets() { |
---|
55 | |
---|
56 | debut_onglet(); |
---|
57 | // onglet($texte, $lien, $onglet_ref, $onglet, $icone="") |
---|
58 | onglet(_T('sktheme:public_choice'), "?exec=sktheme_public_choice", "sktheme_doc", "sktheme_public_choice", ""); |
---|
59 | //onglet(_T('sktheme:private_choice'), "?exec=sktheme_private_choice", "sktheme_config", "sktheme_private_choice", ""); |
---|
60 | onglet(_T('sktheme:configuration'), "?exec=sktheme_config", "sktheme_doc", "sktheme_config", ""); |
---|
61 | onglet(_T('sktheme:documentation'), "?exec=sktheme_doc", "sktheme_doc", "sktheme_doc", ""); |
---|
62 | fin_onglet(); |
---|
63 | |
---|
64 | } |
---|
65 | |
---|
66 | // Build 'raccourcis' for all pages |
---|
67 | function sktheme_raccourcis() { |
---|
68 | |
---|
69 | debut_raccourcis(); |
---|
70 | |
---|
71 | |
---|
72 | fin_raccourcis(); |
---|
73 | |
---|
74 | } |
---|
75 | |
---|
76 | // Build documentation |
---|
77 | function sktheme_config_doc_box() { |
---|
78 | |
---|
79 | debut_cadre_relief(); |
---|
80 | echo _T('sktheme:config_doc_directories'); |
---|
81 | fin_cadre_relief(); |
---|
82 | debut_cadre_relief(); |
---|
83 | echo _T('sktheme:config_doc_switcher'); |
---|
84 | fin_cadre_relief(); |
---|
85 | |
---|
86 | } |
---|
87 | |
---|
88 | // Build documentation |
---|
89 | function sktheme_public_theme_doc_box() { |
---|
90 | debut_cadre_relief(); |
---|
91 | echo _T('sktheme:public_theme_doc_squelette'); |
---|
92 | fin_cadre_relief(); |
---|
93 | debut_cadre_relief(); |
---|
94 | echo _T('sktheme:public_theme_doc_habillage'); |
---|
95 | fin_cadre_relief(); |
---|
96 | |
---|
97 | } |
---|
98 | |
---|
99 | ?> |
---|