source: trunk/spip/esqueleto-redcta/plugins/sktheme/1_9_2/exec/sktheme_doc.php @ 30

Last change on this file since 30 was 30, checked in by sebas, 17 years ago

nueva importacion del codigo del esqueleto de redcta con los plugins

File size: 2.2 KB
Line 
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
18if (!defined("_ECRIRE_INC_VERSION")) return;
19
20include_spip('inc/presentation');
21include_spip('inc/flock');
22include_spip('inc/sktheme_util');
23
24//
25// Private Area Page definition
26//
27function 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  echo "<small><a href='?exec=sktheme_public_choice'>Habillages</a> | <a href='?exec=sktheme_config'>Configuration</a></small><br />";
34 
35  // Include 'onglets'
36  sktheme_doc_onglets();
37 
38  debut_gauche();
39
40 
41  debut_droite();
42  echo "<br />";
43  // debut_cadre_trait_couleur($icone='', $return = false, $fonction='', $titre=''){
44  debut_cadre_trait_couleur('', false, "sktheme_documentation", _T('sktheme:extra_documentation'));
45 
46  $doc = _DIR_PLUGIN_SKTHEME."/DOCUMENTATION.txt";
47  if (is_file($doc)) {
48    lire_fichier ($doc,$contenu);
49    $contenu = str_replace("<", "&lt;", $contenu);
50    $contenu = str_replace(">", "&gt;", $contenu);
51    $contenu = str_replace(" ", "&nbsp;", $contenu);
52    $contenu = str_replace("//", "<br />", $contenu);
53    echo $contenu;
54  } else {
55    echo _T('sktheme:to_be_done');
56  }
57  fin_cadre_trait_couleur();
58  debut_cadre_trait_couleur('', false, "sktheme_documentation", _T('sktheme:to_be_done'));
59  $todo = _DIR_PLUGIN_SKTHEME."/TODO.txt";
60  if (is_file($todo)) {
61    lire_fichier ($todo,$contenu);
62    $list = split('\/\/',$contenu);
63    foreach ($list as $lign) {
64      echo "$lign<br />";
65    }
66    echo "<br />";
67  } else {
68    echo _T('sktheme:to_be_done');
69  }
70   
71  fin_cadre_trait_couleur();
72 
73 
74  fin_page();
75
76}
77
78
79?>
Note: See TracBrowser for help on using the repository browser.