Version Notes
Built a stable version 1.0.6
Download this release
Release Info
Developer | PushAssist Team |
Extension | Webpushnotification_Pushassist |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- app/code/community/Webpushnotification/Pushassist/Block/Script.php +7 -8
- app/code/community/Webpushnotification/Pushassist/Helper/Data.php +275 -225
- app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/NotificationsendController.php +0 -2
- app/code/community/Webpushnotification/Pushassist/etc/config.xml +1 -1
- package.xml +6 -6
- skin/adminhtml/default/default/pushassist/content_base.css +25 -4
app/code/community/Webpushnotification/Pushassist/Block/Script.php
CHANGED
@@ -5,14 +5,13 @@ class Webpushnotification_Pushassist_Block_Script extends Mage_GoogleAnalytics_B
|
|
5 |
|
6 |
$account_response = Mage::helper('pushassist')->get_account_details();
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
}
|
17 |
return $html;
|
18 |
}
|
5 |
|
6 |
$account_response = Mage::helper('pushassist')->get_account_details();
|
7 |
|
8 |
+
if($account_response['error'] == ''){
|
9 |
+
$html=parent::_toHtml();
|
10 |
+
$subdomain_name=$account_response['account_name'];
|
11 |
+
$jsPath= 'https://cdn.pushassist.com/account/assets/psa-'.$subdomain_name.'.js';
|
12 |
+
$html .= '<script src="'.$jsPath.'"></script>';
|
13 |
+
}else{
|
14 |
+
$html=parent::_toHtml();
|
|
|
15 |
}
|
16 |
return $html;
|
17 |
}
|
app/code/community/Webpushnotification/Pushassist/Helper/Data.php
CHANGED
@@ -1,230 +1,280 @@
|
|
1 |
<?php
|
2 |
-
class Webpushnotification_Pushassist_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
-
{
|
4 |
-
public function create_account($create_account_data) {
|
5 |
-
|
6 |
-
$create_account_request_json = json_encode($create_account_data);
|
7 |
-
$client_create_account = new Zend_Http_Client();
|
8 |
-
$client_create_account->setUri('https://api.pushassist.com/accounts/');
|
9 |
-
|
10 |
-
$client_create_account->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
11 |
-
$client_create_account->setMethod(Zend_Http_Client::POST);
|
12 |
-
$client_create_account->setRawData($create_account_request_json);
|
13 |
-
$response_create_account = $client_create_account->request()->getBody();
|
14 |
-
//print_r($response_create_account);exit;
|
15 |
-
return json_decode($response_create_account,true);
|
16 |
-
}
|
17 |
-
|
18 |
-
public function check_account_details($login_account_data){
|
19 |
-
|
20 |
-
$check_api_key=$login_account_data['api_key'];
|
21 |
-
$check_secret_key=$login_account_data['secret_key'];
|
22 |
-
|
23 |
-
$client_account_details = new Zend_Http_Client('https://api.pushassist.com/accounts_info/');
|
24 |
-
$client_account_details->setHeaders('X-Auth-Token', $check_api_key);
|
25 |
-
$client_account_details->setHeaders('X-Auth-Secret', $check_secret_key);
|
26 |
-
$client_account_details->setHeaders('Content-Type', 'application/json');
|
27 |
-
$client_account_details->setMethod(Zend_Http_Client::GET);
|
28 |
-
$account_details_result=$client_account_details->request()->getRawBody();
|
29 |
-
|
30 |
-
return json_decode($account_details_result, true);
|
31 |
-
}
|
32 |
-
|
33 |
-
public function get_account_details(){
|
34 |
-
|
35 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
36 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
37 |
-
|
38 |
-
$client_account_details = new Zend_Http_Client('https://api.pushassist.com/accounts_info/');
|
39 |
-
$client_account_details->setHeaders('X-Auth-Token', $check_api_key);
|
40 |
-
$client_account_details->setHeaders('X-Auth-Secret', $check_secret_key);
|
41 |
-
$client_account_details->setHeaders('Content-Type', 'application/json');
|
42 |
-
$client_account_details->setMethod(Zend_Http_Client::GET);
|
43 |
-
$account_details_result=$client_account_details->request()->getRawBody();
|
44 |
-
|
45 |
-
return json_decode($account_details_result, true);
|
46 |
-
}
|
47 |
-
|
48 |
-
public function get_dashboard(){
|
49 |
-
|
50 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
51 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
52 |
-
|
53 |
-
|
54 |
-
$client_dashboard = new Zend_Http_Client('https://api.pushassist.com/dashboard/');
|
55 |
-
$client_dashboard->setHeaders('X-Auth-Token', $check_api_key);
|
56 |
-
$client_dashboard->setHeaders('X-Auth-Secret', $check_secret_key);
|
57 |
-
$client_dashboard->setHeaders('Content-Type', 'application/json');
|
58 |
-
$client_dashboard->setMethod(Zend_Http_Client::GET);
|
59 |
-
$dashboard_result=$client_dashboard->request()->getRawBody();
|
60 |
-
|
61 |
-
return json_decode($dashboard_result, true);
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
public function send_notification($response_array){
|
66 |
-
|
67 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
68 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
69 |
-
|
70 |
-
$send_notification_request_json = json_encode($response_array);
|
71 |
-
$client_send_notification = new Zend_Http_Client();
|
72 |
-
$client_send_notification->setUri('https://api.pushassist.com/notifications/');
|
73 |
-
$client_send_notification->setHeaders('X-Auth-Token', $check_api_key);
|
74 |
-
$client_send_notification->setHeaders('X-Auth-Secret', $check_secret_key);
|
75 |
-
$client_send_notification->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
76 |
-
$client_send_notification->setMethod(Zend_Http_Client::POST);
|
77 |
-
$client_send_notification->setRawData($send_notification_request_json);
|
78 |
-
$response_send_notification = $client_send_notification->request()->getBody();
|
79 |
-
return json_decode($response_send_notification,true);
|
80 |
-
|
81 |
-
}
|
82 |
-
|
83 |
-
public function add_segments($segment_response_array){
|
84 |
-
|
85 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
86 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
87 |
-
$segment_request_json = json_encode($segment_response_array);
|
88 |
-
$client_add_segments = new Zend_Http_Client();
|
89 |
-
$client_add_segments->setUri('https://api.pushassist.com/segments/');
|
90 |
-
$client_add_segments->setHeaders('X-Auth-Token', $check_api_key);
|
91 |
-
$client_add_segments->setHeaders('X-Auth-Secret', $check_secret_key);
|
92 |
-
$client_add_segments->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
93 |
-
$client_add_segments->setMethod(Zend_Http_Client::POST);
|
94 |
-
$client_add_segments->setRawData($segment_request_json);
|
95 |
-
$response_add_segments = $client_add_segments->request()->getBody();
|
96 |
-
return json_decode($response_add_segments,true);
|
97 |
-
|
98 |
-
}
|
99 |
-
|
100 |
-
public function get_segments(){
|
101 |
-
|
102 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
103 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
104 |
-
|
105 |
-
$client_segments = new Zend_Http_Client('https://api.pushassist.com/segments/');
|
106 |
-
$client_segments->setHeaders('X-Auth-Token', $check_api_key);
|
107 |
-
$client_segments->setHeaders('X-Auth-Secret', $check_secret_key);
|
108 |
-
$client_segments->setHeaders('Content-Type', 'application/json');
|
109 |
-
$client_segments->setMethod(Zend_Http_Client::GET);
|
110 |
-
$segments_result=$client_segments->request()->getRawBody();
|
111 |
-
|
112 |
-
return json_decode($segments_result, true);
|
113 |
-
}
|
114 |
-
|
115 |
-
public function get_subscribers(){
|
116 |
-
|
117 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
118 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
119 |
-
|
120 |
-
$client_subscribers = new Zend_Http_Client('https://api.pushassist.com/subscribers/');
|
121 |
-
$client_subscribers->setHeaders('X-Auth-Token', $check_api_key);
|
122 |
-
$client_subscribers->setHeaders('X-Auth-Secret', $check_secret_key);
|
123 |
-
$client_subscribers->setHeaders('Content-Type', 'application/json');
|
124 |
-
$client_subscribers->setMethod(Zend_Http_Client::GET);
|
125 |
-
$subscribers_result=$client_subscribers->request()->getRawBody();
|
126 |
-
|
127 |
-
return json_decode($subscribers_result, true);
|
128 |
-
}
|
129 |
-
|
130 |
-
public function get_notifications(){
|
131 |
-
|
132 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
133 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
134 |
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
|
144 |
-
|
145 |
}
|
146 |
-
|
147 |
-
public function get_notifications_by_count($counts){
|
148 |
-
|
149 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
150 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
151 |
-
|
152 |
-
$client_notifications_by_count = new Zend_Http_Client('https://api.pushassist.com/notifications/?per_page='.$counts);
|
153 |
-
$client_notifications_by_count->setHeaders('X-Auth-Token', $check_api_key);
|
154 |
-
$client_notifications_by_count->setHeaders('X-Auth-Secret', $check_secret_key);
|
155 |
-
$client_notifications_by_count->setHeaders('Content-Type', 'application/json');
|
156 |
-
$client_notifications_by_count->setMethod(Zend_Http_Client::GET);
|
157 |
-
$notifications_by_count_result=$client_notifications_by_count->request()->getRawBody();
|
158 |
-
|
159 |
-
return json_decode($notifications_by_count_result, true);
|
160 |
-
}
|
161 |
-
|
162 |
-
public function get_campaigns(){
|
163 |
-
|
164 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
165 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
166 |
-
|
167 |
-
$client_campaigns = new Zend_Http_Client('https://api.pushassist.com/campaigns');
|
168 |
-
$client_campaigns->setHeaders('X-Auth-Token', $check_api_key);
|
169 |
-
$client_campaigns->setHeaders('X-Auth-Secret', $check_secret_key);
|
170 |
-
$client_campaigns->setHeaders('Content-Type', 'application/json');
|
171 |
-
$client_campaigns->setMethod(Zend_Http_Client::GET);
|
172 |
-
$campaigns_result=$client_campaigns->request()->getRawBody();
|
173 |
-
|
174 |
-
return json_decode($campaigns_result, true);
|
175 |
-
|
176 |
-
}
|
177 |
-
|
178 |
-
public function add_campaigns($campaigns_response_array){
|
179 |
-
|
180 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
181 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
182 |
-
|
183 |
-
$add_campaigns_request_json = json_encode($campaigns_response_array);
|
184 |
-
$client_add_campaigns = new Zend_Http_Client();
|
185 |
-
$client_add_campaigns->setUri('https://api.pushassist.com/campaigns/');
|
186 |
-
$client_add_campaigns->setHeaders('X-Auth-Token', $check_api_key);
|
187 |
-
$client_add_campaigns->setHeaders('X-Auth-Secret', $check_secret_key);
|
188 |
-
$client_add_campaigns->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
189 |
-
$client_add_campaigns->setMethod(Zend_Http_Client::POST);
|
190 |
-
$client_add_campaigns->setRawData($add_campaigns_request_json);
|
191 |
-
$response_add_campaigns = $client_add_campaigns->request()->getBody();
|
192 |
-
return json_decode($response_add_campaigns,true);
|
193 |
-
}
|
194 |
-
|
195 |
-
public function gcm_setting($gcm_setting_response_array){
|
196 |
-
|
197 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
198 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
199 |
-
$gcm_request_json = json_encode($gcm_setting_response_array);
|
200 |
-
$gcm_setting = new Zend_Http_Client();
|
201 |
-
$gcm_setting->setUri('https://api.pushassist.com/gcmsettings/');
|
202 |
-
$gcm_setting->setHeaders('X-Auth-Token', $check_api_key);
|
203 |
-
$gcm_setting->setHeaders('X-Auth-Secret', $check_secret_key);
|
204 |
-
$gcm_setting->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
205 |
-
$gcm_setting->setMethod(Zend_Http_Client::POST);
|
206 |
-
$gcm_setting->setRawData($gcm_request_json);
|
207 |
-
$response_gcm_setting = $gcm_setting->request()->getBody();
|
208 |
-
return json_decode($response_gcm_setting,true);
|
209 |
-
|
210 |
-
}
|
211 |
-
|
212 |
-
public function settings($settings_response_array){
|
213 |
-
|
214 |
-
$check_api_key=Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
215 |
-
$check_secret_key=Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
216 |
-
$settings_request_json = json_encode($settings_response_array);
|
217 |
-
$settings = new Zend_Http_Client();
|
218 |
-
$settings->setUri('https://api.pushassist.com/settings/');
|
219 |
-
$settings->setHeaders('X-Auth-Token', $check_api_key);
|
220 |
-
$settings->setHeaders('X-Auth-Secret', $check_secret_key);
|
221 |
-
$settings->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
222 |
-
$settings->setMethod(Zend_Http_Client::POST);
|
223 |
-
$settings->setRawData($settings_request_json);
|
224 |
-
$response_settings = $settings->request()->getBody();
|
225 |
-
return json_decode($response_settings,true);
|
226 |
-
|
227 |
-
}
|
228 |
-
|
229 |
-
}
|
230 |
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
+
class Webpushnotification_Pushassist_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
public function create_account($create_account_data)
|
6 |
+
{
|
7 |
+
try {
|
8 |
+
$create_account_request_json = json_encode($create_account_data);
|
9 |
+
$client_create_account = new Zend_Http_Client();
|
10 |
+
$client_create_account->setUri('https://api.pushassist.com/accounts/');
|
11 |
+
|
12 |
+
$client_create_account->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
13 |
+
$client_create_account->setMethod(Zend_Http_Client::POST);
|
14 |
+
$client_create_account->setRawData($create_account_request_json);
|
15 |
+
$response_create_account = $client_create_account->request()->getBody();
|
16 |
+
} catch (Zend_Exception $e) {
|
17 |
+
$response_create_account = "";
|
18 |
+
}
|
19 |
+
|
20 |
+
return json_decode($response_create_account, true);
|
21 |
+
}
|
22 |
+
|
23 |
+
public function check_account_details($login_account_data)
|
24 |
+
{
|
25 |
+
try {
|
26 |
+
$check_api_key = $login_account_data['api_key'];
|
27 |
+
$check_secret_key = $login_account_data['secret_key'];
|
28 |
+
|
29 |
+
$client_account_details = new Zend_Http_Client('https://api.pushassist.com/accounts_info/');
|
30 |
+
$client_account_details->setHeaders('X-Auth-Token', $check_api_key);
|
31 |
+
$client_account_details->setHeaders('X-Auth-Secret', $check_secret_key);
|
32 |
+
$client_account_details->setHeaders('Content-Type', 'application/json');
|
33 |
+
$client_account_details->setMethod(Zend_Http_Client::GET);
|
34 |
+
$account_details_result = $client_account_details->request()->getRawBody();
|
35 |
+
} catch (Zend_Exception $e) {
|
36 |
+
$account_details_result = "";
|
37 |
+
}
|
38 |
+
return json_decode($account_details_result, true);
|
39 |
+
}
|
40 |
+
|
41 |
+
public function get_account_details()
|
42 |
+
{
|
43 |
+
try {
|
44 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
45 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
46 |
+
|
47 |
+
$client_account_details = new Zend_Http_Client('https://api.pushassist.com/accounts_info/');
|
48 |
+
$client_account_details->setHeaders('X-Auth-Token', $check_api_key);
|
49 |
+
$client_account_details->setHeaders('X-Auth-Secret', $check_secret_key);
|
50 |
+
$client_account_details->setHeaders('Content-Type', 'application/json');
|
51 |
+
$client_account_details->setMethod(Zend_Http_Client::GET);
|
52 |
+
$account_details_result = $client_account_details->request()->getRawBody();
|
53 |
+
|
54 |
+
} catch (Zend_Exception $e) {
|
55 |
+
$account_details_result = "";
|
56 |
+
}
|
57 |
+
return json_decode($account_details_result, true);
|
58 |
+
}
|
59 |
+
|
60 |
+
public function get_dashboard()
|
61 |
+
{
|
62 |
+
try {
|
63 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
64 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
65 |
+
$client_dashboard = new Zend_Http_Client('https://api.pushassist.com/dashboard/');
|
66 |
+
$client_dashboard->setHeaders('X-Auth-Token', $check_api_key);
|
67 |
+
$client_dashboard->setHeaders('X-Auth-Secret', $check_secret_key);
|
68 |
+
$client_dashboard->setHeaders('Content-Type', 'application/json');
|
69 |
+
$client_dashboard->setMethod(Zend_Http_Client::GET);
|
70 |
+
$dashboard_result = $client_dashboard->request()->getRawBody();
|
71 |
+
} catch (Zend_Exception $e) {
|
72 |
+
$dashboard_result = "";
|
73 |
+
}
|
74 |
+
|
75 |
+
return json_decode($dashboard_result, true);
|
76 |
+
}
|
77 |
+
|
78 |
+
|
79 |
+
public function send_notification($response_array)
|
80 |
+
{
|
81 |
+
try {
|
82 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
83 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
84 |
+
|
85 |
+
$send_notification_request_json = json_encode($response_array);
|
86 |
+
|
87 |
+
$client_send_notification = new Zend_Http_Client();
|
88 |
+
$client_send_notification->setUri('https://api.pushassist.com/notifications/');
|
89 |
+
$client_send_notification->setHeaders('X-Auth-Token', $check_api_key);
|
90 |
+
$client_send_notification->setHeaders('X-Auth-Secret', $check_secret_key);
|
91 |
+
$client_send_notification->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
92 |
+
$client_send_notification->setMethod(Zend_Http_Client::POST);
|
93 |
+
$client_send_notification->setRawData($send_notification_request_json);
|
94 |
+
$response_send_notification = $client_send_notification->request()->getBody();
|
95 |
+
} catch (Zend_Exception $e) {
|
96 |
+
$response_send_notification = "";
|
97 |
+
}
|
98 |
+
return json_decode($response_send_notification, true);
|
99 |
+
}
|
100 |
+
|
101 |
+
public function add_segments($segment_response_array)
|
102 |
+
{
|
103 |
+
try{
|
104 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
105 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
106 |
+
$segment_request_json = json_encode($segment_response_array);
|
107 |
+
$client_add_segments = new Zend_Http_Client();
|
108 |
+
$client_add_segments->setUri('https://api.pushassist.com/segments/');
|
109 |
+
$client_add_segments->setHeaders('X-Auth-Token', $check_api_key);
|
110 |
+
$client_add_segments->setHeaders('X-Auth-Secret', $check_secret_key);
|
111 |
+
$client_add_segments->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
112 |
+
$client_add_segments->setMethod(Zend_Http_Client::POST);
|
113 |
+
$client_add_segments->setRawData($segment_request_json);
|
114 |
+
$response_add_segments = $client_add_segments->request()->getBody();
|
115 |
+
} catch (Zend_Exception $e) {
|
116 |
+
$response_add_segments = "";
|
117 |
+
}
|
118 |
+
return json_decode($response_add_segments, true);
|
119 |
+
}
|
120 |
+
|
121 |
+
public function get_segments()
|
122 |
+
{
|
123 |
+
try{
|
124 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
125 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
126 |
+
|
127 |
+
$client_segments = new Zend_Http_Client('https://api.pushassist.com/segments/');
|
128 |
+
$client_segments->setHeaders('X-Auth-Token', $check_api_key);
|
129 |
+
$client_segments->setHeaders('X-Auth-Secret', $check_secret_key);
|
130 |
+
$client_segments->setHeaders('Content-Type', 'application/json');
|
131 |
+
$client_segments->setMethod(Zend_Http_Client::GET);
|
132 |
+
$segments_result = $client_segments->request()->getRawBody();
|
133 |
+
} catch (Zend_Exception $e) {
|
134 |
+
$segments_result = "";
|
135 |
+
}
|
136 |
+
return json_decode($segments_result, true);
|
137 |
+
}
|
138 |
+
|
139 |
+
public function get_subscribers()
|
140 |
+
{
|
141 |
+
try{
|
142 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
143 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
144 |
+
|
145 |
+
$client_subscribers = new Zend_Http_Client('https://api.pushassist.com/subscribers/');
|
146 |
+
$client_subscribers->setHeaders('X-Auth-Token', $check_api_key);
|
147 |
+
$client_subscribers->setHeaders('X-Auth-Secret', $check_secret_key);
|
148 |
+
$client_subscribers->setHeaders('Content-Type', 'application/json');
|
149 |
+
$client_subscribers->setMethod(Zend_Http_Client::GET);
|
150 |
+
$subscribers_result = $client_subscribers->request()->getRawBody();
|
151 |
+
} catch (Zend_Exception $e) {
|
152 |
+
$subscribers_result = "";
|
153 |
+
}
|
154 |
+
return json_decode($subscribers_result, true);
|
155 |
+
}
|
156 |
+
|
157 |
+
public function get_notifications()
|
158 |
+
{
|
159 |
+
try{
|
160 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
161 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
162 |
+
|
163 |
+
$client_notifications = new Zend_Http_Client('https://api.pushassist.com/notifications/?per_page=10');
|
164 |
+
$client_notifications->setHeaders('X-Auth-Token', $check_api_key);
|
165 |
+
$client_notifications->setHeaders('X-Auth-Secret', $check_secret_key);
|
166 |
+
$client_notifications->setHeaders('Content-Type', 'application/json');
|
167 |
+
$client_notifications->setMethod(Zend_Http_Client::GET);
|
168 |
+
$notifications_result = $client_notifications->request()->getRawBody();
|
169 |
+
} catch (Zend_Exception $e) {
|
170 |
+
$notifications_result = "";
|
171 |
+
}
|
172 |
+
return json_decode($notifications_result, true);
|
173 |
+
|
174 |
+
|
175 |
+
}
|
176 |
+
|
177 |
+
public function get_notifications_by_count($counts)
|
178 |
+
{
|
179 |
+
try{
|
180 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
181 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
182 |
+
|
183 |
+
$client_notifications_by_count = new Zend_Http_Client(
|
184 |
+
'https://api.pushassist.com/notifications/?per_page='.$counts
|
185 |
+
);
|
186 |
+
$client_notifications_by_count->setHeaders('X-Auth-Token', $check_api_key);
|
187 |
+
$client_notifications_by_count->setHeaders('X-Auth-Secret', $check_secret_key);
|
188 |
+
$client_notifications_by_count->setHeaders('Content-Type', 'application/json');
|
189 |
+
$client_notifications_by_count->setMethod(Zend_Http_Client::GET);
|
190 |
+
$notifications_by_count_result = $client_notifications_by_count->request()->getRawBody();
|
191 |
+
} catch (Zend_Exception $e) {
|
192 |
+
$notifications_by_count_result = "";
|
193 |
+
}
|
194 |
+
return json_decode($notifications_by_count_result, true);
|
195 |
+
}
|
196 |
+
|
197 |
+
public function get_campaigns()
|
198 |
+
{
|
199 |
+
try{
|
200 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
201 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
202 |
+
|
203 |
+
$client_campaigns = new Zend_Http_Client('https://api.pushassist.com/campaigns');
|
204 |
+
$client_campaigns->setHeaders('X-Auth-Token', $check_api_key);
|
205 |
+
$client_campaigns->setHeaders('X-Auth-Secret', $check_secret_key);
|
206 |
+
$client_campaigns->setHeaders('Content-Type', 'application/json');
|
207 |
+
$client_campaigns->setMethod(Zend_Http_Client::GET);
|
208 |
+
$campaigns_result = $client_campaigns->request()->getRawBody();
|
209 |
+
} catch (Zend_Exception $e) {
|
210 |
+
$campaigns_result = "";
|
211 |
+
}
|
212 |
+
return json_decode($campaigns_result, true);
|
213 |
+
|
214 |
+
}
|
215 |
+
|
216 |
+
public function add_campaigns($campaigns_response_array)
|
217 |
+
{
|
218 |
+
try{
|
219 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
220 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
221 |
+
|
222 |
+
$add_campaigns_request_json = json_encode($campaigns_response_array);
|
223 |
+
$client_add_campaigns = new Zend_Http_Client();
|
224 |
+
$client_add_campaigns->setUri('https://api.pushassist.com/campaigns/');
|
225 |
+
$client_add_campaigns->setHeaders('X-Auth-Token', $check_api_key);
|
226 |
+
$client_add_campaigns->setHeaders('X-Auth-Secret', $check_secret_key);
|
227 |
+
$client_add_campaigns->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
228 |
+
$client_add_campaigns->setMethod(Zend_Http_Client::POST);
|
229 |
+
$client_add_campaigns->setRawData($add_campaigns_request_json);
|
230 |
+
$response_add_campaigns = $client_add_campaigns->request()->getBody();
|
231 |
+
} catch (Zend_Exception $e) {
|
232 |
+
$response_add_campaigns = "";
|
233 |
+
}
|
234 |
+
return json_decode($response_add_campaigns, true);
|
235 |
+
}
|
236 |
+
|
237 |
+
public function gcm_setting($gcm_setting_response_array)
|
238 |
+
{
|
239 |
+
try{
|
240 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
241 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
242 |
+
$gcm_request_json = json_encode($gcm_setting_response_array);
|
243 |
+
$gcm_setting = new Zend_Http_Client();
|
244 |
+
$gcm_setting->setUri('https://api.pushassist.com/gcmsettings/');
|
245 |
+
$gcm_setting->setHeaders('X-Auth-Token', $check_api_key);
|
246 |
+
$gcm_setting->setHeaders('X-Auth-Secret', $check_secret_key);
|
247 |
+
$gcm_setting->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
248 |
+
$gcm_setting->setMethod(Zend_Http_Client::POST);
|
249 |
+
$gcm_setting->setRawData($gcm_request_json);
|
250 |
+
$response_gcm_setting = $gcm_setting->request()->getBody();
|
251 |
+
} catch (Zend_Exception $e) {
|
252 |
+
$response_gcm_setting = "";
|
253 |
+
}
|
254 |
+
return json_decode($response_gcm_setting, true);
|
255 |
+
|
256 |
+
}
|
257 |
+
|
258 |
+
public function settings($settings_response_array)
|
259 |
+
{
|
260 |
+
try{
|
261 |
+
$check_api_key = Mage::app()->getStore()->getConfig('pushassistsection/general/apikey');
|
262 |
+
$check_secret_key = Mage::app()->getStore()->getConfig('pushassistsection/general/secretkey');
|
263 |
+
$settings_request_json = json_encode($settings_response_array);
|
264 |
+
$settings = new Zend_Http_Client();
|
265 |
+
$settings->setUri('https://api.pushassist.com/settings/');
|
266 |
+
$settings->setHeaders('X-Auth-Token', $check_api_key);
|
267 |
+
$settings->setHeaders('X-Auth-Secret', $check_secret_key);
|
268 |
+
$settings->setHeaders(Zend_Http_Client::CONTENT_TYPE, 'application/json');
|
269 |
+
$settings->setMethod(Zend_Http_Client::POST);
|
270 |
+
$settings->setRawData($settings_request_json);
|
271 |
+
$response_settings = $settings->request()->getBody();
|
272 |
+
} catch (Zend_Exception $e) {
|
273 |
+
$response_settings = "";
|
274 |
+
}
|
275 |
+
return json_decode($response_settings, true);
|
276 |
+
|
277 |
+
}
|
278 |
|
|
|
279 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
|
app/code/community/Webpushnotification/Pushassist/controllers/Adminhtml/Pushassist/NotificationsendController.php
CHANGED
@@ -21,7 +21,6 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_NotificationsendContro
|
|
21 |
$random_digit=rand(0000,9999);
|
22 |
$ext = substr($_FILES['fileupload']['name'], strrpos($_FILES['fileupload']['name'], '.') + 1);
|
23 |
$new_file_name = 'webpush' . time() . '.' . $ext;
|
24 |
-
//$new_file_name=$random_digit.$_FILES['fileupload']['name'];
|
25 |
$path = Mage::getBaseDir('media').DS.'pushassist'.DS;
|
26 |
$uploader->save($path, $new_file_name);
|
27 |
$post['fileupload'] = 'pushassist'.DS.$new_file_name;
|
@@ -33,7 +32,6 @@ class Webpushnotification_Pushassist_Adminhtml_Pushassist_NotificationsendContro
|
|
33 |
|
34 |
|
35 |
$response_array = array("notification" => array(
|
36 |
-
//"siteurl" => Mage::getBaseUrl(),
|
37 |
"title" => $post['title'],
|
38 |
"message" => $post['message'],
|
39 |
"redirect_url" => $post['url'],
|
21 |
$random_digit=rand(0000,9999);
|
22 |
$ext = substr($_FILES['fileupload']['name'], strrpos($_FILES['fileupload']['name'], '.') + 1);
|
23 |
$new_file_name = 'webpush' . time() . '.' . $ext;
|
|
|
24 |
$path = Mage::getBaseDir('media').DS.'pushassist'.DS;
|
25 |
$uploader->save($path, $new_file_name);
|
26 |
$post['fileupload'] = 'pushassist'.DS.$new_file_name;
|
32 |
|
33 |
|
34 |
$response_array = array("notification" => array(
|
|
|
35 |
"title" => $post['title'],
|
36 |
"message" => $post['message'],
|
37 |
"redirect_url" => $post['url'],
|
app/code/community/Webpushnotification/Pushassist/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Webpushnotification_Pushassist>
|
5 |
-
<version>1.0.
|
6 |
</Webpushnotification_Pushassist>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Webpushnotification_Pushassist>
|
5 |
+
<version>1.0.6</version>
|
6 |
</Webpushnotification_Pushassist>
|
7 |
</modules>
|
8 |
<global>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Webpushnotification_Pushassist</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>Push Notification Delivery &amp;amp;amp;amp;amp;amp; Analytics for Websites and Mobile. Send Push Notifications to your customers and store visitors.</summary>
|
10 |
<description>Quickly Send push notifications from desktop or mobile websites to your site users. Powerful APIs and tools that allow you to send, receive and track push messages. Set up trigger marketing campaigns, schedule push notification and much more. Quick 5 minutes setup to implement push notifications for ANY website.</description>
|
11 |
-
<notes>Built a stable version 1.0.
|
12 |
<authors><author><name>PushAssist Team</name><user>PushAssist</user><email>support@pushassist.com</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Webpushnotification"><dir name="Pushassist"><dir name="Block"><dir name="Adminhtml"><file name="Campaign.php" hash="df4a8dc02241f6b486ec539bc2e71370"/><file name="Createaccount.php" hash="2775e933f8b780e022fa3ff0b88b076e"/><file name="Createcampaign.php" hash="318eb9deab2bfc9a8c4cad81449aaf0f"/><file name="Createsegments.php" hash="94ef9183a9c9a56bfb3dece4c4e97fce"/><file name="Dashboard.php" hash="56e56097a9ec2421218ef8d54e8a5e36"/><file name="Notificationmain.php" hash="c5407e7f33659982ce1e12287e96b541"/><file name="Notificationsend.php" hash="c82ebd53ae7efb4c24cb168e75e8ed44"/><file name="Segments.php" hash="2b4bb8731d1ffc0509210e4b0526e247"/><file name="Settings.php" hash="4f9df0d6b916eaaf9bdaec67284740f0"/><file name="Subscribers.php" hash="7698cd83f156fac6ddea9219716508a5"/></dir><file name="Script.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Webpushnotification_Pushassist</name>
|
4 |
+
<version>1.0.6</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Push Notification Delivery &amp;amp;amp;amp;amp;amp;amp; Analytics for Websites and Mobile. Send Push Notifications to your customers and store visitors.</summary>
|
10 |
<description>Quickly Send push notifications from desktop or mobile websites to your site users. Powerful APIs and tools that allow you to send, receive and track push messages. Set up trigger marketing campaigns, schedule push notification and much more. Quick 5 minutes setup to implement push notifications for ANY website.</description>
|
11 |
+
<notes>Built a stable version 1.0.6</notes>
|
12 |
<authors><author><name>PushAssist Team</name><user>PushAssist</user><email>support@pushassist.com</email></author></authors>
|
13 |
+
<date>2016-10-17</date>
|
14 |
+
<time>14:55:40</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Webpushnotification"><dir name="Pushassist"><dir name="Block"><dir name="Adminhtml"><file name="Campaign.php" hash="df4a8dc02241f6b486ec539bc2e71370"/><file name="Createaccount.php" hash="2775e933f8b780e022fa3ff0b88b076e"/><file name="Createcampaign.php" hash="318eb9deab2bfc9a8c4cad81449aaf0f"/><file name="Createsegments.php" hash="94ef9183a9c9a56bfb3dece4c4e97fce"/><file name="Dashboard.php" hash="56e56097a9ec2421218ef8d54e8a5e36"/><file name="Notificationmain.php" hash="c5407e7f33659982ce1e12287e96b541"/><file name="Notificationsend.php" hash="c82ebd53ae7efb4c24cb168e75e8ed44"/><file name="Segments.php" hash="2b4bb8731d1ffc0509210e4b0526e247"/><file name="Settings.php" hash="4f9df0d6b916eaaf9bdaec67284740f0"/><file name="Subscribers.php" hash="7698cd83f156fac6ddea9219716508a5"/></dir><file name="Script.php" hash="79380519093b82283326bef48ec7bdad"/></dir><dir name="Helper"><file name="Data.php" hash="5cf740a7a77b2c59281162258512d5ed"/></dir><dir name="Model"><file name="Observer.php" hash="f61d007b9e615c422972b6287deff16c"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Pushassist"><file name="CampaignController.php" hash="d948db17d7620d0f84fcaa6e455c5b2f"/><file name="CampaignlistController.php" hash="693d94b5c087f2f1339ea192df4c10ab"/><file name="CreateaccountController.php" hash="800903fddaf89755ee99714fb0f7eaa3"/><file name="CreatecampaignController.php" hash="50f14a68cc26ba3fcbc55207f9612aa6"/><file name="CreatesegmentsController.php" hash="b2e45413a9bdb163d35a84896f8a2173"/><file name="DashboardController.php" hash="cbd8c12f1d2ca2072944bb80b1cd2d88"/><file name="NotificationmainController.php" hash="319b0b896ce243f64ccb7aa12f130ef0"/><file name="NotificationsendController.php" hash="b94a751c6ee61ce27b80d6aa06d0d95b"/><file name="SegmentsController.php" hash="8d366c16f7e8817413e0492a919ce61d"/><file name="SettingsController.php" hash="341b8144b2038a25fbefcf5411055e87"/><file name="SubscribersController.php" hash="7c941c29948e69b6aabd90b44e4a63fa"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="7db3b82adfefb22f01c2c73877c2a883"/><file name="config.xml" hash="2c88e68fa7ee530d8e89cc72bafb2c41"/><file name="system.xml" hash="ae307161f98924ac45adc981db84c75e"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pushassist.xml" hash="db81fe5191c00f4fe08f50dd0004673a"/></dir><dir name="template"><dir name="pushassist"><file name="campaign.phtml" hash="35b1fe1e892823c6772261b453117fa1"/><file name="create_account.phtml" hash="5944544b8919f4e083a8c66c1952c1a9"/><file name="createcampaign.phtml" hash="bb9e7c5fd204edfca29221a8de1a7eac"/><file name="createsegments.phtml" hash="3453f8244da0929e0a64123a775ce2ca"/><file name="dashboard.phtml" hash="6d4132988cd2c1f826d4dbab2ddd24b9"/><file name="notification.phtml" hash="db8c2ec25f032d542c14c139018d47aa"/><file name="segments.phtml" hash="2e29052154bd79c4b3e26e6f33121099"/><file name="sendnotification.phtml" hash="77648f82f09ead8db242caa28018d61c"/><file name="settings.phtml" hash="ab0f73b1c3e41fcf82ea2161eb8b2d41"/><file name="subscribers.phtml" hash="dfe5e762b09c7cdb72ca55c9a0585ed4"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Webpushnotification_Pushassist.xml" hash="d32b8e99774c18aa5aab352cfdd06e96"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="pushassist"><file name="bootstrap-datetimepicker.min.css" hash="fa0a2cb4d62d4a578174324afdec0be6"/><file name="bootstrap-select.css" hash="71fcb49a14eaea2be04acb5fc54ebbe1"/><file name="bootstrap.min.css" hash="eedf9ee80c2faa4e1b9ab9017cdfcb88"/><file name="campaign.png" hash="fb1f5604466870a9f35dcd62eb6c562f"/><file name="content_base.css" hash="e1f623505b9aecc04b0ab23b3fa3b0dc"/><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/></dir><dir name="imgUpload"><file name="jquery.fileupload.css" hash="2ee732f8354790746644b312b7b2df1b"/><file name="jquery.fileupload.js" hash="25360c56ade52c72edf654045580c1ce"/><file name="jquery.ui.widget.js" hash="0b44270691b4abf4e38e1a45928a3dc6"/></dir><file name="notification_setting.png" hash="8bf9fbc3ef19ab67e1da8f3849d53a9f"/><file name="pushassist_opt_in_box_setting.png" hash="79feadfc5795b25fc2cb3092272c3e95"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="pushassist"><file name="bootstrap-datetimepicker.js" hash="3476fc7070ebef66f2c3a6c1c7f3a408"/><file name="bootstrap-select.js" hash="1b4396af90dda85e5e06782133aaa443"/><file name="bootstrap.min.js" hash="8c237312864d2e4c4f03544cd4f9b195"/><file name="jquery.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><file name="plugins.js" hash="d671d70560ecac1b27b328f643f76fc2"/></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Webpushnotification_Pushassist.csv" hash="4cee55524c735f91e1313afd6e09c0a2"/></dir><dir name="fr_FR"><file name="Webpushnotification_Pushassist.csv" hash="f333463a98bdb3daa77102db1de6a2b8"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/adminhtml/default/default/pushassist/content_base.css
CHANGED
@@ -895,9 +895,20 @@ background: #ffffff none repeat scroll 0 0;
|
|
895 |
width: 80px !important;
|
896 |
}
|
897 |
|
898 |
-
|
|
|
|
|
|
|
899 |
|
900 |
-
#pushassist .wrapper .text_wrapper .message {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
901 |
|
902 |
#pushassist .wrapper .text_wrapper .domain {
|
903 |
color: #7f7f7f;
|
@@ -909,9 +920,19 @@ background: #ffffff none repeat scroll 0 0;
|
|
909 |
width: 96%;
|
910 |
}
|
911 |
|
912 |
-
#pushassist .wrapper .text_wrapper .title .closer {
|
|
|
|
|
|
|
913 |
|
914 |
-
#pushassist .wrapper .text_wrapper .title {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
915 |
|
916 |
#pushassist .dummy-notification .redirect_url {
|
917 |
font-size: 12px;
|
895 |
width: 80px !important;
|
896 |
}
|
897 |
|
898 |
+
#pushassist .wrapper .text_wrapper {
|
899 |
+
padding: 5px 13px 10px 0;
|
900 |
+
width: 269px !important;
|
901 |
+
}
|
902 |
|
903 |
+
#pushassist .wrapper .text_wrapper .message {
|
904 |
+
font-size: 12px;
|
905 |
+
font-weight: 100;
|
906 |
+
line-height: 15px;
|
907 |
+
margin: 8px 0;
|
908 |
+
max-height: 30px;
|
909 |
+
min-height: 30px;
|
910 |
+
overflow: hidden;
|
911 |
+
}
|
912 |
|
913 |
#pushassist .wrapper .text_wrapper .domain {
|
914 |
color: #7f7f7f;
|
920 |
width: 96%;
|
921 |
}
|
922 |
|
923 |
+
#pushassist .wrapper .text_wrapper .title .closer {
|
924 |
+
position: relative;
|
925 |
+
top: -6px;
|
926 |
+
}
|
927 |
|
928 |
+
#pushassist .wrapper .text_wrapper .title {
|
929 |
+
font-size: 13.5px !important;
|
930 |
+
letter-spacing: 0.5px;
|
931 |
+
line-height: 18px;
|
932 |
+
margin: 4px 0 8px;
|
933 |
+
max-height: 36px;
|
934 |
+
overflow: hidden;
|
935 |
+
}
|
936 |
|
937 |
#pushassist .dummy-notification .redirect_url {
|
938 |
font-size: 12px;
|