1<!-- file home.tpl.php -->
4if (empty($context) || !is_object($context)) {
5 print
"Error, template page can't be called as URL";
13<main
class=
"container">
14 <div
class=
"home-links-grid grid">
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>'; ?>
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>'; ?>
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>'; ?>
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.