From 0da668329a7955801f5cbc4d286b637462be867a Mon Sep 17 00:00:00 2001 From: poojabaghelsendinblue Date: Thu, 11 Jul 2019 18:32:07 +0530 Subject: [PATCH 1/2] new branding changes --- Controller/Adminhtml/index/Ajax.php | 2 +- Controller/Adminhtml/index/Post.php | 4 +- Model/Mmailin.php | 50 +++++++------- Model/SendinblueSib.php | 26 ++++---- README.md | 4 +- composer.json | 2 +- etc/module.xml | 2 +- i18n/en_US.csv | 38 +++++------ i18n/fr_FR.csv | 38 +++++------ view/adminhtml/templates/sib.phtml | 61 +++++++++--------- view/adminhtml/web/css/sib.css | 14 ++-- .../email_temp/en/sendin_notification.html | 12 ++-- .../web/email_temp/en/sendinsmtp_conf.html | 16 ++--- .../email_temp/fr/sendin_notification.html | 12 ++-- .../web/email_temp/fr/sendinsmtp_conf.html | 16 ++--- view/adminhtml/web/images/sendinblue.png | Bin 3826 -> 7541 bytes 16 files changed, 150 insertions(+), 147 deletions(-) diff --git a/Controller/Adminhtml/index/Ajax.php b/Controller/Adminhtml/index/Ajax.php index fbc0198..b97be25 100644 --- a/Controller/Adminhtml/index/Ajax.php +++ b/Controller/Adminhtml/index/Ajax.php @@ -235,7 +235,7 @@ public function ajaxSmtpStatus() $this->getResponse()->setBody($msgVal); } else { $model->updateDbData('api_smtp_status', 0); - $msgVal = __('Your SMTP account is not activated and therefore you can\'t use SendinBlue SMTP. For more informations, please contact our support to: contact@sendinblue.com'); + $msgVal = __('Your SMTP account is not activated and therefore you can\'t use Sendinblue SMTP. For more informations, please contact our support to: contact@sendinblue.com'); $this->getResponse()->setHeader('Content-type', 'application/text'); $this->getResponse()->setBody($msgVal); } diff --git a/Controller/Adminhtml/index/Post.php b/Controller/Adminhtml/index/Post.php index b163b2b..4f0fabc 100644 --- a/Controller/Adminhtml/index/Post.php +++ b/Controller/Adminhtml/index/Post.php @@ -92,7 +92,7 @@ public function execute() $relayData = $model->getDbData('relay_data_status'); if (!empty($userEmail) && $post['smtpservices'] == 1) { if ($relayData == 'enabled') { - $title = __('[SendinBlue SMTP] test email'); + $title = __('[Sendinblue SMTP] test email'); $tempName = 'sendinsmtp_conf'; $respMail = $model->smtpSendMail($userEmail, $title, $tempName, $paramVal = ''); if ($respMail['status'] == 1) { @@ -105,7 +105,7 @@ public function execute() return; } } else { - $this->messageManager->addError(__('Your SMTP account is not activated and therefore you can\'t use SendinBlue SMTP. For more informations, Please contact our support to: contact@sendinblue.com')); + $this->messageManager->addError(__('Your SMTP account is not activated and therefore you can\'t use Sendinblue SMTP. For more informations, Please contact our support to: contact@sendinblue.com')); $this->_redirect('sendinblue/sib/index'); return; } diff --git a/Model/Mmailin.php b/Model/Mmailin.php index 50f464e..0a432b0 100644 --- a/Model/Mmailin.php +++ b/Model/Mmailin.php @@ -209,7 +209,7 @@ public function getCampaignsV2($data) @options data {String} reply_to: The reply to email in the campaign emails [Optional] @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM] To use the contact - attributes here, these should already exist in SendinBlue account [Optional] + attributes here, these should already exist in Sendinblue account [Optional] @options data {Array} exclude_list: These are the lists which must be excluded from the campaign [Optional] @options data {String} attachment_url: Provide the absolute url of the attachment [Optional] @options data {Integer} inline_image: Status of inline image. Possible values = 0 (default) @@ -254,7 +254,7 @@ public function createCampaign($data) @options data {String} reply_to: The reply to email in the campaign emails [Optional] @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the - contact attributes here, these should already exist in SendinBlue account [Optional] + contact attributes here, these should already exist in Sendinblue account [Optional] @options data {Array} exclude_list: These are the lists which must be excluded from the campaign [Optional] @options data {String} attachment_url: Provide the absolute url of the attachment [Optional] @@ -393,7 +393,7 @@ public function updateCampaignStatus($data) @options data {String} reply_to: The reply to email in the campaign emails [Optional] @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the contact attributes - here, these should already exist in SendinBlue account [Optional] + here, these should already exist in Sendinblue account [Optional] @options data {Array} exclude_list: These are the lists which must be excluded from the campaign [Optional] @options data {Integer} recurring: Type of trigger campaign. Possible values = 0 (default) & 1. @@ -439,7 +439,7 @@ public function createTriggerCampaign($data) @options data {String} reply_to: The reply to email in the campaign emails [Optional] @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the contact attributes here - , these should already exist in SendinBlue account [Optional] + , these should already exist in Sendinblue account [Optional] @options data {Array} exclude_list: These are the lists which must be excluded from the campaign [Optional] @options data {Integer} recurring: Type of trigger campaign. Possible values = 0 (default) & 1. @@ -594,11 +594,11 @@ public function displayListUsers($data) } /* - Add already existing users in the SendinBlue contacts to the list. + Add already existing users in the Sendinblue contacts to the list. @param {Array} data contains php array with key value pair. @options data {Integer} id: Id of list to link users in it [Mandatory] @options data {Array} users: Email address of the already existing user(s) in the - SendinBlue contacts. Example: "test@example.net". You can use commas to separate multiple + Sendinblue contacts. Example: "test@example.net". You can use commas to separate multiple users [Mandatory] */ @@ -610,11 +610,11 @@ public function addUsersList($data) } /* - Delete already existing users in the SendinBlue contacts from the list. + Delete already existing users in the Sendinblue contacts from the list. @param {Array} data contains php array with key value pair. @options data {Integer} id: Id of list to unlink users from it [Mandatory] @options data {Array} users: Email address of the already existing user(s) in the - SendinBlue contacts to be modified. Example: "test@example.net". You can use commas + Sendinblue contacts to be modified. Example: "test@example.net". You can use commas to separate multiple users [Mandatory] */ public function deleteUsersList($data) @@ -650,7 +650,7 @@ public function getAttribute($data) @options data {String} type: Type of attribute. Possible values – normal, transactional, category, calculated & global ( case sensitive ) [Mandatory] @options data {Array} data: The name and data type of ‘normal’ & ‘transactional’ attribute - to be created in your SendinBlue account. It should be sent as an associative array. Example: + to be created in your Sendinblue account. It should be sent as an associative array. Example: array(‘ATTRIBUTE_NAME1′ => ‘DATA_TYPE1′, ‘ATTRIBUTE_NAME2’=> ‘DATA_TYPE2′). The name and data value of ‘category’, ‘calculated’ & ‘global’, should be sent as JSON string. Example: ‘[{ "name":"ATTRIBUTE_NAME1", "value":"Attribute_value1" }, { "name":"ATTRIBUTE_NAME2", @@ -675,11 +675,11 @@ public function deleteAttribute($type, $data) /* Create a new user if an email provided as input, doesn’t exists in the contact list - of your SendinBlue account, otherwise it will update the existing user. + of your Sendinblue account, otherwise it will update the existing user. @param {Array} data contains php array with key value pair. - @options data {String} email: Email address of the user to be created in SendinBlue contacts. - Already existing email address of user in the SendinBlue contacts to be modified [Mandatory] - @options data {Array} attributes: The name of attribute present in your SendinBlue account. + @options data {String} email: Email address of the user to be created in Sendinblue contacts. + Already existing email address of user in the Sendinblue contacts to be modified [Mandatory] + @options data {Array} attributes: The name of attribute present in your Sendinblue account. It should be sent as an associative array. Example: array("NAME"=>"name"). You can use commas to separate multiple attributes [Optional] @options data {Integer} blacklisted: This is used to blacklist/ Unblacklist a user. Possible @@ -698,7 +698,7 @@ public function createUpdateUser($data) /* Get Access a specific user Information. @param {Array} data contains php array with key value pair. - @options data {String} email: Email address of the already existing user in the SendinBlue + @options data {String} email: Email address of the already existing user in the Sendinblue contacts [Mandatory] */ public function getUser($data) @@ -709,7 +709,7 @@ public function getUser($data) /* Unlink existing user from all lists. @param {Array} data contains php array with key value pair. - @options data {String} email: Email address of the already existing user in the SendinBlue + @options data {String} email: Email address of the already existing user in the Sendinblue contacts to be unlinked from all lists [Mandatory] */ public function deleteUser($data) @@ -743,7 +743,7 @@ public function importUsers($data) /* Export Users Information. @param {Array} data contains php array with key value pair. - @options data {String} export_attrib: The name of attribute present in your SendinBlue account. + @options data {String} export_attrib: The name of attribute present in your Sendinblue account. You can use commas to separate multiple attributes. Example: "EMAIL,NAME,SMS" [Optional] @options data {String} filter: Filter can be added to export users. Example: "{\"blacklisted\":1}", will export all blacklisted users [Mandatory] @@ -934,7 +934,7 @@ public function sendEmail($data) } /* - Aggregate / date-wise report of the SendinBlue SMTP account. + Aggregate / date-wise report of the Sendinblue SMTP account. @param {Array} data contains php array with key value pair. @options data {Integer} aggregate: This is used to indicate, you are interested in all-time totals. Possible values – 0 & 1. aggregate = 0 means it will not aggregate records, and will show stats per @@ -990,15 +990,15 @@ public function deleteBounces($data) } /* - Send templates created on SendinBlue, through SendinBlue SMTP (transactional mails). + Send templates created on Sendinblue, through Sendinblue SMTP (transactional mails). @param {Array} data contains php array with key value pair. - @options data {Integer} id: Id of the template created on SendinBlue account [Mandatory] + @options data {Integer} id: Id of the template created on Sendinblue account [Mandatory] @options data {String} to: Email address of the recipient(s). You can use pipe ( | ) to separate multiple recipients. Example: "to-example@example.net|to2-example@example.net" [Mandatory] @options data {String} cc: Same as to but for Cc [Optional] @options data {String} bcc: Same as to but for Bcc [Optional] - @options data {Array} attrv The name of attribute present in your SendinBlue account. It should + @options data {Array} attrv The name of attribute present in your Sendinblue account. It should be sent as an associative array. Example: array("NAME"=>"name"). You can use commas to separate multiple attributes [Optional] @options data {String} attachment_url: Provide the absolute url of the attachment. Url not allowed @@ -1030,7 +1030,7 @@ public function sendTransactionalTemplate($data) @options data {String} reply_to: The reply to email in the campaign emails [Optional] @options data {String} to_fieldv This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the contact attributes - here, these should already exist in SendinBlue account [Optional] + here, these should already exist in Sendinblue account [Optional] @options data {Integer} status: Status of template. Possible values = 0 (default) & 1. status = 0 means template is inactive, & status = 1 means template is active [Optional] @options data {Integer} attachment: Status of attachment. Possible values = 0 (default) & 1. @@ -1060,7 +1060,7 @@ public function createTemplate($data) @options data {String} reply_to: The reply to email in the campaign emails [Optional] @options data {String} to_field: This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [PRENOM] [NOM]. To use the contact attributes here, - these should already exist in SendinBlue account [Optional] + these should already exist in Sendinblue account [Optional] @options data {Integer} status: Status of template. Possible values = 0 (default) & 1. status = 0 means template is inactive, & status = 1 means template is active [Optional] @options data {Integer} attachment: Status of attachment. Possible values = 0 (default) & 1. @@ -1103,7 +1103,7 @@ public function sendSms($data) @options data {String} content: Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS [Optional] @options data {String} bat: Mobile number with the country code to send test SMS. The mobile number - defined here should belong to one of your contacts in SendinBlue account and should not be blacklisted + defined here should belong to one of your contacts in Sendinblue account and should not be blacklisted [Optional] @options data {Array} listid: These are the list ids to which the SMS campaign is sent [Mandatory: if scheduled_date is not empty] @@ -1129,7 +1129,7 @@ public function createSmsCampaign($data) @options data {String} content: Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS [Optional] @options data {String} bat: Mobile number with the country code to send test SMS. The mobile number - defined here should belong to one of your contacts in SendinBlue account and should not be blacklisted + defined here should belong to one of your contacts in Sendinblue account and should not be blacklisted [Optional] @options data {Array} listid: hese are the list ids to which the SMS campaign is sent [Mandatory: if scheduled_date is not empty] @@ -1152,7 +1152,7 @@ public function updateSmsCampaign($data) @param {Array} data contains php array with key value pair. @options data {Integer} id: Id of the SMS campaign [Mandatory] @options data {String} to: Mobile number with the country code to send test SMS. The mobile - number defined here should belong to one of your contacts in SendinBlue account and should not be + number defined here should belong to one of your contacts in Sendinblue account and should not be blacklisted [Mandatory] */ public function sendBatSms($data) diff --git a/Model/SendinblueSib.php b/Model/SendinblueSib.php index 96b852d..f05a93e 100644 --- a/Model/SendinblueSib.php +++ b/Model/SendinblueSib.php @@ -87,9 +87,9 @@ public function createFolderName($apiKey) $folderId = $result['key']; $existList = $result['list_name']; } - //Create the partner's name i.e. Shopify on SendinBlue platform + //Create the partner's name i.e. Shopify on Sendinblue platform $this->partnerMagento(); - // create list in SendinBlue + // create list in Sendinblue $this->createNewList($folderId, $existList); } @@ -106,7 +106,7 @@ public function partnerMagento() } /** - * Description: Creates a list by the name "Shopify" on user's SendinBlue account. + * Description: Creates a list by the name "Shopify" on user's Sendinblue account. * * @author: Amar Pandey * @param: useremail, doubleoptinUrl, storeId ,shoplang @@ -222,7 +222,7 @@ public function resetDataBaseValue() /** * Description: reate Normal, Transactional, Calculated and Global attributes and their values - * on SendinBlue platform. This is necessary for the Shopify to add subscriber's details. + * on Sendinblue platform. This is necessary for the Shopify to add subscriber's details. * * @author: Amar Pandey * @param: no @@ -318,7 +318,7 @@ public function allTransactionalAttributes() } /** - * Description: API config value from SendinBlue with date format. + * Description: API config value from Sendinblue with date format. * * @author: Amar Pandey * @param: storeID @@ -387,7 +387,7 @@ public function checkFolderList() /** * Description: Method is used to send all the subscribers from Shopify to - * SendinBlue for adding / updating purpose. + * Sendinblue for adding / updating purpose. * * @author: Amar Pandey * @param: Sib listId @@ -419,7 +419,7 @@ public function sendAllMailIDToSendin($listId) } /** - * Description: Fetches all the subscribers of Shopify and adds them to the SendinBlue database. + * Description: Fetches all the subscribers of Shopify and adds them to the Sendinblue database. * * @author: Amar Pandey * @param: get user detail @@ -638,7 +638,7 @@ public function templateDisplay($apiKey = false) } /** - * Description: Show SMS credit from SendinBlue. + * Description: Show SMS credit from Sendinblue. * * @author: Amar Pandey * @param: ApiKey @@ -950,7 +950,7 @@ public function sendCampaignTestSms($sender, $message, $number) } /** - * Description: Send SMS from SendinBlue. + * Description: Send SMS from Sendinblue. * Get Param sender and msg fields. */ public function sendSmsApi($dataSms) @@ -1103,7 +1103,7 @@ public function multipleChoiceCampaign($post) } /** - * Description: Send single user in SendinBlue. + * Description: Send single user in Sendinblue. * */ public function subscribeByruntime($userEmail, $updateDataInSib) @@ -1137,7 +1137,7 @@ public function subscribeByruntime($userEmail, $updateDataInSib) } /** - * Description: Checks whether the SendinBlue API key and the SendinBlue subscription form is enabled + * Description: Checks whether the Sendinblue API key and the Sendinblue subscription form is enabled * and returns the true|false accordingly. */ public function syncSetting() @@ -1152,7 +1152,7 @@ public function syncSetting() } /** - * Description: Send single user in SendinBlue. + * Description: Send single user in Sendinblue. * */ public function unsubscribeByruntime($userEmail) @@ -1251,7 +1251,7 @@ public function sendNotifySms($remainingSms) { $notifyEmail = $this->getDbData('notify_email'); $tempName = 'sendin_notification'; - $title = __('[SendinBlue] Notification : Credits SMS'); + $title = __('[Sendinblue] Notification : Credits SMS'); $siteName = $this->_storeManagerInterface->getStore()->getName(); $paramVal = array('{present_credit}' => $remainingSms, '{site_name}' => $siteName); $this->smtpSendMail($notifyEmail, $title, $tempName, $paramVal); diff --git a/README.md b/README.md index 9921fd7..361c189 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Blog module allows you to create a full-fledged blog on your [Magento 2](http://magento.com/) Store. ## Features - * With the SendinBlue plugin, you can find everything you need to easily and efficiently send your email & SMS campaigns to your prospects and customers. - * Synchronize your subscribers with SendinBlue (subscribed and unsubscribed contacts) + * With the Sendinblue plugin, you can find everything you need to easily and efficiently send your email & SMS campaigns to your prospects and customers. + * Synchronize your subscribers with Sendinblue (subscribed and unsubscribed contacts) * Easily create good looking emailings * Schedule your campaigns * Track your results and optimize diff --git a/composer.json b/composer.json index bc7ca6b..3763d18 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "sendinblue/module-sendinblue", "description": "N/A", "type": "magento2-module", - "version": "2.0.3", + "version": "2.0.4", "license": [ "OSL-3.0", "AFL-3.0" diff --git a/etc/module.xml b/etc/module.xml index 2eb32a6..e5cea33 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,4 +1,4 @@ - + diff --git a/i18n/en_US.csv b/i18n/en_US.csv index 5ea374f..47fece4 100644 --- a/i18n/en_US.csv +++ b/i18n/en_US.csv @@ -1,50 +1,50 @@ -"SendinBlue : THE all-in-one plugin for your marketing and transactional emails.","SendinBlue : THE all-in-one plugin for your marketing and transactional emails." -"About SendinBlue","About SendinBlue" +"Sendinblue : THE all-in-one plugin for your marketing and transactional emails.","Sendinblue : THE all-in-one plugin for your marketing and transactional emails." +"About Sendinblue","About Sendinblue" "For further informations, please visit our website","For further informations, please visit our website" -"With the SendinBlue plugin, you can find everything you need to easily and efficiently send your email & SMS campaigns to your prospects and customers.","With the SendinBlue plugin, you can find everything you need to easily and efficiently send your email & SMS campaigns to your prospects and customers." -"Synchronize your subscribers with SendinBlue (subscribed contacts)","Synchronize your subscribers with SendinBlue (subscribed contacts)" +"With the Sendinblue plugin, you can find everything you need to easily and efficiently send your email & SMS campaigns to your prospects and customers.","With the Sendinblue plugin, you can find everything you need to easily and efficiently send your email & SMS campaigns to your prospects and customers." +"Synchronize your subscribers with Sendinblue (subscribed contacts)","Synchronize your subscribers with Sendinblue (subscribed contacts)" "Easily create good looking emailings","Easily create good looking emailings" "Schedule your campaigns","Schedule your campaigns" "Track your results and optimize","Track your results and optimize" "Monitor your transactional emails (purchase confirmation, password reset, etc) with a better deliverability and real-time analytics","Monitor your transactional emails (purchase confirmation, password reset, etc) with a better deliverability and real-time analytics" -"Why should you use SendinBlue ?","Why should you use SendinBlue ?" +"Why should you use Sendinblue ?","Why should you use Sendinblue ?" "Optimized deliverability","Optimized deliverability" "Unbeatable pricing – best value in the industry","Unbeatable pricing – best value in the industry" "Technical support, by phone or by email","Technical support, by phone or by email" "Prerequisites","Prerequisites" -"You should have a SendinBlue account. You can create a free account here : ","You should have a SendinBlue account. You can create a free account here : " +"You should have a Sendinblue account. You can create a free account here : ","You should have a Sendinblue account. You can create a free account here : " "Settings","Settings" -"Activate the SendinBlue module","Activate the SendinBlue module" +"Activate the Sendinblue module","Activate the Sendinblue module" "API key v2","API key v2" -"Please enter your API key from your SendinBlue account and if you don't have it yet, please go to www.sendinblue.com and subscribe. You can then get the API key from https://my.sendinblue.com/advanced/apikey","Please enter your API key from your SendinBlue account and if you don't have it yet, please go to www.sendinblue.com and subscribe. You can then get the API key from https://my.sendinblue.com/advanced/apikey" -"Activate SendinBlue to manage subscribers","Activate SendinBlue to manage subscribers" -"Activate SendinBlue to manage subscribers","Activate SendinBlue to manage subscribers" +"Please enter your API key from your Sendinblue account and if you don't have it yet, please go to www.sendinblue.com and subscribe. You can then get the API key from https://my.sendinblue.com/advanced/apikey","Please enter your API key from your Sendinblue account and if you don't have it yet, please go to www.sendinblue.com and subscribe. You can then get the API key from https://my.sendinblue.com/advanced/apikey" +"Activate Sendinblue to manage subscribers","Activate Sendinblue to manage subscribers" +"Activate Sendinblue to manage subscribers","Activate Sendinblue to manage subscribers" "Your lists","Your lists" "Update","Update" -"Select the contact list where you want to save the contacts of your site Magento. By default, we have created a list Magento in your SendinBlue account and we have selected it","Select the contact list where you want to save the contacts of your site Magento. By default, we have created a list Magento in your SendinBlue account and we have selected it" +"Select the contact list where you want to save the contacts of your site Magento. By default, we have created a list Magento in your Sendinblue account and we have selected it","Select the contact list where you want to save the contacts of your site Magento. By default, we have created a list Magento in your Sendinblue account and we have selected it" "With this option, contacts are directly added to your list when they enter their email address. No confirmation email is sent.","With this option, contacts are directly added to your list when they enter their email address. No confirmation email is sent." "This confirmation email is one of your SMTP templates. By default, we have created a Default Template - Single Confirmation.","This confirmation email is one of your SMTP templates. By default, we have created a Default Template - Single Confirmation." "By selecting this option, contacts are directly added to your list when they enter their email address on the form. A confirmation email will automatically be sent following their subscription.","By selecting this option, contacts are directly added to your list when they enter their email address on the form. A confirmation email will automatically be sent following their subscription." "Select Template","Select Template" -"Select a SendinBlue template that will be sent personalized for each contact that subscribes to your newsletter","Select a SendinBlue template that will be sent personalized for each contact that subscribes to your newsletter" +"Select a Sendinblue template that will be sent personalized for each contact that subscribes to your newsletter","Select a Sendinblue template that will be sent personalized for each contact that subscribes to your newsletter" "If you select the Double Opt-in confirmation, subscribers will receive an email inviting them to confirm their subscription. Before confirmation, the contact will be saved in the 'FORM' folder, on the 'Temp - DOUBLE OPT-IN' list. After confirmation, the contact will be saved in the 'Corresponding List' selected above.","If you select the Double Opt-in confirmation, subscribers will receive an email inviting them to confirm their subscription. Before confirmation, the contact will be saved in the 'FORM' folder, on the 'Temp - DOUBLE OPT-IN' list. After confirmation, the contact will be saved in the 'Corresponding List' selected above." "Once the form has been completed, your contact will receive an email with a link to confirm their subscription.","Once the form has been completed, your contact will receive an email with a link to confirm their subscription." "Default Template","Default Template" -"Select a SendinBlue template that will be sent personalized for each contact that subscribes to your newsletter","Select a SendinBlue template that will be sent personalized for each contact that subscribes to your newsletter" +"Select a Sendinblue template that will be sent personalized for each contact that subscribes to your newsletter","Select a Sendinblue template that will be sent personalized for each contact that subscribes to your newsletter" "Redirect URL after clicking in the validation email","Redirect URL after clicking in the validation email" "Redirect your contacts to a landing page or to your website once they have clicked on the confirmation link in the email.","Redirect your contacts to a landing page or to your website once they have clicked on the confirmation link in the email." "Once a contact has clicked in the double opt-in confirmation email, send them a final confirmation email","Once a contact has clicked in the double opt-in confirmation email, send them a final confirmation email" "Select Template","Select Template" -"Select a SendinBlue template that will be sent personalized for each contact that subscribes to your newsletter","Select a SendinBlue template that will be sent personalized for each contact that subscribes to your newsletter" +"Select a Sendinblue template that will be sent personalized for each contact that subscribes to your newsletter","Select a Sendinblue template that will be sent personalized for each contact that subscribes to your newsletter" "Import Old Subscribers","Import Old Subscribers" -"To synchronize the emails of your customers from SendinBlue platform to your e-commerce website, you should run ","To synchronize the emails of your customers from SendinBlue platform to your e-commerce website, you should run " +"To synchronize the emails of your customers from Sendinblue platform to your e-commerce website, you should run ","To synchronize the emails of your customers from Sendinblue platform to your e-commerce website, you should run " "this link","this link" "each day","each day" "Code tracking","Code tracking" "Do you want to install a tracking code when validating an order","Do you want to install a tracking code when validating an order" -"This feature will allow you to transfer all your customers orders from Magento into SendinBlue to implement your email marketing strategy.","This feature will allow you to transfer all your customers orders from Magento into SendinBlue to implement your email marketing strategy." +"This feature will allow you to transfer all your customers orders from Magento into Sendinblue to implement your email marketing strategy.","This feature will allow you to transfer all your customers orders from Magento into Sendinblue to implement your email marketing strategy." "Import the data of previous orders","Import the data of previous orders" -"Activate SendinBlue SMTP for your transactional emails","Activate SendinBlue SMTP for your transactional emails" +"Activate Sendinblue SMTP for your transactional emails","Activate Sendinblue SMTP for your transactional emails" "Transactional email is an expected email because it is triggered automatically after a transaction or a specific event. Common examples of transactional email are : account opening and welcome message, order shipment confirmation, shipment tracking and purchase order status, registration via a contact form, account termination, payment confirmation, invoice etc.","Transactional email is an expected email because it is triggered automatically after a transaction or a specific event. Common examples of transactional email are : account opening and welcome message, order shipment confirmation, shipment tracking and purchase order status, registration via a contact form, account termination, payment confirmation, invoice etc." "Send email test From / To :","Send email test From / To :" "Manage SMS","Manage SMS" @@ -94,7 +94,7 @@ " contacts subscribed and "," contacts subscribed and " " contacts unsubscribed from Magento."," contacts unsubscribed from Magento." " For less details,"," For less details," -"Click on the icon to subscribe / unsubscribe the sms from SendinBlue and Magento.","Click on the icon to subscribe / unsubscribe the sms from SendinBlue and Magento." +"Click on the icon to subscribe / unsubscribe the sms from Sendinblue and Magento.","Click on the icon to subscribe / unsubscribe the sms from Sendinblue and Magento." "Unsubscribe the contact","Unsubscribe the contact" "Subscribe the contact","Subscribe the contact" "Unsubscribe the sms","Unsubscribe the sms" @@ -106,7 +106,7 @@ "No confirmation","No confirmation" "Simple confirmation","Simple confirmation" "Double opt-in confirmation","Double opt-in confirmation" -"About SendinBlue","About SendinBlue" +"About Sendinblue","About Sendinblue" "Subscribe Manager","Subscribe Manager" "Transactional Emails and SMS Management","Transactional Emails and SMS Management" "Contact List","Contact List" diff --git a/i18n/fr_FR.csv b/i18n/fr_FR.csv index e1b7acf..74d3c34 100644 --- a/i18n/fr_FR.csv +++ b/i18n/fr_FR.csv @@ -1,50 +1,50 @@ -"SendinBlue : THE all-in-one plugin for your marketing and transactional emails.","SendinBlue : LE plugin tout-en-un pour vos emails marketing et transactionnels." -"About SendinBlue","About SendinBlue" +"Sendinblue : THE all-in-one plugin for your marketing and transactional emails.","Sendinblue : LE plugin tout-en-un pour vos emails marketing et transactionnels." +"About Sendinblue","About Sendinblue" "For further informations, please visit our website","Pour plus d'informations, merci de visiter notre site internet:" -"With the SendinBlue plugin, you can find everything you need to easily and efficiently send your email & SMS campaigns to your prospects and customers.","Avec le module SendinBlue, retrouvez tout ce dont vous avez besoin pour envoyer simplement et efficacement vos campagnes emailing & SMS à vos prospects et clients :" -"Synchronize your subscribers with SendinBlue (subscribed contacts)","Synchronisation automatique de vos contacts avec SendinBlue (inscrits)" +"With the Sendinblue plugin, you can find everything you need to easily and efficiently send your email & SMS campaigns to your prospects and customers.","Avec le module Sendinblue, retrouvez tout ce dont vous avez besoin pour envoyer simplement et efficacement vos campagnes emailing & SMS à vos prospects et clients :" +"Synchronize your subscribers with Sendinblue (subscribed contacts)","Synchronisation automatique de vos contacts avec Sendinblue (inscrits)" "Easily create good looking emailings","Outils d'aide à la création d'emailings" "Schedule your campaigns","Schedule your campaigns" "Track your results and optimize","Suivi des résultats" "Monitor your transactional emails (purchase confirmation, password reset, etc) with a better deliverability and real-time analytics","Pilotage simple et efficace de vos emails transactionnels (emails de confirmation de commande, de récupération de mot de passe …) avec une meilleure délivrabilité et le détail des ouvertures et des clics en temps réel" -"Why should you use SendinBlue ?","Pourquoi utiliser SendinBlue ?" +"Why should you use Sendinblue ?","Pourquoi utiliser Sendinblue ?" "Optimized deliverability","Une délivrabilité optimisée" "Unbeatable pricing – best value in the industry","Les meilleurs prix du marché, sans engagement" "Technical support, by phone or by email","Un support technique joignable par téléphone ou par email" "Prerequisites","Prerequisites" -"You should have a SendinBlue account. You can create a free account here : ","You should have a SendinBlue account. You can create a free account here : " +"You should have a Sendinblue account. You can create a free account here : ","You should have a Sendinblue account. You can create a free account here : " "Settings","Paramètres" -"Activate the SendinBlue module","Activer le module SendinBlue:" +"Activate the Sendinblue module","Activer le module Sendinblue:" "API key v2","Clé API v2:" -"Please enter your API key from your SendinBlue account and if you don't have it yet, please go to www.sendinblue.com and subscribe. You can then get the API key from https://my.sendinblue.com/advanced/apikey","Veuillez renseigner votre clé API qui est liée à votre compte SendinBlue. Elle est disponible sur cette page: https://my.sendinblue.com/integration. Si vous ne possédez pas de compte SendinBlue, vous devez créer un compte sur le site https://www.sendinblue.com" -"Activate SendinBlue to manage subscribers","Activer SendinBlue pour gérer vos contacts" +"Please enter your API key from your Sendinblue account and if you don't have it yet, please go to www.sendinblue.com and subscribe. You can then get the API key from https://my.sendinblue.com/advanced/apikey","Veuillez renseigner votre clé API qui est liée à votre compte Sendinblue. Elle est disponible sur cette page: https://my.sendinblue.com/integration. Si vous ne possédez pas de compte Sendinblue, vous devez créer un compte sur le site https://www.sendinblue.com" +"Activate Sendinblue to manage subscribers","Activer Sendinblue pour gérer vos contacts" "Your lists","Vos listes" "Update","Mettre à jour" -"Select the contact list where you want to save the contacts of your site Magento. By default, we have created a list Magento in your SendinBlue account and we have selected it","Choisissez les listes de contacts où vous souhaitez enregistrer les contacts de votre site Magento. Nous avons créé automatiquement une liste Magento sur votre compte SendinBlue, elle est sélectionnée par défaut." +"Select the contact list where you want to save the contacts of your site Magento. By default, we have created a list Magento in your Sendinblue account and we have selected it","Choisissez les listes de contacts où vous souhaitez enregistrer les contacts de votre site Magento. Nous avons créé automatiquement une liste Magento sur votre compte Sendinblue, elle est sélectionnée par défaut." "With this option, contacts are directly added to your list when they enter their email address. No confirmation email is sent.","Avec cette option, votre contact s'inscrit directement à votre liste en laissant son adresse email. Aucun email de confirmation lui est envoyé." "This confirmation email is one of your SMTP templates. By default, we have created a Default Template - Single Confirmation.","Cet email de confirmation fait partie de vos templates SMTP. Par défaut, nous en avons créé un 'Default Template - Simple Confirmation'." "By selecting this option, contacts are directly added to your list when they enter their email address on the form. A confirmation email will automatically be sent following their subscription.","En choisissant cette option, votre contact s'inscrira directement à la liste en laissant son adresse email dans le formulaire. Un email de confirmation de son inscription lui sera automatiquement envoyé à la suite de son inscription." "Select Template","Sélectionnez un template" -"Select a SendinBlue template that will be sent personalized for each contact that subscribes to your newsletter","Sélectionnez un template SendinBlue qui sera envoyé pour chaque contact qui s'abonne à votre newsletter" +"Select a Sendinblue template that will be sent personalized for each contact that subscribes to your newsletter","Sélectionnez un template Sendinblue qui sera envoyé pour chaque contact qui s'abonne à votre newsletter" "If you select the Double Opt-in confirmation, subscribers will receive an email inviting them to confirm their subscription. Before confirmation, the contact will be saved in the 'FORM' folder, on the 'Temp - DOUBLE OPT-IN' list. After confirmation, the contact will be saved in the 'Corresponding List' selected above.","Si vous choisissez la confirmation Double Opt-in, l'abonné recevra un email l'invitant à confirmer son inscription. Avant la confirmation, le contact est sauvegardé dans le dossier 'FORM', liste 'Temp - DOUBLE OPTIN', après confirmation, le contact est sauvegardé dans la 'Liste correspondante' choisie ci-dessous." "Once the form has been completed, your contact will receive an email with a link to confirm their subscription.","Lorsque le formulaire est rempli, votre contact recevra un email avec un lien de confirmation d'inscription." "Default Template","Default Template" -"Select a SendinBlue template that will be sent personalized for each contact that subscribes to your newsletter","Sélectionnez un template SendinBlue qui sera envoyé pour chaque contact qui s'abonne à votre newsletter" +"Select a Sendinblue template that will be sent personalized for each contact that subscribes to your newsletter","Sélectionnez un template Sendinblue qui sera envoyé pour chaque contact qui s'abonne à votre newsletter" "Redirect URL after clicking in the validation email","URL de redirection après clic dans l'email de validation" "Redirect your contacts to a landing page or to your website once they have clicked on the confirmation link in the email.","Redirigez votre contact vers une landing page ou votre site après qu'il ait validé le lien de confirmation dans l'email." "Once a contact has clicked in the double opt-in confirmation email, send them a final confirmation email","Lorsqu'un contact a cliqué dans le lien de l'email de confirmation double opt-in, lui envoyer un email final de confirmation" "Select Template","Sélectionnez un template" -"Select a SendinBlue template that will be sent personalized for each contact that subscribes to your newsletter","Sélectionnez un template SendinBlue qui sera envoyé pour chaque contact qui s'abonne à votre newsletter" +"Select a Sendinblue template that will be sent personalized for each contact that subscribes to your newsletter","Sélectionnez un template Sendinblue qui sera envoyé pour chaque contact qui s'abonne à votre newsletter" "Import Old Subscribers","Importer les anciens abonnés" -"To synchronize the emails of your customers from SendinBlue platform to your e-commerce website, you should run ","Pour synchroniser les emails de vos clients de la plateforme SendinBlue vers votre site e-commerce website, il faudra exécuter " +"To synchronize the emails of your customers from Sendinblue platform to your e-commerce website, you should run ","Pour synchroniser les emails de vos clients de la plateforme Sendinblue vers votre site e-commerce website, il faudra exécuter " "this link","ce lien" "each day","chaque jour." "Code tracking","Code de tracking" "Do you want to install a tracking code when validating an order","Voulez vous installer un code de tracking lors de la validation d'une commande" -"This feature will allow you to transfer all your customers orders from Magento into SendinBlue to implement your email marketing strategy.","Cette fonctionnalité vous permettra de remonter vos commandes réalisées depuis votre site Magento vers SendinBlue afin de mettre en place des strategies marketing lors de l'envoi de vos campagnes." +"This feature will allow you to transfer all your customers orders from Magento into Sendinblue to implement your email marketing strategy.","Cette fonctionnalité vous permettra de remonter vos commandes réalisées depuis votre site Magento vers Sendinblue afin de mettre en place des strategies marketing lors de l'envoi de vos campagnes." "Import the data of previous orders","Import the data of previous orders" -"Activate SendinBlue SMTP for your transactional emails","Activer SendinBlue SMTP pour vos emails transactionnels" -"Transactional email is an expected email because it is triggered automatically after a transaction or a specific event. Common examples of transactional email are : account opening and welcome message, order shipment confirmation, shipment tracking and purchase order status, registration via a contact form, account termination, payment confirmation, invoice etc.","SendinBlue SMTP permet d'envoyer des emails transactionnels (un email transactionnel est envoyé pour attester d'une transaction ou d'un évènement. Exemple : email d'inscription, de confirmation de commande, une facture …). En activant cette fonctionnalité, vous êtes sûr que vos emails transactionnels parviennent bien à vos destinataires et vous pouvez consulter l'historique de vos emails (ouvertures, clics …)." +"Activate Sendinblue SMTP for your transactional emails","Activer Sendinblue SMTP pour vos emails transactionnels" +"Transactional email is an expected email because it is triggered automatically after a transaction or a specific event. Common examples of transactional email are : account opening and welcome message, order shipment confirmation, shipment tracking and purchase order status, registration via a contact form, account termination, payment confirmation, invoice etc.","Sendinblue SMTP permet d'envoyer des emails transactionnels (un email transactionnel est envoyé pour attester d'une transaction ou d'un évènement. Exemple : email d'inscription, de confirmation de commande, une facture …). En activant cette fonctionnalité, vous êtes sûr que vos emails transactionnels parviennent bien à vos destinataires et vous pouvez consulter l'historique de vos emails (ouvertures, clics …)." "Send email test From / To :","Envoyer un email de test à" "Manage SMS","Gestion des SMS" "Currently you have","Actuellement, vous avez" @@ -92,7 +92,7 @@ " contacts subscribed and "," contacts inscrits et " " contacts unsubscribed from Magento."," contacts désinscrits de Magento." " For less details,"," Pour moins de détails, cliquez" -"Click on the icon to subscribe / unsubscribe the sms from SendinBlue and Magento.","Cliquez sur l'icône pour inscrire / désinscrire un sms de SendinBlue et Magento." +"Click on the icon to subscribe / unsubscribe the sms from Sendinblue and Magento.","Cliquez sur l'icône pour inscrire / désinscrire un sms de Sendinblue et Magento." "Unsubscribe the contact","Unsubscribe the contact" "Subscribe the contact","Subscribe the contact" "Unsubscribe the sms","Unsubscribe the sms" @@ -104,7 +104,7 @@ "No confirmation","Aucune confirmation" "Simple confirmation","Confirmation simple" "Double opt-in confirmation","Double opt-in confirmation" -"About SendinBlue","About SendinBlue" +"About Sendinblue","About Sendinblue" "Subscribe Manager","Subscribe Manager" "Transactional Emails and SMS Management","Gestion des Emails Transactionnels et des SMS" "Contact List","listes de contacts" diff --git a/view/adminhtml/templates/sib.phtml b/view/adminhtml/templates/sib.phtml index 04d18ce..9141b0d 100644 --- a/view/adminhtml/templates/sib.phtml +++ b/view/adminhtml/templates/sib.phtml @@ -8,6 +8,9 @@ $apiKeyStatus = !empty($model->getDbData('api_key_status')) ? $model->getDbData('api_key_status') : ''; $formKey = $block->getFormValue(); +$newIconSvg = ' + +'; ?> @@ -35,7 +38,7 @@ $formKey = $block->getFormValue();
-

+

@@ -43,7 +46,7 @@ $formKey = $block->getFormValue();
    -
  • +
  • @@ -58,26 +61,26 @@ $formKey = $block->getFormValue();
    -

    SendinBlue

    +

    Sendinblue

    -

    +

      -
    • +
    -

    +

    • @@ -94,9 +97,9 @@ $formKey = $block->getFormValue(); @@ -109,10 +112,10 @@ $formKey = $block->getFormValue(); " /> -

      +

      -
      +
      getDbData('api_key_status') == 1) { $str = 'style="display:block;"'; } else { @@ -131,7 +134,7 @@ $formKey = $block->getFormValue();
      -
      ">
      +
      ">
      @@ -165,14 +168,14 @@ $formKey = $block->getFormValue(); -

      +

      #subscribe-manager" method="post"> - + @@ -262,7 +265,7 @@ $formKey = $block->getFormValue(); - + @@ -304,7 +307,7 @@ $formKey = $block->getFormValue(); - +
      @@ -352,7 +355,7 @@ $formKey = $block->getFormValue(); - +
      @@ -380,7 +383,7 @@ $formKey = $block->getFormValue(); @@ -397,7 +400,7 @@ $formKey = $block->getFormValue();
      -

      +

      #code-tracking" id="ordtrack" method="post" name="ordtrack"> " /> @@ -408,7 +411,7 @@ $formKey = $block->getFormValue(); - +
      @@ -445,14 +448,14 @@ $formKey = $block->getFormValue();
      -

      +

      #transactional-email-sms-management" method="post">
      @@ -205,7 +208,7 @@ $formKey = $block->getFormValue(); -   +  
        - " style="color: #000000; outline: 0 none; text-decoration: none;" target="_blank"> + " style="color: #000000; outline: 0 none; text-decoration: none;" target="_blank">
      - + @@ -485,7 +488,7 @@ $formKey = $block->getFormValue();
      -

      +

      @@ -939,7 +942,7 @@ $formKey = $block->getFormValue();
      -

      +

      #contact-list" id="ordtrack" method="post" name="ordtrack"> " /> @@ -966,8 +969,8 @@ $formKey = $block->getFormValue();
      - - + + diff --git a/view/adminhtml/web/css/sib.css b/view/adminhtml/web/css/sib.css index 515e046..a7a2e5b 100644 --- a/view/adminhtml/web/css/sib.css +++ b/view/adminhtml/web/css/sib.css @@ -33,7 +33,7 @@ body{ font-family: 'Open Sans', sans-serif;} } .toolTip { background: url("../images/help.png") no-repeat scroll right center transparent; - color: #3366FF; + color: #044A75; cursor: help; padding:9px;/*-right: 20px;*/ position: relative; @@ -306,7 +306,7 @@ ul.listt li { } .link_action{ -color: #268CCD;} +color: #044A75;} /*Form*/ h4, h5, h6{ font-weight:bold;} @@ -480,7 +480,7 @@ legend img { display:block; font-size:14px; } -.form-box .heading{background:#3498db; color:#fff; padding:10px; margin:0; line-height:21px; } +.form-box .heading{background:#044A75; color:#fff; padding:10px; margin:0; line-height:21px; } .form-box .heading img{margin-right:5px; position:relative; top:2px; width:18px;} .form-box h2.heading{font-weight:500; font-size:18px;} .form-box-content{padding:10px 15px; border:1px solid #e2e2e2; font-size:14px !important;} @@ -494,7 +494,7 @@ legend img { position: absolute; top: 25px; width: 0;} -.contact-box h2{font-size:18px; color:#268CCD;} +.contact-box h2{font-size:18px; color:#044A75;} .form-box label{font-weight:normal;} .form-box .sub-heading{font-size:15px; font-weight:600;} @@ -507,14 +507,14 @@ legend img { .form-box .form-row .tooltip-form{ padding:15px 10px;} .btn{padding:7px 20px; font-size:14px; border:none; text-shadow:none; font-weight:600;font-family: 'Open Sans', sans-serif;} -.btn-primary{ color:#fff; background:#337ab7; border:1px solid #2e6da4;} +.btn-primary{ color:#fff; background:#044A75; border:1px solid #2e6da4;} .btn-success{ color:#fff; background:#5cb85c; border:1px solid #4cae4c;} .tableblock { padding-bottom:50px;} .tableblock th{font-family: 'Open Sans', sans-serif;} .tableblock thead th{background:none; margin:0; text-shadow:none; font-weight:400;} .tableblock thead th h2{padding:0; margin:0;font-weight:500; font-size:18px;} -.tableblock .heading-thead{background:#3498db; color:#fff; padding:10px; margin:0; line-height:21px; } +.tableblock .heading-thead{background:#044A75; color:#fff; padding:10px; margin:0; line-height:21px; } .tooltip-radio{top:5px; position:relative;} @@ -589,7 +589,7 @@ legend img { padding:10px; border:1px solid #e2e2e2; border-collapse: collapse; - background-color: #3499db; + background-color: #044A75; color: #fff; } .table-contacts td { diff --git a/view/adminhtml/web/email_temp/en/sendin_notification.html b/view/adminhtml/web/email_temp/en/sendin_notification.html index c456f30..d58a375 100644 --- a/view/adminhtml/web/email_temp/en/sendin_notification.html +++ b/view/adminhtml/web/email_temp/en/sendin_notification.html @@ -6,7 +6,7 @@ - [SendinBlue] Alert: You do not have enough credits SMS + [Sendinblue] Alert: You do not have enough credits SMS @@ -34,7 +34,7 @@ @@ -63,7 +63,7 @@

      Regards,
      - SendinBlue team
      + Sendinblue team
      @@ -117,7 +117,7 @@

      style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;"> SendinBlue + style="color:#2f8bee;">Sendinblue
      - © 2014-2015 SendinBlue, all rights reserved.
      + © 2014-2015 Sendinblue, all rights reserved.
      - This is an automatic message generated by SendinBlue.
      + This is an automatic message generated by Sendinblue.
      Do not respond, you wouldn't receive any answer.
      diff --git a/view/adminhtml/web/email_temp/en/sendinsmtp_conf.html b/view/adminhtml/web/email_temp/en/sendinsmtp_conf.html index 5178d4a..993f17b 100644 --- a/view/adminhtml/web/email_temp/en/sendinsmtp_conf.html +++ b/view/adminhtml/web/email_temp/en/sendinsmtp_conf.html @@ -6,7 +6,7 @@ - [SendinBlue SMTP] test email + [Sendinblue SMTP] test email @@ -34,7 +34,7 @@

      @@ -55,8 +55,8 @@

      @@ -80,7 +80,7 @@

      @@ -116,7 +116,7 @@

      @@ -63,7 +63,7 @@

      Cordialement,
      - L'équipe de SendinBlue
      + L'équipe de Sendinblue
      @@ -114,7 +114,7 @@

      @@ -55,8 +55,8 @@

      @@ -81,7 +81,7 @@

      L'équipe - de SendinBlue
      + de Sendinblue

      @@ -116,7 +116,7 @@

          

      -SendinBlue +Sendinblue

      -SendinBlue +Sendinblue

      This email has been sent using SendinBlue SMTP.
      - Congratulations, your SendinBlue SMTP module has been set up well. + margin:0 0 10px 0;">This email has been sent using Sendinblue SMTP.
      + Congratulations, your Sendinblue SMTP module has been set up well.
      SendinBlue Team
      + font-weight:bold; line-height:18px;">Sendinblue Team
      SendinBlue
      + color:#7e7e7e;"> Sendinblue
      59 rue Beaubourg
      @@ -136,9 +136,9 @@

      - © 2014-2015 SendinBlue, all rights reserved.
      + © 2014-2015 Sendinblue, all rights reserved.
      - This is an automatic message generated by SendinBlue.
      + This is an automatic message generated by Sendinblue.
      Do not respond, you wouldn't receive any answer.
      diff --git a/view/adminhtml/web/email_temp/fr/sendin_notification.html b/view/adminhtml/web/email_temp/fr/sendin_notification.html index 603c005..b0a0482 100644 --- a/view/adminhtml/web/email_temp/fr/sendin_notification.html +++ b/view/adminhtml/web/email_temp/fr/sendin_notification.html @@ -6,7 +6,7 @@ - [SendinBlue] Alerte: Vos crédits SMS seront bientôt épuisés + [Sendinblue] Alerte: Vos crédits SMS seront bientôt épuisés @@ -34,7 +34,7 @@

      -SendinBlue +Sendinblue

      SendinBlue
      + color:#7e7e7e;"> Sendinblue
      59 rue Beaubourg
      @@ -133,11 +133,11 @@

      -
      © 2014-2015 SendinBlue, tous droits +
      © 2014-2015 Sendinblue, tous droits réservés.
      Ceci est un message automatique - généré par SendinBlue. + généré par Sendinblue.
      Ne pas y répondre, vous ne recevriez aucune réponse. diff --git a/view/adminhtml/web/email_temp/fr/sendinsmtp_conf.html b/view/adminhtml/web/email_temp/fr/sendinsmtp_conf.html index a600e54..3e3c826 100644 --- a/view/adminhtml/web/email_temp/fr/sendinsmtp_conf.html +++ b/view/adminhtml/web/email_temp/fr/sendinsmtp_conf.html @@ -6,7 +6,7 @@ - [SendinBlue SMTP] e-mail de test + [Sendinblue SMTP] e-mail de test @@ -34,7 +34,7 @@

      -SendinBlue +Sendinblue

      Cet e-mail a été envoyé via SendinBlue SMTP.
      - Félicitations, la fonctionnalité SendinBlue SMTP est bien configurée. + margin:0 0 10px 0;">Cet e-mail a été envoyé via Sendinblue SMTP.
      + Félicitations, la fonctionnalité Sendinblue SMTP est bien configurée.
      SendinBlue
      + color:#7e7e7e;"> Sendinblue
      59 rue Beaubourg
      @@ -135,11 +135,11 @@

      -
      © 2014-2015 SendinBlue, tous droits +
      © 2014-2015 Sendinblue, tous droits réservés.
      Ceci est un message automatique - généré par SendinBlue. + généré par Sendinblue.
      Ne pas y répondre, vous ne recevriez aucune réponse. diff --git a/view/adminhtml/web/images/sendinblue.png b/view/adminhtml/web/images/sendinblue.png index 1720bc63f0f21e99dd672b37446abd5abf3cc46a..8fe8b3531db59e1b531b37889b0138e0b2a85d7c 100644 GIT binary patch literal 7541 zcmV-*9g5 zdz4&No$o)t(?yf2ZrZG#o|wtR>L!E;D40PeAY!UIL0%U#C{M*v5FF%@a21q`h=>?j z$OR|e38;t<5Jdw>c=+IvbTN^EEMyP^D~3$yuA9q>F*g%qr>gB#o$vi)pL6O|byYty z1ZG_Qg-%zUvmd|x{5|(>V{g!-IluzoU7&WbA>b9@Y0z4h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EY;zRIP$Ew#KsmJ zzQ93#oZNa%hfkp>EW-oHs)3YEIEY`YJZ(5(gpWt!Bp1>_={mbYQ6z@X0$=e!R#$v* z5lJRC7odF*F1OOEI7zj-LXjKtu|w`r63%+#oH6oiAy->f4or@eTl49ouhL;sDAL35 zS-eTY=c15Y0EzT)#vb{%kPrjOB#;;(o2Ce6Ikxd4iwF`1BDn;P=pw Date: Tue, 16 Jul 2019 15:35:48 +0530 Subject: [PATCH 2/2] Task Plugin 86 87 89 97 also done --- Controller/Adminhtml/index/Ajax.php | 4 +++- Model/SendinblueSib.php | 1 + Model/Transport.php | 26 ++++++++++++++++++-------- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/Controller/Adminhtml/index/Ajax.php b/Controller/Adminhtml/index/Ajax.php index b97be25..715cb4e 100644 --- a/Controller/Adminhtml/index/Ajax.php +++ b/Controller/Adminhtml/index/Ajax.php @@ -460,7 +460,9 @@ public function loadContact() } else { $imgSendinBlue = ''; } - + $imgMagento = str_replace('_view','Magento/backend', $imgMagento); + $imgSendinBlue = str_replace('_view','Magento/backend', $imgSendinBlue); + $imgSms = str_replace('_view','Magento/backend', $imgSms); $message .= '
      '.$email.''.$client.''.$phone.''.$imgMagento.' '.$imgSendinBlue.' diff --git a/Model/SendinblueSib.php b/Model/SendinblueSib.php index f05a93e..3c103bc 100644 --- a/Model/SendinblueSib.php +++ b/Model/SendinblueSib.php @@ -1227,6 +1227,7 @@ public function smtpSendMail($userEmail, $title, $tempName, $paramVal) $lang = $this->getDbData('sendin_config_lang'); $path = $this->_blocktemp->getViewFileUrl('Sendinblue_Sendinblue::email_temp/'.strtolower($lang).'/'.$tempName.'.html'); + $path = str_replace('_view','Magento/backend', $path); $bodyContent = file_get_contents($path); if (!empty($paramVal)) { foreach($paramVal as $key=>$replaceVal) { diff --git a/Model/Transport.php b/Model/Transport.php index b81e65c..808b192 100644 --- a/Model/Transport.php +++ b/Model/Transport.php @@ -13,7 +13,10 @@ class Transport { /** @var MessageInterface */ - protected $_message; + protected $_message; + + protected $_scopeConfig; + /** @var Smtp|\Zend_Mail_Transport_Smtp **/ protected $transport; @@ -25,8 +28,9 @@ class Transport * @throws \InvalidArgumentException */ public function __construct(MessageInterface $message, ScopeConfigInterface $scopeConfig ){ - $this->_message = $message; - + $this->_message = $message; + $this->_scopeConfig = $scopeConfig; + $relaySib = $scopeConfig->getValue('sendinblue/relay_data_status', \Magento\Store\Model\ScopeInterface::SCOPE_STORE); if ($relaySib == 'enabled') { $smtpHost = "smtp-relay.sendinblue.com"; @@ -56,8 +60,8 @@ public function __construct(MessageInterface $message, ScopeConfigInterface $sco ], ])); } - } - } + } + } /** * Send a mail using this transport @@ -66,17 +70,23 @@ public function __construct(MessageInterface $message, ScopeConfigInterface $sco */ public function sendMessage() { - if(null !== $this->transport){ + if ($this->_scopeConfig->isSetFlag('system/smtp/disable',\Magento\Store\Model\ScopeInterface::SCOPE_STORE)) { + return false; + } + if(null !== $this->transport) { try { if ($this->_message instanceof \Zend_mail) { $this->transport->send($this->_message); } elseif ($this->_message instanceof MessageInterface) { - $this->transport->send(Message::fromString($this->_message->getRawMessage())); + $zend_mail = Message::fromString($this->_message->getRawMessage()); + $subject = $zend_mail->getSubject(); + $zend_mail->setSubject(htmlspecialchars_decode((string)$subject, ENT_QUOTES)); + $this->transport->send($zend_mail); } } catch (\Exception $e) { throw new \Magento\Framework\Exception\MailException(new \Magento\Framework\Phrase($e->getMessage()), $e); } - } + } } /**