SendinBlue Subscribe Form And WP SMTP - Version 2.0.8

Version Description

Download this release

Release Info

Developer neeraj_slit
Plugin Icon 128x128 SendinBlue Subscribe Form And WP SMTP
Version 2.0.8
Comparing to
See all releases

Code changes from version 3.0.7 to 2.0.8

css/mailin-front.css CHANGED
@@ -1,109 +1,109 @@
1
- div.sib-sms-field {
2
- display: inline-block;
3
- position: relative;
4
- width: 100%;
5
- }
6
-
7
- .sib-sms-field .sib-country-block {
8
- position: absolute;
9
- right: auto;
10
- left: 0;
11
- top: 0;
12
- bottom: 0;
13
- padding: 1px;
14
- -webkit-box-sizing: border-box;
15
- -moz-box-sizing: border-box;
16
- box-sizing: border-box;
17
- }
18
-
19
- .sib-country-block .sib-toggle.sib-country-flg {
20
- z-index: 1;
21
- position: relative;
22
- width: 46px;
23
- height: 100%;
24
- padding: 0 0 0 8px;
25
- -webkit-box-sizing: border-box;
26
- -moz-box-sizing: border-box;
27
- box-sizing: border-box;
28
- background-color: #dbdbdb;
29
- cursor: pointer;
30
- }
31
-
32
- .sib-country-block .sib-toggle .sib-cflags {
33
- position: absolute;
34
- top: 0;
35
- bottom: 0;
36
- margin: auto;
37
- height: 15px;
38
- width: 20px;
39
- background-repeat: no-repeat;
40
- background-color: #dbdbdb;
41
- -webkit-box-sizing: border-box;
42
- -moz-box-sizing: border-box;
43
- box-sizing: border-box;
44
- background-image: url('../img/flags/fr.png');
45
- }
46
- .sib-country-block .sib-toggle .sib-icon-arrow {
47
- position: absolute;
48
- top: 50%;
49
- margin-top: -2px;
50
- right: 6px;
51
- width: 0;
52
- height: 0;
53
- border-left: 3px solid transparent;
54
- border-right: 3px solid transparent;
55
- border-top: 4px solid;
56
- }
57
- .sib-sms-field ul.sib-country-list {
58
- position: absolute;
59
- z-index: 2;
60
- list-style: none;
61
- text-align: left;
62
- padding: 0px;
63
- margin: 0px 0px 0px -1px;
64
- box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 4px;
65
- background-color: white;
66
- border: 1px solid rgb(204, 204, 204);
67
- white-space: nowrap;
68
- max-height: 150px;
69
- overflow-y: scroll;
70
- overflow-x: hidden;
71
- top: 50px;
72
- width: 250px;
73
- }
74
- .sib-sms-field ul.sib-country-list li.sib-country-prefix {
75
- font-size: 14px;
76
- padding:1px 10px;
77
- cursor: pointer;
78
- }
79
- .sib-sms-field ul.sib-country-list li.sib-country-prefix:hover {
80
- background-color: #dbdbdb;
81
- }
82
- .sib-sms-field ul.sib-country-list li .sib-flag-box {
83
- width: 20px;
84
- }
85
-
86
- .sib-sms-field ul.sib-country-list li .sib-flag-box .sib-flag {
87
- height: 18px;
88
- width: 20px;
89
- background-image: url("../img/flags/ad.png");
90
- vertical-align: middle;
91
- display: inline-block;
92
- background-repeat:no-repeat;
93
- }
94
- .sib-sms-field ul.sib-country-list li .sib-flag-box .sib-dial-code {
95
- margin-left: 20px;
96
- }
97
- .sib-sms-field .sib-sms {
98
- padding-right: 6px;
99
- padding-left: 52px;
100
- margin-left: 0;
101
- position: relative;
102
- z-index: 0;
103
- margin-top: 0 !important;
104
- margin-bottom: 0 !important;
105
- margin-right: 0;
106
- }
107
- .sib-multi-lists.sib_error {
108
- color: #A94442;
109
  }
1
+ div.sib-sms-field {
2
+ display: inline-block;
3
+ position: relative;
4
+ width: 100%;
5
+ }
6
+
7
+ .sib-sms-field .sib-country-block {
8
+ position: absolute;
9
+ right: auto;
10
+ left: 0;
11
+ top: 0;
12
+ bottom: 0;
13
+ padding: 1px;
14
+ -webkit-box-sizing: border-box;
15
+ -moz-box-sizing: border-box;
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ .sib-country-block .sib-toggle.sib-country-flg {
20
+ z-index: 1;
21
+ position: relative;
22
+ width: 46px;
23
+ height: 100%;
24
+ padding: 0 0 0 8px;
25
+ -webkit-box-sizing: border-box;
26
+ -moz-box-sizing: border-box;
27
+ box-sizing: border-box;
28
+ background-color: #dbdbdb;
29
+ cursor: pointer;
30
+ }
31
+
32
+ .sib-country-block .sib-toggle .sib-cflags {
33
+ position: absolute;
34
+ top: 0;
35
+ bottom: 0;
36
+ margin: auto;
37
+ height: 15px;
38
+ width: 20px;
39
+ background-repeat: no-repeat;
40
+ background-color: #dbdbdb;
41
+ -webkit-box-sizing: border-box;
42
+ -moz-box-sizing: border-box;
43
+ box-sizing: border-box;
44
+ background-image: url('../img/flags/fr.png');
45
+ }
46
+ .sib-country-block .sib-toggle .sib-icon-arrow {
47
+ position: absolute;
48
+ top: 50%;
49
+ margin-top: -2px;
50
+ right: 6px;
51
+ width: 0;
52
+ height: 0;
53
+ border-left: 3px solid transparent;
54
+ border-right: 3px solid transparent;
55
+ border-top: 4px solid;
56
+ }
57
+ .sib-sms-field ul.sib-country-list {
58
+ position: absolute;
59
+ z-index: 2;
60
+ list-style: none;
61
+ text-align: left;
62
+ padding: 0px;
63
+ margin: 0px 0px 0px -1px;
64
+ box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 4px;
65
+ background-color: white;
66
+ border: 1px solid rgb(204, 204, 204);
67
+ white-space: nowrap;
68
+ max-height: 150px;
69
+ overflow-y: scroll;
70
+ overflow-x: hidden;
71
+ top: 50px;
72
+ width: 250px;
73
+ }
74
+ .sib-sms-field ul.sib-country-list li.sib-country-prefix {
75
+ font-size: 14px;
76
+ padding:1px 10px;
77
+ cursor: pointer;
78
+ }
79
+ .sib-sms-field ul.sib-country-list li.sib-country-prefix:hover {
80
+ background-color: #dbdbdb;
81
+ }
82
+ .sib-sms-field ul.sib-country-list li .sib-flag-box {
83
+ width: 20px;
84
+ }
85
+
86
+ .sib-sms-field ul.sib-country-list li .sib-flag-box .sib-flag {
87
+ height: 18px;
88
+ width: 20px;
89
+ background-image: url("../img/flags/ad.png");
90
+ vertical-align: middle;
91
+ display: inline-block;
92
+ background-repeat:no-repeat;
93
+ }
94
+ .sib-sms-field ul.sib-country-list li .sib-flag-box .sib-dial-code {
95
+ margin-left: 20px;
96
+ }
97
+ .sib-sms-field .sib-sms {
98
+ padding-right: 6px;
99
+ padding-left: 52px;
100
+ margin-left: 0;
101
+ position: relative;
102
+ z-index: 0;
103
+ margin-top: 0 !important;
104
+ margin-bottom: 0 !important;
105
+ margin-right: 0;
106
+ }
107
+ .sib-multi-lists.sib_error {
108
+ color: #A94442;
109
  }
inc/SendinblueApiClient.php CHANGED
@@ -216,6 +216,15 @@ class SendinblueApiClient
216
  return $this->post('/contacts/import', $data);
217
  }
218
 
 
 
 
 
 
 
 
 
 
219
  /**
220
  * @param $endpoint
221
  * @param array $parameters
@@ -311,4 +320,4 @@ class SendinblueApiClient
311
  {
312
  return $this->lastResponseCode;
313
  }
314
- }
216
  return $this->post('/contacts/import', $data);
217
  }
218
 
219
+ /**
220
+ * @param $data
221
+ * @return mixed
222
+ */
223
+ public function setPartner($data)
224
+ {
225
+ return $this->post('/account/partner',$data);
226
+ }
227
+
228
  /**
229
  * @param $endpoint
230
  * @param array $parameters
320
  {
321
  return $this->lastResponseCode;
322
  }
323
+ }
inc/sib-api-manager.php CHANGED
@@ -420,14 +420,36 @@ if ( ! class_exists( 'SIB_API_Manager' ) ) {
420
  } else {
421
  $info["internalUserHistory"] = array(array("action"=>"SUBSCRIBE_BY_PLUGIN", "id"=> 1, "name"=>"wordpress"));
422
  }
423
- $data = [
424
- 'email' => $email,
425
- 'attributes' => $info,
426
- 'emailBlacklisted' => false,
427
- 'smsBlacklisted' => false,
428
- 'listIds' => $listid,
429
- 'unlinkListIds' => $list_unlink
430
- ];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
431
  $mailin->updateUser($email ,$data );
432
  $exist = $mailin->getLastResponseCode() == 204 ? 'success' : '' ;
433
  } else {
420
  } else {
421
  $info["internalUserHistory"] = array(array("action"=>"SUBSCRIBE_BY_PLUGIN", "id"=> 1, "name"=>"wordpress"));
422
  }
423
+ if(!($type == 'double-optin')){
424
+ $data = [
425
+ 'email' => $email,
426
+ 'attributes' => $info,
427
+ 'emailBlacklisted' => false,
428
+ 'smsBlacklisted' => false,
429
+ 'listIds' => $listid,
430
+ 'unlinkListIds' => $list_unlink
431
+ ];
432
+ } else {
433
+ if($info['DOUBLE_OPT-IN'] == '1'){
434
+ $data = [
435
+ 'email' => $email,
436
+ 'attributes' => $info,
437
+ 'emailBlacklisted' => false,
438
+ 'smsBlacklisted' => false,
439
+ 'listIds' => $listid,
440
+ 'unlinkListIds' => $list_unlink
441
+ ];
442
+ } else {
443
+ $data = [
444
+ 'email' => $email,
445
+ 'attributes' => $info,
446
+ 'emailBlacklisted' => (($user["emailBlacklisted"] == '1') ? $user["emailBlacklisted"] : false),
447
+ 'smsBlacklisted' => false,
448
+ 'listIds' => $listid,
449
+ 'unlinkListIds' => $list_unlink
450
+ ];
451
+ }
452
+ }
453
  $mailin->updateUser($email ,$data );
454
  $exist = $mailin->getLastResponseCode() == 204 ? 'success' : '' ;
455
  } else {
inc/sib-sms-code.php CHANGED
@@ -1,122 +1,122 @@
1
- <?php
2
- /**
3
- * Get SMS country prefix code
4
- *
5
- * @package SIB_SMS_Code
6
- */
7
- if ( !class_exists( 'SIB_SMS_Code' ) ) {
8
- /**
9
- * Class SIB_SMS_Code
10
- */
11
- class SIB_SMS_Code {
12
-
13
- public $smsCode ;
14
-
15
- function __construct()
16
- {
17
- $this->smsCode = array(
18
- 'DZ'=>array('name'=>'ALGERIA','code'=>'213'),
19
- 'AD'=>array('name'=>'ANDORRA','code'=>'376'),
20
- 'AR'=>array('name'=>'ARGENTINA','code'=>'54'),
21
- 'AE'=>array('name'=>'UNITED ARAB EMIRATES','code'=>'971'),
22
- 'AT'=>array('name'=>'AUSTRIA','code'=>'43'),
23
- 'AU'=>array('name'=>'AUSTRALIA','code'=>'61'),
24
- 'BA'=>array('name'=>'BOSNIA AND HERZEGOVINA','code'=>'387'),
25
- 'BD'=>array('name'=>'BANGLADESH','code'=>'880'),
26
- 'BE'=>array('name'=>'BELGIUM','code'=>'32'),
27
- 'BG'=>array('name'=>'BULGARIA','code'=>'359'),
28
- 'BH'=>array('name'=>'BAHRAIN','code'=>'973'),
29
- 'BL'=>array('name'=>'SAINT BARTHELEMY','code'=>'590'),
30
- 'BR'=>array('name'=>'BRAZIL','code'=>'55'),
31
- 'CA'=>array('name'=>'CANADA','code'=>'1'),
32
- 'CH'=>array('name'=>'SWITZERLAND','code'=>'41'),
33
- 'CL'=>array('name'=>'CHILE','code'=>'56'),
34
- 'CN'=>array('name'=>'CHINA','code'=>'86'),
35
- 'CO'=>array('name'=>'COLOMBIA','code'=>'57'),
36
- 'CZ'=>array('name'=>'CZECH REPUBLIC','code'=>'420'),
37
- 'DE'=>array('name'=>'GERMANY','code'=>'49'),
38
- 'DK'=>array('name'=>'DENMARK','code'=>'45'),
39
- 'EC'=>array('name'=>'ECUADOR','code'=>'593'),
40
- 'EE'=>array('name'=>'ESTONIA','code'=>'372'),
41
- 'EG'=>array('name'=>'EGYPT','code'=>'20'),
42
- 'ES'=>array('name'=>'SPAIN','code'=>'34'),
43
- 'FI'=>array('name'=>'FINLAND','code'=>'358'),
44
- 'FR'=>array('name'=>'FRANCE','code'=>'33'),
45
- 'GB'=>array('name'=>'UNITED KINGDOM','code'=>'44'),
46
- 'GE'=>array('name'=>'GEORGIA','code'=>'995'),
47
- 'GR'=>array('name'=>'GREECE','code'=>'30'),
48
- 'HK'=>array('name'=>'HONG KONG','code'=>'852'),
49
- 'HR'=>array('name'=>'CROATIA','code'=>'385'),
50
- 'HT'=>array('name'=>'HAITI','code'=>'509'),
51
- 'HU'=>array('name'=>'HUNGARY','code'=>'36'),
52
- 'ID'=>array('name'=>'INDONESIA','code'=>'62'),
53
- 'IE'=>array('name'=>'IRELAND','code'=>'353'),
54
- 'IL'=>array('name'=>'ISRAEL','code'=>'972'),
55
- 'IN'=>array('name'=>'INDIA','code'=>'91'),
56
- 'IR'=>array('name'=>'IRAN','code'=>'98'),
57
- 'IT'=>array('name'=>'ITALY','code'=>'39'),
58
- 'JM'=>array('name'=>'JAMAICA','code'=>'1'),
59
- 'JO'=>array('name'=>'JORDAN','code'=>'962'),
60
- 'JP'=>array('name'=>'JAPAN','code'=>'81'),
61
- 'KM'=>array('name'=>'COMOROS','code'=>'269'),
62
- 'LB'=>array('name'=>'LEBANON','code'=>'961'),
63
- 'LK'=>array('name'=>'SRI LANKA','code'=>'94'),
64
- 'LT'=>array('name'=>'LITHUANIA','code'=>'370'),
65
- 'LU'=>array('name'=>'LUXEMBOURG','code'=>'352'),
66
- 'LV'=>array('name'=>'LATVIA','code'=>'371'),
67
- 'MA'=>array('name'=>'MOROCCO','code'=>'212'),
68
- 'MG'=>array('name'=>'MADAGASCAR','code'=>'261'),
69
- 'MT'=>array('name'=>'MALTA','code'=>'356'),
70
- 'MU'=>array('name'=>'MAURITIUS','code'=>'230'),
71
- 'MX'=>array('name'=>'MEXICO','code'=>'52'),
72
- 'MY'=>array('name'=>'MALAYSIA','code'=>'60'),
73
- 'NC'=>array('name'=>'NEW CALEDONIA','code'=>'687'),
74
- 'NG'=>array('name'=>'NIGERIA','code'=>'234'),
75
- 'NI'=>array('name'=>'NICARAGUA','code'=>'505'),
76
- 'NL'=>array('name'=>'NETHERLANDS','code'=>'31'),
77
- 'NO'=>array('name'=>'NORWAY','code'=>'47'),
78
- 'NP'=>array('name'=>'NEPAL','code'=>'977'),
79
- 'NZ'=>array('name'=>'NEW ZEALAND','code'=>'64'),
80
- 'PA'=>array('name'=>'PANAMA','code'=>'507'),
81
- 'PE'=>array('name'=>'PERU','code'=>'51'),
82
- 'PF'=>array('name'=>'FRENCH POLYNESIA','code'=>'689'),
83
- 'PG'=>array('name'=>'PAPUA NEW GUINEA','code'=>'675'),
84
- 'PH'=>array('name'=>'PHILIPPINES','code'=>'63'),
85
- 'PK'=>array('name'=>'PAKISTAN','code'=>'92'),
86
- 'PL'=>array('name'=>'POLAND','code'=>'48'),
87
- 'PM'=>array('name'=>'SAINT PIERRE AND MIQUELON','code'=>'508'),
88
- 'PR'=>array('name'=>'PUERTO RICO','code'=>'1'),
89
- 'PT'=>array('name'=>'PORTUGAL','code'=>'351'),
90
- 'PY'=>array('name'=>'PARAGUAY','code'=>'595'),
91
- 'QA'=>array('name'=>'QATAR','code'=>'974'),
92
- 'RO'=>array('name'=>'ROMANIA','code'=>'40'),
93
- 'RU'=>array('name'=>'RUSSIA','code'=>'7'),
94
- 'SE'=>array('name'=>'SWEDEN','code'=>'46'),
95
- 'SG'=>array('name'=>'SINGAPORE','code'=>'65'),
96
- 'SI'=>array('name'=>'SLOVENIA','code'=>'386'),
97
- 'SK'=>array('name'=>'SLOVAKIA','code'=>'421'),
98
- 'TH'=>array('name'=>'THAILAND','code'=>'66'),
99
- 'TN'=>array('name'=>'TUNISIA','code'=>'216'),
100
- 'TR'=>array('name'=>'TURKEY','code'=>'90'),
101
- 'TW'=>array('name'=>'TAIWAN','code'=>'886'),
102
- 'UA'=>array('name'=>'UKRAINE','code'=>'380'),
103
- 'UG'=>array('name'=>'UGANDA','code'=>'256'),
104
- 'US'=>array('name'=>'UNITED STATES','code'=>'1'),
105
- 'UY'=>array('name'=>'URUGUAY','code'=>'598'),
106
- 'VE'=>array('name'=>'VENEZUELA','code'=>'58'),
107
- 'VN'=>array('name'=>'VIET NAM','code'=>'84'),
108
- 'WF'=>array('name'=>'WALLIS AND FUTUNA','code'=>'681'),
109
- 'YT'=>array('name'=>'MAYOTTE','code'=>'262'),
110
- 'ZA'=>array('name'=>'SOUTH AFRICA','code'=>'27'),
111
- );
112
- }
113
-
114
- /**
115
- * Get sms code lists.
116
- * @return array
117
- */
118
- public function get_sms_code_list(){
119
- return $this->smsCode;
120
- }
121
- }
122
  }
1
+ <?php
2
+ /**
3
+ * Get SMS country prefix code
4
+ *
5
+ * @package SIB_SMS_Code
6
+ */
7
+ if ( !class_exists( 'SIB_SMS_Code' ) ) {
8
+ /**
9
+ * Class SIB_SMS_Code
10
+ */
11
+ class SIB_SMS_Code {
12
+
13
+ public $smsCode ;
14
+
15
+ function __construct()
16
+ {
17
+ $this->smsCode = array(
18
+ 'DZ'=>array('name'=>'ALGERIA','code'=>'213'),
19
+ 'AD'=>array('name'=>'ANDORRA','code'=>'376'),
20
+ 'AR'=>array('name'=>'ARGENTINA','code'=>'54'),
21
+ 'AE'=>array('name'=>'UNITED ARAB EMIRATES','code'=>'971'),
22
+ 'AT'=>array('name'=>'AUSTRIA','code'=>'43'),
23
+ 'AU'=>array('name'=>'AUSTRALIA','code'=>'61'),
24
+ 'BA'=>array('name'=>'BOSNIA AND HERZEGOVINA','code'=>'387'),
25
+ 'BD'=>array('name'=>'BANGLADESH','code'=>'880'),
26
+ 'BE'=>array('name'=>'BELGIUM','code'=>'32'),
27
+ 'BG'=>array('name'=>'BULGARIA','code'=>'359'),
28
+ 'BH'=>array('name'=>'BAHRAIN','code'=>'973'),
29
+ 'BL'=>array('name'=>'SAINT BARTHELEMY','code'=>'590'),
30
+ 'BR'=>array('name'=>'BRAZIL','code'=>'55'),
31
+ 'CA'=>array('name'=>'CANADA','code'=>'1'),
32
+ 'CH'=>array('name'=>'SWITZERLAND','code'=>'41'),
33
+ 'CL'=>array('name'=>'CHILE','code'=>'56'),
34
+ 'CN'=>array('name'=>'CHINA','code'=>'86'),
35
+ 'CO'=>array('name'=>'COLOMBIA','code'=>'57'),
36
+ 'CZ'=>array('name'=>'CZECH REPUBLIC','code'=>'420'),
37
+ 'DE'=>array('name'=>'GERMANY','code'=>'49'),
38
+ 'DK'=>array('name'=>'DENMARK','code'=>'45'),
39
+ 'EC'=>array('name'=>'ECUADOR','code'=>'593'),
40
+ 'EE'=>array('name'=>'ESTONIA','code'=>'372'),
41
+ 'EG'=>array('name'=>'EGYPT','code'=>'20'),
42
+ 'ES'=>array('name'=>'SPAIN','code'=>'34'),
43
+ 'FI'=>array('name'=>'FINLAND','code'=>'358'),
44
+ 'FR'=>array('name'=>'FRANCE','code'=>'33'),
45
+ 'GB'=>array('name'=>'UNITED KINGDOM','code'=>'44'),
46
+ 'GE'=>array('name'=>'GEORGIA','code'=>'995'),
47
+ 'GR'=>array('name'=>'GREECE','code'=>'30'),
48
+ 'HK'=>array('name'=>'HONG KONG','code'=>'852'),
49
+ 'HR'=>array('name'=>'CROATIA','code'=>'385'),
50
+ 'HT'=>array('name'=>'HAITI','code'=>'509'),
51
+ 'HU'=>array('name'=>'HUNGARY','code'=>'36'),
52
+ 'ID'=>array('name'=>'INDONESIA','code'=>'62'),
53
+ 'IE'=>array('name'=>'IRELAND','code'=>'353'),
54
+ 'IL'=>array('name'=>'ISRAEL','code'=>'972'),
55
+ 'IN'=>array('name'=>'INDIA','code'=>'91'),
56
+ 'IR'=>array('name'=>'IRAN','code'=>'98'),
57
+ 'IT'=>array('name'=>'ITALY','code'=>'39'),
58
+ 'JM'=>array('name'=>'JAMAICA','code'=>'1'),
59
+ 'JO'=>array('name'=>'JORDAN','code'=>'962'),
60
+ 'JP'=>array('name'=>'JAPAN','code'=>'81'),
61
+ 'KM'=>array('name'=>'COMOROS','code'=>'269'),
62
+ 'LB'=>array('name'=>'LEBANON','code'=>'961'),
63
+ 'LK'=>array('name'=>'SRI LANKA','code'=>'94'),
64
+ 'LT'=>array('name'=>'LITHUANIA','code'=>'370'),
65
+ 'LU'=>array('name'=>'LUXEMBOURG','code'=>'352'),
66
+ 'LV'=>array('name'=>'LATVIA','code'=>'371'),
67
+ 'MA'=>array('name'=>'MOROCCO','code'=>'212'),
68
+ 'MG'=>array('name'=>'MADAGASCAR','code'=>'261'),
69
+ 'MT'=>array('name'=>'MALTA','code'=>'356'),
70
+ 'MU'=>array('name'=>'MAURITIUS','code'=>'230'),
71
+ 'MX'=>array('name'=>'MEXICO','code'=>'52'),
72
+ 'MY'=>array('name'=>'MALAYSIA','code'=>'60'),
73
+ 'NC'=>array('name'=>'NEW CALEDONIA','code'=>'687'),
74
+ 'NG'=>array('name'=>'NIGERIA','code'=>'234'),
75
+ 'NI'=>array('name'=>'NICARAGUA','code'=>'505'),
76
+ 'NL'=>array('name'=>'NETHERLANDS','code'=>'31'),
77
+ 'NO'=>array('name'=>'NORWAY','code'=>'47'),
78
+ 'NP'=>array('name'=>'NEPAL','code'=>'977'),
79
+ 'NZ'=>array('name'=>'NEW ZEALAND','code'=>'64'),
80
+ 'PA'=>array('name'=>'PANAMA','code'=>'507'),
81
+ 'PE'=>array('name'=>'PERU','code'=>'51'),
82
+ 'PF'=>array('name'=>'FRENCH POLYNESIA','code'=>'689'),
83
+ 'PG'=>array('name'=>'PAPUA NEW GUINEA','code'=>'675'),
84
+ 'PH'=>array('name'=>'PHILIPPINES','code'=>'63'),
85
+ 'PK'=>array('name'=>'PAKISTAN','code'=>'92'),
86
+ 'PL'=>array('name'=>'POLAND','code'=>'48'),
87
+ 'PM'=>array('name'=>'SAINT PIERRE AND MIQUELON','code'=>'508'),
88
+ 'PR'=>array('name'=>'PUERTO RICO','code'=>'1'),
89
+ 'PT'=>array('name'=>'PORTUGAL','code'=>'351'),
90
+ 'PY'=>array('name'=>'PARAGUAY','code'=>'595'),
91
+ 'QA'=>array('name'=>'QATAR','code'=>'974'),
92
+ 'RO'=>array('name'=>'ROMANIA','code'=>'40'),
93
+ 'RU'=>array('name'=>'RUSSIA','code'=>'7'),
94
+ 'SE'=>array('name'=>'SWEDEN','code'=>'46'),
95
+ 'SG'=>array('name'=>'SINGAPORE','code'=>'65'),
96
+ 'SI'=>array('name'=>'SLOVENIA','code'=>'386'),
97
+ 'SK'=>array('name'=>'SLOVAKIA','code'=>'421'),
98
+ 'TH'=>array('name'=>'THAILAND','code'=>'66'),
99
+ 'TN'=>array('name'=>'TUNISIA','code'=>'216'),
100
+ 'TR'=>array('name'=>'TURKEY','code'=>'90'),
101
+ 'TW'=>array('name'=>'TAIWAN','code'=>'886'),
102
+ 'UA'=>array('name'=>'UKRAINE','code'=>'380'),
103
+ 'UG'=>array('name'=>'UGANDA','code'=>'256'),
104
+ 'US'=>array('name'=>'UNITED STATES','code'=>'1'),
105
+ 'UY'=>array('name'=>'URUGUAY','code'=>'598'),
106
+ 'VE'=>array('name'=>'VENEZUELA','code'=>'58'),
107
+ 'VN'=>array('name'=>'VIET NAM','code'=>'84'),
108
+ 'WF'=>array('name'=>'WALLIS AND FUTUNA','code'=>'681'),
109
+ 'YT'=>array('name'=>'MAYOTTE','code'=>'262'),
110
+ 'ZA'=>array('name'=>'SOUTH AFRICA','code'=>'27'),
111
+ );
112
+ }
113
+
114
+ /**
115
+ * Get sms code lists.
116
+ * @return array
117
+ */
118
+ public function get_sms_code_list(){
119
+ return $this->smsCode;
120
+ }
121
+ }
122
  }
inc/templates/confirm/index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;
inc/templates/confirm/temp.html CHANGED
@@ -1,58 +1,58 @@
1
- <body style="margin:0; padding:0;">
2
- <table style="background-color:#ffffff" cellpadding="0" cellspacing="0" border="0" width="100%">
3
- <tbody>
4
- <tr style="border-collapse:collapse;">
5
- <td style="border-collapse:collapse;" align="center">
6
- <table cellpadding="0" cellspacing="0" border="0" width="540">
7
- <tbody>
8
- <tr>
9
- <td style="line-height:0; font-size:0;" height="20"></td>
10
- </tr>
11
- </tbody>
12
- </table>
13
- <table cellpadding="0" cellspacing="0" border="0" width="540">
14
- <tbody>
15
- <tr>
16
- <td style="line-height:0; font-size:0;" height="20">
17
- <div style="font-family:arial,sans-serif; color:#61a6f3; font-size:20px; font-weight:bold; line-height:28px;">
18
- Thank you for subscribing</div>
19
- </td>
20
- </tr>
21
- </tbody>
22
- </table>
23
- <table cellpadding="0" cellspacing="0" border="0" width="540">
24
- <tbody>
25
- <tr>
26
- <td style="line-height:0; font-size:0;" height="20"></td>
27
- </tr>
28
- </tbody>
29
- </table>
30
- <table cellpadding="0" cellspacing="0" border="0" width="540">
31
- <tbody>
32
- <tr>
33
- <td align="left">
34
-
35
- <div style="font-family:arial,sans-serif; font-size:14px; margin:0; line-height:24px; color:#555555;">
36
- <br>
37
- You have just subscribed to the newsletter of {site_domain}.<br>
38
- <br>
39
- If at any time you wish to stop receiving our emails, you can <a href="[UNSUBSCRIBE]" title="Unsubscribe from the newsletter">unsubscribe here</a>.<br>
40
- <br>
41
- -Sendinblue</div>
42
- </td>
43
- </tr>
44
- </tbody>
45
- </table>
46
- <table cellpadding="0" cellspacing="0" border="0" width="540">
47
- <tbody>
48
- <tr>
49
- <td style="line-height:0; font-size:0;" height="20">
50
- </td>
51
- </tr>
52
- </tbody>
53
- </table>
54
- </td>
55
- </tr>
56
- </tbody>
57
- </table>
58
- </body>
1
+ <body style="margin:0; padding:0;">
2
+ <table style="background-color:#ffffff" cellpadding="0" cellspacing="0" border="0" width="100%">
3
+ <tbody>
4
+ <tr style="border-collapse:collapse;">
5
+ <td style="border-collapse:collapse;" align="center">
6
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
7
+ <tbody>
8
+ <tr>
9
+ <td style="line-height:0; font-size:0;" height="20"></td>
10
+ </tr>
11
+ </tbody>
12
+ </table>
13
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
14
+ <tbody>
15
+ <tr>
16
+ <td style="line-height:0; font-size:0;" height="20">
17
+ <div style="font-family:arial,sans-serif; color:#61a6f3; font-size:20px; font-weight:bold; line-height:28px;">
18
+ Thank you for subscribing</div>
19
+ </td>
20
+ </tr>
21
+ </tbody>
22
+ </table>
23
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
24
+ <tbody>
25
+ <tr>
26
+ <td style="line-height:0; font-size:0;" height="20"></td>
27
+ </tr>
28
+ </tbody>
29
+ </table>
30
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
31
+ <tbody>
32
+ <tr>
33
+ <td align="left">
34
+
35
+ <div style="font-family:arial,sans-serif; font-size:14px; margin:0; line-height:24px; color:#555555;">
36
+ <br>
37
+ You have just subscribed to the newsletter of {site_domain}.<br>
38
+ <br>
39
+ If at any time you wish to stop receiving our emails, you can <a href="[UNSUBSCRIBE]" title="Unsubscribe from the newsletter">unsubscribe here</a>.<br>
40
+ <br>
41
+ -Sendinblue</div>
42
+ </td>
43
+ </tr>
44
+ </tbody>
45
+ </table>
46
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
47
+ <tbody>
48
+ <tr>
49
+ <td style="line-height:0; font-size:0;" height="20">
50
+ </td>
51
+ </tr>
52
+ </tbody>
53
+ </table>
54
+ </td>
55
+ </tr>
56
+ </tbody>
57
+ </table>
58
+ </body>
inc/templates/confirm/temp_fr-FR.html CHANGED
@@ -1,59 +1,59 @@
1
- <meta charset="UTF-8">
2
- <body style="margin:0; padding:0;">
3
- <table style="background-color:#ffffff" cellpadding="0" cellspacing="0" border="0" width="100%">
4
- <tbody>
5
- <tr style="border-collapse:collapse;">
6
- <td style="border-collapse:collapse;" align="center">
7
- <table cellpadding="0" cellspacing="0" border="0" width="540">
8
- <tbody>
9
- <tr>
10
- <td style="line-height:0; font-size:0;" height="20"></td>
11
- </tr>
12
- </tbody>
13
- </table>
14
- <table cellpadding="0" cellspacing="0" border="0" width="540">
15
- <tbody>
16
- <tr>
17
- <td style="line-height:0; font-size:0;" height="20">
18
- <div style="font-family:arial,sans-serif; color:#61a6f3; font-size:20px; font-weight:bold; line-height:28px;">
19
- Merci pour votre inscription</div>
20
- </td>
21
- </tr>
22
- </tbody>
23
- </table>
24
- <table cellpadding="0" cellspacing="0" border="0" width="540">
25
- <tbody>
26
- <tr>
27
- <td style="line-height:0; font-size:0;" height="20"></td>
28
- </tr>
29
- </tbody>
30
- </table>
31
- <table cellpadding="0" cellspacing="0" border="0" width="540">
32
- <tbody>
33
- <tr>
34
- <td align="left">
35
-
36
- <div style="font-family:arial,sans-serif; font-size:14px; margin:0; line-height:24px; color:#555555;">
37
- <br>
38
- Vous venez de vous inscrire à la newsletter de {site_domain}.<br>
39
- <br>
40
- Si vous souhaitez ne plus recevoir nos emails, vous pouvez <a href="[UNSUBSCRIBE]" title="Se désinscire">vous désinscrire ici</a>.<br>
41
- <br>
42
- -Sendinblue</div>
43
- </td>
44
- </tr>
45
- </tbody>
46
- </table>
47
- <table cellpadding="0" cellspacing="0" border="0" width="540">
48
- <tbody>
49
- <tr>
50
- <td style="line-height:0; font-size:0;" height="20">
51
- </td>
52
- </tr>
53
- </tbody>
54
- </table>
55
- </td>
56
- </tr>
57
- </tbody>
58
- </table>
59
- </body>
1
+ <meta charset="UTF-8">
2
+ <body style="margin:0; padding:0;">
3
+ <table style="background-color:#ffffff" cellpadding="0" cellspacing="0" border="0" width="100%">
4
+ <tbody>
5
+ <tr style="border-collapse:collapse;">
6
+ <td style="border-collapse:collapse;" align="center">
7
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
8
+ <tbody>
9
+ <tr>
10
+ <td style="line-height:0; font-size:0;" height="20"></td>
11
+ </tr>
12
+ </tbody>
13
+ </table>
14
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
15
+ <tbody>
16
+ <tr>
17
+ <td style="line-height:0; font-size:0;" height="20">
18
+ <div style="font-family:arial,sans-serif; color:#61a6f3; font-size:20px; font-weight:bold; line-height:28px;">
19
+ Merci pour votre inscription</div>
20
+ </td>
21
+ </tr>
22
+ </tbody>
23
+ </table>
24
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
25
+ <tbody>
26
+ <tr>
27
+ <td style="line-height:0; font-size:0;" height="20"></td>
28
+ </tr>
29
+ </tbody>
30
+ </table>
31
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
32
+ <tbody>
33
+ <tr>
34
+ <td align="left">
35
+
36
+ <div style="font-family:arial,sans-serif; font-size:14px; margin:0; line-height:24px; color:#555555;">
37
+ <br>
38
+ Vous venez de vous inscrire à la newsletter de {site_domain}.<br>
39
+ <br>
40
+ Si vous souhaitez ne plus recevoir nos emails, vous pouvez <a href="[UNSUBSCRIBE]" title="Se désinscire">vous désinscrire ici</a>.<br>
41
+ <br>
42
+ -Sendinblue</div>
43
+ </td>
44
+ </tr>
45
+ </tbody>
46
+ </table>
47
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
48
+ <tbody>
49
+ <tr>
50
+ <td style="line-height:0; font-size:0;" height="20">
51
+ </td>
52
+ </tr>
53
+ </tbody>
54
+ </table>
55
+ </td>
56
+ </tr>
57
+ </tbody>
58
+ </table>
59
+ </body>
inc/templates/double-optin/index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;
inc/templates/double-optin/temp.html CHANGED
@@ -1,62 +1,62 @@
1
- <body style="margin:0; padding:0;">
2
- <table style="background-color:#ffffff" cellpadding="0" cellspacing="0" border="0" width="100%">
3
- <tbody>
4
- <tr style="border-collapse:collapse;">
5
- <td style="border-collapse:collapse;" align="center">
6
- <table cellpadding="0" cellspacing="0" border="0" width="540">
7
- <tbody>
8
- <tr>
9
- <td style="line-height:0; font-size:0;" height="20"></td>
10
- </tr>
11
- </tbody>
12
- </table>
13
- <table cellpadding="0" cellspacing="0" border="0" width="540">
14
- <tbody>
15
- <tr>
16
- <td style="line-height:0; font-size:0;" height="20">
17
- <div style="font-family:arial,sans-serif; color:#61a6f3; font-size:20px; font-weight:bold; line-height:28px;">
18
- Please confirm your subscription</div>
19
- </td>
20
- </tr>
21
- </tbody>
22
- </table>
23
- <table cellpadding="0" cellspacing="0" border="0" width="540">
24
- <tbody>
25
- <tr>
26
- <td style="line-height:0; font-size:0;" height="20"></td>
27
- </tr>
28
- </tbody>
29
- </table>
30
- <table cellpadding="0" cellspacing="0" border="0" width="540">
31
- <tbody>
32
- <tr>
33
- <td align="left">
34
-
35
- <div style="font-family:arial,sans-serif; font-size:14px; margin:0; line-height:24px; color:#555555;">
36
- <br>
37
- Do you want to receive newsletters from {site_domain} ?<br>
38
- <br>
39
- <a href="{subscribe_url}" style="color:#ffffff;display:inline-block;font-family:Arial,sans-serif;width:auto;white-space:nowrap;min-height:32px;margin:5px 5px 0 0;padding:0 22px;text-decoration:none;text-align:center;font-weight:bold;font-style:normal;font-size:15px;line-height:32px;border:0;border-radius:4px;vertical-align:top;background-color:#3276b1" target="_blank">
40
- <span style="display:inline;font-family:Arial,sans-serif;text-decoration:none;font-weight:bold;font-style:normal;font-size:15px;line-height:32px;border:none;background-color:#3276b1;color:#ffffff">Yes, subscribe me to this list.</span></a>
41
- <br>
42
- <br>
43
- If you received this email by mistake, simply delete it. You will not be subscribed to this list if you don't click the confirmation link above.
44
- <br><br>
45
- -Sendinblue</div>
46
- </td>
47
- </tr>
48
- </tbody>
49
- </table>
50
- <table cellpadding="0" cellspacing="0" border="0" width="540">
51
- <tbody>
52
- <tr>
53
- <td style="line-height:0; font-size:0;" height="20">
54
- </td>
55
- </tr>
56
- </tbody>
57
- </table>
58
- </td>
59
- </tr>
60
- </tbody>
61
- </table>
62
- </body>
1
+ <body style="margin:0; padding:0;">
2
+ <table style="background-color:#ffffff" cellpadding="0" cellspacing="0" border="0" width="100%">
3
+ <tbody>
4
+ <tr style="border-collapse:collapse;">
5
+ <td style="border-collapse:collapse;" align="center">
6
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
7
+ <tbody>
8
+ <tr>
9
+ <td style="line-height:0; font-size:0;" height="20"></td>
10
+ </tr>
11
+ </tbody>
12
+ </table>
13
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
14
+ <tbody>
15
+ <tr>
16
+ <td style="line-height:0; font-size:0;" height="20">
17
+ <div style="font-family:arial,sans-serif; color:#61a6f3; font-size:20px; font-weight:bold; line-height:28px;">
18
+ Please confirm your subscription</div>
19
+ </td>
20
+ </tr>
21
+ </tbody>
22
+ </table>
23
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
24
+ <tbody>
25
+ <tr>
26
+ <td style="line-height:0; font-size:0;" height="20"></td>
27
+ </tr>
28
+ </tbody>
29
+ </table>
30
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
31
+ <tbody>
32
+ <tr>
33
+ <td align="left">
34
+
35
+ <div style="font-family:arial,sans-serif; font-size:14px; margin:0; line-height:24px; color:#555555;">
36
+ <br>
37
+ Do you want to receive newsletters from {site_domain} ?<br>
38
+ <br>
39
+ <a href="{subscribe_url}" style="color:#ffffff;display:inline-block;font-family:Arial,sans-serif;width:auto;white-space:nowrap;min-height:32px;margin:5px 5px 0 0;padding:0 22px;text-decoration:none;text-align:center;font-weight:bold;font-style:normal;font-size:15px;line-height:32px;border:0;border-radius:4px;vertical-align:top;background-color:#3276b1" target="_blank">
40
+ <span style="display:inline;font-family:Arial,sans-serif;text-decoration:none;font-weight:bold;font-style:normal;font-size:15px;line-height:32px;border:none;background-color:#3276b1;color:#ffffff">Yes, subscribe me to this list.</span></a>
41
+ <br>
42
+ <br>
43
+ If you received this email by mistake, simply delete it. You will not be subscribed to this list if you don't click the confirmation link above.
44
+ <br><br>
45
+ -Sendinblue</div>
46
+ </td>
47
+ </tr>
48
+ </tbody>
49
+ </table>
50
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
51
+ <tbody>
52
+ <tr>
53
+ <td style="line-height:0; font-size:0;" height="20">
54
+ </td>
55
+ </tr>
56
+ </tbody>
57
+ </table>
58
+ </td>
59
+ </tr>
60
+ </tbody>
61
+ </table>
62
+ </body>
inc/templates/double-optin/temp_fr-FR.html CHANGED
@@ -1,63 +1,63 @@
1
- <meta charset="UTF-8">
2
- <body style="margin:0; padding:0;">
3
- <table style="background-color:#ffffff" cellpadding="0" cellspacing="0" border="0" width="100%">
4
- <tbody>
5
- <tr style="border-collapse:collapse;">
6
- <td style="border-collapse:collapse;" align="center">
7
- <table cellpadding="0" cellspacing="0" border="0" width="540">
8
- <tbody>
9
- <tr>
10
- <td style="line-height:0; font-size:0;" height="20"></td>
11
- </tr>
12
- </tbody>
13
- </table>
14
- <table cellpadding="0" cellspacing="0" border="0" width="540">
15
- <tbody>
16
- <tr>
17
- <td style="line-height:0; font-size:0;" height="20">
18
- <div style="font-family:arial,sans-serif; color:#61a6f3; font-size:20px; font-weight:bold; line-height:28px;">
19
- Confirmez votre inscription</div>
20
- </td>
21
- </tr>
22
- </tbody>
23
- </table>
24
- <table cellpadding="0" cellspacing="0" border="0" width="540">
25
- <tbody>
26
- <tr>
27
- <td style="line-height:0; font-size:0;" height="20"></td>
28
- </tr>
29
- </tbody>
30
- </table>
31
- <table cellpadding="0" cellspacing="0" border="0" width="540">
32
- <tbody>
33
- <tr>
34
- <td align="left">
35
-
36
- <div style="font-family:arial,sans-serif; font-size:14px; margin:0; line-height:24px; color:#555555;">
37
- <br>
38
- Voulez vous recevoir les newsletters de {site_domain} ?<br>
39
- <br>
40
- <a href="{subscribe_url}" style="color:#ffffff;display:inline-block;font-family:Arial,sans-serif;width:auto;white-space:nowrap;min-height:32px;margin:5px 5px 0 0;padding:0 22px;text-decoration:none;text-align:center;font-weight:bold;font-style:normal;font-size:15px;line-height:32px;border:0;border-radius:4px;vertical-align:top;background-color:#3276b1" target="_blank">
41
- <span style="display:inline;font-family:Arial,sans-serif;text-decoration:none;font-weight:bold;font-style:normal;font-size:15px;line-height:32px;border:none;background-color:#3276b1;color:#ffffff">Yes, subscribe me to this list.</span></a>
42
- <br>
43
- <br>
44
- Si vous recevez cet email par erreur, vous pouvez simplement le supprimer. Vous ne serez pas inscrit à la newsletter si vous ne cliquez pas sur le lien de confirmation ci-dessus.
45
- <br><br>
46
- -Sendinblue</div>
47
- </td>
48
- </tr>
49
- </tbody>
50
- </table>
51
- <table cellpadding="0" cellspacing="0" border="0" width="540">
52
- <tbody>
53
- <tr>
54
- <td style="line-height:0; font-size:0;" height="20">
55
- </td>
56
- </tr>
57
- </tbody>
58
- </table>
59
- </td>
60
- </tr>
61
- </tbody>
62
- </table>
63
- </body>
1
+ <meta charset="UTF-8">
2
+ <body style="margin:0; padding:0;">
3
+ <table style="background-color:#ffffff" cellpadding="0" cellspacing="0" border="0" width="100%">
4
+ <tbody>
5
+ <tr style="border-collapse:collapse;">
6
+ <td style="border-collapse:collapse;" align="center">
7
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
8
+ <tbody>
9
+ <tr>
10
+ <td style="line-height:0; font-size:0;" height="20"></td>
11
+ </tr>
12
+ </tbody>
13
+ </table>
14
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
15
+ <tbody>
16
+ <tr>
17
+ <td style="line-height:0; font-size:0;" height="20">
18
+ <div style="font-family:arial,sans-serif; color:#61a6f3; font-size:20px; font-weight:bold; line-height:28px;">
19
+ Confirmez votre inscription</div>
20
+ </td>
21
+ </tr>
22
+ </tbody>
23
+ </table>
24
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
25
+ <tbody>
26
+ <tr>
27
+ <td style="line-height:0; font-size:0;" height="20"></td>
28
+ </tr>
29
+ </tbody>
30
+ </table>
31
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
32
+ <tbody>
33
+ <tr>
34
+ <td align="left">
35
+
36
+ <div style="font-family:arial,sans-serif; font-size:14px; margin:0; line-height:24px; color:#555555;">
37
+ <br>
38
+ Voulez vous recevoir les newsletters de {site_domain} ?<br>
39
+ <br>
40
+ <a href="{subscribe_url}" style="color:#ffffff;display:inline-block;font-family:Arial,sans-serif;width:auto;white-space:nowrap;min-height:32px;margin:5px 5px 0 0;padding:0 22px;text-decoration:none;text-align:center;font-weight:bold;font-style:normal;font-size:15px;line-height:32px;border:0;border-radius:4px;vertical-align:top;background-color:#3276b1" target="_blank">
41
+ <span style="display:inline;font-family:Arial,sans-serif;text-decoration:none;font-weight:bold;font-style:normal;font-size:15px;line-height:32px;border:none;background-color:#3276b1;color:#ffffff">Yes, subscribe me to this list.</span></a>
42
+ <br>
43
+ <br>
44
+ Si vous recevez cet email par erreur, vous pouvez simplement le supprimer. Vous ne serez pas inscrit à la newsletter si vous ne cliquez pas sur le lien de confirmation ci-dessus.
45
+ <br><br>
46
+ -Sendinblue</div>
47
+ </td>
48
+ </tr>
49
+ </tbody>
50
+ </table>
51
+ <table cellpadding="0" cellspacing="0" border="0" width="540">
52
+ <tbody>
53
+ <tr>
54
+ <td style="line-height:0; font-size:0;" height="20">
55
+ </td>
56
+ </tr>
57
+ </tbody>
58
+ </table>
59
+ </td>
60
+ </tr>
61
+ </tbody>
62
+ </table>
63
+ </body>
inc/templates/double-optin/temp_fr-FR.txt CHANGED
@@ -1 +1 @@
1
- Si vous recevez cet email par erreur, vous pouvez simplement le supprimer. Vous ne serez pas inscrit à la newsletter si vous ne cliquez pas sur le lien de confirmation ci-dessus. -Sendinblue
1
+ Si vous recevez cet email par erreur, vous pouvez simplement le supprimer. Vous ne serez pas inscrit à la newsletter si vous ne cliquez pas sur le lien de confirmation ci-dessus. -Sendinblue
inc/templates/index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;
inc/templates/test/index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;
inc/templates/test/temp.html CHANGED
@@ -1,155 +1,155 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
- <title>{title}</title>
6
- </head>
7
- <body style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #222;">
8
- <div class="moz-forward-container">
9
- <br>
10
- <table style="background-color:#ffffff" width="100%" border="0"
11
- cellpadding="0" cellspacing="0">
12
- <tbody>
13
- <tr style="border-collapse:collapse;">
14
- <td style="border-collapse:collapse;" align="center">
15
- <table width="570" border="0" cellpadding="0"
16
- cellspacing="0">
17
- <tbody>
18
- <tr>
19
- <td style="line-height:0; font-size:0;" height="20"><img src="{shop_logo}" alt="{shop_name}" width="0" height="0"/></td>
20
- </tr>
21
- </tbody>
22
- </table>
23
- <table width="570" border="0" cellpadding="0"
24
- cellspacing="0">
25
- <tbody>
26
- <tr>
27
- <td align="" valign="middle">
28
- <h1 style="margin:0;color:#2f8bee;font-family:arial,sans-serif">
29
- <img alt="Sendinblue" src="http://img.sendinblue.com/14406/images/529f2339c6ece.png"></h1>
30
- </td>
31
- </tr>
32
- </tbody>
33
- </table>
34
- <table width="570" border="0" cellpadding="0"
35
- cellspacing="0">
36
- <tbody>
37
- <tr>
38
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
39
- </tr>
40
- </tbody>
41
- </table>
42
- <table width="540" border="0" cellpadding="0"
43
- cellspacing="0">
44
- <tbody>
45
- <tr>
46
- <td align="left">
47
- <div style="font-family:arial,sans-serif;
48
- color:#2f8bee; font-size:18px; font-weight:bold;
49
- margin:0 0 10px 0;">This email has been sent using Sendinblue SMTP. <br />
50
- Congratulations, your Sendinblue SMTP module has been set up well.
51
- </div>
52
- </td>
53
- </tr>
54
- </tbody>
55
- </table>
56
- <table width="570" border="0" cellpadding="0"
57
- cellspacing="0">
58
- <tbody>
59
- <tr>
60
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
61
- </tr>
62
- <tr>
63
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
64
- </tr>
65
- </tbody>
66
- </table>
67
- <table width="540" border="0" cellpadding="0"
68
- cellspacing="0">
69
- <tbody>
70
- <tr>
71
- <td align="right">
72
- <div style="font-family:arial,sans-serif;
73
- font-size:14px; color:#2f8bee; margin:0;
74
- font-weight:bold; line-height:18px;"> Sendinblue Team</div>
75
- </td>
76
- </tr>
77
- </tbody>
78
- </table>
79
- <table width="570" border="0" cellpadding="0"
80
- cellspacing="0">
81
- <tbody>
82
- <tr>
83
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
84
- </tr>
85
- </tbody>
86
- </table>
87
- <table width="570" border="0" cellpadding="0"
88
- cellspacing="0">
89
- <tbody>
90
- <tr>
91
- <td style="line-height:0; font-size:0;" height="10">&nbsp;</td>
92
- </tr>
93
- </tbody>
94
- </table>
95
- <table width="570" border="0" cellpadding="0"
96
- cellspacing="0">
97
- <tbody>
98
- <tr>
99
- <td style="font-family:arial,sans-serif;"
100
- align="center"><hr /></td>
101
- </tr>
102
- </tbody>
103
- </table>
104
- <table width="540" border="0" cellpadding="0"
105
- cellspacing="0">
106
- <tbody>
107
- <tr>
108
- <td style="line-height:0; font-size:0;" height="10">&nbsp;</td>
109
- </tr>
110
- <tr>
111
- <td align="left" valign="top" width="200">
112
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
113
- <strong style="color:#2f8bee;">Sendinblue</strong></div>
114
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
115
- 118, rue de Tocqueville</div>
116
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
117
- 75017 Paris - France</div>
118
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
119
- Tél : 0 899 25 30 61</div>
120
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
121
- <a href="https://www.sendinblue.com" style="color:#2f8bee;" target="_blank">www.sendinblue.com</a></div>
122
- </td>
123
- <td align="right" valign="top">
124
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:20px; color:#7e7e7e;">
125
- <a href="http://www.facebook.com/Sendinblue" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Facebook" src="https://my.sendinblue.com/public/upload/14406/images/523693143fe88.gif" style="border:none;"> </a> <a href="https://twitter.com/Sendinblue" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Twitter" src="https://my.sendinblue.com/public/upload/14406/images/5236931746c01.gif" style="border:none;"> </a> <a href="http://www.linkedin.com/company/mailin" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Linkedin" src="https://my.sendinblue.com/public/upload/14406/images/5236931ad253b.gif" style="border:none;"> </a> <a href="http://sendinblue.tumblr.com/" style="color:#2f8bee; text-decoration:none;" target="_blank">Blog</a></div>
126
- <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;">
127
- © 2013-2014 Sendinblue, all rights reserved.</div>
128
- <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;">
129
- This is an automatic message generated by Sendinblue.</div>
130
- <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;">
131
- Do not respond, you wouldn't receive any answer.</div>
132
- <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"><a href="https://www.sendinblue.com/legal/antispampolicy" style="color:#7e7e7e;" target="_blank">Anti-spam & emailing policy</a> | <a href="https://www.sendinblue.com/legal/generalterms" style="color:#7e7e7e;" target="_blank">General Terms and Conditions</a></div>
133
- </td>
134
- </tr>
135
- </tbody>
136
- </table>
137
- <table width="570" border="0" cellpadding="0"
138
- cellspacing="0">
139
- <tbody>
140
- <tr>
141
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
142
- </tr>
143
- <tr>
144
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
145
- </tr>
146
- </tbody>
147
- </table>
148
- </td>
149
- </tr>
150
- </tbody>
151
- </table>
152
- <br>
153
- </div>
154
- </body>
155
  </html>
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <title>{title}</title>
6
+ </head>
7
+ <body style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #222;">
8
+ <div class="moz-forward-container">
9
+ <br>
10
+ <table style="background-color:#ffffff" width="100%" border="0"
11
+ cellpadding="0" cellspacing="0">
12
+ <tbody>
13
+ <tr style="border-collapse:collapse;">
14
+ <td style="border-collapse:collapse;" align="center">
15
+ <table width="570" border="0" cellpadding="0"
16
+ cellspacing="0">
17
+ <tbody>
18
+ <tr>
19
+ <td style="line-height:0; font-size:0;" height="20"><img src="{shop_logo}" alt="{shop_name}" width="0" height="0"/></td>
20
+ </tr>
21
+ </tbody>
22
+ </table>
23
+ <table width="570" border="0" cellpadding="0"
24
+ cellspacing="0">
25
+ <tbody>
26
+ <tr>
27
+ <td align="" valign="middle">
28
+ <h1 style="margin:0;color:#2f8bee;font-family:arial,sans-serif">
29
+ <img alt="Sendinblue" src="http://img.sendinblue.com/14406/images/529f2339c6ece.png"></h1>
30
+ </td>
31
+ </tr>
32
+ </tbody>
33
+ </table>
34
+ <table width="570" border="0" cellpadding="0"
35
+ cellspacing="0">
36
+ <tbody>
37
+ <tr>
38
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
39
+ </tr>
40
+ </tbody>
41
+ </table>
42
+ <table width="540" border="0" cellpadding="0"
43
+ cellspacing="0">
44
+ <tbody>
45
+ <tr>
46
+ <td align="left">
47
+ <div style="font-family:arial,sans-serif;
48
+ color:#2f8bee; font-size:18px; font-weight:bold;
49
+ margin:0 0 10px 0;">This email has been sent using Sendinblue SMTP. <br />
50
+ Congratulations, your Sendinblue SMTP module has been set up well.
51
+ </div>
52
+ </td>
53
+ </tr>
54
+ </tbody>
55
+ </table>
56
+ <table width="570" border="0" cellpadding="0"
57
+ cellspacing="0">
58
+ <tbody>
59
+ <tr>
60
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
61
+ </tr>
62
+ <tr>
63
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
64
+ </tr>
65
+ </tbody>
66
+ </table>
67
+ <table width="540" border="0" cellpadding="0"
68
+ cellspacing="0">
69
+ <tbody>
70
+ <tr>
71
+ <td align="right">
72
+ <div style="font-family:arial,sans-serif;
73
+ font-size:14px; color:#2f8bee; margin:0;
74
+ font-weight:bold; line-height:18px;"> Sendinblue Team</div>
75
+ </td>
76
+ </tr>
77
+ </tbody>
78
+ </table>
79
+ <table width="570" border="0" cellpadding="0"
80
+ cellspacing="0">
81
+ <tbody>
82
+ <tr>
83
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
84
+ </tr>
85
+ </tbody>
86
+ </table>
87
+ <table width="570" border="0" cellpadding="0"
88
+ cellspacing="0">
89
+ <tbody>
90
+ <tr>
91
+ <td style="line-height:0; font-size:0;" height="10">&nbsp;</td>
92
+ </tr>
93
+ </tbody>
94
+ </table>
95
+ <table width="570" border="0" cellpadding="0"
96
+ cellspacing="0">
97
+ <tbody>
98
+ <tr>
99
+ <td style="font-family:arial,sans-serif;"
100
+ align="center"><hr /></td>
101
+ </tr>
102
+ </tbody>
103
+ </table>
104
+ <table width="540" border="0" cellpadding="0"
105
+ cellspacing="0">
106
+ <tbody>
107
+ <tr>
108
+ <td style="line-height:0; font-size:0;" height="10">&nbsp;</td>
109
+ </tr>
110
+ <tr>
111
+ <td align="left" valign="top" width="200">
112
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
113
+ <strong style="color:#2f8bee;">Sendinblue</strong></div>
114
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
115
+ 118, rue de Tocqueville</div>
116
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
117
+ 75017 Paris - France</div>
118
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
119
+ Tél : 0 899 25 30 61</div>
120
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
121
+ <a href="https://www.sendinblue.com" style="color:#2f8bee;" target="_blank">www.sendinblue.com</a></div>
122
+ </td>
123
+ <td align="right" valign="top">
124
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:20px; color:#7e7e7e;">
125
+ <a href="http://www.facebook.com/Sendinblue" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Facebook" src="https://my.sendinblue.com/public/upload/14406/images/523693143fe88.gif" style="border:none;"> </a> <a href="https://twitter.com/Sendinblue" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Twitter" src="https://my.sendinblue.com/public/upload/14406/images/5236931746c01.gif" style="border:none;"> </a> <a href="http://www.linkedin.com/company/mailin" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Linkedin" src="https://my.sendinblue.com/public/upload/14406/images/5236931ad253b.gif" style="border:none;"> </a> <a href="http://sendinblue.tumblr.com/" style="color:#2f8bee; text-decoration:none;" target="_blank">Blog</a></div>
126
+ <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;">
127
+ © 2013-2014 Sendinblue, all rights reserved.</div>
128
+ <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;">
129
+ This is an automatic message generated by Sendinblue.</div>
130
+ <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;">
131
+ Do not respond, you wouldn't receive any answer.</div>
132
+ <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"><a href="https://www.sendinblue.com/legal/antispampolicy" style="color:#7e7e7e;" target="_blank">Anti-spam & emailing policy</a> | <a href="https://www.sendinblue.com/legal/generalterms" style="color:#7e7e7e;" target="_blank">General Terms and Conditions</a></div>
133
+ </td>
134
+ </tr>
135
+ </tbody>
136
+ </table>
137
+ <table width="570" border="0" cellpadding="0"
138
+ cellspacing="0">
139
+ <tbody>
140
+ <tr>
141
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
142
+ </tr>
143
+ <tr>
144
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
145
+ </tr>
146
+ </tbody>
147
+ </table>
148
+ </td>
149
+ </tr>
150
+ </tbody>
151
+ </table>
152
+ <br>
153
+ </div>
154
+ </body>
155
  </html>
inc/templates/test/temp_fr-FR.html CHANGED
@@ -1,162 +1,162 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml">
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
- <title>{title}</title>
6
- </head>
7
- <body style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #222;">
8
- <div class="moz-forward-container">
9
- <br>
10
- <table style="background-color:#ffffff" width="100%" border="0"
11
- cellpadding="0" cellspacing="0">
12
- <tbody>
13
- <tr style="border-collapse:collapse;">
14
- <td style="border-collapse:collapse;" align="center">
15
- <table width="570" border="0" cellpadding="0"
16
- cellspacing="0">
17
- <tbody>
18
- <tr>
19
- <td style="line-height:0; font-size:0;" height="20"><img src="{shop_logo}" alt="{shop_name}" width="0" height="0"/></td>
20
- </tr>
21
- </tbody>
22
- </table>
23
- <table width="570" border="0" cellpadding="0"
24
- cellspacing="0">
25
- <tbody>
26
- <tr>
27
- <td align="" valign="middle">
28
- <h1 style="margin:0;color:#2f8bee;font-family:arial,sans-serif">
29
- <img alt="Sendinblue" src="http://img.sendinblue.com/14406/images/529f2339c6ece.png"></h1>
30
- </td>
31
- </tr>
32
- </tbody>
33
- </table>
34
- <table width="570" border="0" cellpadding="0"
35
- cellspacing="0">
36
- <tbody>
37
- <tr>
38
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
39
- </tr>
40
- </tbody>
41
- </table>
42
- <table width="540" border="0" cellpadding="0"
43
- cellspacing="0">
44
- <tbody>
45
- <tr>
46
- <td align="left">
47
- <div style="font-family:arial,sans-serif;
48
- color:#2f8bee; font-size:18px; font-weight:bold;
49
- margin:0 0 10px 0;">Cet e-mail a été envoyé via Sendinblue SMTP. <br />
50
- Félicitations, la fonctionnalité Sendinblue SMTP est bien configurée.
51
- </div>
52
- </td>
53
- </tr>
54
- </tbody>
55
- </table>
56
- <table width="570" border="0" cellpadding="0"
57
- cellspacing="0">
58
- <tbody>
59
- <tr>
60
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
61
- </tr>
62
- <tr>
63
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
64
- </tr>
65
- </tbody>
66
- </table>
67
- <table width="540" border="0" cellpadding="0"
68
- cellspacing="0">
69
- <tbody>
70
- <tr>
71
- <td align="right">
72
- <div style="font-family:arial,sans-serif;
73
- font-size:14px; color:#2f8bee; margin:0;
74
- font-weight:bold; line-height:18px;"> L'&eacute;quipe
75
- de Sendinblue
76
- </div>
77
- </td>
78
- </tr>
79
- </tbody>
80
- </table>
81
- <table width="570" border="0" cellpadding="0"
82
- cellspacing="0">
83
- <tbody>
84
- <tr>
85
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
86
- </tr>
87
- </tbody>
88
- </table>
89
- <table width="570" border="0" cellpadding="0"
90
- cellspacing="0">
91
- <tbody>
92
- <tr>
93
- <td style="font-family:arial,sans-serif;"
94
- align="center"><hr /></td>
95
- </tr>
96
- </tbody>
97
- </table>
98
- <table width="570" border="0" cellpadding="0"
99
- cellspacing="0">
100
- <tbody>
101
- <tr>
102
- <td style="line-height:0; font-size:0;" height="10">&nbsp;</td>
103
- </tr>
104
- </tbody>
105
- </table>
106
- <table width="540" border="0" cellpadding="0"
107
- cellspacing="0">
108
- <tbody>
109
- <tr>
110
- <td style="line-height:0; font-size:0;" height="10">&nbsp;</td>
111
- </tr>
112
- <tr>
113
- <td align="left" valign="top" width="200">
114
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
115
- <strong style="color:#2f8bee;">Sendinblue</strong></div>
116
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
117
- 118, rue de Tocqueville</div>
118
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
119
- 75017 Paris - France</div>
120
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
121
- Tél : 0 899 25 30 61</div>
122
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
123
- <a href="https://www.sendinblue.com" style="color:#2f8bee;" target="_blank">www.sendinblue.com</a></div>
124
- </td>
125
- <td align="right" valign="top">
126
- <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:20px; color:#7e7e7e;">
127
- <a href="http://www.facebook.com/Sendinblue" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Facebook" src="https://my.sendinblue.com/public/upload/14406/images/523693143fe88.gif" style="border:none;"> </a> <a href="https://twitter.com/Sendinblue" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Twitter" src="https://my.sendinblue.com/public/upload/14406/images/5236931746c01.gif" style="border:none;"> </a> <a href="http://www.linkedin.com/company/mailin" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Linkedin" src="https://my.sendinblue.com/public/upload/14406/images/5236931ad253b.gif" style="border:none;"> </a> <a href="http://sendinblue.tumblr.com/" style="color:#2f8bee; text-decoration:none;" target="_blank">Blog</a></div>
128
- <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"> &copy; 2013-2014 Sendinblue, tous droits
129
- r&eacute;serv&eacute;s.
130
- </div>
131
- <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"> Ceci est un message automatique
132
- g&eacute;n&eacute;r&eacute; par Sendinblue.
133
- </div>
134
- <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"> Ne pas y r&eacute;pondre, vous ne
135
- recevriez aucune r&eacute;ponse.
136
- </div>
137
- <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"><a href="https://www.sendinblue.com/legal/antispampolicy" style="color:#7e7e7e;" target="_blank">Politique
138
- anti-spam &amp; emailing</a> | <a href="https://www.sendinblue.com/legal/generalterms" style="color:#7e7e7e;" target="_blank">Conditions
139
- g&eacute;n&eacute;rales de ventes</a></div>
140
- </td>
141
- </tr>
142
- </tbody>
143
- </table>
144
- <table width="570" border="0" cellpadding="0"
145
- cellspacing="0">
146
- <tbody>
147
- <tr>
148
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
149
- </tr>
150
- <tr>
151
- <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
152
- </tr>
153
- </tbody>
154
- </table>
155
- </td>
156
- </tr>
157
- </tbody>
158
- </table>
159
- <br>
160
- </div>
161
- </body>
162
  </html>
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <title>{title}</title>
6
+ </head>
7
+ <body style="font-family: Arial, Helvetica, sans-serif;font-size: 12px;color: #222;">
8
+ <div class="moz-forward-container">
9
+ <br>
10
+ <table style="background-color:#ffffff" width="100%" border="0"
11
+ cellpadding="0" cellspacing="0">
12
+ <tbody>
13
+ <tr style="border-collapse:collapse;">
14
+ <td style="border-collapse:collapse;" align="center">
15
+ <table width="570" border="0" cellpadding="0"
16
+ cellspacing="0">
17
+ <tbody>
18
+ <tr>
19
+ <td style="line-height:0; font-size:0;" height="20"><img src="{shop_logo}" alt="{shop_name}" width="0" height="0"/></td>
20
+ </tr>
21
+ </tbody>
22
+ </table>
23
+ <table width="570" border="0" cellpadding="0"
24
+ cellspacing="0">
25
+ <tbody>
26
+ <tr>
27
+ <td align="" valign="middle">
28
+ <h1 style="margin:0;color:#2f8bee;font-family:arial,sans-serif">
29
+ <img alt="Sendinblue" src="http://img.sendinblue.com/14406/images/529f2339c6ece.png"></h1>
30
+ </td>
31
+ </tr>
32
+ </tbody>
33
+ </table>
34
+ <table width="570" border="0" cellpadding="0"
35
+ cellspacing="0">
36
+ <tbody>
37
+ <tr>
38
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
39
+ </tr>
40
+ </tbody>
41
+ </table>
42
+ <table width="540" border="0" cellpadding="0"
43
+ cellspacing="0">
44
+ <tbody>
45
+ <tr>
46
+ <td align="left">
47
+ <div style="font-family:arial,sans-serif;
48
+ color:#2f8bee; font-size:18px; font-weight:bold;
49
+ margin:0 0 10px 0;">Cet e-mail a été envoyé via Sendinblue SMTP. <br />
50
+ Félicitations, la fonctionnalité Sendinblue SMTP est bien configurée.
51
+ </div>
52
+ </td>
53
+ </tr>
54
+ </tbody>
55
+ </table>
56
+ <table width="570" border="0" cellpadding="0"
57
+ cellspacing="0">
58
+ <tbody>
59
+ <tr>
60
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
61
+ </tr>
62
+ <tr>
63
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
64
+ </tr>
65
+ </tbody>
66
+ </table>
67
+ <table width="540" border="0" cellpadding="0"
68
+ cellspacing="0">
69
+ <tbody>
70
+ <tr>
71
+ <td align="right">
72
+ <div style="font-family:arial,sans-serif;
73
+ font-size:14px; color:#2f8bee; margin:0;
74
+ font-weight:bold; line-height:18px;"> L'&eacute;quipe
75
+ de Sendinblue
76
+ </div>
77
+ </td>
78
+ </tr>
79
+ </tbody>
80
+ </table>
81
+ <table width="570" border="0" cellpadding="0"
82
+ cellspacing="0">
83
+ <tbody>
84
+ <tr>
85
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
86
+ </tr>
87
+ </tbody>
88
+ </table>
89
+ <table width="570" border="0" cellpadding="0"
90
+ cellspacing="0">
91
+ <tbody>
92
+ <tr>
93
+ <td style="font-family:arial,sans-serif;"
94
+ align="center"><hr /></td>
95
+ </tr>
96
+ </tbody>
97
+ </table>
98
+ <table width="570" border="0" cellpadding="0"
99
+ cellspacing="0">
100
+ <tbody>
101
+ <tr>
102
+ <td style="line-height:0; font-size:0;" height="10">&nbsp;</td>
103
+ </tr>
104
+ </tbody>
105
+ </table>
106
+ <table width="540" border="0" cellpadding="0"
107
+ cellspacing="0">
108
+ <tbody>
109
+ <tr>
110
+ <td style="line-height:0; font-size:0;" height="10">&nbsp;</td>
111
+ </tr>
112
+ <tr>
113
+ <td align="left" valign="top" width="200">
114
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
115
+ <strong style="color:#2f8bee;">Sendinblue</strong></div>
116
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
117
+ 118, rue de Tocqueville</div>
118
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
119
+ 75017 Paris - France</div>
120
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
121
+ Tél : 0 899 25 30 61</div>
122
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:16px; color:#7e7e7e;">
123
+ <a href="https://www.sendinblue.com" style="color:#2f8bee;" target="_blank">www.sendinblue.com</a></div>
124
+ </td>
125
+ <td align="right" valign="top">
126
+ <div style="font-family:arial,sans-serif; font-size:12px; margin:0; line-height:20px; color:#7e7e7e;">
127
+ <a href="http://www.facebook.com/Sendinblue" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Facebook" src="https://my.sendinblue.com/public/upload/14406/images/523693143fe88.gif" style="border:none;"> </a> <a href="https://twitter.com/Sendinblue" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Twitter" src="https://my.sendinblue.com/public/upload/14406/images/5236931746c01.gif" style="border:none;"> </a> <a href="http://www.linkedin.com/company/mailin" style="color:#2f8bee; text-decoration:none;" target="_blank"> <img alt="Linkedin" src="https://my.sendinblue.com/public/upload/14406/images/5236931ad253b.gif" style="border:none;"> </a> <a href="http://sendinblue.tumblr.com/" style="color:#2f8bee; text-decoration:none;" target="_blank">Blog</a></div>
128
+ <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"> &copy; 2013-2014 Sendinblue, tous droits
129
+ r&eacute;serv&eacute;s.
130
+ </div>
131
+ <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"> Ceci est un message automatique
132
+ g&eacute;n&eacute;r&eacute; par Sendinblue.
133
+ </div>
134
+ <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"> Ne pas y r&eacute;pondre, vous ne
135
+ recevriez aucune r&eacute;ponse.
136
+ </div>
137
+ <div style="font-family:arial,sans-serif; font-size:10px; margin:0; line-height:14px; color:#7e7e7e;"><a href="https://www.sendinblue.com/legal/antispampolicy" style="color:#7e7e7e;" target="_blank">Politique
138
+ anti-spam &amp; emailing</a> | <a href="https://www.sendinblue.com/legal/generalterms" style="color:#7e7e7e;" target="_blank">Conditions
139
+ g&eacute;n&eacute;rales de ventes</a></div>
140
+ </td>
141
+ </tr>
142
+ </tbody>
143
+ </table>
144
+ <table width="570" border="0" cellpadding="0"
145
+ cellspacing="0">
146
+ <tbody>
147
+ <tr>
148
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
149
+ </tr>
150
+ <tr>
151
+ <td style="line-height:0; font-size:0;" height="20">&nbsp;</td>
152
+ </tr>
153
+ </tbody>
154
+ </table>
155
+ </td>
156
+ </tr>
157
+ </tbody>
158
+ </table>
159
+ <br>
160
+ </div>
161
+ </body>
162
  </html>
index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;
js/index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;
lang/index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;
model/index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;
page/index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;
page/page-campaigns.php ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin page : dashboard
4
+ *
5
+ * @package SIB_Page_Campaigns
6
+ */
7
+
8
+ if ( ! class_exists( 'SIB_Page_Campaigns' ) ) {
9
+ /**
10
+ * Page class that handles backend page <i>dashboard ( for admin )</i> with form generation and processing
11
+ *
12
+ * @package SIB_Page_Campaigns
13
+ */
14
+ class SIB_Page_Campaigns {
15
+
16
+ /**
17
+ * Page slug
18
+ */
19
+ const PAGE_ID = 'sib_page_campaigns';
20
+
21
+ /**
22
+ * Page hook
23
+ *
24
+ * @var string
25
+ */
26
+ protected $page_hook;
27
+
28
+ /**
29
+ * Page tabs
30
+ *
31
+ * @var mixed
32
+ */
33
+ protected $tabs;
34
+
35
+ /**
36
+ * Constructs new page object and adds entry to WordPress admin menu
37
+ */
38
+ function __construct() {
39
+ $this->page_hook = add_submenu_page( SIB_Page_Home::PAGE_ID, __( 'Campaigns', 'sib_lang' ), __( 'Campaigns', 'sib_lang' ), 'manage_options', self::PAGE_ID, array( &$this, 'generate' ) );
40
+ add_action( 'load-' . $this->page_hook, array( &$this, 'init' ) );
41
+ add_action( 'admin_print_scripts-' . $this->page_hook, array( $this, 'enqueue_scripts' ) );
42
+ add_action( 'admin_print_styles-' . $this->page_hook, array( $this, 'enqueue_styles' ) );
43
+ }
44
+
45
+ /**
46
+ * Init Process
47
+ */
48
+ function Init() {
49
+ add_action( 'admin_notices', array( 'SIB_Manager', 'language_admin_notice' ) );
50
+ }
51
+
52
+ /**
53
+ * Enqueue scripts of plugin
54
+ */
55
+ function enqueue_scripts() {
56
+ wp_enqueue_script( 'sib-admin-js' );
57
+ wp_enqueue_script( 'sib-bootstrap-js' );
58
+ wp_localize_script(
59
+ 'sib-admin-js', 'ajax_sib_object',
60
+ array(
61
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
62
+ )
63
+ );
64
+ }
65
+
66
+ /**
67
+ * Enqueue style sheets of plugin
68
+ */
69
+ function enqueue_styles() {
70
+ wp_enqueue_style( 'sib-admin-css' );
71
+ wp_enqueue_style( 'sib-bootstrap-css' );
72
+ wp_enqueue_style( 'sib-fontawesome-css' );
73
+ wp_enqueue_style( 'thickbox' );
74
+ }
75
+
76
+ /** Generate page script */
77
+ function generate() {
78
+ ?>
79
+ <div id="wrap1" class="box-border-box container-fluid">
80
+ <div id="main-content" class="row">
81
+ <?php
82
+ if ( SIB_Manager::is_done_validation() ) {
83
+ $this->generate_main_page();
84
+ } else {
85
+ $this->generate_welcome_page();
86
+ }
87
+ ?>
88
+ </div>
89
+ </div>
90
+ <style>
91
+ #wpcontent {
92
+ margin-left: 160px !important;
93
+ }
94
+
95
+ @media only screen and (max-width: 918px) {
96
+ #wpcontent {
97
+ margin-left: 40px !important;
98
+ }
99
+ }
100
+ </style>
101
+ <?php
102
+ }
103
+
104
+ /** Generate main page */
105
+ function generate_main_page() {
106
+ $access_token = SIB_API_Manager::update_access_token();
107
+ $lang = substr( get_bloginfo( 'language' ),0,2 );
108
+
109
+ $sort = isset( $_GET['sort'] ) ? sanitize_text_field( $_GET['sort'] ) : 'sent_c';
110
+
111
+ if ( '' === $access_token ) {
112
+ ?>
113
+ <p>Sorry Inconvenience. Please refresh</p>
114
+ <?php
115
+ } else {
116
+ if ( 'create' === $sort ) {
117
+ $type = isset( $_GET['type'] ) ? sanitize_text_field( $_GET['type'] ) : 'classic';
118
+ ?>
119
+ <iframe id="datamain"
120
+ src="https://my.sendinblue.com/camp/step1/type/<?php echo esc_attr( $type ); ?>/access_token/<?php echo esc_attr( $access_token ); ?>?lang=<?php echo esc_attr( $lang ); ?>"
121
+ width="100%" height="750" scrolling="yes"></iframe>
122
+ <?php
123
+ } else {
124
+ ?>
125
+ <iframe id="datamain"
126
+ src="https://my.sendinblue.com/camp/lists/email/access_token/<?php echo esc_attr( $access_token ); ?>?lang=<?php echo esc_attr( $lang ); ?>#<?php echo esc_attr( $sort ); ?>"
127
+ width="100%" height="750" scrolling="yes"></iframe>
128
+
129
+ <?php
130
+ }
131
+ }
132
+ }
133
+
134
+ /** Generate welcome page */
135
+ function generate_welcome_page() {
136
+ ?>
137
+ <img src="<?php echo esc_url( SIB_Manager::$plugin_url . '/img/background/campaigns.png' ); ?>" style="width: 100%;">
138
+ <?php
139
+ SIB_Page_Home::print_disable_popup();
140
+ }
141
+
142
+ }
143
+ }
page/page-home.php CHANGED
@@ -568,6 +568,8 @@ if ( ! class_exists( 'SIB_Page_Home' ) ) {
568
  $apiClient = new SendinblueApiClient();
569
  $response = $apiClient->getAccount();
570
  if ( $apiClient->getLastResponseCode() === SendinblueApiClient::RESPONSE_CODE_OK ) {
 
 
571
  // create tables for users and forms.
572
  SIB_Model_Users::createTable();
573
  SIB_Forms::createTable(); // create default form also
568
  $apiClient = new SendinblueApiClient();
569
  $response = $apiClient->getAccount();
570
  if ( $apiClient->getLastResponseCode() === SendinblueApiClient::RESPONSE_CODE_OK ) {
571
+ $data["partnerName"] = "WORDPRESS";
572
+ $apiClient->setPartner($data);
573
  // create tables for users and forms.
574
  SIB_Model_Users::createTable();
575
  SIB_Forms::createTable(); // create default form also
page/page-lists.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Admin page : dashboard
4
+ *
5
+ * @package SIB_Page_Lists
6
+ */
7
+
8
+ if ( ! class_exists( 'SIB_Page_Lists' ) ) {
9
+ /**
10
+ * Page class that handles backend page <i>dashboard ( for admin )</i> with form generation and processing
11
+ *
12
+ * @package SIB_Page_Lists
13
+ */
14
+ class SIB_Page_Lists {
15
+
16
+ /**
17
+ * Page slug
18
+ */
19
+ const PAGE_ID = 'sib_page_lists';
20
+
21
+ /**
22
+ * Page hook
23
+ *
24
+ * @var string
25
+ */
26
+ protected $page_hook;
27
+
28
+ /**
29
+ * Page tabs
30
+ *
31
+ * @var mixed
32
+ */
33
+ protected $tabs;
34
+
35
+ /**
36
+ * Constructs new page object and adds entry to WordPress admin menu
37
+ */
38
+ function __construct() {
39
+ $this->page_hook = add_submenu_page( SIB_Page_Home::PAGE_ID, __( 'Lists', 'sib_lang' ), __( 'Lists', 'sib_lang' ), 'manage_options', self::PAGE_ID, array( &$this, 'generate' ) );
40
+ add_action( 'load-' . $this->page_hook, array( &$this, 'init' ) );
41
+ add_action( 'admin_print_scripts-' . $this->page_hook, array( $this, 'enqueue_scripts' ) );
42
+ add_action( 'admin_print_styles-' . $this->page_hook, array( $this, 'enqueue_styles' ) );
43
+ }
44
+
45
+ /**
46
+ * Init Process
47
+ */
48
+ function Init() {
49
+ add_action( 'admin_notices', array( 'SIB_Manager', 'language_admin_notice' ) );
50
+ }
51
+
52
+ /**
53
+ * Enqueue scripts of plugin
54
+ */
55
+ function enqueue_scripts() {
56
+ wp_enqueue_script( 'sib-admin-js' );
57
+ wp_enqueue_script( 'sib-bootstrap-js' );
58
+ wp_localize_script(
59
+ 'sib-admin-js', 'ajax_sib_object',
60
+ array(
61
+ 'ajax_url' => admin_url( 'admin-ajax.php' ),
62
+ )
63
+ );
64
+ }
65
+
66
+ /**
67
+ * Enqueue style sheets of plugin
68
+ */
69
+ function enqueue_styles() {
70
+ wp_enqueue_style( 'sib-admin-css' );
71
+ wp_enqueue_style( 'sib-bootstrap-css' );
72
+ wp_enqueue_style( 'sib-fontawesome-css' );
73
+ wp_enqueue_style( 'thickbox' );
74
+ }
75
+
76
+ /** Generate page script */
77
+ function generate() {
78
+ ?>
79
+ <div id="wrap1" class="box-border-box container-fluid">
80
+ <div id="main-content" class="row">
81
+ <?php
82
+ if ( SIB_Manager::is_done_validation() ) {
83
+ $this->generate_main_page();
84
+ } else {
85
+ $this->generate_welcome_page();
86
+ }
87
+ ?>
88
+ </div>
89
+ </div>
90
+ <style>
91
+ #wpcontent {
92
+ margin-left: 160px !important;
93
+ }
94
+
95
+ @media only screen and (max-width: 918px) {
96
+ #wpcontent {
97
+ margin-left: 40px !important;
98
+ }
99
+ }
100
+ </style>
101
+ <?php
102
+ }
103
+
104
+ /** Generate main page */
105
+ function generate_main_page() {
106
+ $access_token = SIB_API_Manager::update_access_token();
107
+ $lang = substr( get_bloginfo( 'language' ),0,2 );
108
+ if ( '' == $access_token ) {
109
+ ?>
110
+ <p>Sorry Inconvenience. Please refresh</p>
111
+ <?php
112
+ } else {
113
+ ?>
114
+ <iframe id="datamain"
115
+ src="https://my.sendinblue.com/lists/index/access_token/<?php echo esc_attr( $access_token ); ?>?lang=<?php echo esc_attr( $lang ); ?>"
116
+ width="100%" height="800" scrolling="yes"></iframe>
117
+ <?php
118
+ }
119
+ }
120
+
121
+ /** Generate welcome page */
122
+ function generate_welcome_page() {
123
+ ?>
124
+ <img src="<?php echo esc_attr( SIB_Manager::$plugin_url ) . '/img/background/lists.png'; ?>" style="width: 100%;">
125
+ <?php
126
+ SIB_Page_Home::print_disable_popup();
127
+ }
128
+
129
+ }
130
+ }
readme.txt CHANGED
@@ -113,6 +113,16 @@ In order to create a signup form, you need to:
113
 
114
  == Changelog ==
115
 
 
 
 
 
 
 
 
 
 
 
116
  = 3.0.7 =
117
  **Improvements:**
118
 
113
 
114
  == Changelog ==
115
 
116
+ = 3.0.8 =
117
+ **Improvements:**
118
+
119
+ * Mapping contact attribute
120
+
121
+ * Added partner via API V3 to users collection
122
+
123
+ * Re-subscriptions with DOI flow
124
+
125
+
126
  = 3.0.7 =
127
  **Improvements:**
128
 
sendinblue.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
4
  * Plugin URI: https://www.sendinblue.com/?r=wporg
5
  * Description: Manage your contact lists, subscription forms and all email and marketing-related topics from your wp panel, within one single plugin
6
- * Version: 3.0.7
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
@@ -712,11 +712,14 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
712
 
713
  $info = array();
714
  $attributes = explode( ',', $formData['attributes'] ); // String to array.
715
- if ( isset( $attributes ) && is_array( $attributes ) ) {
716
- foreach ( $attributes as $attribute ) {
717
- $info[ $attribute ] = isset( $_POST[ $attribute ] ) ? sanitize_text_field( $_POST[ $attribute ] ) : '' ;
718
- }
719
- }
 
 
 
720
  $templateID = $formData['templateID'];
721
 
722
  if ( $isDoubleOptin ) {
@@ -1283,7 +1286,24 @@ if ( ! class_exists( 'SIB_Manager' ) ) {
1283
  }
1284
  wp_send_json($country_list_html);
1285
  }
1286
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1287
 
1288
  add_action( 'sendinblue_init', 'sendinblue_init' );
1289
  add_filter( 'widget_text', 'do_shortcode' );
3
  * Plugin Name: Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue
4
  * Plugin URI: https://www.sendinblue.com/?r=wporg
5
  * Description: Manage your contact lists, subscription forms and all email and marketing-related topics from your wp panel, within one single plugin
6
+ * Version: 3.0.8
7
  * Author: Sendinblue
8
  * Author URI: https://www.sendinblue.com/?r=wporg
9
  * License: GPLv2 or later
712
 
713
  $info = array();
714
  $attributes = explode( ',', $formData['attributes'] ); // String to array.
715
+ if ( isset( $attributes ) && is_array( $attributes ) ) {
716
+ foreach ( $_POST as $postAttribute => $postAttributeValue ) {
717
+ $correspondingSibAttribute = $this->getCorrespondingSibAttribute($postAttribute, $attributes);
718
+ if (!empty($correspondingSibAttribute)) {
719
+ $info[ $correspondingSibAttribute ] = sanitize_text_field( $postAttributeValue );
720
+ }
721
+ }
722
+ }
723
  $templateID = $formData['templateID'];
724
 
725
  if ( $isDoubleOptin ) {
1286
  }
1287
  wp_send_json($country_list_html);
1288
  }
1289
+
1290
+ /**
1291
+ * @param string $postAttribute
1292
+ * @param array $sibAttributes
1293
+ * @return null|string the corresponding sib attribute or null if not found
1294
+ */
1295
+ private function getCorrespondingSibAttribute($postAttribute, $sibAttributes)
1296
+ {
1297
+ $normalizedPostAttribute = strtoupper(sanitize_text_field($postAttribute));
1298
+ foreach ($sibAttributes as $sibAttribute) {
1299
+ if ($normalizedPostAttribute == strtoupper($sibAttribute)) {
1300
+ return $sibAttribute;
1301
+ }
1302
+ }
1303
+
1304
+ return null;
1305
+ }
1306
+ }
1307
 
1308
  add_action( 'sendinblue_init', 'sendinblue_init' );
1309
  add_filter( 'widget_text', 'do_shortcode' );
widget/index.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
- header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
- header('Cache-Control: no-store, no-cache, must-revalidate');
5
- header('Cache-Control: post-check=0, pre-check=0', false);
6
- header('Pragma: no-cache');
7
- header('Location: ../');
8
- exit;
1
+ <?php
2
+ header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
3
+ header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
4
+ header('Cache-Control: no-store, no-cache, must-revalidate');
5
+ header('Cache-Control: post-check=0, pre-check=0', false);
6
+ header('Pragma: no-cache');
7
+ header('Location: ../');
8
+ exit;