NanoRep_Widgets_1_1_0 - Version 2.1.4

Version Notes

Compatibility SUPEE-6788 + minor changes

Download this release

Release Info

Developer NanoRep
Extension NanoRep_Widgets_1_1_0
Version 2.1.4
Comparing to
See all releases


Code changes from version 2.1.3 to 2.1.4

app/code/local/NanoRep/Widgets/Model/System/Config/Backend/ConversionTracking.php CHANGED
@@ -1,18 +1,18 @@
1
  <?php
2
  /**
3
- * MCI Co.
4
- * http://www.mage.co.il
5
  *
6
- * @package Mci_Core
7
- * @copyright Copyright (c) 2014 MCI Co. (http://www.mage.co.il)
8
- * @author info@mage.co.il
 
9
  */
10
 
11
  class Nanorep_Widgets_Model_System_Config_Backend_ConversionTracking extends Mage_Core_Model_Config_Data {
12
-
13
  protected function _afterSaveCommit()
14
  {
15
- if($this->isValueChanged() || Mage::getStoreConfig('nanorepwidgets/account_settings/conversion_script') == "")
16
  {
17
  if (function_exists("curl_init")) {
18
  $url = "https://my.nanorep.com/api/addconversion";
@@ -27,11 +27,11 @@ class Nanorep_Widgets_Model_System_Config_Backend_ConversionTracking extends Mag
27
  $currencyCode = "NIS";
28
  }
29
  $request->setData('currency', $currencyCode);
30
-
31
  if(Mage::getStoreConfigFlag('nanorepwidgets/account_settings/debug')){
32
  Mage::log("Request: " . $url ."?" . $request->toPostData(), null, "nanorep-conversion-script-debug.log");
33
  }
34
-
35
  $CR = curl_init();
36
  curl_setopt($CR, CURLOPT_URL, $url);
37
  curl_setopt($CR, CURLOPT_POST, 1);
@@ -48,7 +48,7 @@ class Nanorep_Widgets_Model_System_Config_Backend_ConversionTracking extends Mag
48
  if(Mage::getStoreConfigFlag('nanorepwidgets/account_settings/debug')){
49
  Mage::log("Error: " . $error, null, "nanorep-conversion-script-debug.log");
50
  }
51
-
52
  }
53
  if($result){
54
  if(Mage::getStoreConfigFlag('nanorepwidgets/account_settings/debug')){
@@ -75,7 +75,7 @@ class Nanorep_Widgets_Model_System_Config_Backend_ConversionTracking extends Mag
75
  $config = Mage::getModel("core/config");
76
  $script = str_replace("ORDER_ID", "{{order_id}}", str_replace("REVENUE", "{{order_amount}}", $result->script));
77
  $config->saveConfig('nanorepwidgets/account_settings/conversion_script', $script, "default", 0);
78
- }
79
  }
80
  }
81
  catch(Zend_Json_Exception $e){
@@ -86,6 +86,6 @@ class Nanorep_Widgets_Model_System_Config_Backend_ConversionTracking extends Mag
86
  curl_close($CR);
87
  }
88
  }
89
- return $this;
90
  }
91
  }
1
  <?php
2
  /**
3
+ * NanoRep Widgets Extension
 
4
  *
5
+ * @package NanoRep_Widgets
6
+ * @company nanoRep.
7
+ * @website http://www.nanorep.com
8
+ * @author Dan Aharon-Shalom
9
  */
10
 
11
  class Nanorep_Widgets_Model_System_Config_Backend_ConversionTracking extends Mage_Core_Model_Config_Data {
12
+
13
  protected function _afterSaveCommit()
14
  {
15
+ if($this->isValueChanged() || Mage::getStoreConfig('nanorepwidgets/account_settings/conversion_script') == "")
16
  {
17
  if (function_exists("curl_init")) {
18
  $url = "https://my.nanorep.com/api/addconversion";
27
  $currencyCode = "NIS";
28
  }
29
  $request->setData('currency', $currencyCode);
30
+
31
  if(Mage::getStoreConfigFlag('nanorepwidgets/account_settings/debug')){
32
  Mage::log("Request: " . $url ."?" . $request->toPostData(), null, "nanorep-conversion-script-debug.log");
33
  }
34
+
35
  $CR = curl_init();
36
  curl_setopt($CR, CURLOPT_URL, $url);
37
  curl_setopt($CR, CURLOPT_POST, 1);
48
  if(Mage::getStoreConfigFlag('nanorepwidgets/account_settings/debug')){
49
  Mage::log("Error: " . $error, null, "nanorep-conversion-script-debug.log");
50
  }
51
+
52
  }
53
  if($result){
54
  if(Mage::getStoreConfigFlag('nanorepwidgets/account_settings/debug')){
75
  $config = Mage::getModel("core/config");
76
  $script = str_replace("ORDER_ID", "{{order_id}}", str_replace("REVENUE", "{{order_amount}}", $result->script));
77
  $config->saveConfig('nanorepwidgets/account_settings/conversion_script', $script, "default", 0);
78
+ }
79
  }
80
  }
81
  catch(Zend_Json_Exception $e){
86
  curl_close($CR);
87
  }
88
  }
89
+ return $this;
90
  }
91
  }
app/code/local/NanoRep/Widgets/Model/System/Config/Backend/Username.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * NanoRep Widgets Extension
4
+ *
5
+ * @package NanoRep_Widgets
6
+ * @company nanoRep.
7
+ * @website http://www.nanorep.com
8
+ * @author Dan Aharon-Shalom
9
+ */
10
+
11
+ class Nanorep_Widgets_Model_System_Config_Backend_Username extends Mage_Core_Model_Config_Data {
12
+
13
+ protected function _beforeSave()
14
+ {
15
+ if($this->isValueChanged())
16
+ {
17
+ $value = $this->getValue();
18
+ if(strpos($value, '@') != false){
19
+ Mage::getSingleton('adminhtml/session')->addNotice(Mage::helper('nanorepwidgets')->__("The account name should not contain the '@company' part"));
20
+ $modValue = substr($value, 0, strpos($value, '@'));
21
+ $this->setValue($modValue);
22
+ }
23
+ return $this;
24
+ }
25
+ }
26
+ }
app/code/local/NanoRep/Widgets/etc/adminhtml.xml CHANGED
@@ -1,13 +1,13 @@
1
  <?xml version="1.0"?>
2
- <!--
3
  /**
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
- * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
- */
11
  -->
12
  <config>
13
  <acl>
@@ -59,7 +59,7 @@
59
  <children>
60
  <mynanorep translate="title" module="nanorepwidgets">
61
  <title>my.nanoRep</title>
62
- <action>nanorep/adminhtml_mynanorep/index</action>
63
  <sort_order>0</sort_order>
64
  </mynanorep>
65
  <configuration translate="title" module="nanorepwidgets">
@@ -84,4 +84,4 @@
84
  </children>
85
  </sales>
86
  </menu>
87
- </config>
1
  <?xml version="1.0"?>
2
+ <!--
3
  /**
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
+ * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
+ */
11
  -->
12
  <config>
13
  <acl>
59
  <children>
60
  <mynanorep translate="title" module="nanorepwidgets">
61
  <title>my.nanoRep</title>
62
+ <action>adminhtml/mynanorep/index</action>
63
  <sort_order>0</sort_order>
64
  </mynanorep>
65
  <configuration translate="title" module="nanorepwidgets">
84
  </children>
85
  </sales>
86
  </menu>
87
+ </config>
app/code/local/NanoRep/Widgets/etc/config.xml CHANGED
@@ -10,65 +10,72 @@
10
  */
11
  -->
12
  <config>
13
- <modules>
14
- <NanoRep_Widgets>
15
- <version>2.1.3</version>
16
- </NanoRep_Widgets>
17
- </modules>
18
- <global>
19
- <blocks>
20
- <nanorepwidgets>
21
- <class>NanoRep_Widgets_Block</class>
22
- </nanorepwidgets>
23
- </blocks>
24
- <helpers>
25
- <nanorepwidgets>
26
- <class>NanoRep_Widgets_Helper</class>
27
- </nanorepwidgets>
28
- </helpers>
29
- <models>
30
- <nanorepwidgets>
31
- <class>NanoRep_Widgets_Model</class>
32
- <resourceModel>nanorepwidgets_resource</resourceModel>
33
- </nanorepwidgets>
34
- <nanorepwidgets_resource>
35
- <class>NanoRep_Widgets_Model_Resource</class>
36
- <entities>
37
- <query>
38
- <table>nanorepwidgets_query</table>
39
- </query>
40
- <answer>
41
- <table>nanorepwidgets_answer</table>
42
- </answer>
43
- </entities>
44
- </nanorepwidgets_resource>
45
- </models>
46
- <resources>
47
- <nanorepwidgets_setup>
48
- <setup>
49
- <module>NanoRep_Widgets</module>
50
- <class>NanoRep_Widgets_Model_Resource_Setup</class>
51
- </setup>
52
- </nanorepwidgets_setup>
53
- </resources>
54
- </global>
55
 
56
- <admin>
57
- <secure_url>
58
- <nanorep>/nanorep/adminhtml_mynanorep/index</nanorep>
59
  </secure_url>
60
- <routers>
61
- <nanorep>
62
- <use>admin</use>
63
- <args>
64
- <module>NanoRep_Widgets</module>
65
- <frontName>nanorep</frontName>
66
- </args>
67
- </nanorep>
68
- </routers>
69
- </admin>
70
- <adminhtml>
71
- <layout>
 
 
 
 
 
 
 
72
  <updates>
73
  <nanorepwidgets>
74
  <file>nanorepwidgets.xml</file>
@@ -76,83 +83,83 @@
76
  </updates>
77
  </layout>
78
  </adminhtml>
79
- <frontend>
80
- <secure_url>
81
- <nanorepwidgets>/nanorepwidgets/account/login</nanorepwidgets>
82
  </secure_url>
83
- <routers>
84
- <nanorepwidgets>
85
- <use>standard</use>
86
- <args>
87
- <module>NanoRep_Widgets</module>
88
- <frontName>nanorepwidgets</frontName>
89
- </args>
90
- </nanorepwidgets>
91
- </routers>
92
- <layout>
93
- <updates>
94
- <nanorepwidgets>
95
- <file>nanorepwidgets.xml</file>
96
- </nanorepwidgets>
97
- </updates>
98
- </layout>
99
- <events>
100
- <checkout_onepage_controller_success_action>
101
- <observers>
102
- <nanorepwidgets_order_success>
103
- <class>nanorepwidgets/observer</class>
104
- <method>setNanoRepWidgetOnOrderSuccessPageView</method>
105
- </nanorepwidgets_order_success>
106
- </observers>
107
- </checkout_onepage_controller_success_action>
108
- <checkout_multishipping_controller_success_action>
109
- <observers>
110
- <nanorepwidgets_order_success>
111
- <class>nanorepwidgets/observer</class>
112
- <method>setNanoRepWidgetOnOrderSuccessPageView</method>
113
- </nanorepwidgets_order_success>
114
- </observers>
115
- </checkout_multishipping_controller_success_action>
116
- </events>
117
- </frontend>
118
- <default>
119
- <nanorepwidgets>
120
- <account_settings>
121
  <attribute_select>all</attribute_select>
122
  <product_id_attribute>id</product_id_attribute>
123
  <related_products>1</related_products>
124
  <upsells_products>1</upsells_products>
125
  <crosssells_products>1</crosssells_products>
126
- </account_settings>
127
- <contact_us_widget>
128
- <active>1</active>
129
- <title>Featured Questions</title>
130
- <kb>English</kb>
131
- <fields_css>a:1:{s:18:"_1424883221899_899";a:1:{s:3:"css";s:8:"#comment";}}</fields_css>
132
- </contact_us_widget>
133
- <float_widget>
134
- <active>0</active>
135
- <active_pages>0</active_pages>
136
- </float_widget>
137
- <embed_widget>
138
- <active>1</active>
139
- <width>400</width>
140
- <max_height>310</max_height>
141
- <kb>English</kb>
142
- <faq_num>5</faq_num>
143
- <max_items>20</max_items>
144
- <skip>0</skip>
145
- <by_popularity>1</by_popularity>
146
- <days>200</days>
147
- <product_faq_headline>Popular questions by other visitors:</product_faq_headline>
148
- <general_faq_headline></general_faq_headline>
149
- <question_hidden>1</question_hidden>
150
- <cache_timeout>30</cache_timeout>
151
- </embed_widget>
152
- <orders_status>
153
- <active>1</active>
154
- <active_pages>0</active_pages>
155
- </orders_status>
156
- </nanorepwidgets>
157
- </default>
158
  </config>
10
  */
11
  -->
12
  <config>
13
+ <modules>
14
+ <NanoRep_Widgets>
15
+ <version>2.1.4</version>
16
+ </NanoRep_Widgets>
17
+ </modules>
18
+ <global>
19
+ <blocks>
20
+ <nanorepwidgets>
21
+ <class>NanoRep_Widgets_Block</class>
22
+ </nanorepwidgets>
23
+ </blocks>
24
+ <helpers>
25
+ <nanorepwidgets>
26
+ <class>NanoRep_Widgets_Helper</class>
27
+ </nanorepwidgets>
28
+ </helpers>
29
+ <models>
30
+ <nanorepwidgets>
31
+ <class>NanoRep_Widgets_Model</class>
32
+ <resourceModel>nanorepwidgets_resource</resourceModel>
33
+ </nanorepwidgets>
34
+ <nanorepwidgets_resource>
35
+ <class>NanoRep_Widgets_Model_Resource</class>
36
+ <entities>
37
+ <query>
38
+ <table>nanorepwidgets_query</table>
39
+ </query>
40
+ <answer>
41
+ <table>nanorepwidgets_answer</table>
42
+ </answer>
43
+ </entities>
44
+ </nanorepwidgets_resource>
45
+ </models>
46
+ <resources>
47
+ <nanorepwidgets_setup>
48
+ <setup>
49
+ <module>NanoRep_Widgets</module>
50
+ <class>NanoRep_Widgets_Model_Resource_Setup</class>
51
+ </setup>
52
+ </nanorepwidgets_setup>
53
+ </resources>
54
+ </global>
55
 
56
+ <admin>
57
+ <secure_url>
58
+ <nanorep>/nanorep/adminhtml_mynanorep/index</nanorep>
59
  </secure_url>
60
+ <routers>
61
+ <adminhtml>
62
+ <args>
63
+ <modules>
64
+ <nanorep after="Mage_Adminhtml">NanoRep_Widgets_Adminhtml</nanorep>
65
+ </modules>
66
+ </args>
67
+ </adminhtml>
68
+ <!-- <nanorep>
69
+ <use>admin</use>
70
+ <args>
71
+ <module>NanoRep_Widgets</module>
72
+ <frontName>nanorep</frontName>
73
+ </args>
74
+ </nanorep> -->
75
+ </routers>
76
+ </admin>
77
+ <adminhtml>
78
+ <layout>
79
  <updates>
80
  <nanorepwidgets>
81
  <file>nanorepwidgets.xml</file>
83
  </updates>
84
  </layout>
85
  </adminhtml>
86
+ <frontend>
87
+ <secure_url>
88
+ <nanorepwidgets>/nanorepwidgets/account/login</nanorepwidgets>
89
  </secure_url>
90
+ <routers>
91
+ <nanorepwidgets>
92
+ <use>standard</use>
93
+ <args>
94
+ <module>NanoRep_Widgets</module>
95
+ <frontName>nanorepwidgets</frontName>
96
+ </args>
97
+ </nanorepwidgets>
98
+ </routers>
99
+ <layout>
100
+ <updates>
101
+ <nanorepwidgets>
102
+ <file>nanorepwidgets.xml</file>
103
+ </nanorepwidgets>
104
+ </updates>
105
+ </layout>
106
+ <events>
107
+ <checkout_onepage_controller_success_action>
108
+ <observers>
109
+ <nanorepwidgets_order_success>
110
+ <class>nanorepwidgets/observer</class>
111
+ <method>setNanoRepWidgetOnOrderSuccessPageView</method>
112
+ </nanorepwidgets_order_success>
113
+ </observers>
114
+ </checkout_onepage_controller_success_action>
115
+ <checkout_multishipping_controller_success_action>
116
+ <observers>
117
+ <nanorepwidgets_order_success>
118
+ <class>nanorepwidgets/observer</class>
119
+ <method>setNanoRepWidgetOnOrderSuccessPageView</method>
120
+ </nanorepwidgets_order_success>
121
+ </observers>
122
+ </checkout_multishipping_controller_success_action>
123
+ </events>
124
+ </frontend>
125
+ <default>
126
+ <nanorepwidgets>
127
+ <account_settings>
128
  <attribute_select>all</attribute_select>
129
  <product_id_attribute>id</product_id_attribute>
130
  <related_products>1</related_products>
131
  <upsells_products>1</upsells_products>
132
  <crosssells_products>1</crosssells_products>
133
+ </account_settings>
134
+ <contact_us_widget>
135
+ <active>1</active>
136
+ <title>Featured Questions</title>
137
+ <kb>English</kb>
138
+ <fields_css>a:1:{s:18:"_1424883221899_899";a:1:{s:3:"css";s:8:"#comment";}}</fields_css>
139
+ </contact_us_widget>
140
+ <float_widget>
141
+ <active>0</active>
142
+ <active_pages>0</active_pages>
143
+ </float_widget>
144
+ <embed_widget>
145
+ <active>1</active>
146
+ <width>400</width>
147
+ <max_height>310</max_height>
148
+ <kb>English</kb>
149
+ <faq_num>5</faq_num>
150
+ <max_items>20</max_items>
151
+ <skip>0</skip>
152
+ <by_popularity>1</by_popularity>
153
+ <days>200</days>
154
+ <product_faq_headline>Popular questions by other visitors:</product_faq_headline>
155
+ <general_faq_headline></general_faq_headline>
156
+ <question_hidden>1</question_hidden>
157
+ <cache_timeout>30</cache_timeout>
158
+ </embed_widget>
159
+ <orders_status>
160
+ <active>1</active>
161
+ <active_pages>0</active_pages>
162
+ </orders_status>
163
+ </nanorepwidgets>
164
+ </default>
165
  </config>
app/code/local/NanoRep/Widgets/etc/system.xml CHANGED
@@ -4,10 +4,10 @@
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
- * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
- */
11
  -->
12
  <config>
13
  <tabs>
@@ -58,10 +58,12 @@
58
  <username translate="label">
59
  <label>Username</label>
60
  <frontend_type>text</frontend_type>
 
61
  <sort_order>2</sort_order>
62
  <show_in_default>1</show_in_default>
63
  <show_in_website>1</show_in_website>
64
  <show_in_store>1</show_in_store>
 
65
  </username>
66
  <password translate="label">
67
  <label>my.nanoRep Password</label>
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
+ * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
+ */
11
  -->
12
  <config>
13
  <tabs>
58
  <username translate="label">
59
  <label>Username</label>
60
  <frontend_type>text</frontend_type>
61
+ <backend_model>nanorepwidgets/system_config_backend_Username</backend_model>
62
  <sort_order>2</sort_order>
63
  <show_in_default>1</show_in_default>
64
  <show_in_website>1</show_in_website>
65
  <show_in_store>1</show_in_store>
66
+ <comment>Please provide the account name without '@company'</comment>
67
  </username>
68
  <password translate="label">
69
  <label>my.nanoRep Password</label>
app/design/adminhtml/default/default/layout/nanorepwidgets.xml CHANGED
@@ -4,16 +4,16 @@
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
- * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
- */
11
  -->
12
  <layout version="0.1.0">
13
- <nanorep_adminhtml_mynanorep_index>
14
  <remove name="footer" />
15
  <reference name="content">
16
  <block type="nanorepwidgets/adminhtml_mynanorep" name="my_nanorep" template="nanorepwidgets/mynanorep.phtml"/>
17
  </reference>
18
- </nanorep_adminhtml_mynanorep_index>
19
- </layout>
4
  * NanoRep Widgets Extension
5
  *
6
  * @package NanoRep_Widgets
7
+ * @company nanoRep.
8
  * @website http://www.nanorep.com
9
  * @author Dan Aharon-Shalom
10
+ */
11
  -->
12
  <layout version="0.1.0">
13
+ <adminhtml_mynanorep_index>
14
  <remove name="footer" />
15
  <reference name="content">
16
  <block type="nanorepwidgets/adminhtml_mynanorep" name="my_nanorep" template="nanorepwidgets/mynanorep.phtml"/>
17
  </reference>
18
+ </adminhtml_mynanorep_index>
19
+ </layout>
app/design/adminhtml/default/default/template/nanorepwidgets/system/config/form/fields.phtml DELETED
@@ -1,206 +0,0 @@
1
- <?php
2
- /**
3
- * Magento
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Academic Free License (AFL 3.0)
8
- * that is bundled with this package in the file LICENSE_AFL.txt.
9
- * It is also available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/afl-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
- * DISCLAIMER
16
- *
17
- * Do not edit or add to this file if you wish to upgrade Magento to newer
18
- * versions in the future. If you wish to customize Magento for your
19
- * needs please refer to http://www.magentocommerce.com for more information.
20
- *
21
- * @category design
22
- * @package default_default
23
- * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
24
- * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
25
- */
26
- ?>
27
-
28
- <?php
29
- $_htmlId = $this->getHtmlId() ? $this->getHtmlId() : '_' . uniqid();
30
-
31
- $_colspan = 2;
32
- if (!$this->_addAfter) {
33
- $_colspan -= 1;
34
- }
35
- $_colspan = $_colspan > 1 ? 'colspan="' . $_colspan . '"' : '';
36
- $rows = $this->getArrayRows();
37
- ?>
38
-
39
- <?php if(!empty($rows)):?>
40
-
41
- <div class="grid" id="grid<?php echo $_htmlId ?>">
42
- <table cellpadding="0" cellspacing="0" class="border">
43
- <tbody>
44
-
45
- <tr class="headings" id="headings<?php echo $_htmlId ?>">
46
- <?php foreach ($this->_columns as $columnName => $column):?>
47
- <th><?php echo $column['label'] ?></th>
48
- <?php endforeach;?>
49
- <th <?php echo $_colspan?>></th>
50
- </tr>
51
-
52
-
53
- <tr id="addRow<?php echo $_htmlId ?>">
54
- <td colspan="<?php echo count($this->_columns) ?>"></td>
55
- <td <?php echo $_colspan?>>-->
56
-
57
-
58
- <button style="" onclick="" class="scalable add" type="button" id="addToEndBtn<?php echo $_htmlId ?>">
59
- <span><span><span><?php echo $this->_addButtonLabel ?></span></span></span>
60
- </button>
61
-
62
-
63
- </td>
64
- </tr>
65
-
66
-
67
- </tbody>
68
- </table>
69
- <input type="hidden" name="<?php echo $this->getElement()->getName() ?>[__empty]" value="" />
70
- </div>
71
- <?php else: ?>
72
- <p class="error">Error with API, Please Check the Mci Linet Log for more details</p>
73
- <?php endif; ?>
74
- <div id="empty<?php echo $_htmlId ?>">
75
- <button style="" onclick="" class="scalable" type="button" id="emptyRefreshBtn<?php echo $_htmlId ?>">
76
- <span><span><span><?php echo $this->helper('mcilinet')->__('Refresh');?></span></span></span>
77
- </button>
78
- </div>
79
-
80
-
81
- <script type="text/javascript">
82
- //<![CDATA[
83
- // create row creator
84
- var arrayRow<?php echo $_htmlId ?> = {
85
- // define row prototypeJS template
86
- template : new Template(
87
- '<tr id="#{_id}">'
88
- <?php foreach ($this->_columns as $columnName => $column):?>
89
- +'<td>'
90
- +'<?php echo $this->_renderCellTemplate($columnName)?>'
91
- +'<\/td>'
92
- <?php endforeach;?>
93
- +'<\/tr>'
94
- ),
95
-
96
- rowsCount : 0,
97
-
98
- add : function(templateData, insertAfterId)
99
- {
100
- // generate default template data
101
- if ('' == templateData) {
102
- var d = new Date();
103
- var templateData = {
104
- <?php foreach ($this->_columns as $columnName => $column):?>
105
- <?php echo $columnName ?> : '',
106
- <?php endforeach;?>
107
- _id : '_' + d.getTime() + '_' + d.getMilliseconds()
108
- };
109
- }
110
-
111
- // insert before last row
112
- if ('' == insertAfterId) {
113
- Element.insert($('addRow<?php echo $_htmlId ?>'), {before: this.template.evaluate(templateData)});
114
- }
115
- // insert after specified row
116
- else {
117
- Element.insert($(insertAfterId), {after: this.template.evaluate(templateData)});
118
- }
119
-
120
- // sets the selected option
121
- if($$('#' + templateData._id + ' td select option[value = "' + templateData.magento_method + '"]').length == 1){
122
- $$('#' + templateData._id + ' td select option[value = "' + templateData.magento_method + '"]')[0].setAttribute("selected", "selected");
123
- }
124
-
125
- if($$('#' + templateData._id + ' td select option[value = "' + templateData.online + '"]').length == 1){
126
- $$('#' + templateData._id + ' td select option[value = "' + templateData.online + '"]')[0].setAttribute("selected", "selected");
127
- }
128
-
129
- <?php if ($this->_addAfter):?>
130
- // Event.observe('addAfterBtn' + templateData._id, 'click', this.add.bind(this, '', templateData._id));
131
- <?php endif;?>
132
-
133
- this.rowsCount += 1;
134
- },
135
-
136
- del : function(rowId)
137
- {
138
- $(rowId).remove();
139
- this.rowsCount -= 1;
140
- },
141
-
142
- // showButtonOnly : function()
143
- // {
144
- // $('grid<?php echo $_htmlId ?>').hide();
145
- // $('empty<?php echo $_htmlId ?>').show();
146
- // }
147
- }
148
-
149
- // bind add action to "Add" button in last row
150
- // Event.observe('addToEndBtn<?php echo $_htmlId ?>', 'click', arrayRow<?php echo $_htmlId ?>.add.bind(arrayRow<?php echo $_htmlId ?>, '', ''));
151
-
152
- // add existing rows
153
- <?php
154
- $_addAfterId = "headings{$_htmlId}";
155
- foreach ($this->getArrayRows() as $_rowId => $_row) {
156
- echo "arrayRow{$_htmlId}.add(" . $_row->toJson() . ", '{$_addAfterId}');\n";
157
- $_addAfterId = $_rowId;
158
- }
159
- ?>
160
-
161
- // initialize standalone button
162
- // $('empty<?php echo $_htmlId ?>').hide();
163
- Event.observe('emptyRefreshBtn<?php echo $_htmlId ?>', 'click', function () {
164
- new Ajax.Request("<?php echo $this->helper('adminhtml')->getUrl('mcilinet/adminhtml_ajax/getLinetPaymentMethods'); ?>", {
165
- method : 'post',
166
- onSuccess: function(transport){
167
- try {
168
- $$("#grid<?php echo $_htmlId;?> tr").each(function(el){
169
- if(el.id.indexOf('headings') < 0){
170
- arrayRow<?php echo $_htmlId;?>.del(el.id);
171
- }
172
- });
173
- response = eval('(' + transport.responseText + ')');
174
- var insertAfterId = "headings<?php echo $_htmlId; ?>";
175
- for(var i in response){
176
- arrayRow<?php echo $_htmlId; ?>.add(response[i], insertAfterId);
177
- insertAfterId = response[i]._id;
178
- }
179
- } catch (e) {
180
- response = {};
181
- return;
182
- }
183
- },
184
- onFailure : function(transport) {
185
- if($('empty<?php echo $_htmlId ?>').down('span.error') != undefined){
186
- $('empty<?php echo $_htmlId ?>').down('span.error').remove();
187
- }
188
- Element.insert($('emptyRefreshBtn<?php echo $_htmlId ?>'), {after: '<span class="error right"><?php echo $this->helper('mcilinet')->__('Unable to get Linet Methods') ?></span>'});
189
- }
190
- });
191
- // $('grid<?php echo $_htmlId ?>').show();
192
- // $('empty<?php echo $_htmlId ?>').hide();
193
- // arrayRow<?php echo $_htmlId ?>.add('', '');
194
- });
195
-
196
- // if no rows, hide grid and show button only
197
- <?php //if (!$this->getArrayRows()):?>
198
- // arrayRow<?php echo $_htmlId ?>.showButtonOnly();
199
- <?php //endif;?>
200
-
201
- // toggle the grid, if element is disabled (depending on scope)
202
- <?php if ($this->getElement()->getDisabled()):?>
203
- toggleValueElements({checked:true}, $('grid<?php echo $_htmlId ?>').parentNode);
204
- <?php endif;?>
205
- //]]>
206
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/default/default/template/nanorepwidgets/contact_us.phtml CHANGED
@@ -3,7 +3,7 @@
3
  * NanoRep Widgets Extension
4
  *
5
  * @package NanoRep_Widgets
6
- * @company Omniscience Co.
7
  * @website http://www.omniscience.co.il
8
  * @author Dan Aharon-Shalom
9
  */
@@ -15,7 +15,7 @@
15
  <script type="text/javascript">
16
  var _nanoRepContactusSessionId = '',
17
  _nanoRepContactusRequestId = 0;
18
-
19
  function getNanoRepContactUsSessionId(query, e){
20
  var getSessionIdUrl = "<?php echo $this->getApiServerUrl('hello.js'); ?>";
21
  new Ajax.JSONRequest(getSessionIdUrl, {
@@ -35,7 +35,7 @@
35
  _nanoRepContactusSessionId = ''
36
  }, data['timeout'] * 1000);
37
  // console.log("Nanorep Session Opened: " + _nanoRepContactusSessionId);
38
- queryNanoRepContactUs(query, _nanoRepContactusSessionId, e);
39
  // console.log("1: success", response, response.responseJSON);
40
  },
41
  onFailure: function(response) {
@@ -46,14 +46,75 @@
46
  }
47
  });
48
  }
49
-
50
- function queryNanoRepContactUs(query, sid, e){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  var nanoRepQueryApiUrl = "<?php echo $this->getApiServerUrl("q.js")?>"
52
-
53
  if(sid == ''){
54
  getNanoRepContactUsSessionId();
55
  }
56
-
57
  new Ajax.JSONRequest(nanoRepQueryApiUrl, {
58
  callbackParamName: "cb",
59
  parameters: {
@@ -74,7 +135,7 @@
74
  //console.log(data);
75
  nanoRepContactUsAnswers.title = "<?php echo $this->getTitle(); ?>";
76
  if(data.answers.length > 0){
77
- for(a = 0; a < data.answers.length; a++){
78
  if(data.answers[a].context != undefined){
79
  data.answers.splice(a, 1);
80
  }
@@ -86,7 +147,7 @@
86
  $('answers-popup-text').innerHTML = '';
87
  nanoRepContactUsAnswers.hide();
88
  }
89
-
90
  }
91
  else{
92
  $('answers-popup-text').innerHTML = '';
@@ -103,12 +164,12 @@
103
  });
104
  _nanoRepContactusRequestId++;
105
  }
106
-
107
  var fields_css = [<?php echo $fileds ?>];
108
  if(fields_css.length > 0){
109
  for(var i = 0; i < fields_css.length; i++){
110
  $$(fields_css[i])[0].observe('keyup', function(e){
111
- var query = e.target.value;
112
  if(query != ""){
113
  clearTimeout(window.nanoRepContactusTimer);
114
  window.nanoRepContactusTimer = setTimeout(function(){
@@ -116,7 +177,7 @@
116
  getNanoRepContactUsSessionId(query, e);
117
  }
118
  else{
119
- queryNanoRepContactUs(query, _nanoRepContactusSessionId, e);
120
  }
121
  }, 500);
122
  }
@@ -124,7 +185,7 @@
124
  }
125
  }
126
  </script>
127
-
128
  <div id="answers-popup" class="answers-popup" style="display:none">
129
  <a href="#" class="answers-popup-close" id="answers-popup-close">×</a>
130
  <div class="answers-popup-heading"><h3 id="answers-popup-heading"></h3></div>
@@ -132,12 +193,12 @@
132
  <div class="answers-popup-text" id="answers-popup-text"></div>
133
  </div>
134
  </div>
135
-
136
  <script type="text/javascript">
137
  nanoRepContactUsAnswers = {
138
 
139
  active: false,
140
-
141
  show: function(event, answers) {
142
  var helpBox = $('answers-popup'),
143
  bodyNode = $$('body')[0];
@@ -145,7 +206,7 @@
145
  if (!helpBox) {
146
  return;
147
  }
148
-
149
  //Move help box to be right in body tag
150
  var bodyNode = $$('body')[0];
151
  if (helpBox.parentNode != bodyNode) {
@@ -157,12 +218,12 @@
157
  if (!helpBox.offsetPosition) {
158
  helpBox.offsetPosition = {left:0, top: 0};
159
  }
160
-
161
  helpBox.removeClassName('answers-popup-right');
162
  helpBox.removeClassName('answers-popup-left');
163
- helpBox.style.left = Element.cumulativeOffset(event.target).left + Element.getWidth(event.target) + 20 + 'px';
164
- helpBox.style.top = Element.cumulativeOffset(event.target).top - Element.getHeight(helpBox) + 'px';
165
-
166
  //Title
167
  var answersTitle = $('answers-popup-heading');
168
  if (typeof this.title != 'undefined') {
@@ -171,11 +232,11 @@
171
  } else {
172
  $(answersTitle).hide();
173
  }
174
-
175
  //Horizontal line
176
  var answerText = $('answers-popup-text'),
177
  answerContent = $('answers-popup-content');
178
-
179
  answerText.innerHTML = '';
180
  for(a = 0; a < answers.length; a++){
181
  if(answers[a].summary.indexOf('{{orders_string}}') > 0){
@@ -183,14 +244,18 @@
183
  }
184
  var item = '<div class="nanorepItem"><div class="nanorepItemTitle"><h5>' + answers[a].title + '</h5></div><div class="nanorepItemDescription">' + answers[a].summary + '</div></div>';
185
  answerText.insert(item);
 
 
 
 
 
186
  }
187
-
188
  $$('.nanorepItemTitle').each(function(el){
189
  el.observe('click', function(e) {
190
  this.up('.nanorepItem').toggleClassName('isOpen');
191
  });
192
  });
193
-
194
  $(helpBox).show();
195
  this.active = true;
196
  var closeButton = $('answers-popup-close');
@@ -203,10 +268,10 @@
203
  $(helpBox).hide();
204
  this.active = false;
205
  }
206
-
207
  Event.stop(event);
208
  },
209
-
210
  hide: function(){
211
  var helpBox = $('answers-popup');
212
  if (helpBox) {
@@ -219,13 +284,13 @@
219
  }
220
  },
221
  };
222
-
223
  Event.observe(window, 'resize', function(event) {
224
  if (nanoRepContactUsAnswers.active) {
225
  nanoRepContactUsAnswers.showHelp(event);
226
  }
227
  });
228
-
229
- </script>
230
  <?php endif; ?>
231
- <?php endif; ?>
3
  * NanoRep Widgets Extension
4
  *
5
  * @package NanoRep_Widgets
6
+ * @company Omniscience Co.
7
  * @website http://www.omniscience.co.il
8
  * @author Dan Aharon-Shalom
9
  */
15
  <script type="text/javascript">
16
  var _nanoRepContactusSessionId = '',
17
  _nanoRepContactusRequestId = 0;
18
+
19
  function getNanoRepContactUsSessionId(query, e){
20
  var getSessionIdUrl = "<?php echo $this->getApiServerUrl('hello.js'); ?>";
21
  new Ajax.JSONRequest(getSessionIdUrl, {
35
  _nanoRepContactusSessionId = ''
36
  }, data['timeout'] * 1000);
37
  // console.log("Nanorep Session Opened: " + _nanoRepContactusSessionId);
38
+ getNanoRepAnswerByQuery(query, _nanoRepContactusSessionId, e);
39
  // console.log("1: success", response, response.responseJSON);
40
  },
41
  onFailure: function(response) {
46
  }
47
  });
48
  }
49
+
50
+ function getNanoRepAnswerById(aid, sid, e){
51
+ var nanoRepQueryApiUrl = "<?php echo $this->getApiServerUrl("a.js")?>"
52
+
53
+ if(sid == ''){
54
+ getNanoRepContactUsSessionId();
55
+ }
56
+ new Ajax.JSONRequest(nanoRepQueryApiUrl, {
57
+ callbackParamName: "cb",
58
+ parameters: {
59
+ answerId : aid,
60
+ requestId : _nanoRepContactusRequestId,
61
+ kbLC : "en",
62
+ "sid" : sid
63
+ },
64
+ onCreate: function(response) {
65
+ // console.log("1: create", response, response.responseJSON);
66
+ },
67
+ onSuccess: function(response) {
68
+ var data = response.responseJSON;
69
+ // console.log(e);
70
+ console.log(data);
71
+ var answers = data.answers;
72
+ console.log(answers);
73
+ var aLength = answers.length;
74
+ nanoRepContactUsAnswers.title = "<?php echo $this->getTitle(); ?>";
75
+ if(aLength > 0){
76
+ //COMMENT: Show the answer regardless to the context
77
+ // for(a = 0; a < aLength; a++){
78
+ // if(answers[a].context != undefined){
79
+ // answers.splice(a, 1);
80
+ // }
81
+ // }
82
+ // console.log(aLength);
83
+ // console.log(data.requestId);
84
+ // console.log((_nanoRepContactusRequestId - 1));
85
+
86
+ if(aLength > 0 && data.requestId == (_nanoRepContactusRequestId - 1)){
87
+ console.log(answers);
88
+ nanoRepContactUsAnswers.show(e, answers);
89
+ }
90
+ else{
91
+ $('answers-popup-text').innerHTML = '';
92
+ nanoRepContactUsAnswers.hide();
93
+ }
94
+
95
+ }
96
+ else{
97
+ $('answers-popup-text').innerHTML = '';
98
+ nanoRepContactUsAnswers.hide();
99
+ }
100
+ // console.log("1: success", response, response.responseJSON);
101
+ },
102
+ onFailure: function(response) {
103
+ //console.log("1: fail", response, response.responseJSON);
104
+ },
105
+ onComplete: function(response) {
106
+ //console.log("1: complete", response, response.responseJSON);
107
+ }
108
+ });
109
+ _nanoRepContactusRequestId++;
110
+ }
111
+
112
+ function getNanoRepAnswerByQuery(query, sid, e){
113
  var nanoRepQueryApiUrl = "<?php echo $this->getApiServerUrl("q.js")?>"
114
+
115
  if(sid == ''){
116
  getNanoRepContactUsSessionId();
117
  }
 
118
  new Ajax.JSONRequest(nanoRepQueryApiUrl, {
119
  callbackParamName: "cb",
120
  parameters: {
135
  //console.log(data);
136
  nanoRepContactUsAnswers.title = "<?php echo $this->getTitle(); ?>";
137
  if(data.answers.length > 0){
138
+ for(a = 0; a < data.answers.length; a++){
139
  if(data.answers[a].context != undefined){
140
  data.answers.splice(a, 1);
141
  }
147
  $('answers-popup-text').innerHTML = '';
148
  nanoRepContactUsAnswers.hide();
149
  }
150
+
151
  }
152
  else{
153
  $('answers-popup-text').innerHTML = '';
164
  });
165
  _nanoRepContactusRequestId++;
166
  }
167
+
168
  var fields_css = [<?php echo $fileds ?>];
169
  if(fields_css.length > 0){
170
  for(var i = 0; i < fields_css.length; i++){
171
  $$(fields_css[i])[0].observe('keyup', function(e){
172
+ var query = e.target.value;
173
  if(query != ""){
174
  clearTimeout(window.nanoRepContactusTimer);
175
  window.nanoRepContactusTimer = setTimeout(function(){
177
  getNanoRepContactUsSessionId(query, e);
178
  }
179
  else{
180
+ getNanoRepAnswerByQuery(query, _nanoRepContactusSessionId, e);
181
  }
182
  }, 500);
183
  }
185
  }
186
  }
187
  </script>
188
+
189
  <div id="answers-popup" class="answers-popup" style="display:none">
190
  <a href="#" class="answers-popup-close" id="answers-popup-close">×</a>
191
  <div class="answers-popup-heading"><h3 id="answers-popup-heading"></h3></div>
193
  <div class="answers-popup-text" id="answers-popup-text"></div>
194
  </div>
195
  </div>
196
+
197
  <script type="text/javascript">
198
  nanoRepContactUsAnswers = {
199
 
200
  active: false,
201
+
202
  show: function(event, answers) {
203
  var helpBox = $('answers-popup'),
204
  bodyNode = $$('body')[0];
206
  if (!helpBox) {
207
  return;
208
  }
209
+
210
  //Move help box to be right in body tag
211
  var bodyNode = $$('body')[0];
212
  if (helpBox.parentNode != bodyNode) {
218
  if (!helpBox.offsetPosition) {
219
  helpBox.offsetPosition = {left:0, top: 0};
220
  }
221
+
222
  helpBox.removeClassName('answers-popup-right');
223
  helpBox.removeClassName('answers-popup-left');
224
+ helpBox.style.left = Element.cumulativeOffset($('comment')).left + Element.getWidth($('comment')) + 20 + 'px';
225
+ helpBox.style.top = Element.cumulativeOffset($('comment')).top - Element.getHeight(helpBox) + 'px';
226
+
227
  //Title
228
  var answersTitle = $('answers-popup-heading');
229
  if (typeof this.title != 'undefined') {
232
  } else {
233
  $(answersTitle).hide();
234
  }
235
+
236
  //Horizontal line
237
  var answerText = $('answers-popup-text'),
238
  answerContent = $('answers-popup-content');
239
+
240
  answerText.innerHTML = '';
241
  for(a = 0; a < answers.length; a++){
242
  if(answers[a].summary.indexOf('{{orders_string}}') > 0){
244
  }
245
  var item = '<div class="nanorepItem"><div class="nanorepItemTitle"><h5>' + answers[a].title + '</h5></div><div class="nanorepItemDescription">' + answers[a].summary + '</div></div>';
246
  answerText.insert(item);
247
+ $$('.nanorepItem a').each(function(el){
248
+ el.observe('click', function(e){
249
+ getNanoRepAnswerById($(e.target).getAttribute('nanoreplinkid'), _nanoRepContactusSessionId, e);
250
+ })
251
+ });
252
  }
253
+
254
  $$('.nanorepItemTitle').each(function(el){
255
  el.observe('click', function(e) {
256
  this.up('.nanorepItem').toggleClassName('isOpen');
257
  });
258
  });
 
259
  $(helpBox).show();
260
  this.active = true;
261
  var closeButton = $('answers-popup-close');
268
  $(helpBox).hide();
269
  this.active = false;
270
  }
271
+
272
  Event.stop(event);
273
  },
274
+
275
  hide: function(){
276
  var helpBox = $('answers-popup');
277
  if (helpBox) {
284
  }
285
  },
286
  };
287
+
288
  Event.observe(window, 'resize', function(event) {
289
  if (nanoRepContactUsAnswers.active) {
290
  nanoRepContactUsAnswers.showHelp(event);
291
  }
292
  });
293
+
294
+ </script>
295
  <?php endif; ?>
296
+ <?php endif; ?>
app/design/frontend/rwd/default/template/nanorepwidgets/contact_us.phtml CHANGED
@@ -3,7 +3,7 @@
3
  * NanoRep Widgets Extension
4
  *
5
  * @package NanoRep_Widgets
6
- * @company Omniscience Co.
7
  * @website http://www.omniscience.co.il
8
  * @author Dan Aharon-Shalom
9
  */
@@ -15,7 +15,7 @@
15
  <script type="text/javascript">
16
  var _nanoRepContactusSessionId = '',
17
  _nanoRepContactusRequestId = 0;
18
-
19
  function getNanoRepContactUsSessionId(query, e){
20
  var getSessionIdUrl = "<?php echo $this->getApiServerUrl('hello.js'); ?>";
21
  new Ajax.JSONRequest(getSessionIdUrl, {
@@ -35,7 +35,7 @@
35
  _nanoRepContactusSessionId = ''
36
  }, data['timeout'] * 1000);
37
  // console.log("Nanorep Session Opened: " + _nanoRepContactusSessionId);
38
- queryNanoRepContactUs(query, _nanoRepContactusSessionId, e);
39
  // console.log("1: success", response, response.responseJSON);
40
  },
41
  onFailure: function(response) {
@@ -46,14 +46,75 @@
46
  }
47
  });
48
  }
49
-
50
- function queryNanoRepContactUs(query, sid, e){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  var nanoRepQueryApiUrl = "<?php echo $this->getApiServerUrl("q.js")?>"
52
-
53
  if(sid == ''){
54
  getNanoRepContactUsSessionId();
55
  }
56
-
57
  new Ajax.JSONRequest(nanoRepQueryApiUrl, {
58
  callbackParamName: "cb",
59
  parameters: {
@@ -74,7 +135,7 @@
74
  //console.log(data);
75
  nanoRepContactUsAnswers.title = "<?php echo $this->getTitle(); ?>";
76
  if(data.answers.length > 0){
77
- for(a = 0; a < data.answers.length; a++){
78
  if(data.answers[a].context != undefined){
79
  data.answers.splice(a, 1);
80
  }
@@ -86,7 +147,7 @@
86
  $('answers-popup-text').innerHTML = '';
87
  nanoRepContactUsAnswers.hide();
88
  }
89
-
90
  }
91
  else{
92
  $('answers-popup-text').innerHTML = '';
@@ -103,12 +164,12 @@
103
  });
104
  _nanoRepContactusRequestId++;
105
  }
106
-
107
  var fields_css = [<?php echo $fileds ?>];
108
  if(fields_css.length > 0){
109
  for(var i = 0; i < fields_css.length; i++){
110
  $$(fields_css[i])[0].observe('keyup', function(e){
111
- var query = e.target.value;
112
  if(query != ""){
113
  clearTimeout(window.nanoRepContactusTimer);
114
  window.nanoRepContactusTimer = setTimeout(function(){
@@ -116,7 +177,7 @@
116
  getNanoRepContactUsSessionId(query, e);
117
  }
118
  else{
119
- queryNanoRepContactUs(query, _nanoRepContactusSessionId, e);
120
  }
121
  }, 500);
122
  }
@@ -124,7 +185,7 @@
124
  }
125
  }
126
  </script>
127
-
128
  <div id="answers-popup" class="answers-popup" style="display:none">
129
  <a href="#" class="answers-popup-close" id="answers-popup-close">×</a>
130
  <div class="answers-popup-heading"><h3 id="answers-popup-heading"></h3></div>
@@ -132,12 +193,12 @@
132
  <div class="answers-popup-text" id="answers-popup-text"></div>
133
  </div>
134
  </div>
135
-
136
  <script type="text/javascript">
137
  nanoRepContactUsAnswers = {
138
 
139
  active: false,
140
-
141
  show: function(event, answers) {
142
  var helpBox = $('answers-popup'),
143
  bodyNode = $$('body')[0];
@@ -145,7 +206,7 @@
145
  if (!helpBox) {
146
  return;
147
  }
148
-
149
  //Move help box to be right in body tag
150
  var bodyNode = $$('body')[0];
151
  if (helpBox.parentNode != bodyNode) {
@@ -157,12 +218,12 @@
157
  if (!helpBox.offsetPosition) {
158
  helpBox.offsetPosition = {left:0, top: 0};
159
  }
160
-
161
  helpBox.removeClassName('answers-popup-right');
162
  helpBox.removeClassName('answers-popup-left');
163
- helpBox.style.left = Element.cumulativeOffset(event.target).left + Element.getWidth(event.target) + 20 + 'px';
164
- helpBox.style.top = Element.cumulativeOffset(event.target).top - Element.getHeight(helpBox) + 'px';
165
-
166
  //Title
167
  var answersTitle = $('answers-popup-heading');
168
  if (typeof this.title != 'undefined') {
@@ -171,11 +232,11 @@
171
  } else {
172
  $(answersTitle).hide();
173
  }
174
-
175
  //Horizontal line
176
  var answerText = $('answers-popup-text'),
177
  answerContent = $('answers-popup-content');
178
-
179
  answerText.innerHTML = '';
180
  for(a = 0; a < answers.length; a++){
181
  if(answers[a].summary.indexOf('{{orders_string}}') > 0){
@@ -183,14 +244,18 @@
183
  }
184
  var item = '<div class="nanorepItem"><div class="nanorepItemTitle"><h5>' + answers[a].title + '</h5></div><div class="nanorepItemDescription">' + answers[a].summary + '</div></div>';
185
  answerText.insert(item);
 
 
 
 
 
186
  }
187
-
188
  $$('.nanorepItemTitle').each(function(el){
189
  el.observe('click', function(e) {
190
  this.up('.nanorepItem').toggleClassName('isOpen');
191
  });
192
  });
193
-
194
  $(helpBox).show();
195
  this.active = true;
196
  var closeButton = $('answers-popup-close');
@@ -203,10 +268,10 @@
203
  $(helpBox).hide();
204
  this.active = false;
205
  }
206
-
207
  Event.stop(event);
208
  },
209
-
210
  hide: function(){
211
  var helpBox = $('answers-popup');
212
  if (helpBox) {
@@ -219,13 +284,13 @@
219
  }
220
  },
221
  };
222
-
223
  Event.observe(window, 'resize', function(event) {
224
  if (nanoRepContactUsAnswers.active) {
225
  nanoRepContactUsAnswers.showHelp(event);
226
  }
227
  });
228
-
229
- </script>
230
  <?php endif; ?>
231
- <?php endif; ?>
3
  * NanoRep Widgets Extension
4
  *
5
  * @package NanoRep_Widgets
6
+ * @company Omniscience Co.
7
  * @website http://www.omniscience.co.il
8
  * @author Dan Aharon-Shalom
9
  */
15
  <script type="text/javascript">
16
  var _nanoRepContactusSessionId = '',
17
  _nanoRepContactusRequestId = 0;
18
+
19
  function getNanoRepContactUsSessionId(query, e){
20
  var getSessionIdUrl = "<?php echo $this->getApiServerUrl('hello.js'); ?>";
21
  new Ajax.JSONRequest(getSessionIdUrl, {
35
  _nanoRepContactusSessionId = ''
36
  }, data['timeout'] * 1000);
37
  // console.log("Nanorep Session Opened: " + _nanoRepContactusSessionId);
38
+ getNanoRepAnswerByQuery(query, _nanoRepContactusSessionId, e);
39
  // console.log("1: success", response, response.responseJSON);
40
  },
41
  onFailure: function(response) {
46
  }
47
  });
48
  }
49
+
50
+ function getNanoRepAnswerById(aid, sid, e){
51
+ var nanoRepQueryApiUrl = "<?php echo $this->getApiServerUrl("a.js")?>"
52
+
53
+ if(sid == ''){
54
+ getNanoRepContactUsSessionId();
55
+ }
56
+ new Ajax.JSONRequest(nanoRepQueryApiUrl, {
57
+ callbackParamName: "cb",
58
+ parameters: {
59
+ answerId : aid,
60
+ requestId : _nanoRepContactusRequestId,
61
+ kbLC : "en",
62
+ "sid" : sid
63
+ },
64
+ onCreate: function(response) {
65
+ // console.log("1: create", response, response.responseJSON);
66
+ },
67
+ onSuccess: function(response) {
68
+ var data = response.responseJSON;
69
+ // console.log(e);
70
+ console.log(data);
71
+ var answers = data.answers;
72
+ console.log(answers);
73
+ var aLength = answers.length;
74
+ nanoRepContactUsAnswers.title = "<?php echo $this->getTitle(); ?>";
75
+ if(aLength > 0){
76
+ //COMMENT: Show the answer regardless to the context
77
+ // for(a = 0; a < aLength; a++){
78
+ // if(answers[a].context != undefined){
79
+ // answers.splice(a, 1);
80
+ // }
81
+ // }
82
+ // console.log(aLength);
83
+ // console.log(data.requestId);
84
+ // console.log((_nanoRepContactusRequestId - 1));
85
+
86
+ if(aLength > 0 && data.requestId == (_nanoRepContactusRequestId - 1)){
87
+ console.log(answers);
88
+ nanoRepContactUsAnswers.show(e, answers);
89
+ }
90
+ else{
91
+ $('answers-popup-text').innerHTML = '';
92
+ nanoRepContactUsAnswers.hide();
93
+ }
94
+
95
+ }
96
+ else{
97
+ $('answers-popup-text').innerHTML = '';
98
+ nanoRepContactUsAnswers.hide();
99
+ }
100
+ // console.log("1: success", response, response.responseJSON);
101
+ },
102
+ onFailure: function(response) {
103
+ //console.log("1: fail", response, response.responseJSON);
104
+ },
105
+ onComplete: function(response) {
106
+ //console.log("1: complete", response, response.responseJSON);
107
+ }
108
+ });
109
+ _nanoRepContactusRequestId++;
110
+ }
111
+
112
+ function getNanoRepAnswerByQuery(query, sid, e){
113
  var nanoRepQueryApiUrl = "<?php echo $this->getApiServerUrl("q.js")?>"
114
+
115
  if(sid == ''){
116
  getNanoRepContactUsSessionId();
117
  }
 
118
  new Ajax.JSONRequest(nanoRepQueryApiUrl, {
119
  callbackParamName: "cb",
120
  parameters: {
135
  //console.log(data);
136
  nanoRepContactUsAnswers.title = "<?php echo $this->getTitle(); ?>";
137
  if(data.answers.length > 0){
138
+ for(a = 0; a < data.answers.length; a++){
139
  if(data.answers[a].context != undefined){
140
  data.answers.splice(a, 1);
141
  }
147
  $('answers-popup-text').innerHTML = '';
148
  nanoRepContactUsAnswers.hide();
149
  }
150
+
151
  }
152
  else{
153
  $('answers-popup-text').innerHTML = '';
164
  });
165
  _nanoRepContactusRequestId++;
166
  }
167
+
168
  var fields_css = [<?php echo $fileds ?>];
169
  if(fields_css.length > 0){
170
  for(var i = 0; i < fields_css.length; i++){
171
  $$(fields_css[i])[0].observe('keyup', function(e){
172
+ var query = e.target.value;
173
  if(query != ""){
174
  clearTimeout(window.nanoRepContactusTimer);
175
  window.nanoRepContactusTimer = setTimeout(function(){
177
  getNanoRepContactUsSessionId(query, e);
178
  }
179
  else{
180
+ getNanoRepAnswerByQuery(query, _nanoRepContactusSessionId, e);
181
  }
182
  }, 500);
183
  }
185
  }
186
  }
187
  </script>
188
+
189
  <div id="answers-popup" class="answers-popup" style="display:none">
190
  <a href="#" class="answers-popup-close" id="answers-popup-close">×</a>
191
  <div class="answers-popup-heading"><h3 id="answers-popup-heading"></h3></div>
193
  <div class="answers-popup-text" id="answers-popup-text"></div>
194
  </div>
195
  </div>
196
+
197
  <script type="text/javascript">
198
  nanoRepContactUsAnswers = {
199
 
200
  active: false,
201
+
202
  show: function(event, answers) {
203
  var helpBox = $('answers-popup'),
204
  bodyNode = $$('body')[0];
206
  if (!helpBox) {
207
  return;
208
  }
209
+
210
  //Move help box to be right in body tag
211
  var bodyNode = $$('body')[0];
212
  if (helpBox.parentNode != bodyNode) {
218
  if (!helpBox.offsetPosition) {
219
  helpBox.offsetPosition = {left:0, top: 0};
220
  }
221
+
222
  helpBox.removeClassName('answers-popup-right');
223
  helpBox.removeClassName('answers-popup-left');
224
+ helpBox.style.left = Element.cumulativeOffset($('comment')).left + Element.getWidth($('comment')) + 20 + 'px';
225
+ helpBox.style.top = Element.cumulativeOffset($('comment')).top - Element.getHeight(helpBox) + 'px';
226
+
227
  //Title
228
  var answersTitle = $('answers-popup-heading');
229
  if (typeof this.title != 'undefined') {
232
  } else {
233
  $(answersTitle).hide();
234
  }
235
+
236
  //Horizontal line
237
  var answerText = $('answers-popup-text'),
238
  answerContent = $('answers-popup-content');
239
+
240
  answerText.innerHTML = '';
241
  for(a = 0; a < answers.length; a++){
242
  if(answers[a].summary.indexOf('{{orders_string}}') > 0){
244
  }
245
  var item = '<div class="nanorepItem"><div class="nanorepItemTitle"><h5>' + answers[a].title + '</h5></div><div class="nanorepItemDescription">' + answers[a].summary + '</div></div>';
246
  answerText.insert(item);
247
+ $$('.nanorepItem a').each(function(el){
248
+ el.observe('click', function(e){
249
+ getNanoRepAnswerById($(e.target).getAttribute('nanoreplinkid'), _nanoRepContactusSessionId, e);
250
+ })
251
+ });
252
  }
253
+
254
  $$('.nanorepItemTitle').each(function(el){
255
  el.observe('click', function(e) {
256
  this.up('.nanorepItem').toggleClassName('isOpen');
257
  });
258
  });
 
259
  $(helpBox).show();
260
  this.active = true;
261
  var closeButton = $('answers-popup-close');
268
  $(helpBox).hide();
269
  this.active = false;
270
  }
271
+
272
  Event.stop(event);
273
  },
274
+
275
  hide: function(){
276
  var helpBox = $('answers-popup');
277
  if (helpBox) {
284
  }
285
  },
286
  };
287
+
288
  Event.observe(window, 'resize', function(event) {
289
  if (nanoRepContactUsAnswers.active) {
290
  nanoRepContactUsAnswers.showHelp(event);
291
  }
292
  });
293
+
294
+ </script>
295
  <?php endif; ?>
296
+ <?php endif; ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NanoRep_Widgets_1_1_0</name>
4
- <version>2.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
7
  <channel>community</channel>
@@ -45,11 +45,11 @@ Agents get a 360&#xD;
45
  degree view of customers&#x2019; activity before&#xD;
46
  working on cases.&#xD;
47
  </description>
48
- <notes>Compatibility SUPEE-6285</notes>
49
  <authors><author><name>NanoRep</name><user>avivnanore</user><email>aviv@nanorep.com</email></author></authors>
50
- <date>2015-08-25</date>
51
- <time>16:34:24</time>
52
- <contents><target name="magelocal"><dir name="NanoRep"><dir name="Widgets"><dir name="Block"><dir name="Adminhtml"><dir name="Answer"><dir name="Grid"><file name="Export.php" hash="98bed6330628da0056b9281cd0044ab1"/></dir><file name="Grid.php" hash="bda00ac3e4e1d85327eac227949e7bb5"/></dir><file name="Answer.php" hash="2c1b7c5dfdd1485b6c3cd8eb2c134bcd"/><file name="Mynanorep.php" hash="a7aea34f919bc75ca9a2d374a115b3fa"/><dir name="Order"><dir name="Grid"><file name="Export.php" hash="13bc156b3331c9b2dacde70e8483a909"/></dir><file name="Grid.php" hash="a78d4a0d35b0f1575763af33bb7c03e4"/></dir><file name="Order.php" hash="39ebfd2fe23db490046ae8e324901b72"/><dir name="System"><dir name="Config"><dir name="Form"><file name="Fields.php" hash="76cdde1a24c8348189384b278aa7480a"/></dir></dir></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><dir name="Answer"><dir name="Body"><file name="Pretty.php" hash="0a7d01f7ff96b9bace44256e82ab047e"/></dir><file name="Body.php" hash="89f497faa6a03cac040834804439a8d2"/><dir name="Title"><file name="Pretty.php" hash="b47a584daaed1c1e55545877b097f75b"/></dir><file name="Title.php" hash="115ee0a85937406fa07e8d439f1e3dbb"/></dir><dir name="Questions"><file name="Pretty.php" hash="3ffd9f82f2c5c2696eed0f35f7109b9e"/></dir><file name="Questions.php" hash="1a979d2272acde87c1e907aa29816c6c"/><dir name="Results"><file name="Pretty.php" hash="f0c8ba45e792f4cfee6ce4a22a3898fa"/></dir><file name="Results.php" hash="d08aa0325398bc23b335df26ca48c53c"/></dir></dir></dir></dir></dir><file name="Contactus.php" hash="ffd26e05d47bf36603ae6ed236a51c5e"/><file name="Customerhistoryjson.php" hash="2e6a8dc4c0e5c49639ff088ac3910009"/><file name="Embed.php" hash="c228d0d8d1dce3a975147434ef8f38ea"/><file name="Events.php" hash="5f5f965d626c8b73c072db1fca506d4c"/><file name="Float.php" hash="e51c028ad72498a96dcd1b38ae2f18f7"/><file name="Forgotpassword.php" hash="8493dab6da5c3bfcc2fee3f38bf7f1ad"/><file name="Header.php" hash="88fbe58d72982d15434f4b0d1462942e"/><file name="Login.php" hash="8bde6fc8b241e277ff4ce8b4c85b246c"/><file name="Success.php" hash="9383181f50edf203c457872412de7a0c"/></dir><dir name="Helper"><file name="Data.php" hash="7943a0d04ad961a97e0e177a2c0b44ac"/></dir><dir name="Model"><file name="Answer.php" hash="3931d7299a746e0ac90a6cae4a154982"/><file name="History.php" hash="0ffa4f8d5366abc1f7702e101cc5a90f"/><file name="Observer.php" hash="93b8b6b08dec94f56c4b122687df7f14"/><file name="Query.php" hash="c4eaf10c4bae492d782b552550570215"/><file name="Request.php" hash="aa581b40cd716654a1f71cc0fe202fcc"/><dir name="Resource"><dir name="Answer"><file name="Collection.php" hash="febae104bf1dd741119b8cf6f168b21d"/></dir><file name="Answer.php" hash="0f79604579c93d4315b62cc23d595a53"/><dir name="Query"><file name="Collection.php" hash="ab7cd2f853a4f21d216ee24748a9b1c8"/></dir><file name="Query.php" hash="ccc5ae9e2e2f144c37fef2245033911c"/><file name="Setup.php" hash="812ef9ae3c38fe84eda2c702890faac5"/></dir><file name="Session.php" hash="63b7e34c1782e8e376936e7f196b0353"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="ConversionTracking.php" hash="fd8154dd85c21be1f8e4270f21e42358"/></dir><dir name="Source"><file name="Attribute.php" hash="03529194354c0557a881305a69158fa5"/><file name="FloatWidgetActivePages.php" hash="e1f7f28f4e3e13ba13e4293eed61a943"/><file name="OrdersStatusActivePages.php" hash="f098536503386289102acfcc19d016a6"/><file name="ProductIdAttribute.php" hash="03c69b051e8ba54e47f87b6f1495c19e"/></dir></dir></dir></dir><dir name="controllers"><file name="AccountController.php" hash="77275920ac024972dc8686a7ecd30d06"/><dir name="Adminhtml"><file name="AnswerController.php" hash="a3f247b7a4dfc25f136c0e3d45f219cd"/><file name="MynanorepController.php" hash="c2bc30d2c38f7a592abaf31eb5d3d6cc"/><file name="OrderController.php" hash="47809f6d6240b090072ee3771137c284"/></dir><file name="IndexController.php" hash="a88b39a8ee27925df32be3c57f95cbf6"/><file name="OrderController.php" hash="45be95b16ff3bbf928c0e8234a4a3fb2"/><file name="QueryController.php" hash="58145cd9ff89c0bc7ff078c0d11b4d83"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6b796ffd37d982a516efac2d8870c4dc"/><file name="config.xml" hash="8c99286b675d84647fb447b7dab4aa4e"/><file name="system.xml" hash="71e4c16ef29b47b7ce53963fbf52f41b"/></dir><dir name="sql"><dir name="nanorepwidgets_setup"><file name="install-2.0.0.php" hash="df808cb581bb4e2cf8a03687c2969d1b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NanoRep_Widgets.xml" hash="4fbaad20e02fa3ed2147ba15864c3cab"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="b7b51b0b7f59d0935c6d38271f8ecee0"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="contact_us.phtml" hash="6e6dda6b65f7f6fac4394b84d6ef60a3"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="empty_page.phtml" hash="bc909c2029bf6035c74b4c2c8c8c4873"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="forgotpassword.phtml" hash="8bcc9f68d8a7559930284d60d6a1b461"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="47d8d9ba7a473f879e46523258ed8576"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="b7b51b0b7f59d0935c6d38271f8ecee0"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="contact_us.phtml" hash="6e6dda6b65f7f6fac4394b84d6ef60a3"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="empty_page.phtml" hash="bc909c2029bf6035c74b4c2c8c8c4873"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="forgotpassword.phtml" hash="8bcc9f68d8a7559930284d60d6a1b461"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="47d8d9ba7a473f879e46523258ed8576"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir><dir name="default"><dir name="default"><dir name="template"><dir name="nanorepwidgets"><file name="mynanorep.phtml" hash="ecdbcbdfbe5c4e4ed18aaf74492b5adb"/><dir name="system"><dir name="config"><dir name="form"><file name="fields.phtml" hash="8ee604593b10281c6bc73aca463d5529"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="341cf527d4c3eb6c452f5398d2ed7588"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="nanorepwidgets"><file name="contactus.css" hash="c019e42775bad8285f0001ba5f16398f"/><file name="head.css" hash="f6de4a017fa6b4c4b53df35dcca83e0d"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/><dir name="images"><file name="mp_sprites.gif" hash="3f1cf238d90dd2bf737f98d04bdcde69"/></dir><file name="jsonp.js" hash="c324f25e1c9f4a434db78ee2e669553b"/></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="nanorepwidgets"><file name="contactus.css" hash="c019e42775bad8285f0001ba5f16398f"/><file name="head.css" hash="9fa2f370487eaf55125bbf2aa69a44e7"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/><dir name="images"><file name="mp_sprites.gif" hash="3f1cf238d90dd2bf737f98d04bdcde69"/></dir><file name="jsonp.js" hash="c324f25e1c9f4a434db78ee2e669553b"/></dir></dir></dir></dir></target></contents>
53
  <compatible/>
54
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
55
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>NanoRep_Widgets_1_1_0</name>
4
+ <version>2.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/gpl.html">GPL v3.0</license>
7
  <channel>community</channel>
45
  degree view of customers&#x2019; activity before&#xD;
46
  working on cases.&#xD;
47
  </description>
48
+ <notes>Compatibility SUPEE-6788 + minor changes</notes>
49
  <authors><author><name>NanoRep</name><user>avivnanore</user><email>aviv@nanorep.com</email></author></authors>
50
+ <date>2015-10-29</date>
51
+ <time>18:52:59</time>
52
+ <contents><target name="magelocal"><dir name="NanoRep"><dir name="Widgets"><dir name="Block"><dir name="Adminhtml"><dir name="Answer"><dir name="Grid"><file name="Export.php" hash="98bed6330628da0056b9281cd0044ab1"/></dir><file name="Grid.php" hash="bda00ac3e4e1d85327eac227949e7bb5"/></dir><file name="Answer.php" hash="2c1b7c5dfdd1485b6c3cd8eb2c134bcd"/><file name="Mynanorep.php" hash="a7aea34f919bc75ca9a2d374a115b3fa"/><dir name="Order"><dir name="Grid"><file name="Export.php" hash="13bc156b3331c9b2dacde70e8483a909"/></dir><file name="Grid.php" hash="a78d4a0d35b0f1575763af33bb7c03e4"/></dir><file name="Order.php" hash="39ebfd2fe23db490046ae8e324901b72"/><dir name="System"><dir name="Config"><dir name="Form"><file name="Fields.php" hash="76cdde1a24c8348189384b278aa7480a"/></dir></dir></dir><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Renderer"><dir name="Answer"><dir name="Body"><file name="Pretty.php" hash="0a7d01f7ff96b9bace44256e82ab047e"/></dir><file name="Body.php" hash="89f497faa6a03cac040834804439a8d2"/><dir name="Title"><file name="Pretty.php" hash="b47a584daaed1c1e55545877b097f75b"/></dir><file name="Title.php" hash="115ee0a85937406fa07e8d439f1e3dbb"/></dir><dir name="Questions"><file name="Pretty.php" hash="3ffd9f82f2c5c2696eed0f35f7109b9e"/></dir><file name="Questions.php" hash="1a979d2272acde87c1e907aa29816c6c"/><dir name="Results"><file name="Pretty.php" hash="f0c8ba45e792f4cfee6ce4a22a3898fa"/></dir><file name="Results.php" hash="d08aa0325398bc23b335df26ca48c53c"/></dir></dir></dir></dir></dir><file name="Contactus.php" hash="ffd26e05d47bf36603ae6ed236a51c5e"/><file name="Customerhistoryjson.php" hash="2e6a8dc4c0e5c49639ff088ac3910009"/><file name="Embed.php" hash="c228d0d8d1dce3a975147434ef8f38ea"/><file name="Events.php" hash="5f5f965d626c8b73c072db1fca506d4c"/><file name="Float.php" hash="e51c028ad72498a96dcd1b38ae2f18f7"/><file name="Forgotpassword.php" hash="8493dab6da5c3bfcc2fee3f38bf7f1ad"/><file name="Header.php" hash="88fbe58d72982d15434f4b0d1462942e"/><file name="Login.php" hash="8bde6fc8b241e277ff4ce8b4c85b246c"/><file name="Success.php" hash="9383181f50edf203c457872412de7a0c"/></dir><dir name="Helper"><file name="Data.php" hash="7943a0d04ad961a97e0e177a2c0b44ac"/></dir><dir name="Model"><file name="Answer.php" hash="3931d7299a746e0ac90a6cae4a154982"/><file name="History.php" hash="0ffa4f8d5366abc1f7702e101cc5a90f"/><file name="Observer.php" hash="93b8b6b08dec94f56c4b122687df7f14"/><file name="Query.php" hash="c4eaf10c4bae492d782b552550570215"/><file name="Request.php" hash="aa581b40cd716654a1f71cc0fe202fcc"/><dir name="Resource"><dir name="Answer"><file name="Collection.php" hash="febae104bf1dd741119b8cf6f168b21d"/></dir><file name="Answer.php" hash="0f79604579c93d4315b62cc23d595a53"/><dir name="Query"><file name="Collection.php" hash="ab7cd2f853a4f21d216ee24748a9b1c8"/></dir><file name="Query.php" hash="ccc5ae9e2e2f144c37fef2245033911c"/><file name="Setup.php" hash="812ef9ae3c38fe84eda2c702890faac5"/></dir><file name="Session.php" hash="63b7e34c1782e8e376936e7f196b0353"/><dir name="System"><dir name="Config"><dir name="Backend"><file name="ConversionTracking.php" hash="4b24e5b3c98cc736b26b7078677d7226"/><file name="Username.php" hash="70a5540401ba9b267815cd564adbdc75"/></dir><dir name="Source"><file name="Attribute.php" hash="03529194354c0557a881305a69158fa5"/><file name="FloatWidgetActivePages.php" hash="e1f7f28f4e3e13ba13e4293eed61a943"/><file name="OrdersStatusActivePages.php" hash="f098536503386289102acfcc19d016a6"/><file name="ProductIdAttribute.php" hash="03c69b051e8ba54e47f87b6f1495c19e"/></dir></dir></dir></dir><dir name="controllers"><file name="AccountController.php" hash="77275920ac024972dc8686a7ecd30d06"/><dir name="Adminhtml"><file name="AnswerController.php" hash="a3f247b7a4dfc25f136c0e3d45f219cd"/><file name="MynanorepController.php" hash="c2bc30d2c38f7a592abaf31eb5d3d6cc"/><file name="OrderController.php" hash="47809f6d6240b090072ee3771137c284"/></dir><file name="IndexController.php" hash="a88b39a8ee27925df32be3c57f95cbf6"/><file name="OrderController.php" hash="45be95b16ff3bbf928c0e8234a4a3fb2"/><file name="QueryController.php" hash="58145cd9ff89c0bc7ff078c0d11b4d83"/></dir><dir name="etc"><file name="adminhtml.xml" hash="724e10b7ee16249fa9eb6874701a62df"/><file name="config.xml" hash="8da7761980956f64d866120a1cbc0d12"/><file name="system.xml" hash="e86dae23613b6b53384a7d7a3cd10f3f"/></dir><dir name="sql"><dir name="nanorepwidgets_setup"><file name="install-2.0.0.php" hash="df808cb581bb4e2cf8a03687c2969d1b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="NanoRep_Widgets.xml" hash="4fbaad20e02fa3ed2147ba15864c3cab"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="b7b51b0b7f59d0935c6d38271f8ecee0"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="contact_us.phtml" hash="f993c5322168e305434e5d3160fb0f66"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="empty_page.phtml" hash="bc909c2029bf6035c74b4c2c8c8c4873"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="forgotpassword.phtml" hash="8bcc9f68d8a7559930284d60d6a1b461"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="47d8d9ba7a473f879e46523258ed8576"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="b7b51b0b7f59d0935c6d38271f8ecee0"/></dir><dir name="template"><dir name="nanorepwidgets"><file name="cdc.phtml" hash="587dab4d48df5773746b7ddff0a0165b"/><file name="contact_us.phtml" hash="f993c5322168e305434e5d3160fb0f66"/><file name="embed.phtml" hash="690b5ab9ed1d024a27220732a28652f5"/><file name="empty_page.phtml" hash="bc909c2029bf6035c74b4c2c8c8c4873"/><file name="events.phtml" hash="32c2e2b9f798104fb47db6a1a104783c"/><file name="float.phtml" hash="3a082b0822f143b8e8f7dc1da4137d1c"/><file name="forgotpassword.phtml" hash="8bcc9f68d8a7559930284d60d6a1b461"/><file name="header.phtml" hash="aee72cc5a4e551326c5c8c5931234f0f"/><file name="login.phtml" hash="47d8d9ba7a473f879e46523258ed8576"/><dir name="order"><file name="list.phtml" hash="83009ccc06d76eacea13c96caaf77c44"/></dir><file name="success.phtml" hash="9db1192b7c1190c07b983431f400d6b2"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir><dir name="default"><dir name="default"><dir name="template"><dir name="nanorepwidgets"><file name="mynanorep.phtml" hash="ecdbcbdfbe5c4e4ed18aaf74492b5adb"/></dir></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="nanorepwidgets.xml" hash="f377907288e77fadbb697981ef68c472"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="nanorepwidgets"><file name="contactus.css" hash="c019e42775bad8285f0001ba5f16398f"/><file name="head.css" hash="f6de4a017fa6b4c4b53df35dcca83e0d"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/><dir name="images"><file name="mp_sprites.gif" hash="3f1cf238d90dd2bf737f98d04bdcde69"/></dir><file name="jsonp.js" hash="c324f25e1c9f4a434db78ee2e669553b"/></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="nanorepwidgets"><file name="contactus.css" hash="c019e42775bad8285f0001ba5f16398f"/><file name="head.css" hash="f6de4a017fa6b4c4b53df35dcca83e0d"/><file name="head.js" hash="8bafa94d8432b42e2e6e7f6af91db39e"/><dir name="images"><file name="mp_sprites.gif" hash="3f1cf238d90dd2bf737f98d04bdcde69"/></dir><file name="jsonp.js" hash="c324f25e1c9f4a434db78ee2e669553b"/></dir></dir></dir></dir></target></contents>
53
  <compatible/>
54
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
55
  </package>
skin/frontend/rwd/default/nanorepwidgets/head.css CHANGED
@@ -18,5 +18,3 @@
18
  margin: 10px 18px;
19
  font-size: 14px;
20
  }
21
-
22
- .block-title { display: none; }
18
  margin: 10px 18px;
19
  font-size: 14px;
20
  }