dolibarr 20.0.0
home.tpl.php
1<!-- file home.tpl.php -->
2<?php
3// Protection to avoid direct call of template
4if (empty($context) || !is_object($context)) {
5 print "Error, template page can't be called as URL";
6 exit(1);
7}
8
9global $conf, $langs;
10
11?>
12
13<main class="container">
14 <div class="home-links-grid grid">
15 <?php
16 if (isModEnabled('propal') && getDolGlobalInt('WEBPORTAL_PROPAL_LIST_ACCESS')) : ?>
17 <article class="home-links-card --propal-list">
18 <div class="home-links-card__icon" ></div>
19 <?php print '<a class="home-links-card__link" href="' . $context->getControllerUrl('propallist') . '" title="' . $langs->trans('WebPortalPropalListDesc') . '">' . $langs->trans('WebPortalPropalListTitle') . '</a>'; ?>
20 </article>
21 <?php endif; ?>
22 <?php if (isModEnabled('order') && getDolGlobalInt('WEBPORTAL_ORDER_LIST_ACCESS')) : ?>
23 <article class="home-links-card --order-list">
24 <div class="home-links-card__icon" ></div>
25 <?php print '<a class="home-links-card__link" href="' . $context->getControllerUrl('orderlist') . '" title="' . $langs->trans('WebPortalOrderListDesc') . '">' . $langs->trans('WebPortalOrderListTitle') . '</a>'; ?>
26 </article>
27 <?php endif; ?>
28 <?php if (isModEnabled('invoice') && getDolGlobalInt('WEBPORTAL_INVOICE_LIST_ACCESS')) : ?>
29 <article class="home-links-card --invoice-list">
30 <div class="home-links-card__icon" ></div>
31 <?php print '<a class="home-links-card__link" href="' . $context->getControllerUrl('invoicelist') . '" title="' . $langs->trans('WebPortalInvoiceListDesc') . '">' . $langs->trans('WebPortalInvoiceListTitle') . '</a>'; ?>
32 </article>
33 <?php endif; ?>
34 </div>
35</main>
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.