Version Description
- Release Date: November 9, 2016
- PHP 5.3 compatibility
Download this release
Release Info
Developer | Affilinet |
Plugin | affilinet Performance Ads |
Version | 1.8.4 |
Comparing to | |
See all releases |
Code changes from version 1.8.3 to 1.8.4
- affilinet.php +1 -1
- classes/Widget.php +95 -95
- readme.txt +5 -1
affilinet.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: affilinet Performance Ads
|
5 |
Description: Integrate our data driven and automated performance display plugin into your WordPress platform and serve your users targeted ads in real time.
|
6 |
-
Version: 1.8.
|
7 |
Author: affilinet
|
8 |
Author URI: https://www.affili.net/de/publisher/tools/performance-ads
|
9 |
License: GPLv2 or later
|
3 |
/*
|
4 |
Plugin Name: affilinet Performance Ads
|
5 |
Description: Integrate our data driven and automated performance display plugin into your WordPress platform and serve your users targeted ads in real time.
|
6 |
+
Version: 1.8.4
|
7 |
Author: affilinet
|
8 |
Author URI: https://www.affili.net/de/publisher/tools/performance-ads
|
9 |
License: GPLv2 or later
|
classes/Widget.php
CHANGED
@@ -62,12 +62,12 @@ class Affilinet_Widget extends \WP_Widget
|
|
62 |
public static function getAllowedSizesJsonForTinyMce()
|
63 |
{
|
64 |
$sizes = self::allowedSizes();
|
65 |
-
$return =
|
66 |
|
67 |
foreach ($sizes as $category) {
|
68 |
-
$return[] =
|
69 |
foreach ($category['values'] as $entry) {
|
70 |
-
$return[] =
|
71 |
}
|
72 |
}
|
73 |
return json_encode($return, JSON_PRETTY_PRINT);
|
@@ -79,42 +79,42 @@ class Affilinet_Widget extends \WP_Widget
|
|
79 |
*/
|
80 |
private static function allowedSizes()
|
81 |
{
|
82 |
-
$allowedPlatFormSizes =
|
83 |
|
84 |
// DE
|
85 |
-
1 =>
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
|
105 |
-
|
106 |
// AT
|
107 |
-
7 =>
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
|
119 |
/**
|
120 |
* mobile sizes not yet available in AT
|
@@ -129,19 +129,19 @@ class Affilinet_Widget extends \WP_Widget
|
|
129 |
['value' => '320x50', 'name' => 'Smartphone Wide Banner (320px x 50px)']
|
130 |
]
|
131 |
]*/
|
132 |
-
|
133 |
// CH
|
134 |
-
6 =>
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
/**
|
146 |
* mobile sizes not yet available in CH
|
147 |
**/
|
@@ -156,19 +156,19 @@ class Affilinet_Widget extends \WP_Widget
|
|
156 |
]
|
157 |
*/
|
158 |
|
159 |
-
|
160 |
// UK
|
161 |
-
2 =>
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
/**
|
173 |
* mobile sizes not yet available in UK
|
174 |
**/
|
@@ -181,43 +181,43 @@ class Affilinet_Widget extends \WP_Widget
|
|
181 |
['value' => '320x50', 'name' => 'Smartphone Wide Banner (320px x 50px)']
|
182 |
]
|
183 |
]*/
|
184 |
-
|
185 |
// FR
|
186 |
-
3 =>
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
|
207 |
-
|
208 |
// NL - currently not implemented
|
209 |
-
4 =>
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
/**
|
222 |
* mobile sizes not yet available in NL
|
223 |
**/
|
@@ -231,8 +231,8 @@ class Affilinet_Widget extends \WP_Widget
|
|
231 |
]
|
232 |
]
|
233 |
*/
|
234 |
-
|
235 |
-
|
236 |
|
237 |
|
238 |
return $allowedPlatFormSizes[(int)get_option('affilinet_platform', 1)];
|
62 |
public static function getAllowedSizesJsonForTinyMce()
|
63 |
{
|
64 |
$sizes = self::allowedSizes();
|
65 |
+
$return = array();
|
66 |
|
67 |
foreach ($sizes as $category) {
|
68 |
+
$return[] = array('text' => $category['name'], 'disabled' => true);
|
69 |
foreach ($category['values'] as $entry) {
|
70 |
+
$return[] = array('text' => $entry['name'], 'value' => $entry['value'], 'disabled' => false);
|
71 |
}
|
72 |
}
|
73 |
return json_encode($return, JSON_PRETTY_PRINT);
|
79 |
*/
|
80 |
private static function allowedSizes()
|
81 |
{
|
82 |
+
$allowedPlatFormSizes = array(
|
83 |
|
84 |
// DE
|
85 |
+
1 => array(
|
86 |
+
array('name' => '----- DESKTOP -----', 'values' =>
|
87 |
+
array(
|
88 |
+
array('value' => '728x90', 'name' => 'Super Banner (728px x 90px)'),
|
89 |
+
array('value' => '300x250', 'name' => 'Medium Rectangle (300px x 250px)'),
|
90 |
+
array('value' => '250x250', 'name' => 'Square Button (250px x 250px)'),
|
91 |
+
array('value' => '468x60', 'name' => 'Fullsize Banner (468px x 60px)'),
|
92 |
+
array('value' => '160x600', 'name' => 'Wide Scyscraper (160px x 600px)'),
|
93 |
+
array('value' => '120x600', 'name' => 'Scyscraper (120px x 600px)')
|
94 |
+
)
|
95 |
+
),
|
96 |
+
array('name' => '----- MOBILE -----', 'values' =>
|
97 |
+
array(
|
98 |
+
array('value' => '168x28', 'name' => 'Feature Phone Medium Banner (168px x 28px)'),
|
99 |
+
array('value' => '216x36', 'name' => 'Feature Phone Large Banner (216px x 36px)'),
|
100 |
+
array('value' => '300x50', 'name' => 'Smartphone Banner (300px x 50px)'),
|
101 |
+
array('value' => '320x50', 'name' => 'Smartphone Wide Banner (320px x 50px)')
|
102 |
+
)
|
103 |
+
)
|
104 |
|
105 |
+
),
|
106 |
// AT
|
107 |
+
7 => array(
|
108 |
+
array('name' => '----- DESKTOP -----', 'values' =>
|
109 |
+
array(
|
110 |
+
array('value' => '728x90', 'name' => 'Super Banner (728px x 90px)'),
|
111 |
+
array('value' => '300x250', 'name' => 'Medium Rectangle (300px x 250px)'),
|
112 |
+
array('value' => '250x250', 'name' => 'Square Button (250px x 250px)'),
|
113 |
+
array('value' => '468x60', 'name' => 'Fullsize Banner (468px x 60px)'),
|
114 |
+
array('value' => '160x600', 'name' => 'Wide Scyscraper (160px x 600px)'),
|
115 |
+
array('value' => '120x600', 'name' => 'Scyscraper (120px x 600px)')
|
116 |
+
)
|
117 |
+
),
|
118 |
|
119 |
/**
|
120 |
* mobile sizes not yet available in AT
|
129 |
['value' => '320x50', 'name' => 'Smartphone Wide Banner (320px x 50px)']
|
130 |
]
|
131 |
]*/
|
132 |
+
),
|
133 |
// CH
|
134 |
+
6 => array(
|
135 |
+
array('name' => '----- DESKTOP -----', 'values' =>
|
136 |
+
array(
|
137 |
+
array('value' => '728x90', 'name' => 'Super Banner (728px x 90px)'),
|
138 |
+
array('value' => '300x250', 'name' => 'Medium Rectangle (300px x 250px)'),
|
139 |
+
array('value' => '250x250', 'name' => 'Square Button (250px x 250px)'),
|
140 |
+
array('value' => '468x60', 'name' => 'Fullsize Banner (468px x 60px)'),
|
141 |
+
array('value' => '160x600', 'name' => 'Wide Scyscraper (160px x 600px)'),
|
142 |
+
array('value' => '120x600', 'name' => 'Scyscraper (120px x 600px)')
|
143 |
+
)
|
144 |
+
),
|
145 |
/**
|
146 |
* mobile sizes not yet available in CH
|
147 |
**/
|
156 |
]
|
157 |
*/
|
158 |
|
159 |
+
),
|
160 |
// UK
|
161 |
+
2 => array(
|
162 |
+
array('name' => '----- DESKTOP -----', 'values' =>
|
163 |
+
array(
|
164 |
+
array('value' => '728x90', 'name' => 'Super Banner (728px x 90px)'),
|
165 |
+
array('value' => '300x250', 'name' => 'Medium Rectangle (300px x 250px)'),
|
166 |
+
array('value' => '250x250', 'name' => 'Square Button (250px x 250px)'),
|
167 |
+
array('value' => '468x60', 'name' => 'Fullsize Banner (468px x 60px)'),
|
168 |
+
array('value' => '160x600', 'name' => 'Wide Scyscraper (160px x 600px)'),
|
169 |
+
array('value' => '120x600', 'name' => 'Scyscraper (120px x 600px)')
|
170 |
+
)
|
171 |
+
),
|
172 |
/**
|
173 |
* mobile sizes not yet available in UK
|
174 |
**/
|
181 |
['value' => '320x50', 'name' => 'Smartphone Wide Banner (320px x 50px)']
|
182 |
]
|
183 |
]*/
|
184 |
+
),
|
185 |
// FR
|
186 |
+
3 => array(
|
187 |
+
array('name' => '----- DESKTOP -----', 'values' =>
|
188 |
+
array(
|
189 |
+
array('value' => '728x90', 'name' => 'Super Banner (728px x 90px)'),
|
190 |
+
array('value' => '300x250', 'name' => 'Medium Rectangle (300px x 250px)'),
|
191 |
+
array('value' => '250x250', 'name' => 'Square Button (250px x 250px)'),
|
192 |
+
array('value' => '468x60', 'name' => 'Fullsize Banner (468px x 60px)'),
|
193 |
+
array('value' => '160x600', 'name' => 'Wide Scyscraper (160px x 600px)'),
|
194 |
+
array('value' => '120x600', 'name' => 'Scyscraper (120px x 600px)'),
|
195 |
+
array('value' => '300x600', 'name' => 'Half Page (300px x 600px)')
|
196 |
+
)
|
197 |
+
),
|
198 |
+
array('name' => '----- MOBILE -----', 'values' =>
|
199 |
+
array(
|
200 |
+
array('value' => '168x28', 'name' => 'Feature Phone Medium Banner (168px x 28px)'),
|
201 |
+
array('value' => '216x36', 'name' => 'Feature Phone Large Banner (216px x 36px)'),
|
202 |
+
array('value' => '300x50', 'name' => 'Smartphone Banner (300px x 50px)'),
|
203 |
+
array('value' => '320x50', 'name' => 'Smartphone Wide Banner (320px x 50px)')
|
204 |
+
)
|
205 |
+
)
|
206 |
|
207 |
+
),
|
208 |
// NL - currently not implemented
|
209 |
+
4 => array(
|
210 |
+
array('name' => '----- DESKTOP -----', 'values' =>
|
211 |
+
array(
|
212 |
+
array('value' => '728x90', 'name' => 'Super Banner (728px x 90px)'),
|
213 |
+
array('value' => '300x250', 'name' => 'Medium Rectangle (300px x 250px)'),
|
214 |
+
array('value' => '250x250', 'name' => 'Square Button (250px x 250px)'),
|
215 |
+
array('value' => '468x60', 'name' => 'Fullsize Banner (468px x 60px)'),
|
216 |
+
array('value' => '160x600', 'name' => 'Wide Scyscraper (160px x 600px)'),
|
217 |
+
array('value' => '120x600', 'name' => 'Scyscraper (120px x 600px)'),
|
218 |
+
array('value' => '300x600', 'name' => 'Half Page (300px x 600px)')
|
219 |
+
)
|
220 |
+
),
|
221 |
/**
|
222 |
* mobile sizes not yet available in NL
|
223 |
**/
|
231 |
]
|
232 |
]
|
233 |
*/
|
234 |
+
)
|
235 |
+
);
|
236 |
|
237 |
|
238 |
return $allowedPlatFormSizes[(int)get_option('affilinet_platform', 1)];
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: affilinet, teraone
|
|
3 |
Tags: affiliate marketing, online marketing, performance marketing, marketing, advertisement, advertising, advertise, affilinet, Affiliate, performance, Display, earn money, monetization, monetize, Monetarisierung, performance, Vermarktung, Banner, Geld verdienen, werbeintegration, Werbung
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 4.6
|
6 |
-
Stable tag: 1.8.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -102,6 +102,10 @@ It may take up to 90 minutes for ads to show, additionally all publisher account
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
|
|
105 |
= 1.8.3 =
|
106 |
* Release Date: October 24, 2016
|
107 |
* Enhances Error messages on login page
|
3 |
Tags: affiliate marketing, online marketing, performance marketing, marketing, advertisement, advertising, advertise, affilinet, Affiliate, performance, Display, earn money, monetization, monetize, Monetarisierung, performance, Vermarktung, Banner, Geld verdienen, werbeintegration, Werbung
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 4.6
|
6 |
+
Stable tag: 1.8.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 1.8.4 =
|
106 |
+
* Release Date: November 9, 2016
|
107 |
+
* PHP 5.3 compatibility
|
108 |
+
|
109 |
= 1.8.3 =
|
110 |
* Release Date: October 24, 2016
|
111 |
* Enhances Error messages on login page
|