| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/components/com_djcatalog2/themes/default/email/ |
Upload File : |
<?php
/**
* @package DJ-Catalog2
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
*/
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
$params = ComponentHelper::getParams('com_djcatalog2');
require_once JPATH_ROOT.'/components/com_djcatalog2/helpers/route.php';
//$status = Text::_('COM_DJCATALOG2_ORDER_STATUS_'.$data['status']);
$status = DJCatalog2HtmlHelper::getOrderStatusName($data['status']);
if (!empty($data['status_comment'])) {
$status .= ' ('.$data['status_comment'].')';
}
$status_desc = DJCatalog2HtmlHelper::getOrderStatusInfo($data['status']);
$app = Factory::getApplication();
$orderLink = null;
if ($app->isClient('site')) {
$orderLink = Route::_(DJCatalogHelperRoute::getOrderRoute($data['id']).'&token='.$data['token'], true, -1);
} else {
require_once JPATH_ROOT.'/administrator/components/com_djcatalog2/helpers/route.php';
$orderLink = DJCatalog2HelperSiteRoute::buildRoute('getOrderRoute', array($data['id']), '&token='.$data['token'], true);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<div class="djc_mail_wrap">
<?php if (($logo = $params->get('cart_company_logo', '')) != '') { ?>
<div class="djc_company_logo">
<img alt="logo" src="<?php echo Uri::root(false).$logo; ?>" />
</div>
<?php } ?>
<?php if (($header = $params->get('cart_email_header', '')) != '') {?>
<div class="djc_header"><?php echo $header; ?></div>
<?php } ?>
<p class="djc_intro_text">
<?php echo Text::sprintf('COM_DJCATALOG2_EMAIL_ORDER_STATUS_CLIENT_HEADER',
$data['firstname'],
$status
); ?>
</p>
<?php if (trim((string)$status_desc) != '') {?>
<div><?php echo $status_desc; ?></div>
<?php } ?>
<p>
<?php echo Text::_('COM_DJCATALOG2_EMAIL_ORDER_CLIENT_FOOTER'); ?>
<a href="<?php echo $orderLink; ?>">
<?php echo Text::_('COM_DJCATALOG2_EMAIL_ORDER_CLIENT_LINK');?></a>
</p>
<?php if (($footer = $params->get('cart_email_footer', '')) != '') { ?>
<div class="djc_footer"><?php echo $footer; ?></div>
<?php } ?>
</div>
</body>
</html>