Sinabs_AutomaticResponse - Version 0.2.0

Version Notes

Release 0.2.0 Add Comment

Download this release

Release Info

Developer Magento Core Team
Extension Sinabs_AutomaticResponse
Version 0.2.0
Comparing to
See all releases


Code changes from version 0.1.9 to 0.2.0

app/code/community/Sinabs/AutomaticResponse/Block/Adminhtml/Mail/View/Comment.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Sinabs
16
+ * @package Sinabs_AutomaticResponse
17
+ * @copyright Copyright (c) 2012 Sinabs (http://www.sinabs.fr)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ class Sinabs_AutomaticResponse_Block_Adminhtml_Mail_View_Comment extends Mage_Adminhtml_Block_Template
21
+ {
22
+ protected function _construct()
23
+ {
24
+ parent::_construct();
25
+ $this->setData('mail', Mage::registry('current_mail'));
26
+ }
27
+ }
app/code/community/Sinabs/AutomaticResponse/Block/Adminhtml/Mail/View/Form.php CHANGED
@@ -19,14 +19,9 @@
19
  */
20
  class Sinabs_AutomaticResponse_Block_Adminhtml_Mail_View_Form extends Mage_Adminhtml_Block_Template
21
  {
22
- /**
23
- * Define custom template
24
- *
25
- */
26
  protected function _construct()
27
  {
28
  parent::_construct();
29
  $this->setData('mail', Mage::registry('current_mail'));
30
- $this->setTemplate('sinabs/automaticresponse/mail/view.phtml');
31
  }
32
  }
19
  */
20
  class Sinabs_AutomaticResponse_Block_Adminhtml_Mail_View_Form extends Mage_Adminhtml_Block_Template
21
  {
 
 
 
 
22
  protected function _construct()
23
  {
24
  parent::_construct();
25
  $this->setData('mail', Mage::registry('current_mail'));
 
26
  }
27
  }
app/code/community/Sinabs/AutomaticResponse/Model/Mail.php CHANGED
@@ -19,9 +19,41 @@
19
  */
20
  class Sinabs_AutomaticResponse_Model_Mail extends Mage_Core_Model_Abstract
21
  {
 
 
22
  public function _construct()
23
  {
24
  parent::_construct();
25
  $this->_init('automaticresponse/mail');
26
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  }
19
  */
20
  class Sinabs_AutomaticResponse_Model_Mail extends Mage_Core_Model_Abstract
21
  {
22
+ const XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE_COMMENT = 'automaticresponse/general/template_comment';
23
+
24
  public function _construct()
25
  {
26
  parent::_construct();
27
  $this->_init('automaticresponse/mail');
28
  }
29
+
30
+ public function sendComment($email, $comment)
31
+ {
32
+ $translate = Mage::getSingleton('core/translate');
33
+ $translate->setTranslateInline(false);
34
+
35
+ $storeId = Mage::app()->getStore()->getId();
36
+
37
+ try {
38
+ $mailTemplate = Mage::getModel('core/email_template');
39
+ $mailTemplate->setDesignConfig(array('area' => 'frontend', 'store' => $storeId));
40
+ $mailTemplate->setReplyTo(Mage::getStoreConfig(Sinabs_AutomaticResponse_Model_Observer::XML_PATH_CONTACTS_RECIPIENT_EMAIL, $storeId));
41
+ $mailTemplate->sendTransactional(
42
+ Mage::getStoreConfig(self::XML_PATH_AUTOMATICRESPONSE_GENERAL_TEMPLATE_COMMENT, $storeId),
43
+ Mage::getStoreConfig(Sinabs_AutomaticResponse_Model_Observer::XML_PATH_AUTOMATICRESPONSE_GENERAL_SENDER),
44
+ $email,
45
+ null,
46
+ array(
47
+ 'comment' => $comment
48
+ ),
49
+ $storeId
50
+ );
51
+ } catch (Exception $e) {
52
+ Mage::logException($e);
53
+ return false;
54
+ }
55
+
56
+ $translate->setTranslateInline(true);
57
+ return $this;
58
+ }
59
  }
app/code/community/Sinabs/AutomaticResponse/controllers/Adminhtml/MailController.php CHANGED
@@ -42,8 +42,7 @@ class Sinabs_AutomaticResponse_Adminhtml_MailController extends Mage_Adminhtml_C
42
  return;
43
  }
44
 
45
- $this->_initAction()->_addContent($this->getLayout()->createBlock('automaticresponse/adminhtml_mail_view'));
46
- $this->renderLayout();
47
  }
48
 
49
  public function deleteAction()
@@ -80,6 +79,46 @@ class Sinabs_AutomaticResponse_Adminhtml_MailController extends Mage_Adminhtml_C
80
  $this->_redirect('*/*/index');
81
  }
82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  protected function _initMail()
84
  {
85
  $mailId = $this->getRequest()->getParam('mail');
42
  return;
43
  }
44
 
45
+ $this->_initAction()->renderLayout();
 
46
  }
47
 
48
  public function deleteAction()
79
  $this->_redirect('*/*/index');
80
  }
81
 
82
+ public function sendCommentAction()
83
+ {
84
+ $comment = $this->getRequest()->getParam('comment', false);
85
+ $id = $this->getRequest()->getParam('id');
86
+ $isCustomerNotified = $this->getRequest()->getParam('is_customer_notified');
87
+
88
+ $mail = Mage::getModel('automaticresponse/mail')->load($id);
89
+
90
+ if ($mail->getReply()) {
91
+ $reply = unserialize($mail->getReply());
92
+ } else {
93
+ $reply = array();
94
+ }
95
+
96
+ $reply[] = array(
97
+ 'comment' => $comment,
98
+ 'created_at' => now(),
99
+ 'is_customer_notified' => $isCustomerNotified
100
+ );
101
+
102
+ try {
103
+ $mail->setReply(serialize($reply));
104
+ $mail->save();
105
+
106
+ if ($isCustomerNotified) {
107
+ Mage::getModel('automaticresponse/mail')->sendComment($mail->getEmail(), $comment);
108
+ }
109
+
110
+ Mage::register('current_mail', $mail);
111
+
112
+ $this->loadLayout('empty');
113
+ $this->renderLayout();
114
+ } catch (Exception $e) {
115
+ $this->getResponse()->setBody(Zend_Json::encode(array(
116
+ 'error' => true,
117
+ 'message' => $e->getMessage()
118
+ )));
119
+ }
120
+ }
121
+
122
  protected function _initMail()
123
  {
124
  $mailId = $this->getRequest()->getParam('mail');
app/code/community/Sinabs/AutomaticResponse/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
  <config>
23
  <modules>
24
  <Sinabs_AutomaticResponse>
25
- <version>0.1.9</version>
26
  </Sinabs_AutomaticResponse>
27
  </modules>
28
  <global>
@@ -93,6 +93,11 @@
93
  <file>automatic_response.html</file>
94
  <type>html</type>
95
  </automaticresponse_general_template>
 
 
 
 
 
96
  </email>
97
  </template>
98
  </global>
@@ -162,12 +167,20 @@
162
  </admin>
163
  </resources>
164
  </acl>
 
 
 
 
 
 
 
165
  </adminhtml>
166
  <default>
167
  <automaticresponse>
168
  <general>
169
  <sender_email_identity>general</sender_email_identity>
170
  <template>automaticresponse_general_template</template>
 
171
  </general>
172
  </automaticresponse>
173
  </default>
22
  <config>
23
  <modules>
24
  <Sinabs_AutomaticResponse>
25
+ <version>0.2.0</version>
26
  </Sinabs_AutomaticResponse>
27
  </modules>
28
  <global>
93
  <file>automatic_response.html</file>
94
  <type>html</type>
95
  </automaticresponse_general_template>
96
+ <automaticresponse_general_template_comment translate="label" module="automaticresponse">
97
+ <label>Automatic Response Comment</label>
98
+ <file>automatic_response_comment.html</file>
99
+ <type>html</type>
100
+ </automaticresponse_general_template_comment>
101
  </email>
102
  </template>
103
  </global>
167
  </admin>
168
  </resources>
169
  </acl>
170
+ <layout>
171
+ <updates>
172
+ <automaticresponse>
173
+ <file>sinabs_automaticresponse.xml</file>
174
+ </automaticresponse>
175
+ </updates>
176
+ </layout>
177
  </adminhtml>
178
  <default>
179
  <automaticresponse>
180
  <general>
181
  <sender_email_identity>general</sender_email_identity>
182
  <template>automaticresponse_general_template</template>
183
+ <template_comment>automaticresponse_general_template_comment</template_comment>
184
  </general>
185
  </automaticresponse>
186
  </default>
app/code/community/Sinabs/AutomaticResponse/etc/system.xml CHANGED
@@ -71,6 +71,15 @@
71
  <show_in_website>1</show_in_website>
72
  <show_in_store>1</show_in_store>
73
  </template>
 
 
 
 
 
 
 
 
 
74
  </fields>
75
  </general>
76
  <backup translate="label">
71
  <show_in_website>1</show_in_website>
72
  <show_in_store>1</show_in_store>
73
  </template>
74
+ <template_comment translate="label">
75
+ <label>Email Template Comment</label>
76
+ <frontend_type>select</frontend_type>
77
+ <source_model>adminhtml/system_config_source_email_template</source_model>
78
+ <sort_order>40</sort_order>
79
+ <show_in_default>1</show_in_default>
80
+ <show_in_website>1</show_in_website>
81
+ <show_in_store>1</show_in_store>
82
+ </template_comment>
83
  </fields>
84
  </general>
85
  <backup translate="label">
app/code/community/Sinabs/AutomaticResponse/sql/automaticresponse_setup/mysql4-upgrade-0.1.9-0.2.0.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category Sinabs
16
+ * @package Sinabs_AutomaticResponse
17
+ * @copyright Copyright (c) 2012 Sinabs (http://www.sinabs.fr)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+
21
+ /* @var $installer Mage_Core_Model_Resource_Setup */
22
+ $installer = $this;
23
+ $installer->startSetup();
24
+ $installer->run("ALTER TABLE {$this->getTable('sinabs_automaticresponse_mail')} ADD `reply` TEXT NULL");
25
+ $installer->endSetup();
26
+
app/design/adminhtml/default/default/layout/sinabs_automaticresponse.xml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Academic Free License (AFL 3.0)
9
+ * that is bundled with this package in the file LICENSE_AFL.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/afl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * DISCLAIMER
17
+ *
18
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
19
+ * versions in the future. If you wish to customize Magento for your
20
+ * needs please refer to http://www.magentocommerce.com for more information.
21
+ *
22
+ * @category design
23
+ * @package default_default
24
+ * @copyright Copyright (c) 2012 Sinabs (http://www.sinabs.fr)
25
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
26
+ */
27
+ -->
28
+
29
+ <layout>
30
+ <automaticresponse_admin_adminhtml_mail_view>
31
+ <reference name="content">
32
+ <block type="automaticresponse/adminhtml_mail_view_form" name="automaticresponse_mail_view" template="sinabs/automaticresponse/mail/view.phtml">
33
+ <block type="automaticresponse/adminhtml_mail_view_comment" name="automaticresponse_comment_list" template="sinabs/automaticresponse/mail/view/comment.phtml" />
34
+ </block>
35
+ </reference>
36
+ </automaticresponse_admin_adminhtml_mail_view>
37
+ <automaticresponse_admin_adminhtml_mail_sendcomment>
38
+ <block type="automaticresponse/adminhtml_mail_view_comment" template="sinabs/automaticresponse/mail/view/comment.phtml" name="automaticresponse_comment_list" output="toHtml" />
39
+ </automaticresponse_admin_adminhtml_mail_sendcomment>
40
+ </layout>
app/design/adminhtml/default/default/template/sinabs/automaticresponse/mail/view.phtml CHANGED
@@ -19,32 +19,43 @@
19
  */
20
  ?>
21
  <?php $_mail = $this->getMail(); ?>
22
- <div class="entry-edit">
23
- <div class="entry-edit-head"><strong><?php echo $this->__('Email #%s', $_mail->getId()); ?></strong></div>
24
- <div class="fieldset">
25
- <table cellspacing="0" class="form-list">
26
- <tbody>
27
- <tr>
28
- <td class="label"><label><?php echo $this->__('Date'); ?></label></td>
29
- <td><strong><?php echo Mage::helper('core')->formatDate($_mail->getDate(), 'medium', false); ?></strong></td>
30
- </tr>
31
- <tr>
32
- <td class="label"><label><?php echo $this->__('Name'); ?></label></td>
33
- <td><strong><?php echo $_mail->getName(); ?></strong></td>
34
- </tr>
35
- <tr>
36
- <td class="label"><label><?php echo $this->__('Email'); ?></label></td>
37
- <td><strong><?php echo $_mail->getEmail(); ?></strong></td>
38
- </tr>
39
- <tr>
40
- <td class="label"><label><?php echo $this->__('Phone'); ?></label></td>
41
- <td><strong><?php echo $_mail->getPhone(); ?></strong></td>
42
- </tr>
43
- <tr>
44
- <td class="label"><label><?php echo $this->__('Comment'); ?></label></td>
45
- <td><strong><?php echo nl2br($_mail->getComment()); ?></strong></td>
46
- </tr>
47
- </tbody>
48
- </table>
 
 
49
  </div>
50
- </div>
 
 
 
 
 
 
 
 
 
19
  */
20
  ?>
21
  <?php $_mail = $this->getMail(); ?>
22
+ <div class="box-left">
23
+ <div class="entry-edit">
24
+ <div class="entry-edit-head"><strong><?php echo $this->__('Email #%s', $_mail->getId()); ?></strong></div>
25
+ <div class="fieldset">
26
+ <table cellspacing="0" class="form-list">
27
+ <tbody>
28
+ <tr>
29
+ <td class="label"><label><?php echo $this->__('Date'); ?></label></td>
30
+ <td><strong><?php echo Mage::helper('core')->formatDate($_mail->getDate(), 'medium', false); ?></strong></td>
31
+ </tr>
32
+ <tr>
33
+ <td class="label"><label><?php echo $this->__('Name'); ?></label></td>
34
+ <td><strong><?php echo $_mail->getName(); ?></strong></td>
35
+ </tr>
36
+ <tr>
37
+ <td class="label"><label><?php echo $this->__('Email'); ?></label></td>
38
+ <td><strong><a href="mailto:<?php echo $_mail->getEmail(); ?>"><?php echo $_mail->getEmail(); ?></a></strong></td>
39
+ </tr>
40
+ <tr>
41
+ <td class="label"><label><?php echo $this->__('Phone'); ?></label></td>
42
+ <td><strong><?php echo $_mail->getPhone(); ?></strong></td>
43
+ </tr>
44
+ <tr>
45
+ <td class="label"><label><?php echo $this->__('Comment'); ?></label></td>
46
+ <td><strong><?php echo nl2br($_mail->getComment()); ?></strong></td>
47
+ </tr>
48
+ </tbody>
49
+ </table>
50
+ </div>
51
  </div>
52
+ </div>
53
+ <div class="box-right">
54
+ <div class="entry-edit">
55
+ <div class="entry-edit-head"><strong><?php echo $this->__('Reply to %s', $_mail->getEmail()); ?></strong></div>
56
+ <div class="fieldset">
57
+ <?php echo $this->getChildHtml('automaticresponse_comment_list'); ?>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <div class="clear"></div>
app/design/adminhtml/default/default/template/sinabs/automaticresponse/mail/view/comment.phtml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with this package in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category design
16
+ * @package default_default
17
+ * @copyright Copyright (c) 2012 Sinabs (http://www.sinabs.fr)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ */
20
+ ?>
21
+ <?php $_mail = $this->getMail(); ?>
22
+ <div id="reply_form">
23
+ <span class="field-row">
24
+ <label class="normal" for="comment"><?php echo $this->__('Comment'); ?></label>
25
+ <textarea id="comment" name="comment" id="comment" rows="3" cols="5" style="height:6em; width:99%"></textarea>
26
+ </span>
27
+ <div class="f-left">
28
+ <input name="is_customer_notified" type="checkbox" id="is_customer_notified" value="1" />
29
+ <label class="normal" for="is_customer_notified">Avertir le client</label>
30
+ </div>
31
+ <div class="f-right">
32
+ <button type="button" class="scalable save" onclick="submitAndReloadArea($('reply_form').parentNode, '<?php echo $this->getUrl('*/*/sendComment', array('id' => $_mail->getId())); ?>');"><span><?php echo $this->__('Submit'); ?></span></button>
33
+ </div>
34
+ <div class="clear"></div>
35
+ </div>
36
+ <div class="divider"></div>
37
+ <ul class="note-list" id="comment-list">
38
+ <?php if ($_mail->getReply()) : ?>
39
+ <?php foreach (unserialize($_mail->getReply()) as $_reply) : ?>
40
+ <li>
41
+ <strong><?php echo Mage::helper('core')->formatDate($_reply['created_at'], 'long', false); ?></strong>
42
+ <p><?php echo nl2br($_reply['comment']); ?></p>
43
+ <small>
44
+ <?php echo $this->__('Customer'); ?>
45
+ <?php if ($_reply['is_customer_notified']) : ?>
46
+ <?php echo $this->__('Notified'); ?>
47
+ <img src="<?php echo $this->getSkinUrl('images/ico_success.gif') ?>" width="16px" height="16px" alt="" />
48
+ <?php else : ?>
49
+ <?php echo $this->__('Not Notified'); ?>
50
+ <?php endif; ?>
51
+ </small>
52
+ </li>
53
+ <?php endforeach; ?>
54
+ <?php else : ?>
55
+ <li><strong><?php echo $this->__('No answer found.'); ?></strong></li>
56
+ <?php endif; ?>
57
+ </ul>
app/locale/en_US/template/email/automatic_response_comment.html ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject [RE] Formulaire de contact @-->
2
+ <div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
3
+ <table cellspacing="0" cellpadding="0" border="0" width="98%"
4
+ style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
5
+ <tr>
6
+ <td align="center" valign="top"><!-- [ header starts here] -->
7
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
8
+ <tr>
9
+ <td valign="top">
10
+ <p><a href="{{store url=""}}" style="color: #1E7EC8;"><img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt="{{var store.getFrontendName()}}" border="0" /></a></p>
11
+ </td>
12
+ </tr>
13
+ </table>
14
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
15
+ <tr>
16
+ <td valign="top">
17
+ <p><strong>Hello,</strong>
18
+ <p>
19
+ {{var comment}}
20
+ </p>
21
+ <p>
22
+ Regards,<br />
23
+ <strong>Team {{var store.getFrontendName()}}</strong>
24
+ </p>
25
+ </td>
26
+ </tr>
27
+ </table>
28
+ </td>
29
+ </tr>
30
+ </table>
31
+ </div>
app/locale/fr_FR/Sinabs_AutomaticResponse.csv CHANGED
@@ -4,4 +4,7 @@
4
  "Please select mail(s)", "Veuillez choisir des messages"
5
  "Total of %d record(s) were successfully deleted", "%d enregistrement(s) ont été supprimés avec succès"
6
  "Wrong mail ID specified.", "L'ID du message n'existe pas."
7
- "Automatic Response", "Réponse automatique"
 
 
 
4
  "Please select mail(s)", "Veuillez choisir des messages"
5
  "Total of %d record(s) were successfully deleted", "%d enregistrement(s) ont été supprimés avec succès"
6
  "Wrong mail ID specified.", "L'ID du message n'existe pas."
7
+ "Automatic Response", "Réponse automatique"
8
+ "Automatic Response Comment", "Réponse automatique commentaire"
9
+ "Reply to %s", "Répondre à %s"
10
+ "Email Template Comment", "Gabarit du mail de commentaire"
app/locale/fr_FR/template/email/automatic_response_comment.html ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject [RE] Formulaire de contact @-->
2
+ <div style="font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif;">
3
+ <table cellspacing="0" cellpadding="0" border="0" width="98%"
4
+ style="margin-top: 10px; font: 11px/ 1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom: 10px;">
5
+ <tr>
6
+ <td align="center" valign="top"><!-- [ header starts here] -->
7
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
8
+ <tr>
9
+ <td valign="top">
10
+ <p><a href="{{store url=""}}" style="color: #1E7EC8;"><img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt="{{var store.getFrontendName()}}" border="0" /></a></p>
11
+ </td>
12
+ </tr>
13
+ </table>
14
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
15
+ <tr>
16
+ <td valign="top">
17
+ <p><strong>Bonjour,</strong>
18
+ <p>
19
+ {{var comment}}
20
+ </p>
21
+ <p>
22
+ Cordialement,<br />
23
+ <strong>L'équipe {{var store.getFrontendName()}}</strong>
24
+ </p>
25
+ </td>
26
+ </tr>
27
+ </table>
28
+ </td>
29
+ </tr>
30
+ </table>
31
+ </div>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sinabs_AutomaticResponse</name>
4
- <version>0.1.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Automatic response to requests for contact and archiving.</summary>
10
  <description>The Sinabs module Automatic Response allows you to set an automatic response to any request for contact on your website. The module also enables archiving of all contact requests.</description>
11
- <notes>Release 0.1.9 Fix config.xml</notes>
12
  <authors><author><name>Sinabs</name><user>auto-converted</user><email>tech@sinabs.fr</email></author></authors>
13
  <date>2013-09-16</date>
14
- <time>07:53:52</time>
15
- <contents><target name="magecommunity"><dir name="Sinabs"><dir name="AutomaticResponse"><dir name="Block"><dir name="Adminhtml"><dir name="Mail"><dir name="View"><file name="Form.php" hash="2868fa7029a464236e5f55034e236f68"/></dir><file name="Grid.php" hash="17c4f7b926c64f92ce8132a9987f11f7"/><file name="View.php" hash="aaff72924e4ea4f77d5ef7a3f67624c8"/></dir><file name="Mail.php" hash="1a35a05e80aede11ce215e53dde18cdc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="56cd1e0335dfd23d07be6274e2d72194"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Mail"><file name="Collection.php" hash="96f9c96a4de4fa01f4a79d67796308d4"/></dir><file name="Mail.php" hash="c3e297f1ca0304a4c829dd6cf6132dd3"/></dir><file name="Mail.php" hash="baa2510ef53101928b91bf867bc0de9e"/><file name="Observer.php" hash="e08a8b23bbc5b54d3871884356e8000a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MailController.php" hash="abb180de1308420246aac4f4bad811f3"/></dir></dir><dir name="etc"><file name="config.xml" hash="f12a4535a4d7449f293ad6a27a90f347"/><file name="system.xml" hash="566d2f315ee5c1e982268badbdf07618"/></dir><dir name="sql"><dir name="automaticresponse_setup"><file name="mysql4-install-0.1.0.php" hash="17a271fbb467d5561912e848686fe53a"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="cf2e22a1506e22327336fec942ff29b2"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="d20386a51c47a16517cb82473e86d9fc"/><file name="mysql4-upgrade-0.1.2-0.1.8.php" hash="3ba8a88600de64d2c74f16b59e6c21bc"/><file name="mysql4-upgrade-0.1.8-0.1.9.php" hash="a60dbdf9f1b1bea58fddcb96ff381eb0"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sinabs"><dir name="automaticresponse"><dir name="mail"><file name="view.phtml" hash="7d9be7c6ab43688b97748556758fa93c"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sinabs_AutomaticResponse.xml" hash="ed9cb08f1a08076b7f8ba5810151daf8"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Sinabs_AutomaticResponse.csv" hash="2998b8467c346f129d7257974629c8b2"/><dir name="template"><dir name="email"><file name="automatic_response.html" hash="5c3fda353ae00468b56453a40a4b208e"/></dir></dir></dir><dir name="en_US"><dir name="template"><dir name="email"><file name="automatic_response.html" hash="d12165e940add0bbad49be149b55981b"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sinabs_AutomaticResponse</name>
4
+ <version>0.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Automatic response to requests for contact and archiving.</summary>
10
  <description>The Sinabs module Automatic Response allows you to set an automatic response to any request for contact on your website. The module also enables archiving of all contact requests.</description>
11
+ <notes>Release 0.2.0 Add Comment</notes>
12
  <authors><author><name>Sinabs</name><user>auto-converted</user><email>tech@sinabs.fr</email></author></authors>
13
  <date>2013-09-16</date>
14
+ <time>21:28:38</time>
15
+ <contents><target name="magecommunity"><dir name="Sinabs"><dir name="AutomaticResponse"><dir name="Block"><dir name="Adminhtml"><dir name="Mail"><dir name="View"><file name="Comment.php" hash="373c3b96d4bea123c142570ec80f4ada"/><file name="Form.php" hash="8c3795c7cd36644f5841f5f61b62f644"/></dir><file name="Grid.php" hash="17c4f7b926c64f92ce8132a9987f11f7"/><file name="View.php" hash="aaff72924e4ea4f77d5ef7a3f67624c8"/></dir><file name="Mail.php" hash="1a35a05e80aede11ce215e53dde18cdc"/></dir></dir><dir name="Helper"><file name="Data.php" hash="56cd1e0335dfd23d07be6274e2d72194"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Mail"><file name="Collection.php" hash="96f9c96a4de4fa01f4a79d67796308d4"/></dir><file name="Mail.php" hash="c3e297f1ca0304a4c829dd6cf6132dd3"/></dir><file name="Mail.php" hash="07b4643f15a2e1d55ec20605d260cbb1"/><file name="Observer.php" hash="e08a8b23bbc5b54d3871884356e8000a"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MailController.php" hash="f64e7cf930880a04abdcd71e5db901ff"/></dir></dir><dir name="etc"><file name="config.xml" hash="e15a1687c89e82433f834a6fa2793189"/><file name="system.xml" hash="2512453701e0168b2073818b51561cc9"/></dir><dir name="sql"><dir name="automaticresponse_setup"><file name="mysql4-install-0.1.0.php" hash="17a271fbb467d5561912e848686fe53a"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="cf2e22a1506e22327336fec942ff29b2"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="d20386a51c47a16517cb82473e86d9fc"/><file name="mysql4-upgrade-0.1.2-0.1.8.php" hash="3ba8a88600de64d2c74f16b59e6c21bc"/><file name="mysql4-upgrade-0.1.8-0.1.9.php" hash="a60dbdf9f1b1bea58fddcb96ff381eb0"/><file name="mysql4-upgrade-0.1.9-0.2.0.php" hash="0c7a2d363fcc9f0fa13d70675360b6fc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sinabs"><dir name="automaticresponse"><dir name="mail"><dir name="view"><file name="comment.phtml" hash="2b9ee3adb7c8077ffb34fd02ce16bac5"/></dir><file name="view.phtml" hash="107c4aa7b6a764582e1aac72b4406ccf"/></dir></dir></dir></dir><dir name="layout"><file name="sinabs_automaticresponse.xml" hash="433931469f0a766545e7a38d43e93003"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sinabs_AutomaticResponse.xml" hash="ed9cb08f1a08076b7f8ba5810151daf8"/></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Sinabs_AutomaticResponse.csv" hash="aff2903270e35f6de7a3787f87817589"/><dir name="template"><dir name="email"><file name="automatic_response.html" hash="5c3fda353ae00468b56453a40a4b208e"/><file name="automatic_response_comment.html" hash="97c139b0b0729273974d8c294c889b39"/></dir></dir></dir><dir name="en_US"><dir name="template"><dir name="email"><file name="automatic_response.html" hash="d12165e940add0bbad49be149b55981b"/><file name="automatic_response_comment.html" hash="0bd49b2f3f6b066375d971d357760c94"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>