Version Description
- Release Date: June 29, 2015
- Fixing TinyMCE Button Image
Download this release
Release Info
Developer | Affilinet |
Plugin | affilinet Performance Ads |
Version | 1.6 |
Comparing to | |
See all releases |
Code changes from version 1.5 to 1.6
- .gitignore +0 -1
- affilinet.php +2 -2
- classes/Plugin.php +23 -0
- js/affilinet_editor_buttons.js +3 -3
- readme.txt +15 -6
.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.idea
|
|
affilinet.php
CHANGED
@@ -3,9 +3,9 @@
|
|
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.
|
7 |
Author: Affilinet
|
8 |
-
Author URI: https://www.affili.net
|
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.6
|
7 |
Author: Affilinet
|
8 |
+
Author URI: https://www.affili.net/de/publisher/tools/performance-ads
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
classes/Plugin.php
CHANGED
@@ -31,11 +31,15 @@ class Affilinet_Plugin
|
|
31 |
|
32 |
* End Disable YieldKit in Version 1
|
33 |
*/
|
|
|
|
|
|
|
34 |
|
35 |
|
36 |
}
|
37 |
|
38 |
|
|
|
39 |
/**
|
40 |
* Register Settings for admin area
|
41 |
*/
|
@@ -141,6 +145,25 @@ class Affilinet_Plugin
|
|
141 |
}
|
142 |
}
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
public function add_buttons($plugin_array)
|
145 |
{
|
146 |
$plugin_array['affilinet_mce_button'] = plugin_dir_url( plugin_basename( dirname(__FILE__) ) ). 'js/affilinet_editor_buttons.js';
|
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 |
}
|
40 |
|
41 |
|
42 |
+
|
43 |
/**
|
44 |
* Register Settings for admin area
|
45 |
*/
|
145 |
}
|
146 |
}
|
147 |
|
148 |
+
/**
|
149 |
+
* Load TinyMCE Variables
|
150 |
+
*/
|
151 |
+
function affilinet_adminScript()
|
152 |
+
{
|
153 |
+
$img = plugin_dir_url( plugin_basename( dirname(__FILE__) ) ). 'images/';
|
154 |
+
?>
|
155 |
+
<!-- TinyMCE Shortcode Plugin -->
|
156 |
+
<script type='text/javascript'>
|
157 |
+
var affilinet_mce_variables = {
|
158 |
+
'image_path': '<?php echo $img; ?>',
|
159 |
+
'choose_size': 'Choose size'
|
160 |
+
};
|
161 |
+
</script>
|
162 |
+
<!-- TinyMCE Shortcode Plugin -->
|
163 |
+
<?php
|
164 |
+
}
|
165 |
+
|
166 |
+
|
167 |
public function add_buttons($plugin_array)
|
168 |
{
|
169 |
$plugin_array['affilinet_mce_button'] = plugin_dir_url( plugin_basename( dirname(__FILE__) ) ). 'js/affilinet_editor_buttons.js';
|
js/affilinet_editor_buttons.js
CHANGED
@@ -6,7 +6,7 @@ if (typeof(tinymce) != 'undefined') {
|
|
6 |
function _show_image(co) {
|
7 |
return co.replace(/\[affilinet_performance_ad([^\]]*)\]/g, function (a, b) {
|
8 |
var image = b.split('=');
|
9 |
-
return '<img src="
|
10 |
});
|
11 |
}
|
12 |
|
@@ -33,7 +33,7 @@ if (typeof(tinymce) != 'undefined') {
|
|
33 |
if (ed.target.className == 'affilinet_performance_ad') {
|
34 |
ed.stopImmediatePropagation();
|
35 |
editor.windowManager.open({
|
36 |
-
title:
|
37 |
body: [
|
38 |
{
|
39 |
type: 'listbox',
|
@@ -83,7 +83,7 @@ if (typeof(tinymce) != 'undefined') {
|
|
83 |
|
84 |
editor.addButton('affilinet_mce_button', {
|
85 |
icon: true,
|
86 |
-
image: '
|
87 |
type: 'menubutton',
|
88 |
text: 'Affilinet Performance Ads',
|
89 |
menu: [
|
6 |
function _show_image(co) {
|
7 |
return co.replace(/\[affilinet_performance_ad([^\]]*)\]/g, function (a, b) {
|
8 |
var image = b.split('=');
|
9 |
+
return '<img src="'+ affilinet_mce_variables.image_path + image[1] + '.jpg" class="affilinet_performance_ad" title="affilinet_performance_ad' + tinymce.DOM.encode(b) + '" />';
|
10 |
});
|
11 |
}
|
12 |
|
33 |
if (ed.target.className == 'affilinet_performance_ad') {
|
34 |
ed.stopImmediatePropagation();
|
35 |
editor.windowManager.open({
|
36 |
+
title: affilinet_mce_variables.choose_size,
|
37 |
body: [
|
38 |
{
|
39 |
type: 'listbox',
|
83 |
|
84 |
editor.addButton('affilinet_mce_button', {
|
85 |
icon: true,
|
86 |
+
image: affilinet_mce_variables.image_path + 'affilinet_signet_small.png',
|
87 |
type: 'menubutton',
|
88 |
text: 'Affilinet Performance Ads',
|
89 |
menu: [
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Affilinet, teraone
|
|
3 |
Tags: advertising, affilinet, affiliate marketing, display, advertisement, vermarktung, geld verdienen, online marketing, marketing, performance
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 4.2
|
6 |
-
Stable tag: 1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -40,13 +40,18 @@ Gebruik de nieuwe Data-Driven advertising technologie met geautomatiseerde adver
|
|
40 |
|
41 |
You can download the Plugin from Wordpress Plugin repository or install manually
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
1. Download the Plugin
|
44 |
-
2. Extract and upload the folder `affilinet` to the `/wp-content/plugins/` directory
|
45 |
3. Activate the plugin through the 'Plugins' menu in WordPress
|
46 |
|
47 |
= Enter your affilinet publisher account data =
|
48 |
-
|
49 |
-
1. Navigate to the `affilinet` section in your WordPress Admin Backend
|
50 |
2. If you do not have an affilinet publisher account, please signup first.
|
51 |
3. In the settings choose your country platform and enter your affilinet Publisher ID
|
52 |
|
@@ -54,10 +59,14 @@ You can download the Plugin from Wordpress Plugin repository or install manually
|
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
|
|
57 |
= 1.4 =
|
58 |
-
Release Date: June 16, 2015
|
59 |
* Adding SubID Parameter
|
60 |
|
61 |
= 1.3 =
|
62 |
-
Release Date: June 11, 2015
|
63 |
* Initial release
|
3 |
Tags: advertising, affilinet, affiliate marketing, display, advertisement, vermarktung, geld verdienen, online marketing, marketing, performance
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 4.2
|
6 |
+
Stable tag: 1.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
40 |
|
41 |
You can download the Plugin from Wordpress Plugin repository or install manually
|
42 |
|
43 |
+
= Install from Wordpress Plugin repository =
|
44 |
+
1. Search for 'Affilinet Performance Ads'
|
45 |
+
2. Click on 'Install' and activate the plugin
|
46 |
+
3. Don't forget to enter your Publisher ID
|
47 |
+
|
48 |
+
= Or Install manually =
|
49 |
1. Download the Plugin
|
50 |
+
2. Extract and upload the folder `affilinet-performance-module` to the `/wp-content/plugins/` directory
|
51 |
3. Activate the plugin through the 'Plugins' menu in WordPress
|
52 |
|
53 |
= Enter your affilinet publisher account data =
|
54 |
+
1. Navigate to the `Affilinet` section in your WordPress Admin Backend
|
|
|
55 |
2. If you do not have an affilinet publisher account, please signup first.
|
56 |
3. In the settings choose your country platform and enter your affilinet Publisher ID
|
57 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 1.6 =
|
63 |
+
* Release Date: June 29, 2015
|
64 |
+
* Fixing TinyMCE Button Image
|
65 |
+
|
66 |
= 1.4 =
|
67 |
+
* Release Date: June 16, 2015
|
68 |
* Adding SubID Parameter
|
69 |
|
70 |
= 1.3 =
|
71 |
+
* Release Date: June 11, 2015
|
72 |
* Initial release
|