Merge pull request #69 from PrestaEdit/mails
[+] Project: add the possibility to change the default color (#db3484)
This commit is contained in:
@@ -245,6 +245,7 @@ class MailCore
|
||||
$template_vars['{my_account_url}'] = Context::getContext()->link->getPageLink('my-account', true, Context::getContext()->language->id);
|
||||
$template_vars['{guest_tracking_url}'] = Context::getContext()->link->getPageLink('guest-tracking', true, Context::getContext()->language->id);
|
||||
$template_vars['{history_url}'] = Context::getContext()->link->getPageLink('history', true, Context::getContext()->language->id);
|
||||
$template_vars['{color}'] = Tools::safeOutput(Configuration::get('PS_MAIL_COLOR'));
|
||||
$swift->attachPlugin(new Swift_Plugin_Decorator(array($to_plugin => $template_vars)), 'decorator');
|
||||
if ($configuration['PS_MAIL_TYPE'] == Mail::TYPE_BOTH || $configuration['PS_MAIL_TYPE'] == Mail::TYPE_TEXT)
|
||||
$message->attach(new Swift_Message_Part($template_txt, 'text/plain', '8bit', 'utf-8'));
|
||||
|
||||
@@ -90,6 +90,9 @@ class HelperOptionsCore extends Helper
|
||||
|
||||
$field['required'] = isset($field['required']) ? $field['required'] : $this->required;
|
||||
|
||||
if ($field['type'] == 'color')
|
||||
$this->context->controller->addJS(_PS_JS_DIR_.'jquery/plugins/jquery.colorpicker.js');
|
||||
|
||||
// Cast options values if specified
|
||||
if ($field['type'] == 'select' && isset($field['cast']))
|
||||
foreach ($field['list'] as $option_key => $option)
|
||||
|
||||
Reference in New Issue
Block a user