dolibarr 23.0.3
index.php
1<?php
2/*
3 * Copyright (C) 2024 Anthony Damhet <a.damhet@progiseize.fr>
4 * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20// Load Dolibarr environment
21require '../../../../main.inc.php';
22
30// Protection if external user
31if ($user->socid > 0) {
33}
34
35// Includes
36require_once DOL_DOCUMENT_ROOT . '/admin/tools/ui/class/documentation.class.php';
37
38// Load documentation translations
39$langs->load('uxdocumentation');
40
41//
42$documentation = new Documentation($db);
43$group = 'ExperimentalUx';
44
45// Output html head + body - Param is Title
46$documentation->docHeader($langs->trans('ExperimentalUxTitle', $group));
47
48// Set view for menu and breadcrumb
49$documentation->view = [$group];
50
51// Output sidebar
52$documentation->showSidebar(); ?>
53
54<div class="doc-wrapper">
55
56 <?php $documentation->showBreadCrumb(); ?>
57
58 <div class="doc-content-wrapper">
59
60 <h1 class="documentation-title"><?php echo $langs->trans($group); ?></h1>
61 <p class="documentation-text"><?php echo $langs->trans('DocGroupIndexDescription', $group); ?></p>
62
63 <?php /*$documentation->showSummary();*/ ?>
64
65 <div class="documentation-section" id="experimental-ux-introduction" >
66 <h2 class="documentation-title"><?php echo $langs->trans('ExperimentalUxIntroductionTitle'); ?></h2>
67 <p class="documentation-text"><?php echo $langs->transnoentities('ExperimentalUxIntroductionTxt01'); ?></p>
68 <p class="documentation-text"><?php echo $langs->trans('ExperimentalUxIntroductionTxt02'); ?></p>
69 <p class="documentation-text"><?php echo img_picto('', 'warning') . ' ' . $langs->trans('ExperimentalUxIntroductionTxt03'); ?></p>
70 </div>
71
72
73 <div class="documentation-section" id="experimental-ux-contribution" >
74 <h2 class="documentation-title"><?php echo $langs->trans('ExperimentalUxContributionTitle'); ?></h2>
75 <p class="documentation-text"><?php echo $langs->trans('ExperimentalUxContributionTxt01'); ?></p>
76 <pre>htdocs/admin/tools/ui/experimental/experiments/A/</pre>
77 <p class="documentation-text"><?php echo $langs->trans('ExperimentalUxContributionTxt02'); ?></p>
78 <pre>./experiments/A/assets/variant-name.css
79./experiments/A/assets/variant-name-1.js
80./experiments/A/assets/variant-name-1.css
81./experiments/A/assets/variant-name-2.js
82./experiments/A/assets/variant-name-2.css
83./experiments/A/index.php
84</pre>
85 <p class="documentation-text"><?php echo $langs->trans('ExperimentalUxContributionTxt03'); ?></p>
86 <pre>./experiments/A/variant-name-1.php
87./experiments/A/variant-name-2.php
88</pre>
89 <p class="documentation-text"><?php echo $langs->trans('ExperimentalUxContributionEnd'); ?></p>
90 </div>
91
92 </div>
93
94</div>
95<?php
96// Output close body + html
97$documentation->docFooter();
98?>
Class to manage UI documentation.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2, $allowothertags=array())
Show picto whatever it's its name (generic function)
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:128
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.