1<!-- file home.tpl.php -->
7 print
"Error, template page can't be called as URL";
10'@phan-var-force Context $context';
16<main
class=
"container">
17 <div
class=
"home-links-grid grid">
19 if (isModEnabled(
'propal') &&
getDolGlobalInt(
'WEBPORTAL_PROPAL_LIST_ACCESS')) : ?>
20 <article
class=
"home-links-card --propal-list">
21 <div
class=
"home-links-card__icon" ></div>
22 <?php print
'<a class="home-links-card__link" href="' .
$context->getControllerUrl(
'propallist') .
'" title="' . $langs->trans(
'WebPortalPropalListDesc') .
'">' . $langs->trans(
'WebPortalPropalListTitle') .
'</a>'; ?>
25 <?php
if (isModEnabled(
'order') &&
getDolGlobalInt(
'WEBPORTAL_ORDER_LIST_ACCESS')) : ?>
26 <article
class=
"home-links-card --order-list">
27 <div
class=
"home-links-card__icon" ></div>
28 <?php print
'<a class="home-links-card__link" href="' .
$context->getControllerUrl(
'orderlist') .
'" title="' . $langs->trans(
'WebPortalOrderListDesc') .
'">' . $langs->trans(
'WebPortalOrderListTitle') .
'</a>'; ?>
31 <?php
if (isModEnabled(
'invoice') &&
getDolGlobalInt(
'WEBPORTAL_INVOICE_LIST_ACCESS')) : ?>
32 <article
class=
"home-links-card --invoice-list">
33 <div
class=
"home-links-card__icon" ></div>
34 <?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.
$context
@method int call_trigger(string $triggerName, User $user)