Version Description
- Release Date: July 25, 2016
- Supporting pages under https
- Enhanced compatibility with other plugins
Download this release
Release Info
Developer | Affilinet |
Plugin | affilinet Performance Ads |
Version | 1.8.2 |
Comparing to | |
See all releases |
Code changes from version 1.8.1 to 1.8.2
- .gitignore +0 -1
- affilinet.php +1 -1
- classes/PerformanceAds.php +3 -3
- classes/Plugin.php +29 -19
- classes/View.php +7 -2
- classes/Yieldkit.php +3 -3
- readme.txt +28 -9
.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.idea
|
|
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.2
|
7 |
Author: Affilinet
|
8 |
Author URI: https://www.affili.net/de/publisher/tools/performance-ads
|
9 |
License: GPLv2 or later
|
classes/PerformanceAds.php
CHANGED
@@ -78,11 +78,11 @@ class Affilinet_PerformanceAds
|
|
78 |
}
|
79 |
|
80 |
$html = '<script language="javascript" type="text/javascript" src="' .
|
81 |
-
'
|
82 |
'"></script><noscript><a href="' .
|
83 |
-
'
|
84 |
'" target="_blank"><img src="' .
|
85 |
-
'
|
86 |
'" border="0"/></a><br /></noscript>';
|
87 |
|
88 |
return $html;
|
78 |
}
|
79 |
|
80 |
$html = '<script language="javascript" type="text/javascript" src="' .
|
81 |
+
'//' . $viewUrl . '/view.asp?ref=' . $publisherId . '&site=' . $programId . '&type=html&hnb=' . $hnb . '&js=1&subid='.$subId.
|
82 |
'"></script><noscript><a href="' .
|
83 |
+
'//' . $clickUrl . '/click.asp?ref=' . $publisherId . '&site=' . $programId . '&type=b1&bnb=1&subid='.$subId.
|
84 |
'" target="_blank"><img src="' .
|
85 |
+
'//' . $viewUrl . '/view.asp?ref=' . $publisherId . '&site=' . $programId . '&b=1&subid='.$subId.
|
86 |
'" border="0"/></a><br /></noscript>';
|
87 |
|
88 |
return $html;
|
classes/Plugin.php
CHANGED
@@ -10,30 +10,27 @@ class Affilinet_Plugin
|
|
10 |
add_action('widgets_init', array($this, 'register_widget'));
|
11 |
|
12 |
add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
|
13 |
-
add_action('admin_enqueue_scripts', array('Affilinet_View', 'settings_script') );
|
14 |
|
15 |
-
|
16 |
-
add_action('
|
17 |
|
|
|
18 |
add_shortcode('affilinet_performance_ad', array($this, 'performance_ad_shortcode'));
|
19 |
|
20 |
/**
|
21 |
* Disable YieldKit functionality in Version 1
|
22 |
*
|
23 |
if (get_option('affilinet_text_monetization') === '1'
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
) {
|
29 |
-
|
30 |
}
|
31 |
|
32 |
* End Disable YieldKit in Version 1
|
33 |
*/
|
34 |
-
foreach ( array('post.php','post-new.php') as $hook ) {
|
35 |
-
add_action( "admin_head-$hook",array($this, 'affilinet_adminScript') );
|
36 |
-
}
|
37 |
|
38 |
}
|
39 |
|
@@ -86,14 +83,27 @@ class Affilinet_Plugin
|
|
86 |
}
|
87 |
|
88 |
/**
|
89 |
-
* Load
|
|
|
90 |
*/
|
91 |
-
public function admin_enqueue_scripts()
|
92 |
{
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
|
99 |
/**
|
@@ -151,7 +161,7 @@ class Affilinet_Plugin
|
|
151 |
};
|
152 |
</script>
|
153 |
<!-- TinyMCE Shortcode Plugin -->
|
154 |
-
|
155 |
}
|
156 |
|
157 |
public function add_buttons($plugin_array)
|
@@ -170,7 +180,7 @@ class Affilinet_Plugin
|
|
170 |
|
171 |
public function yielkit_code()
|
172 |
{
|
173 |
-
|
174 |
}
|
175 |
|
176 |
}
|
10 |
add_action('widgets_init', array($this, 'register_widget'));
|
11 |
|
12 |
add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
|
|
|
13 |
|
14 |
+
// the script for settings page is currently not needed
|
15 |
+
//add_action('admin_enqueue_scripts', array('Affilinet_View', 'settings_script') );
|
16 |
|
17 |
+
add_action('plugins_loaded', array($this, 'load_textdomain'));
|
18 |
add_shortcode('affilinet_performance_ad', array($this, 'performance_ad_shortcode'));
|
19 |
|
20 |
/**
|
21 |
* Disable YieldKit functionality in Version 1
|
22 |
*
|
23 |
if (get_option('affilinet_text_monetization') === '1'
|
24 |
+
||
|
25 |
+
get_option('affilinet_link_replacement') === '1'
|
26 |
+
||
|
27 |
+
get_option('affilinet_text_widget') === '1'
|
28 |
) {
|
29 |
+
add_action('wp_footer', array($this, 'yielkit_code'));
|
30 |
}
|
31 |
|
32 |
* End Disable YieldKit in Version 1
|
33 |
*/
|
|
|
|
|
|
|
34 |
|
35 |
}
|
36 |
|
83 |
}
|
84 |
|
85 |
/**
|
86 |
+
* Load Admin scripts
|
87 |
+
* @param $hook string
|
88 |
*/
|
89 |
+
public function admin_enqueue_scripts($hook)
|
90 |
{
|
91 |
+
// on post page add the editor button for affilinet plugin
|
92 |
+
if ($hook === 'post.php' || $hook == 'post-new.php') {
|
93 |
+
|
94 |
+
add_action('admin_head', array($this, 'editor_add_buttons'));
|
95 |
+
add_action( "admin_head-$hook",array($this, 'affilinet_adminScript') );
|
96 |
+
}
|
97 |
+
|
98 |
+
// on reporting page add jquery.flot
|
99 |
+
if ($hook === 'affilinet_page_affilinet_reporting') {
|
100 |
+
wp_register_script('flot', plugin_dir_url( plugin_basename( dirname(__FILE__) ) ).'js/jquery-flot/jquery.flot.js', array('jquery'));
|
101 |
+
wp_register_script('flot.time', plugin_dir_url( plugin_basename( dirname(__FILE__) ) ).'js/jquery-flot/jquery.flot.time.js', array('jquery', 'flot'));
|
102 |
+
wp_enqueue_script('flot');
|
103 |
+
wp_enqueue_script('flot.time');
|
104 |
+
}
|
105 |
+
|
106 |
+
|
107 |
}
|
108 |
|
109 |
/**
|
161 |
};
|
162 |
</script>
|
163 |
<!-- TinyMCE Shortcode Plugin -->
|
164 |
+
<?php
|
165 |
}
|
166 |
|
167 |
public function add_buttons($plugin_array)
|
180 |
|
181 |
public function yielkit_code()
|
182 |
{
|
183 |
+
echo Affilinet_Yieldkit::getAdCode();
|
184 |
}
|
185 |
|
186 |
}
|
classes/View.php
CHANGED
@@ -72,11 +72,16 @@ class Affilinet_View
|
|
72 |
], options);
|
73 |
|
74 |
</script>
|
75 |
-
|
76 |
}
|
77 |
|
78 |
-
public static function settings_script($
|
79 |
{
|
|
|
|
|
|
|
|
|
|
|
80 |
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
|
81 |
/** @var String $wp_version */
|
82 |
if ($wp_version < 3.5) {
|
72 |
], options);
|
73 |
|
74 |
</script>
|
75 |
+
<?php
|
76 |
}
|
77 |
|
78 |
+
public static function settings_script($hook)
|
79 |
{
|
80 |
+
// this js is only needed on settings page
|
81 |
+
if ($hook !== 'affilinet_page_affilinet_settings') {
|
82 |
+
return;
|
83 |
+
}
|
84 |
+
|
85 |
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
|
86 |
/** @var String $wp_version */
|
87 |
if ($wp_version < 3.5) {
|
classes/Yieldkit.php
CHANGED
@@ -82,7 +82,7 @@ class Affilinet_Yieldkit
|
|
82 |
$ywcolor = str_replace('#','',$ywcolor);
|
83 |
$hnb = 1;
|
84 |
|
85 |
-
$scriptUrl = '
|
86 |
'&yword='. $yword.
|
87 |
'&ylink='.$ylink
|
88 |
.'&ywidget='.$ywidget
|
@@ -92,7 +92,7 @@ class Affilinet_Yieldkit
|
|
92 |
.'&ywcolor='.$ywcolor
|
93 |
.'&ywcid=content&ywcclass=site-content';
|
94 |
|
95 |
-
$noScriptUrl = '
|
96 |
'&yword='. $yword.
|
97 |
'&ylink='.$ylink
|
98 |
.'&ywidget='.$ywidget
|
@@ -107,7 +107,7 @@ class Affilinet_Yieldkit
|
|
107 |
.'"></script><noscript><a href="'
|
108 |
.$noScriptUrl
|
109 |
.'" target="_blank"><img title="1x1" alt="1x1" src="'
|
110 |
-
.'
|
111 |
.'" border="0"/></a><br /></noscript>';
|
112 |
|
113 |
return $html;
|
82 |
$ywcolor = str_replace('#','',$ywcolor);
|
83 |
$hnb = 1;
|
84 |
|
85 |
+
$scriptUrl = '//' . $viewUrl . '/view.asp?ref=' . $publisherId . '&site=' . $programId . '&type=html&hnb=' . $hnb . '&js=1' .
|
86 |
'&yword='. $yword.
|
87 |
'&ylink='.$ylink
|
88 |
.'&ywidget='.$ywidget
|
92 |
.'&ywcolor='.$ywcolor
|
93 |
.'&ywcid=content&ywcclass=site-content';
|
94 |
|
95 |
+
$noScriptUrl = '//' . $viewUrl . '/view.asp?ref=' . $publisherId . '&site=' . $programId . '&type=b1&bnb=1' .
|
96 |
'&yword='. $yword.
|
97 |
'&ylink='.$ylink
|
98 |
.'&ywidget='.$ywidget
|
107 |
.'"></script><noscript><a href="'
|
108 |
.$noScriptUrl
|
109 |
.'" target="_blank"><img title="1x1" alt="1x1" src="'
|
110 |
+
.'//' . $viewUrl . '/view.asp?ref=' . $publisherId . '&site=' . $programId . '&b=1'
|
111 |
.'" border="0"/></a><br /></noscript>';
|
112 |
|
113 |
return $html;
|
readme.txt
CHANGED
@@ -1,34 +1,48 @@
|
|
1 |
=== Affilinet Performance Ads ===
|
2 |
Contributors: Affilinet, teraone
|
3 |
-
Tags:
|
4 |
Requires at least: 3.0.1
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.8.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
Integrate our data driven and automated performance display plugin into your WordPress platform and serve your users targeted ads in real time.
|
11 |
|
12 |
== Description ==
|
13 |
-
|
14 |
Integrate affilinet's data driven advertising technology and automated ad display services seamlessly into your WordPress platform and serve the right message, at the right time, to the right person. Dont't worry about ad codes. This plugin will handle all technical details for you.
|
15 |
|
16 |
-
You can easily add display ads to any sidebar of your blog. This plugin also enhances your WYSIWYG editor, thus its possible to integrate display ads in your content with just one click.
|
17 |
-
|
18 |
This plugin comes with a statistic page where you can see your daily earnings. You will just have to enter your affilinet Webservice Password.
|
19 |
|
20 |
The benefits at a glance:
|
21 |
|
22 |
-
* Quick and simple sign up to the affilinet platform
|
23 |
* Easy integration of intelligent display ad units into your site
|
|
|
24 |
* Targeted adverts mean more relevancy for your readers and ultimately more earnings from your website
|
25 |
|
26 |
-
We’ve made it really easy to get started.
|
27 |
|
28 |
If you have any questions or need support please contact us at affilinet@teraone.de
|
29 |
|
30 |
= German =
|
31 |
-
Nutzen Sie die neue Data-Driven Advertising Technologie mit automatisierter Werbemittelausspielung, die Ihre User in Echtzeit anspricht.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
|
33 |
= French =
|
34 |
Profitez des avantages de notre nouvelle technologie publicitaire! Diffusez en temps réel des publicités ciblées selon le profil des internautes.
|
@@ -88,6 +102,11 @@ It may take up to 90 minutes for ads to show, additionally all publisher account
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
|
|
|
|
91 |
= 1.8.1 =
|
92 |
* Release Date: August 26, 2015
|
93 |
* enhanced installation docs
|
1 |
=== Affilinet Performance Ads ===
|
2 |
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.5
|
6 |
+
Stable tag: 1.8.2
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
10 |
Integrate our data driven and automated performance display plugin into your WordPress platform and serve your users targeted ads in real time.
|
11 |
|
12 |
== Description ==
|
13 |
+
= English =
|
14 |
Integrate affilinet's data driven advertising technology and automated ad display services seamlessly into your WordPress platform and serve the right message, at the right time, to the right person. Dont't worry about ad codes. This plugin will handle all technical details for you.
|
15 |
|
|
|
|
|
16 |
This plugin comes with a statistic page where you can see your daily earnings. You will just have to enter your affilinet Webservice Password.
|
17 |
|
18 |
The benefits at a glance:
|
19 |
|
|
|
20 |
* Easy integration of intelligent display ad units into your site
|
21 |
+
* Quick and simple sign up to the affilinet platform
|
22 |
* Targeted adverts mean more relevancy for your readers and ultimately more earnings from your website
|
23 |
|
24 |
+
We’ve made it really easy to get started. If you need integration support, please watch our tutorial on Youtube: https://www.youtube.com/watch?v=AtZHeD1CK-E
|
25 |
|
26 |
If you have any questions or need support please contact us at affilinet@teraone.de
|
27 |
|
28 |
= German =
|
29 |
+
Nutzen Sie die neue Data-Driven Advertising Technologie mit automatisierter Werbemittelausspielung von affilinet, die Ihre User in Echtzeit anspricht! Mithilfe dieses Plugins wird Ihren Besuchern die richtige Werbebotschaft zur richtigen Zeit angezeigt – und das ohne jeglichen Programmieraufwand! Eine manuelle Integration des Ad Codes ist nicht erforderlich.
|
30 |
+
|
31 |
+
Das affilinet Plugin für WordPress bietet Ihnen die Möglichkeit, zielgruppenadäquate Werbung ganz einfach auf der eigenen Webseite zu integrieren und so Ihren Blog oder Ihre Content-Website gezielt zu monetarisieren. Das Plugin bietet zahlreiche Auswahloptionen zur Platzierung der Banner auf der Seite. Die Werbeanzeigen lassen sich dabei ganz einfach in die Sidebar und in den Content-Bereich Ihres Blogs integrieren. Darüber hinaus bietet das Plugin eine Statistik- Funktionalität, die eine Übersicht über Ihre täglichen Einnahmen liefert.
|
32 |
+
|
33 |
+
Ihre Vorteile im Überblick:
|
34 |
+
|
35 |
+
* Einfache Integration von Werbung auf Ihrer Seite
|
36 |
+
* Intelligente Werbemittelausspielung dank innovativer Data-Driven Advertising Technologie
|
37 |
+
* Schnelle und einfache Registrierung bei affilinet
|
38 |
+
* Mehr Relevanz für Ihre Besucher durch gezielte Werbeanzeigen
|
39 |
+
|
40 |
+
So können Sie Ihren Besuchern in kürzester Zeit und ohne großen Aufwand profildatenbasierte Werbung anzeigen und mehr Sales durch höhere Relevanz der Werbeinhalte erreichen!
|
41 |
+
|
42 |
+
Falls Sie noch Fragen zur genauen Integration haben, schauen Sie sich gerne unser dazugehöriges Tutorial auf Youtube an: https://www.youtube.com/watch?v=AtZHeD1CK-E
|
43 |
+
|
44 |
+
Oder wenden Sie sich einfach an Ihren Ansprechpartner bei affilinet oder senden Sie eine Email an affilinet@teraone.de.
|
45 |
+
|
46 |
|
47 |
= French =
|
48 |
Profitez des avantages de notre nouvelle technologie publicitaire! Diffusez en temps réel des publicités ciblées selon le profil des internautes.
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 1.8.2 =
|
106 |
+
* Release Date: July 25, 2016
|
107 |
+
* Supporting pages under https
|
108 |
+
* Enhanced compatibility with other plugins
|
109 |
+
|
110 |
= 1.8.1 =
|
111 |
* Release Date: August 26, 2015
|
112 |
* enhanced installation docs
|