Version Description
- Release Date: March 29, 2017
- Change translation Text Domain
Download this release
Release Info
Developer | Affilinet |
Plugin | affilinet Performance Ads |
Version | 1.8.6 |
Comparing to | |
See all releases |
Code changes from version 1.8.5 to 1.8.6
- affilinet.php +2 -1
- classes/Api.php +10 -10
- classes/PerformanceAds.php +3 -3
- classes/Plugin.php +7 -7
- classes/View.php +3 -3
- classes/Widget.php +1 -1
- classes/Yieldkit.php +2 -2
- languages/{affilinet-de_DE.mo → affilinet-performance-module-de_DE.mo} +0 -0
- languages/{affilinet-de_DE.po → affilinet-performance-module-de_DE.po} +0 -0
- languages/{affilinet-fr_FR.mo → affilinet-performance-module-fr_FR.mo} +0 -0
- languages/{affilinet-fr_FR.po → affilinet-performance-module-fr_FR.po} +0 -0
- languages/{affilinet-nl_NL.mo → affilinet-performance-module-nl_NL.mo} +0 -0
- languages/{affilinet-nl_NL.po → affilinet-performance-module-nl_NL.po} +0 -0
- readme.txt +7 -25
- views/reporting.php +17 -17
- views/settings.php +26 -26
- views/signup.php +11 -11
- views/start.php +1 -1
affilinet.php
CHANGED
@@ -3,9 +3,10 @@
|
|
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
|
10 |
*/
|
11 |
|
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.6
|
7 |
Author: affilinet
|
8 |
Author URI: https://www.affili.net/de/publisher/tools/performance-ads
|
9 |
+
Text Domain: affilinet-performance-module
|
10 |
License: GPLv2 or later
|
11 |
*/
|
12 |
|
classes/Api.php
CHANGED
@@ -32,7 +32,7 @@ class Affilinet_Api
|
|
32 |
update_option('affilinet_webservice_login_is_correct', 'false', true);
|
33 |
wp_cache_delete ( 'alloptions', 'options' );
|
34 |
|
35 |
-
Affilinet_Helper::displayHugeAdminMessage(__('Could not connect to affilinet API. Please recheck your Webservice Password and Publisher ID', 'affilinet'));
|
36 |
|
37 |
return false;
|
38 |
}
|
@@ -63,11 +63,11 @@ class Affilinet_Api
|
|
63 |
return $statistics->DailyStatisticsRecords->DailyStatisticRecords->DailyStatisticsRecord;
|
64 |
}
|
65 |
|
66 |
-
Affilinet_Helper::displayHugeAdminMessage(__('No data in selected time frame', 'affilinet'));
|
67 |
|
68 |
return null;
|
69 |
} catch (\SoapFault $e) {
|
70 |
-
Affilinet_Helper::displayHugeAdminMessage(__('Could not connect to affilinet API. Please recheck your Webservice Password and Publisher ID', 'affilinet'));
|
71 |
|
72 |
return false;
|
73 |
}
|
@@ -105,34 +105,34 @@ class Affilinet_Api
|
|
105 |
$programs = $client->__soapCall('GetPrograms', array($params));
|
106 |
if ($programs->TotalResults === 0 ) {
|
107 |
update_option('affilinet_webservice_login_is_correct', 'false', true);
|
108 |
-
Affilinet_Helper::displayHugeAdminMessage(__('Wrong platform selected.<br> It seems like your account is registered to another country\'s platform.', 'affilinet'), 'error', 'fa-exclamation-triangle');
|
109 |
}
|
110 |
|
111 |
|
112 |
switch ($programs->ProgramCollection->Program->PartnershipStatus) {
|
113 |
case 'Active':
|
114 |
-
Affilinet_Helper::displayHugeAdminMessage(__('Great, it looks like you already have a partnership with PerformanceAds! <br> Feel free to start using the plugin right away!', 'affilinet'), 'success', 'fa-check-circle');
|
115 |
break;
|
116 |
case 'Paused' :
|
117 |
case 'Waiting' :
|
118 |
case 'NoPartnership':
|
119 |
Affilinet_Helper::displayHugeAdminMessage(
|
120 |
-
__('Please be aware that in order to earn commission for delivering creatives, a partnership with the PerformanceAds program is required.<br>Please apply <a target="_blank" href="http://publisher.affili.net/Programs/ProgramInfo.aspx?pid=', 'affilinet')
|
121 |
. Affilinet_PerformanceAds::getProgramIdByPlatform(get_option('affilinet_platform')) .
|
122 |
-
__('">here</a>. Your partnership will be automatically accepted.', 'affilinet'), 'warning', 'fa-exclamation-triangle');
|
123 |
break;
|
124 |
case 'Refused' :
|
125 |
case 'Cancelled' :
|
126 |
$link = Affilinet_Helper::getQualityStandardsLink();
|
127 |
-
Affilinet_Helper::displayHugeAdminMessage(__('Unfortunately your partnership with PerformanceAds has been cancelled, as your website does not meet our quality standards. <br> For more information please visit our <a target="_blank" href="', 'affilinet')
|
128 |
. $link .
|
129 |
-
__('">quality standards page.</a>', 'affilinet'), 'error', 'fa-ban');
|
130 |
break;
|
131 |
}
|
132 |
|
133 |
return null;
|
134 |
} catch (\SoapFault $e) {
|
135 |
-
Affilinet_Helper::displayHugeAdminMessage(__('Please make sure you have entered the correct PublisherID and Webservice password.', 'affilinet'));
|
136 |
|
137 |
return false;
|
138 |
}
|
32 |
update_option('affilinet_webservice_login_is_correct', 'false', true);
|
33 |
wp_cache_delete ( 'alloptions', 'options' );
|
34 |
|
35 |
+
Affilinet_Helper::displayHugeAdminMessage(__('Could not connect to affilinet API. Please recheck your Webservice Password and Publisher ID', 'affilinet-performance-module'));
|
36 |
|
37 |
return false;
|
38 |
}
|
63 |
return $statistics->DailyStatisticsRecords->DailyStatisticRecords->DailyStatisticsRecord;
|
64 |
}
|
65 |
|
66 |
+
Affilinet_Helper::displayHugeAdminMessage(__('No data in selected time frame', 'affilinet-performance-module'));
|
67 |
|
68 |
return null;
|
69 |
} catch (\SoapFault $e) {
|
70 |
+
Affilinet_Helper::displayHugeAdminMessage(__('Could not connect to affilinet API. Please recheck your Webservice Password and Publisher ID', 'affilinet-performance-module'));
|
71 |
|
72 |
return false;
|
73 |
}
|
105 |
$programs = $client->__soapCall('GetPrograms', array($params));
|
106 |
if ($programs->TotalResults === 0 ) {
|
107 |
update_option('affilinet_webservice_login_is_correct', 'false', true);
|
108 |
+
Affilinet_Helper::displayHugeAdminMessage(__('Wrong platform selected.<br> It seems like your account is registered to another country\'s platform.', 'affilinet-performance-module'), 'error', 'fa-exclamation-triangle');
|
109 |
}
|
110 |
|
111 |
|
112 |
switch ($programs->ProgramCollection->Program->PartnershipStatus) {
|
113 |
case 'Active':
|
114 |
+
Affilinet_Helper::displayHugeAdminMessage(__('Great, it looks like you already have a partnership with PerformanceAds! <br> Feel free to start using the plugin right away!', 'affilinet-performance-module'), 'success', 'fa-check-circle');
|
115 |
break;
|
116 |
case 'Paused' :
|
117 |
case 'Waiting' :
|
118 |
case 'NoPartnership':
|
119 |
Affilinet_Helper::displayHugeAdminMessage(
|
120 |
+
__('Please be aware that in order to earn commission for delivering creatives, a partnership with the PerformanceAds program is required.<br>Please apply <a target="_blank" href="http://publisher.affili.net/Programs/ProgramInfo.aspx?pid=', 'affilinet-performance-module')
|
121 |
. Affilinet_PerformanceAds::getProgramIdByPlatform(get_option('affilinet_platform')) .
|
122 |
+
__('">here</a>. Your partnership will be automatically accepted.', 'affilinet-performance-module'), 'warning', 'fa-exclamation-triangle');
|
123 |
break;
|
124 |
case 'Refused' :
|
125 |
case 'Cancelled' :
|
126 |
$link = Affilinet_Helper::getQualityStandardsLink();
|
127 |
+
Affilinet_Helper::displayHugeAdminMessage(__('Unfortunately your partnership with PerformanceAds has been cancelled, as your website does not meet our quality standards. <br> For more information please visit our <a target="_blank" href="', 'affilinet-performance-module')
|
128 |
. $link .
|
129 |
+
__('">quality standards page.</a>', 'affilinet-performance-module'), 'error', 'fa-ban');
|
130 |
break;
|
131 |
}
|
132 |
|
133 |
return null;
|
134 |
} catch (\SoapFault $e) {
|
135 |
+
Affilinet_Helper::displayHugeAdminMessage(__('Please make sure you have entered the correct PublisherID and Webservice password.', 'affilinet-performance-module'));
|
136 |
|
137 |
return false;
|
138 |
}
|
classes/PerformanceAds.php
CHANGED
@@ -52,10 +52,10 @@ class Affilinet_PerformanceAds
|
|
52 |
$platformId = get_option('affilinet_platform');
|
53 |
|
54 |
if ($publisherId === false || $publisherId === '') {
|
55 |
-
return __('No publisher ID given', 'affilinet');
|
56 |
}
|
57 |
if ($platformId === false || $platformId === '') {
|
58 |
-
return __('No platform chosen', 'affilinet');
|
59 |
}
|
60 |
|
61 |
/**
|
@@ -74,7 +74,7 @@ class Affilinet_PerformanceAds
|
|
74 |
$hnb = self::getHnbForPlatform($platformId, $size);
|
75 |
|
76 |
if ($hnb === false) {
|
77 |
-
return __('Invalid ad size given. Choose one of "728x90","300x250","250x250","468x60","160x600","120x600"', 'affilinet');
|
78 |
}
|
79 |
|
80 |
$html = '<script language="javascript" type="text/javascript" src="' .
|
52 |
$platformId = get_option('affilinet_platform');
|
53 |
|
54 |
if ($publisherId === false || $publisherId === '') {
|
55 |
+
return __('No publisher ID given', 'affilinet-performance-module');
|
56 |
}
|
57 |
if ($platformId === false || $platformId === '') {
|
58 |
+
return __('No platform chosen', 'affilinet-performance-module');
|
59 |
}
|
60 |
|
61 |
/**
|
74 |
$hnb = self::getHnbForPlatform($platformId, $size);
|
75 |
|
76 |
if ($hnb === false) {
|
77 |
+
return __('Invalid ad size given. Choose one of "728x90","300x250","250x250","468x60","160x600","120x600"', 'affilinet-performance-module');
|
78 |
}
|
79 |
|
80 |
$html = '<script language="javascript" type="text/javascript" src="' .
|
classes/Plugin.php
CHANGED
@@ -22,8 +22,8 @@ class Affilinet_Plugin
|
|
22 |
if (get_option('affilinet_webservice_login_is_correct') === 'false') {
|
23 |
?>
|
24 |
<div class="notice notice-warning is-dismissible">
|
25 |
-
<p><?php _e('<strong>affilinet Performance Ads:</strong><br> Please make sure you have entered the correct PublisherID and Webservice password.', 'affilinet' ); ?>
|
26 |
-
<a class="button" href="admin.php?page=affilinet_settings"><?php _e('Check your settings.', 'affilinet');?></a>
|
27 |
</p>
|
28 |
</div>
|
29 |
<?php
|
@@ -65,15 +65,15 @@ class Affilinet_Plugin
|
|
65 |
add_menu_page('affilinet', 'affilinet', 'manage_options', 'affilinet', 'Affilinet_View::start', plugin_dir_url(dirname(__FILE__)).'images/affilinet_icon.png');
|
66 |
|
67 |
// submenu items
|
68 |
-
add_submenu_page('affilinet', __('Start', 'affilinet'), __('Start', 'affilinet'), 'manage_options', 'affilinet', 'Affilinet_View::start');
|
69 |
-
add_submenu_page('affilinet', __('Settings', 'affilinet'), __('Settings', 'affilinet'), 'manage_options', 'affilinet_settings', 'Affilinet_View::settings');
|
70 |
|
71 |
|
72 |
if (get_option('affilinet_webservice_login_is_correct', 'false') === 'false') {
|
73 |
-
add_submenu_page('affilinet', __('Signup', 'affilinet'), __('Signup', 'affilinet'), 'manage_options', 'affilinet_signup', 'Affilinet_View::signup');
|
74 |
}
|
75 |
|
76 |
-
add_submenu_page('affilinet', __('Reporting', 'affilinet'), __('Reporting', 'affilinet'), 'manage_options', 'affilinet_reporting', 'Affilinet_View::reporting');
|
77 |
|
78 |
// options menu
|
79 |
add_options_page('affilinet Settings', 'affilinet', 'manage_options', 'affilinet_options', 'Affilinet_View::settings');
|
@@ -137,7 +137,7 @@ class Affilinet_Plugin
|
|
137 |
*/
|
138 |
public function load_textdomain()
|
139 |
{
|
140 |
-
load_plugin_textdomain( 'affilinet', false, dirname(dirname( plugin_basename( __FILE__ ) )) . '/languages' );
|
141 |
}
|
142 |
|
143 |
/**
|
22 |
if (get_option('affilinet_webservice_login_is_correct') === 'false') {
|
23 |
?>
|
24 |
<div class="notice notice-warning is-dismissible">
|
25 |
+
<p><?php _e('<strong>affilinet Performance Ads:</strong><br> Please make sure you have entered the correct PublisherID and Webservice password.', 'affilinet-performance-module' ); ?>
|
26 |
+
<a class="button" href="admin.php?page=affilinet_settings"><?php _e('Check your settings.', 'affilinet-performance-module');?></a>
|
27 |
</p>
|
28 |
</div>
|
29 |
<?php
|
65 |
add_menu_page('affilinet', 'affilinet', 'manage_options', 'affilinet', 'Affilinet_View::start', plugin_dir_url(dirname(__FILE__)).'images/affilinet_icon.png');
|
66 |
|
67 |
// submenu items
|
68 |
+
add_submenu_page('affilinet', __('Start', 'affilinet-performance-module'), __('Start', 'affilinet-performance-module'), 'manage_options', 'affilinet', 'Affilinet_View::start');
|
69 |
+
add_submenu_page('affilinet', __('Settings', 'affilinet-performance-module'), __('Settings', 'affilinet-performance-module'), 'manage_options', 'affilinet_settings', 'Affilinet_View::settings');
|
70 |
|
71 |
|
72 |
if (get_option('affilinet_webservice_login_is_correct', 'false') === 'false') {
|
73 |
+
add_submenu_page('affilinet', __('Signup', 'affilinet-performance-module'), __('Signup', 'affilinet-performance-module'), 'manage_options', 'affilinet_signup', 'Affilinet_View::signup');
|
74 |
}
|
75 |
|
76 |
+
add_submenu_page('affilinet', __('Reporting', 'affilinet-performance-module'), __('Reporting', 'affilinet-performance-module'), 'manage_options', 'affilinet_reporting', 'Affilinet_View::reporting');
|
77 |
|
78 |
// options menu
|
79 |
add_options_page('affilinet Settings', 'affilinet', 'manage_options', 'affilinet_options', 'Affilinet_View::settings');
|
137 |
*/
|
138 |
public function load_textdomain()
|
139 |
{
|
140 |
+
load_plugin_textdomain( 'affilinet-performance-module', false, dirname(dirname( plugin_basename( __FILE__ ) )) . '/languages' );
|
141 |
}
|
142 |
|
143 |
/**
|
classes/View.php
CHANGED
@@ -62,11 +62,11 @@ class Affilinet_View
|
|
62 |
|
63 |
jQuery.plot('#graph-placeholder',
|
64 |
[
|
65 |
-
{data: affilinet_report_data_views, label: "<?php _e('Views', 'affilinet'); ?>", yaxis: 1},
|
66 |
-
{data: affilinet_report_data_clicks, label: "<?php _e('Clicks', 'affilinet'); ?>", yaxis: 1},
|
67 |
{
|
68 |
data: affilinet_report_data_total,
|
69 |
-
label: "<?php _e('Open Commission', 'affilinet'); ?>",
|
70 |
yaxis: 2
|
71 |
}
|
72 |
], options);
|
62 |
|
63 |
jQuery.plot('#graph-placeholder',
|
64 |
[
|
65 |
+
{data: affilinet_report_data_views, label: "<?php _e('Views', 'affilinet-performance-module'); ?>", yaxis: 1},
|
66 |
+
{data: affilinet_report_data_clicks, label: "<?php _e('Clicks', 'affilinet-performance-module'); ?>", yaxis: 1},
|
67 |
{
|
68 |
data: affilinet_report_data_total,
|
69 |
+
label: "<?php _e('Open Commission', 'affilinet-performance-module'); ?>",
|
70 |
yaxis: 2
|
71 |
}
|
72 |
], options);
|
classes/Widget.php
CHANGED
@@ -29,7 +29,7 @@ class Affilinet_Widget extends \WP_Widget
|
|
29 |
$size = $instance['size'];
|
30 |
?>
|
31 |
<p>
|
32 |
-
<label for="<?php echo $this->get_field_id('size'); ?>"><?php _e('Banner size', 'affilinet'); ?></label>
|
33 |
<select class="widefat" id="<?php echo $this->get_field_id('size'); ?>"
|
34 |
name="<?php echo $this->get_field_name('size'); ?>">
|
35 |
<?php
|
29 |
$size = $instance['size'];
|
30 |
?>
|
31 |
<p>
|
32 |
+
<label for="<?php echo $this->get_field_id('size'); ?>"><?php _e('Banner size', 'affilinet-performance-module'); ?></label>
|
33 |
<select class="widefat" id="<?php echo $this->get_field_id('size'); ?>"
|
34 |
name="<?php echo $this->get_field_name('size'); ?>">
|
35 |
<?php
|
classes/Yieldkit.php
CHANGED
@@ -49,10 +49,10 @@ class Affilinet_Yieldkit
|
|
49 |
$platformId = get_option('affilinet_platform');
|
50 |
|
51 |
if ($publisherId === false || $publisherId === '') {
|
52 |
-
return __('No publisher ID given', 'affilinet');
|
53 |
}
|
54 |
if ($platformId === false || $platformId === '') {
|
55 |
-
return __('No platform chosen', 'affilinet');
|
56 |
}
|
57 |
|
58 |
$programId = self::getProgramIdByPlatform($platformId);
|
49 |
$platformId = get_option('affilinet_platform');
|
50 |
|
51 |
if ($publisherId === false || $publisherId === '') {
|
52 |
+
return __('No publisher ID given', 'affilinet-performance-module');
|
53 |
}
|
54 |
if ($platformId === false || $platformId === '') {
|
55 |
+
return __('No platform chosen', 'affilinet-performance-module');
|
56 |
}
|
57 |
|
58 |
$programId = self::getProgramIdByPlatform($platformId);
|
languages/{affilinet-de_DE.mo → affilinet-performance-module-de_DE.mo}
RENAMED
File without changes
|
languages/{affilinet-de_DE.po → affilinet-performance-module-de_DE.po}
RENAMED
File without changes
|
languages/{affilinet-fr_FR.mo → affilinet-performance-module-fr_FR.mo}
RENAMED
File without changes
|
languages/{affilinet-fr_FR.po → affilinet-performance-module-fr_FR.po}
RENAMED
File without changes
|
languages/{affilinet-nl_NL.mo → affilinet-performance-module-nl_NL.mo}
RENAMED
File without changes
|
languages/{affilinet-nl_NL.po → affilinet-performance-module-nl_NL.po}
RENAMED
File without changes
|
readme.txt
CHANGED
@@ -3,14 +3,14 @@ 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.7
|
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 |
This plugin comes with a statistic page where you can see your daily earnings. You will just have to enter your affilinet Webservice Password.
|
@@ -25,29 +25,6 @@ We’ve made it really easy to get started. If you need integration support, ple
|
|
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.
|
49 |
-
|
50 |
-
|
51 |
== Installation ==
|
52 |
|
53 |
You can download the Plugin from Wordpress Plugin repository or install manually
|
@@ -102,6 +79,11 @@ It may take up to 90 minutes for ads to show, additionally all publisher account
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
|
|
|
|
105 |
= 1.8.5 =
|
106 |
* Release Date: November 25, 2016
|
107 |
* Minor enhancements
|
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.7
|
6 |
+
Stable tag: 1.8.6
|
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 |
This plugin comes with a statistic page where you can see your daily earnings. You will just have to enter your affilinet Webservice Password.
|
25 |
|
26 |
If you have any questions or need support please contact us at affilinet@teraone.de
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
== Installation ==
|
29 |
|
30 |
You can download the Plugin from Wordpress Plugin repository or install manually
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
|
83 |
+
= 1.8.6 =
|
84 |
+
* Release Date: March 29, 2017
|
85 |
+
* Change translation Text Domain
|
86 |
+
|
87 |
= 1.8.5 =
|
88 |
* Release Date: November 25, 2016
|
89 |
* Minor enhancements
|
views/reporting.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<div class="wrap">
|
2 |
-
<h2><?php _e('Reporting', 'affilinet') ?></h2>
|
3 |
|
4 |
<?php
|
5 |
if (get_option('affilinet_standard_webservice_password') === false
|
@@ -11,10 +11,10 @@
|
|
11 |
|
12 |
?>
|
13 |
<p>
|
14 |
-
<?php _e('This reporting page is deactivated since you did not entered your publisher web service password on the settings page.', 'affilinet'); ?>
|
15 |
|
16 |
-
<br><?php _e('Please provide your', 'affilinet'); ?> <a
|
17 |
-
href="<?php echo admin_url('admin.php?page=affilinet_settings'); ?>"><?php _e('webservice password and publisher ID', 'affilinet'); ?>
|
18 |
</p>
|
19 |
<?php
|
20 |
} else {
|
@@ -68,7 +68,7 @@
|
|
68 |
<form method="get" action="<?php echo admin_url('admin.php?page=affilinet_reporting'); ?>">
|
69 |
<div class="alignleft actions">
|
70 |
<label for="filter-by-date-month"
|
71 |
-
class="screen-reader-text"><?php _e('Select month', 'affilinet'); ?></label>
|
72 |
<select name="month" id="filter-by-date-month">
|
73 |
<?php
|
74 |
|
@@ -84,7 +84,7 @@
|
|
84 |
?>
|
85 |
</select>
|
86 |
<label for="filter-by-date-year"
|
87 |
-
class="screen-reader-text"><?php _e('Select year', 'affilinet'); ?></label>
|
88 |
<select name="year" id="filter-by-date-year">
|
89 |
<?php
|
90 |
// maximum of 5 years before actual year
|
@@ -99,7 +99,7 @@
|
|
99 |
</select>
|
100 |
<input type="hidden" name="page" value="affilinet_reporting"/>
|
101 |
<input type="submit" id="post-query-submit" class="button"
|
102 |
-
value="<?php _e('Show report', 'affilinet'); ?>">
|
103 |
</div>
|
104 |
</form>
|
105 |
<br class="clear">
|
@@ -108,21 +108,21 @@
|
|
108 |
<thead>
|
109 |
<tr>
|
110 |
<th class="manage-column column-Date "
|
111 |
-
scope="col"><?php _e('Date', 'affilinet'); ?></th>
|
112 |
<th class="manage-column column-Views "
|
113 |
-
scope="col"><?php _e('Views', 'affilinet'); ?></th>
|
114 |
<th class="manage-column column-Clicks "
|
115 |
-
scope="col"><?php _e('Clicks', 'affilinet'); ?></th>
|
116 |
<th class="manage-column column-OpenSalesLeads "
|
117 |
-
scope="col"><?php _e('Open SalesLeads', 'affilinet'); ?></th>
|
118 |
<th class="manage-column column-ConfirmedSalesLeads "
|
119 |
-
scope="col"><?php _e('Confirmed SalesLeads', 'affilinet'); ?></th>
|
120 |
<th class="manage-column column-DeclinedSalesLeads "
|
121 |
-
scope="col"><?php _e('Declined SalesLeads', 'affilinet'); ?></th>
|
122 |
<th class="manage-column column-OpenCommision "
|
123 |
-
scope="col"><?php _e('Open Commission', 'affilinet'); ?></th>
|
124 |
<th class="manage-column column-ConfirmedCommission "
|
125 |
-
scope="col"><?php _e('Confirmed Commission', 'affilinet'); ?></th>
|
126 |
</tr>
|
127 |
</thead>
|
128 |
<tbody>
|
@@ -177,7 +177,7 @@
|
|
177 |
} else {
|
178 |
?>
|
179 |
<tr class="alternate">
|
180 |
-
<td colspan="8" class="col center"><?php _e('No data for this month', 'affilinet'); ?></td>
|
181 |
<?php
|
182 |
}
|
183 |
|
@@ -185,7 +185,7 @@
|
|
185 |
</tbody>
|
186 |
<tfoot>
|
187 |
<tr class="alternate">
|
188 |
-
<th class="manage-column column-Date "><?php _e('Total sum', 'affilinet'); ?></th>
|
189 |
<th class="manage-column column-Views "><?php echo number_format_i18n($totalViews, 0); ?></th>
|
190 |
<th class="manage-column column-Clicks "><?php echo number_format_i18n($totalClicks, 0); ?></th>
|
191 |
<th class="manage-column column-OpenSalesLeads "><?php echo number_format_i18n($totalOpenSales, 0); ?></th>
|
1 |
<div class="wrap">
|
2 |
+
<h2><?php _e('Reporting', 'affilinet-performance-module') ?></h2>
|
3 |
|
4 |
<?php
|
5 |
if (get_option('affilinet_standard_webservice_password') === false
|
11 |
|
12 |
?>
|
13 |
<p>
|
14 |
+
<?php _e('This reporting page is deactivated since you did not entered your publisher web service password on the settings page.', 'affilinet-performance-module'); ?>
|
15 |
|
16 |
+
<br><?php _e('Please provide your', 'affilinet-performance-module'); ?> <a
|
17 |
+
href="<?php echo admin_url('admin.php?page=affilinet_settings'); ?>"><?php _e('webservice password and publisher ID', 'affilinet-performance-module'); ?>
|
18 |
</p>
|
19 |
<?php
|
20 |
} else {
|
68 |
<form method="get" action="<?php echo admin_url('admin.php?page=affilinet_reporting'); ?>">
|
69 |
<div class="alignleft actions">
|
70 |
<label for="filter-by-date-month"
|
71 |
+
class="screen-reader-text"><?php _e('Select month', 'affilinet-performance-module'); ?></label>
|
72 |
<select name="month" id="filter-by-date-month">
|
73 |
<?php
|
74 |
|
84 |
?>
|
85 |
</select>
|
86 |
<label for="filter-by-date-year"
|
87 |
+
class="screen-reader-text"><?php _e('Select year', 'affilinet-performance-module'); ?></label>
|
88 |
<select name="year" id="filter-by-date-year">
|
89 |
<?php
|
90 |
// maximum of 5 years before actual year
|
99 |
</select>
|
100 |
<input type="hidden" name="page" value="affilinet_reporting"/>
|
101 |
<input type="submit" id="post-query-submit" class="button"
|
102 |
+
value="<?php _e('Show report', 'affilinet-performance-module'); ?>">
|
103 |
</div>
|
104 |
</form>
|
105 |
<br class="clear">
|
108 |
<thead>
|
109 |
<tr>
|
110 |
<th class="manage-column column-Date "
|
111 |
+
scope="col"><?php _e('Date', 'affilinet-performance-module'); ?></th>
|
112 |
<th class="manage-column column-Views "
|
113 |
+
scope="col"><?php _e('Views', 'affilinet-performance-module'); ?></th>
|
114 |
<th class="manage-column column-Clicks "
|
115 |
+
scope="col"><?php _e('Clicks', 'affilinet-performance-module'); ?></th>
|
116 |
<th class="manage-column column-OpenSalesLeads "
|
117 |
+
scope="col"><?php _e('Open SalesLeads', 'affilinet-performance-module'); ?></th>
|
118 |
<th class="manage-column column-ConfirmedSalesLeads "
|
119 |
+
scope="col"><?php _e('Confirmed SalesLeads', 'affilinet-performance-module'); ?></th>
|
120 |
<th class="manage-column column-DeclinedSalesLeads "
|
121 |
+
scope="col"><?php _e('Declined SalesLeads', 'affilinet-performance-module'); ?></th>
|
122 |
<th class="manage-column column-OpenCommision "
|
123 |
+
scope="col"><?php _e('Open Commission', 'affilinet-performance-module'); ?></th>
|
124 |
<th class="manage-column column-ConfirmedCommission "
|
125 |
+
scope="col"><?php _e('Confirmed Commission', 'affilinet-performance-module'); ?></th>
|
126 |
</tr>
|
127 |
</thead>
|
128 |
<tbody>
|
177 |
} else {
|
178 |
?>
|
179 |
<tr class="alternate">
|
180 |
+
<td colspan="8" class="col center"><?php _e('No data for this month', 'affilinet-performance-module'); ?></td>
|
181 |
<?php
|
182 |
}
|
183 |
|
185 |
</tbody>
|
186 |
<tfoot>
|
187 |
<tr class="alternate">
|
188 |
+
<th class="manage-column column-Date "><?php _e('Total sum', 'affilinet-performance-module'); ?></th>
|
189 |
<th class="manage-column column-Views "><?php echo number_format_i18n($totalViews, 0); ?></th>
|
190 |
<th class="manage-column column-Clicks "><?php echo number_format_i18n($totalClicks, 0); ?></th>
|
191 |
<th class="manage-column column-OpenSalesLeads "><?php echo number_format_i18n($totalOpenSales, 0); ?></th>
|
views/settings.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<div class="wrap">
|
2 |
-
<h2><?php _e( 'affilinet Performance Ads', 'affilinet' ) ?></h2>
|
3 |
|
4 |
<?php
|
5 |
|
@@ -7,7 +7,7 @@
|
|
7 |
|
8 |
|
9 |
if (get_option('affilinet_platform') == 4 ) {
|
10 |
-
add_settings_error('affilinet-settings-group', 'invalid_platform', __('The Performance Ads Program will soon be available in Netherlands, too. Please choose another platform so far.'), 'error');
|
11 |
}
|
12 |
settings_errors('affilinet-settings-group');
|
13 |
?>
|
@@ -22,16 +22,16 @@
|
|
22 |
<table class="form-table">
|
23 |
<tr valign="top">
|
24 |
<th scope="row"><label for="affilinet_platform"></label>
|
25 |
-
<?php _e( 'affilinet Country Platform', 'affilinet' ) ?>
|
26 |
</th>
|
27 |
<td>
|
28 |
<select name="affilinet_platform" id="affilinet_platform" style="min-width: 250px;">
|
29 |
-
<option <?php selected('1',get_option('affilinet_platform')); ?> value="1" >affilinet <?php _e('Germany', 'affilinet'); ?></option>
|
30 |
-
<option <?php selected('2',get_option('affilinet_platform')); ?> value="2" >affilinet <?php _e('United Kingdom', 'affilinet'); ?></option>
|
31 |
-
<option <?php selected('3',get_option('affilinet_platform')); ?> value="3" >affilinet <?php _e('France', 'affilinet'); ?></option>
|
32 |
-
<?php /*<option <?php selected('4',get_option('affilinet_platform')); ?> value="4" >affilinet <?php _e('Netherlands', 'affilinet'); ?></option> */ ?>
|
33 |
-
<option <?php selected('6',get_option('affilinet_platform')); ?> value="6" >affilinet <?php _e('Switzerland', 'affilinet'); ?></option>
|
34 |
-
<option <?php selected('7',get_option('affilinet_platform')); ?> value="7" >affilinet <?php _e('Austria', 'affilinet'); ?></option>
|
35 |
|
36 |
</select>
|
37 |
</td>
|
@@ -40,18 +40,18 @@
|
|
40 |
|
41 |
|
42 |
<tr valign="top">
|
43 |
-
<th scope="row"><label for="affilinet_publisher_id"><?php _e('Publisher ID', 'affilinet'); ?></label></th>
|
44 |
<td><input type="text" id="affilinet_publisher_id" style="min-width: 250px;" name="affilinet_publisher_id" value="<?php echo esc_attr( get_option('affilinet_publisher_id') ); ?>" /></td>
|
45 |
</tr>
|
46 |
|
47 |
<tr valign="top">
|
48 |
-
<th scope="row"><label for="affilinet_standard_webservice_password"><?php _e('Webservice Password', 'affilinet'); ?></label></th>
|
49 |
<td><input type="password"
|
50 |
style="min-width: 250px;"
|
51 |
name="affilinet_standard_webservice_password"
|
52 |
id="affilinet_standard_webservice_password"
|
53 |
value="<?php echo esc_attr( get_option('affilinet_standard_webservice_password') ); ?>" />
|
54 |
-
<br><small><a href="https://publisher.affili.net/Account/techSettingsPublisherWS.aspx?nr=1&pnp=54" target="_blank"><?php _e('Webservice Password', 'affilinet');?></small></td>
|
55 |
</tr>
|
56 |
|
57 |
|
@@ -60,20 +60,20 @@
|
|
60 |
* Start Disable Yieldkit in Version 1
|
61 |
|
62 |
<tr valign="top">
|
63 |
-
<th scope="row"><label for="affilinet_text_monetization"><?php _e('YieldWord monetization', 'affilinet'); ?></label></th>
|
64 |
<td>
|
65 |
<input type="checkbox" name="affilinet_text_monetization" id="affilinet_text_monetization" value="1" <?php checked('1',get_option( 'affilinet_text_monetization' )); ?> />
|
66 |
-
<small><?php _e('If checked keywords will be extended with text-ads', 'affilinet'); ?></small>
|
67 |
|
68 |
</td>
|
69 |
</tr>
|
70 |
|
71 |
|
72 |
<tr valign="top">
|
73 |
-
<th scope="row"><label for="affilinet_link_replacement"><?php _e('YieldLink replacement', 'affilinet'); ?></label></th>
|
74 |
<td>
|
75 |
<input type="checkbox" name="affilinet_link_replacement" id="affilinet_link_replacement" value="1" <?php checked('1',get_option( 'affilinet_link_replacement' )); ?> />
|
76 |
-
<small><?php _e('If checked links will be replaced with affiliate links.', 'affilinet'); ?></small>
|
77 |
|
78 |
</td>
|
79 |
</tr>
|
@@ -81,7 +81,7 @@
|
|
81 |
|
82 |
|
83 |
<tr valign="top">
|
84 |
-
<th scope="row"><label for="affilinet_text_widget"><?php _e('Yield-Widget', 'affilinet'); ?></label></th>
|
85 |
<td>
|
86 |
<input type="checkbox" name="affilinet_text_widget" id="affilinet_text_widget" value="1" <?php checked('1',get_option( 'affilinet_text_widget' )); ?> />
|
87 |
</td>
|
@@ -91,7 +91,7 @@
|
|
91 |
|
92 |
|
93 |
<tr valign="top">
|
94 |
-
<th scope="row"><label for="affilinet_extended_settings"><?php _e('Enable Expert Settings', 'affilinet'); ?></label></th>
|
95 |
<td>
|
96 |
<input type="checkbox" name="affilinet_extended_settings" id="affilinet_extended_settings" value="1" <?php checked('1',get_option( 'affilinet_extended_settings' )); ?> />
|
97 |
|
@@ -103,18 +103,18 @@
|
|
103 |
<td>
|
104 |
<table class="form-table <?php if (get_option( 'affilinet_extended_settings' ) != 1) echo 'hidden';?> " id="affilinet_extended_settings_table">
|
105 |
<tr valign="top">
|
106 |
-
<th scope="row"><label for="affilinet_text_widget"><?php _e('Yield-Widget Position', 'affilinet'); ?></label></th>
|
107 |
<td>
|
108 |
<select name="affilinet_ywidgetpos" id="affilinet_ywidgetpos" >
|
109 |
-
<option <?php selected('1',get_option('affilinet_ywidgetpos')); ?> value="1" ><?php _e('Intext + Sidebar', 'affilinet'); ?></option>
|
110 |
-
<option <?php selected('2',get_option('affilinet_ywidgetpos')); ?> value="2" ><?php _e('Intext', 'affilinet'); ?></option>
|
111 |
-
<option <?php selected('3',get_option('affilinet_ywidgetpos')); ?> value="3" ><?php _e('Sidebar', 'affilinet'); ?></option>
|
112 |
</select>
|
113 |
</td>
|
114 |
</tr>
|
115 |
|
116 |
<tr valign="top">
|
117 |
-
<th scope="col"><label for="affilinet_ywdensity"><?php _e('Word distance between placement (number)', 'affilinet'); ?></label></th>
|
118 |
<td>
|
119 |
<input type="number" name="affilinet_ywdensity" id="affilinet_ywdensity" value="<?php echo esc_attr( get_option('affilinet_ywdensity') ); ?>" >
|
120 |
|
@@ -122,7 +122,7 @@
|
|
122 |
</tr>
|
123 |
|
124 |
<tr valign="top">
|
125 |
-
<th scope="row"><label for="affilinet_ywcap"><?php _e('Max. number of links per page', 'affilinet'); ?></label></th>
|
126 |
<td>
|
127 |
<input type="number" name="affilinet_ywcap" id="affilinet_ywcap" value="<?php echo esc_attr( get_option('affilinet_ywcap') ); ?>" >
|
128 |
|
@@ -131,7 +131,7 @@
|
|
131 |
</tr>
|
132 |
|
133 |
<tr valign="top">
|
134 |
-
<th scope="row"><label for="affilinet_ywcolor"><?php _e('Link Color', 'affilinet'); ?></label></th>
|
135 |
<td>
|
136 |
<input type="text" class="affilinet_colorpicker" id="affilinet_ywcolor" name="affilinet_ywcolor" value="<?php echo esc_attr( get_option('affilinet_ywcolor', '#000000') ); ?>" >
|
137 |
|
@@ -157,7 +157,7 @@
|
|
157 |
if ( function_exists('submit_button')) {
|
158 |
submit_button();
|
159 |
} else {
|
160 |
-
?><button type="submit"><?php _e('Save', 'affilinet');?></button><?php
|
161 |
}
|
162 |
|
163 |
?>
|
1 |
<div class="wrap">
|
2 |
+
<h2><?php _e( 'affilinet Performance Ads', 'affilinet-performance-module' ) ?></h2>
|
3 |
|
4 |
<?php
|
5 |
|
7 |
|
8 |
|
9 |
if (get_option('affilinet_platform') == 4 ) {
|
10 |
+
add_settings_error('affilinet-settings-group', 'invalid_platform', __('The Performance Ads Program will soon be available in Netherlands, too. Please choose another platform so far.', 'affilinet-performance-module'), 'error');
|
11 |
}
|
12 |
settings_errors('affilinet-settings-group');
|
13 |
?>
|
22 |
<table class="form-table">
|
23 |
<tr valign="top">
|
24 |
<th scope="row"><label for="affilinet_platform"></label>
|
25 |
+
<?php _e( 'affilinet Country Platform', 'affilinet-performance-module' ) ?>
|
26 |
</th>
|
27 |
<td>
|
28 |
<select name="affilinet_platform" id="affilinet_platform" style="min-width: 250px;">
|
29 |
+
<option <?php selected('1',get_option('affilinet_platform')); ?> value="1" >affilinet <?php _e('Germany', 'affilinet-performance-module'); ?></option>
|
30 |
+
<option <?php selected('2',get_option('affilinet_platform')); ?> value="2" >affilinet <?php _e('United Kingdom', 'affilinet-performance-module'); ?></option>
|
31 |
+
<option <?php selected('3',get_option('affilinet_platform')); ?> value="3" >affilinet <?php _e('France', 'affilinet-performance-module'); ?></option>
|
32 |
+
<?php /*<option <?php selected('4',get_option('affilinet_platform')); ?> value="4" >affilinet <?php _e('Netherlands', 'affilinet-performance-module'); ?></option> */ ?>
|
33 |
+
<option <?php selected('6',get_option('affilinet_platform')); ?> value="6" >affilinet <?php _e('Switzerland', 'affilinet-performance-module'); ?></option>
|
34 |
+
<option <?php selected('7',get_option('affilinet_platform')); ?> value="7" >affilinet <?php _e('Austria', 'affilinet-performance-module'); ?></option>
|
35 |
|
36 |
</select>
|
37 |
</td>
|
40 |
|
41 |
|
42 |
<tr valign="top">
|
43 |
+
<th scope="row"><label for="affilinet_publisher_id"><?php _e('Publisher ID', 'affilinet-performance-module'); ?></label></th>
|
44 |
<td><input type="text" id="affilinet_publisher_id" style="min-width: 250px;" name="affilinet_publisher_id" value="<?php echo esc_attr( get_option('affilinet_publisher_id') ); ?>" /></td>
|
45 |
</tr>
|
46 |
|
47 |
<tr valign="top">
|
48 |
+
<th scope="row"><label for="affilinet_standard_webservice_password"><?php _e('Webservice Password', 'affilinet-performance-module'); ?></label></th>
|
49 |
<td><input type="password"
|
50 |
style="min-width: 250px;"
|
51 |
name="affilinet_standard_webservice_password"
|
52 |
id="affilinet_standard_webservice_password"
|
53 |
value="<?php echo esc_attr( get_option('affilinet_standard_webservice_password') ); ?>" />
|
54 |
+
<br><small><a href="https://publisher.affili.net/Account/techSettingsPublisherWS.aspx?nr=1&pnp=54" target="_blank"><?php _e('Webservice Password', 'affilinet-performance-module');?></small></td>
|
55 |
</tr>
|
56 |
|
57 |
|
60 |
* Start Disable Yieldkit in Version 1
|
61 |
|
62 |
<tr valign="top">
|
63 |
+
<th scope="row"><label for="affilinet_text_monetization"><?php _e('YieldWord monetization', 'affilinet-performance-module'); ?></label></th>
|
64 |
<td>
|
65 |
<input type="checkbox" name="affilinet_text_monetization" id="affilinet_text_monetization" value="1" <?php checked('1',get_option( 'affilinet_text_monetization' )); ?> />
|
66 |
+
<small><?php _e('If checked keywords will be extended with text-ads', 'affilinet-performance-module'); ?></small>
|
67 |
|
68 |
</td>
|
69 |
</tr>
|
70 |
|
71 |
|
72 |
<tr valign="top">
|
73 |
+
<th scope="row"><label for="affilinet_link_replacement"><?php _e('YieldLink replacement', 'affilinet-performance-module'); ?></label></th>
|
74 |
<td>
|
75 |
<input type="checkbox" name="affilinet_link_replacement" id="affilinet_link_replacement" value="1" <?php checked('1',get_option( 'affilinet_link_replacement' )); ?> />
|
76 |
+
<small><?php _e('If checked links will be replaced with affiliate links.', 'affilinet-performance-module'); ?></small>
|
77 |
|
78 |
</td>
|
79 |
</tr>
|
81 |
|
82 |
|
83 |
<tr valign="top">
|
84 |
+
<th scope="row"><label for="affilinet_text_widget"><?php _e('Yield-Widget', 'affilinet-performance-module'); ?></label></th>
|
85 |
<td>
|
86 |
<input type="checkbox" name="affilinet_text_widget" id="affilinet_text_widget" value="1" <?php checked('1',get_option( 'affilinet_text_widget' )); ?> />
|
87 |
</td>
|
91 |
|
92 |
|
93 |
<tr valign="top">
|
94 |
+
<th scope="row"><label for="affilinet_extended_settings"><?php _e('Enable Expert Settings', 'affilinet-performance-module'); ?></label></th>
|
95 |
<td>
|
96 |
<input type="checkbox" name="affilinet_extended_settings" id="affilinet_extended_settings" value="1" <?php checked('1',get_option( 'affilinet_extended_settings' )); ?> />
|
97 |
|
103 |
<td>
|
104 |
<table class="form-table <?php if (get_option( 'affilinet_extended_settings' ) != 1) echo 'hidden';?> " id="affilinet_extended_settings_table">
|
105 |
<tr valign="top">
|
106 |
+
<th scope="row"><label for="affilinet_text_widget"><?php _e('Yield-Widget Position', 'affilinet-performance-module'); ?></label></th>
|
107 |
<td>
|
108 |
<select name="affilinet_ywidgetpos" id="affilinet_ywidgetpos" >
|
109 |
+
<option <?php selected('1',get_option('affilinet_ywidgetpos')); ?> value="1" ><?php _e('Intext + Sidebar', 'affilinet-performance-module'); ?></option>
|
110 |
+
<option <?php selected('2',get_option('affilinet_ywidgetpos')); ?> value="2" ><?php _e('Intext', 'affilinet-performance-module'); ?></option>
|
111 |
+
<option <?php selected('3',get_option('affilinet_ywidgetpos')); ?> value="3" ><?php _e('Sidebar', 'affilinet-performance-module'); ?></option>
|
112 |
</select>
|
113 |
</td>
|
114 |
</tr>
|
115 |
|
116 |
<tr valign="top">
|
117 |
+
<th scope="col"><label for="affilinet_ywdensity"><?php _e('Word distance between placement (number)', 'affilinet-performance-module'); ?></label></th>
|
118 |
<td>
|
119 |
<input type="number" name="affilinet_ywdensity" id="affilinet_ywdensity" value="<?php echo esc_attr( get_option('affilinet_ywdensity') ); ?>" >
|
120 |
|
122 |
</tr>
|
123 |
|
124 |
<tr valign="top">
|
125 |
+
<th scope="row"><label for="affilinet_ywcap"><?php _e('Max. number of links per page', 'affilinet-performance-module'); ?></label></th>
|
126 |
<td>
|
127 |
<input type="number" name="affilinet_ywcap" id="affilinet_ywcap" value="<?php echo esc_attr( get_option('affilinet_ywcap') ); ?>" >
|
128 |
|
131 |
</tr>
|
132 |
|
133 |
<tr valign="top">
|
134 |
+
<th scope="row"><label for="affilinet_ywcolor"><?php _e('Link Color', 'affilinet-performance-module'); ?></label></th>
|
135 |
<td>
|
136 |
<input type="text" class="affilinet_colorpicker" id="affilinet_ywcolor" name="affilinet_ywcolor" value="<?php echo esc_attr( get_option('affilinet_ywcolor', '#000000') ); ?>" >
|
137 |
|
157 |
if ( function_exists('submit_button')) {
|
158 |
submit_button();
|
159 |
} else {
|
160 |
+
?><button type="submit"><?php _e('Save', 'affilinet-performance-module');?></button><?php
|
161 |
}
|
162 |
|
163 |
?>
|
views/signup.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<div class="wrap">
|
2 |
-
<h2><?php _e('Signup', 'affilinet') ?></h2>
|
3 |
<?php
|
4 |
if (get_option('affilinet_platform') === false) {
|
5 |
// No Platform has been setup
|
6 |
?>
|
7 |
-
<p><?php _e('Please choose a platform where you want to sign up', 'affilinet') ?></p>
|
8 |
|
9 |
<form method="post" action="options.php">
|
10 |
<?php settings_fields('affilinet-settings-group'); ?>
|
@@ -12,25 +12,25 @@
|
|
12 |
<table class="form-table">
|
13 |
<tr valign="top">
|
14 |
<th scope="row"><label
|
15 |
-
for="affilinet_platform"><?php _e('affilinet Country Platform', 'affilinet') ?></label></th>
|
16 |
<td>
|
17 |
<select name="affilinet_platform" id="affilinet_platform">
|
18 |
<option <?php selected('1', get_option('affilinet_platform')); ?> value="1">
|
19 |
-
affilinet <?php _e('Germany', 'affilinet'); ?></option>
|
20 |
<option <?php selected('2', get_option('affilinet_platform')); ?> value="2">
|
21 |
-
affilinet <?php _e('United Kingdom', 'affilinet'); ?></option>
|
22 |
<option <?php selected('3', get_option('affilinet_platform')); ?> value="3">
|
23 |
-
affilinet <?php _e('France', 'affilinet'); ?></option>
|
24 |
|
25 |
<?php /*
|
26 |
<option <?php selected('4', get_option('affilinet_platform')); ?> value="4">
|
27 |
-
affilinet <?php _e('Netherlands', 'affilinet'); ?></option>
|
28 |
*/ ?>
|
29 |
|
30 |
<option <?php selected('6', get_option('affilinet_platform')); ?> value="6">
|
31 |
-
affilinet <?php _e('Switzerland', 'affilinet'); ?></option>
|
32 |
<option <?php selected('7', get_option('affilinet_platform')); ?> value="7">
|
33 |
-
affilinet <?php _e('Austria', 'affilinet'); ?></option>
|
34 |
|
35 |
</select>
|
36 |
</td>
|
@@ -44,10 +44,10 @@
|
|
44 |
<?php
|
45 |
|
46 |
if (function_exists('submit_button')) {
|
47 |
-
submit_button(__('Save Platform', 'affilinet'));
|
48 |
} else {
|
49 |
?>?>
|
50 |
-
<button type="submit"><?php _e('Save', 'affilinet'); ?></button><?php
|
51 |
}
|
52 |
|
53 |
?>
|
1 |
<div class="wrap">
|
2 |
+
<h2><?php _e('Signup', 'affilinet-performance-module') ?></h2>
|
3 |
<?php
|
4 |
if (get_option('affilinet_platform') === false) {
|
5 |
// No Platform has been setup
|
6 |
?>
|
7 |
+
<p><?php _e('Please choose a platform where you want to sign up', 'affilinet-performance-module') ?></p>
|
8 |
|
9 |
<form method="post" action="options.php">
|
10 |
<?php settings_fields('affilinet-settings-group'); ?>
|
12 |
<table class="form-table">
|
13 |
<tr valign="top">
|
14 |
<th scope="row"><label
|
15 |
+
for="affilinet_platform"><?php _e('affilinet Country Platform', 'affilinet-performance-module') ?></label></th>
|
16 |
<td>
|
17 |
<select name="affilinet_platform" id="affilinet_platform">
|
18 |
<option <?php selected('1', get_option('affilinet_platform')); ?> value="1">
|
19 |
+
affilinet <?php _e('Germany', 'affilinet-performance-module'); ?></option>
|
20 |
<option <?php selected('2', get_option('affilinet_platform')); ?> value="2">
|
21 |
+
affilinet <?php _e('United Kingdom', 'affilinet-performance-module'); ?></option>
|
22 |
<option <?php selected('3', get_option('affilinet_platform')); ?> value="3">
|
23 |
+
affilinet <?php _e('France', 'affilinet-performance-module'); ?></option>
|
24 |
|
25 |
<?php /*
|
26 |
<option <?php selected('4', get_option('affilinet_platform')); ?> value="4">
|
27 |
+
affilinet <?php _e('Netherlands', 'affilinet-performance-module'); ?></option>
|
28 |
*/ ?>
|
29 |
|
30 |
<option <?php selected('6', get_option('affilinet_platform')); ?> value="6">
|
31 |
+
affilinet <?php _e('Switzerland', 'affilinet-performance-module'); ?></option>
|
32 |
<option <?php selected('7', get_option('affilinet_platform')); ?> value="7">
|
33 |
+
affilinet <?php _e('Austria', 'affilinet-performance-module'); ?></option>
|
34 |
|
35 |
</select>
|
36 |
</td>
|
44 |
<?php
|
45 |
|
46 |
if (function_exists('submit_button')) {
|
47 |
+
submit_button(__('Save Platform', 'affilinet-performance-module'));
|
48 |
} else {
|
49 |
?>?>
|
50 |
+
<button type="submit"><?php _e('Save', 'affilinet-performance-module'); ?></button><?php
|
51 |
}
|
52 |
|
53 |
?>
|
views/start.php
CHANGED
@@ -19,4 +19,4 @@
|
|
19 |
}
|
20 |
}
|
21 |
</style>
|
22 |
-
<iframe id="startIframe" src="<?php echo __('https://www.affili.net/htmlcontent/en/Publishermodules/WordPress/Welcome.html', 'affilinet'); ?>" style=""></iframe>
|
19 |
}
|
20 |
}
|
21 |
</style>
|
22 |
+
<iframe id="startIframe" src="<?php echo __('https://www.affili.net/htmlcontent/en/Publishermodules/WordPress/Welcome.html', 'affilinet-performance-module'); ?>" style=""></iframe>
|