21require
'../../../../main.inc.php';
31if ($user->socid > 0) {
36require_once DOL_DOCUMENT_ROOT .
'/admin/tools/ui/class/documentation.class.php';
39$langs->load(
'uxdocumentation');
42$hookmanager->initHooks(array(
'uidocumentation'));
49 '/includes/ace/src/ace.js',
50 '/includes/ace/src/ext-statusbar.js',
51 '/includes/ace/src/ext-language_tools.js',
54$documentation->docHeader(
'DocMyPageTitle', $morejs);
58$documentation->view = array(
'MyPageKey1',
'MyPageKey2');
61$documentation->showSidebar(); ?>
63<div
class=
"doc-wrapper">
65 <?php $documentation->showBreadCrumb(); ?>
67 <div
class=
"doc-content-wrapper">
69 <h1
class=
"documentation-title"><?php print $langs->trans(
'DocMyPageTitle'); ?></h1>
70 <p
class=
"documentation-text"><?php print $langs->trans(
'DocMyPageDescription'); ?></p>
73 <?php $documentation->showSummary(); ?>
76 <div
class=
"documentation-section" id=
"my-section-name">
78 <h2
class=
"documentation-title"><?php print $langs->trans(
'DocMySectionTitle'); ?></h2>
79 <p
class=
"documentation-text"><?php print $langs->trans(
'DocMySectionText'); ?></p>
81 <div
class=
"documentation-example">
82 <div
class=
"div-table-responsive">
83 <p><?php print $langs->trans(
'DocMySectionExample'); ?></p>
88 '<div class="div-table-responsive">',
89 ' <p>Here you can put an example of your component</p>',
92 print $documentation->showCode($lines,
'html'); ?>
94 <p
class=
"documentation-text"><?php print $langs->trans(
'DocMySectionText2'); ?></p>
98 <div
class=
"documentation-section" id=
"my-section2-name">
100 <h2
class=
"documentation-title"><?php print $langs->trans(
'DocMySectionTitle'); ?></h2>
101 <p
class=
"documentation-text"><?php print $langs->trans(
'DocMySectionText'); ?></p>
103 <!-- Display messages -->
104 <div
class=
"warning"><?php print $langs->trans(
'DocExampleWarning'); ?></div>
105 <div
class=
"info"><?php print $langs->trans(
'DocExampleInfo'); ?></div>
106 <div
class=
"error"><?php print $langs->trans(
'DocExampleError'); ?></div>
107 <div
class=
"green"><?php print $langs->trans(
'DocExampleGreen'); ?></div>
115$documentation->docFooter();
Class to manage UI documentation.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.