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 | if (!defined("_ECRIRE_INC_VERSION")) return; |
---|
19 | |
---|
20 | include_spip('inc/presentation'); |
---|
21 | include_spip('inc/flock'); |
---|
22 | include_spip('inc/sktheme_util'); |
---|
23 | |
---|
24 | // |
---|
25 | // Private Area Page definition |
---|
26 | // |
---|
27 | function exec_sktheme_doc() { |
---|
28 | |
---|
29 | debut_page(_T('sktheme:extra_documentation'),'configuration','sktheme_public_choice'); |
---|
30 | |
---|
31 | echo "<br />"; |
---|
32 | gros_titre(_T('sktheme:extra_documentation')); |
---|
33 | |
---|
34 | // Include 'onglets' |
---|
35 | sktheme_doc_onglets(); |
---|
36 | |
---|
37 | debut_gauche(); |
---|
38 | |
---|
39 | |
---|
40 | debut_droite(); |
---|
41 | echo "<br />"; |
---|
42 | // debut_cadre_trait_couleur($icone='', $return = false, $fonction='', $titre=''){ |
---|
43 | debut_cadre_trait_couleur('', false, "sktheme_documentation", _T('sktheme:extra_documentation')); |
---|
44 | |
---|
45 | $doc = _DIR_PLUGIN_SKTHEME."/DOCUMENTATION.txt"; |
---|
46 | if (is_file($doc)) { |
---|
47 | lire_fichier ($doc,$contenu); |
---|
48 | $contenu = str_replace("<", "<", $contenu); |
---|
49 | $contenu = str_replace(">", ">", $contenu); |
---|
50 | $contenu = str_replace(" ", " ", $contenu); |
---|
51 | $contenu = str_replace("//", "<br />", $contenu); |
---|
52 | echo $contenu; |
---|
53 | } else { |
---|
54 | echo _T('sktheme:to_be_done'); |
---|
55 | } |
---|
56 | fin_cadre_trait_couleur(); |
---|
57 | debut_cadre_trait_couleur('', false, "sktheme_documentation", _T('sktheme:to_be_done')); |
---|
58 | $todo = _DIR_PLUGIN_SKTHEME."/TODO.txt"; |
---|
59 | if (is_file($todo)) { |
---|
60 | lire_fichier ($todo,$contenu); |
---|
61 | $list = split('\/\/',$contenu); |
---|
62 | foreach ($list as $lign) { |
---|
63 | echo "$lign<br />"; |
---|
64 | } |
---|
65 | echo "<br />"; |
---|
66 | } else { |
---|
67 | echo _T('sktheme:to_be_done'); |
---|
68 | } |
---|
69 | |
---|
70 | fin_cadre_trait_couleur(); |
---|
71 | |
---|
72 | |
---|
73 | fin_page(); |
---|
74 | |
---|
75 | } |
---|
76 | |
---|
77 | |
---|
78 | ?> |
---|