Version Description
- Update: Minor update to the internationalization
Download this release
Release Info
Developer | alekv |
Plugin | Pixel Manager for WooCommerce – Track Google Analytics, Google Ads, Facebook and more |
Version | 0.2.4 |
Comparing to | |
See all releases |
Code changes from version 0.1.9 to 0.2.4
languages/woocommerce-google-adwords-conversion-tracking-tag-de_DE.mo
ADDED
Binary file
|
languages/woocommerce-google-adwords-conversion-tracking-tag-de_DE.po
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WooCommerce Google AdWords conversion tracking tag\n"
|
4 |
+
"POT-Creation-Date: 2015-07-02 06:51+0200\n"
|
5 |
+
"PO-Revision-Date: 2015-07-02 06:53+0200\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: de_DE\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.2\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"X-Poedit-WPHeader: wgact.php\n"
|
15 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
18 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
19 |
+
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
20 |
+
"X-Poedit-SearchPath-0: .\n"
|
21 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
22 |
+
|
23 |
+
#: wgact.php:76
|
24 |
+
msgid "Settings"
|
25 |
+
msgstr "Einstellungen"
|
26 |
+
|
27 |
+
#: wgact.php:83
|
28 |
+
msgid "AdWords Conversion Tracking"
|
29 |
+
msgstr "AdWords Konversions-Messung"
|
30 |
+
|
31 |
+
#: wgact.php:100
|
32 |
+
msgid "AdWords Conversion Tracking Settings"
|
33 |
+
msgstr "AdWords Konversions-Messung Einstellungen"
|
34 |
+
|
35 |
+
#: wgact.php:109
|
36 |
+
msgid "Save Changes"
|
37 |
+
msgstr "Änderungen speichern"
|
38 |
+
|
39 |
+
#: wgact.php:121
|
40 |
+
msgid "Donation"
|
41 |
+
msgstr "Spenden"
|
42 |
+
|
43 |
+
#: wgact.php:126
|
44 |
+
msgid "This plugin was developed by"
|
45 |
+
msgstr "Dieses Plugin wurde entwickelt von"
|
46 |
+
|
47 |
+
#: wgact.php:126
|
48 |
+
msgid "Buy me a beer if you like the plugin."
|
49 |
+
msgstr "Kauf mir ein Bier, wenn du das Plugin magst."
|
50 |
+
|
51 |
+
#: wgact.php:127
|
52 |
+
msgid ""
|
53 |
+
"If you want me to continue developing the plugin buy me a few more beers. "
|
54 |
+
"Although, I probably will continue to develop the plugin anyway. It would be "
|
55 |
+
"just much more fun if I had a few beers to celebrate my milestones."
|
56 |
+
msgstr ""
|
57 |
+
"Falls Du möchtest, dass ich das Plugin weiterentwickle kauf mir noch mehr "
|
58 |
+
"Bier. Allerdings werde ich das Plugin so oder so weiterentwickeln. Es wär "
|
59 |
+
"nur schön wenn jeden Meilenstein mit ein paar Bier feiern könnte."
|
60 |
+
|
61 |
+
#: wgact.php:151
|
62 |
+
msgid "Main Settings"
|
63 |
+
msgstr "Haupt-Einstellungen"
|
64 |
+
|
65 |
+
#: wgact.php:152
|
66 |
+
msgid "Conversion ID"
|
67 |
+
msgstr "Konversions ID"
|
68 |
+
|
69 |
+
#: wgact.php:153
|
70 |
+
msgid "Conversion Label"
|
71 |
+
msgstr "Konversions Label"
|
72 |
+
|
73 |
+
#. Plugin Name of the plugin/theme
|
74 |
+
msgid "WooCommerce Google AdWords conversion tracking tag"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#. Plugin URI of the plugin/theme
|
78 |
+
msgid ""
|
79 |
+
"https://wordpress.org/plugins/woocommerce-google-adwords-conversion-tracking-"
|
80 |
+
"tag/"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#. Description of the plugin/theme
|
84 |
+
msgid "Google AdWords dynamic conversion value tracking for WooCommerce."
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#. Author of the plugin/theme
|
88 |
+
msgid "Wolf & Bär GmbH"
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#. Author URI of the plugin/theme
|
92 |
+
msgid "http://www.wolfundbaer.ch"
|
93 |
+
msgstr ""
|
languages/woocommerce-google-adwords-conversion-tracking-tag.pot
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: WooCommerce Google AdWords conversion tracking tag\n"
|
5 |
+
"POT-Creation-Date: 2015-07-02 06:54+0200\n"
|
6 |
+
"PO-Revision-Date: 2015-07-02 06:53+0200\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.2\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"X-Poedit-WPHeader: wgact.php\n"
|
15 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
17 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
18 |
+
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
21 |
+
|
22 |
+
#: wgact.php:76
|
23 |
+
msgid "Settings"
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: wgact.php:83
|
27 |
+
msgid "AdWords Conversion Tracking"
|
28 |
+
msgstr ""
|
29 |
+
|
30 |
+
#: wgact.php:100
|
31 |
+
msgid "AdWords Conversion Tracking Settings"
|
32 |
+
msgstr ""
|
33 |
+
|
34 |
+
#: wgact.php:109
|
35 |
+
msgid "Save Changes"
|
36 |
+
msgstr ""
|
37 |
+
|
38 |
+
#: wgact.php:121
|
39 |
+
msgid "Donation"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: wgact.php:126
|
43 |
+
msgid "This plugin was developed by"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: wgact.php:126
|
47 |
+
msgid "Buy me a beer if you like the plugin."
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: wgact.php:127
|
51 |
+
msgid ""
|
52 |
+
"If you want me to continue developing the plugin buy me a few more beers. "
|
53 |
+
"Although, I probably will continue to develop the plugin anyway. It would be "
|
54 |
+
"just much more fun if I had a few beers to celebrate my milestones."
|
55 |
+
msgstr ""
|
56 |
+
|
57 |
+
#: wgact.php:151
|
58 |
+
msgid "Main Settings"
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: wgact.php:152
|
62 |
+
msgid "Conversion ID"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: wgact.php:153
|
66 |
+
msgid "Conversion Label"
|
67 |
+
msgstr ""
|
68 |
+
|
69 |
+
#. Plugin Name of the plugin/theme
|
70 |
+
msgid "WooCommerce Google AdWords conversion tracking tag"
|
71 |
+
msgstr ""
|
72 |
+
|
73 |
+
#. Plugin URI of the plugin/theme
|
74 |
+
msgid ""
|
75 |
+
"https://wordpress.org/plugins/woocommerce-google-adwords-conversion-tracking-"
|
76 |
+
"tag/"
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#. Description of the plugin/theme
|
80 |
+
msgid "Google AdWords dynamic conversion value tracking for WooCommerce."
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#. Author of the plugin/theme
|
84 |
+
msgid "Wolf & Bär GmbH"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#. Author URI of the plugin/theme
|
88 |
+
msgid "http://www.wolfundbaer.ch"
|
89 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Plugin Name ===
|
2 |
Contributors: alekv
|
3 |
Donate link: http://www.wolfundbaer.ch/donations/
|
4 |
-
Tags: WooCommerce, Google AdWords, conversion tag, conversion value tracking, conversion tracking
|
5 |
Requires at least: 3.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -39,6 +39,17 @@ You can send the link to the front page of your shop too if you think it would b
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
= 0.1.9 =
|
43 |
* Update: Implemented a much better workaround tor the CDATA issue
|
44 |
* Update: Implemented the new currency field
|
1 |
=== Plugin Name ===
|
2 |
Contributors: alekv
|
3 |
Donate link: http://www.wolfundbaer.ch/donations/
|
4 |
+
Tags: WooCommerce, Google AdWords, AdWords, conversion, conversion value, conversion tag, conversion value tracking, conversion tracking
|
5 |
Requires at least: 3.1
|
6 |
+
Tested up to: 4.2.2
|
7 |
+
Stable tag: 0.2.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 0.2.4 =
|
43 |
+
* Update: Minor update to the internationalization
|
44 |
+
= 0.2.3 =
|
45 |
+
* Update: Minor update to the internationalization
|
46 |
+
= 0.2.2 =
|
47 |
+
* New: The plugin is now translation ready
|
48 |
+
= 0.2.1 =
|
49 |
+
* Update: Improving plugin security
|
50 |
+
* Update: Moved the settings to the submenu of WooCommerce
|
51 |
+
= 0.2.0 =
|
52 |
+
* Update: Further improving cross browser compatibility
|
53 |
= 0.1.9 =
|
54 |
* Update: Implemented a much better workaround tor the CDATA issue
|
55 |
* Update: Implemented the new currency field
|
wgact.php
CHANGED
@@ -1,14 +1,19 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
-
|
4 |
Plugin Name: WooCommerce Google AdWords conversion tracking tag
|
5 |
-
Plugin URI:
|
6 |
-
Description:
|
7 |
-
|
8 |
-
Author: Wolf & Bär
|
9 |
Author URI: http://www.wolfundbaer.ch
|
|
|
|
|
|
|
|
|
10 |
|
11 |
-
|
|
|
|
|
|
|
12 |
|
13 |
|
14 |
class WGACT{
|
@@ -33,7 +38,7 @@ A bit more information on that: Unfortunately there is a filter in WordPress (up
|
|
33 |
|
34 |
function cdata_markupfix($content) { $content = str_replace("]]>", "]]>", $content); return $content; }
|
35 |
function cdata_template_redirect( $content ) { ob_start('cdata_markupfix'); }
|
36 |
-
add_action('template_redirect','cdata_template_redirect',-1);
|
37 |
|
38 |
// add the Google AdWords tag to the footer of the page
|
39 |
//add_action( 'wp_head', array( $this, 'GoogleAdWordsTag' ));
|
@@ -42,27 +47,40 @@ A bit more information on that: Unfortunately there is a filter in WordPress (up
|
|
42 |
add_action( 'woocommerce_thankyou', array( $this, 'GoogleAdWordsTag' ));
|
43 |
|
44 |
// add the admin options page
|
45 |
-
add_action('admin_menu', array( $this, 'wgact_plugin_admin_add_page'));
|
|
|
46 |
|
47 |
// install a settings page in the admin console
|
48 |
add_action('admin_init', array( $this, 'wgact_plugin_admin_init'));
|
49 |
|
50 |
// add a settings link on the plugins page
|
51 |
add_filter('plugin_action_links', array($this, 'wgact_settings_link'), 10, 2);
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
|
54 |
}
|
55 |
|
|
|
|
|
|
|
|
|
|
|
56 |
// adds a link on the plugins page for the wgact settings
|
57 |
function wgact_settings_link($links, $file) {
|
58 |
if ($file == plugin_basename(__FILE__))
|
59 |
-
$links[] = '<a href="' . admin_url("
|
60 |
return $links;
|
61 |
}
|
62 |
|
63 |
// add the admin options page
|
64 |
function wgact_plugin_admin_add_page() {
|
65 |
-
add_options_page('WGACT Plugin Page', 'WGACT Plugin Menu', 'manage_options', 'do_wgact', array($this, 'wgact_plugin_options_page'));
|
|
|
66 |
}
|
67 |
|
68 |
// display the admin options page
|
@@ -79,7 +97,7 @@ A bit more information on that: Unfortunately there is a filter in WordPress (up
|
|
79 |
|
80 |
<br>
|
81 |
<div style="background: #eee; width: 772px">
|
82 |
-
<div style="background: #ccc; padding: 10px; font-weight: bold"
|
83 |
<form action="options.php" method="post">
|
84 |
|
85 |
<?php settings_fields('wgact_plugin_options'); ?>
|
@@ -100,13 +118,13 @@ A bit more information on that: Unfortunately there is a filter in WordPress (up
|
|
100 |
<br>
|
101 |
|
102 |
<div style="background: #eee; width: 772px">
|
103 |
-
<div style="background: #ccc; padding: 10px; font-weight: bold"
|
104 |
|
105 |
<table class="form-table" style="margin: 10px">
|
106 |
<tr>
|
107 |
<th scope="row">
|
108 |
-
<div style="padding: 10px"
|
109 |
-
If you want me to continue developing the plugin buy me a few more beers. Although, I probably will continue to develop the plugin anyway. It would be just much more fun if I had a few beers to celebrate my milestones
|
110 |
|
111 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
112 |
<input type="hidden" name="cmd" value="_s-xclick">
|
@@ -130,13 +148,13 @@ A bit more information on that: Unfortunately there is a filter in WordPress (up
|
|
130 |
//register_setting( 'plugin_options', 'plugin_options', 'wgact_plugin_options_validate' );
|
131 |
register_setting( 'wgact_plugin_options', 'wgact_plugin_options_1');
|
132 |
register_setting( 'wgact_plugin_options', 'wgact_plugin_options_2');
|
133 |
-
add_settings_section('wgact_plugin_main', '
|
134 |
-
add_settings_field('wgact_plugin_text_string_1', 'Conversion ID', array($this,'wgact_plugin_setting_string_1'), 'do_wgact', 'wgact_plugin_main');
|
135 |
-
add_settings_field('wgact_plugin_text_string_2', 'Conversion
|
136 |
}
|
137 |
|
138 |
function wgact_plugin_section_text() {
|
139 |
-
echo '<p>Woocommerce Google AdWords conversion tracking tag</p>';
|
140 |
}
|
141 |
|
142 |
/*
|
@@ -203,32 +221,11 @@ A bit more information on that: Unfortunately there is a filter in WordPress (up
|
|
203 |
?>
|
204 |
|
205 |
<!-- Google Code for Sales (AdWords) Conversion Page -->
|
206 |
-
<script type="text/javascript">
|
207 |
-
/* <![CDATA[ */
|
208 |
-
var google_conversion_id = <?php echo $conversion_id; ?>;
|
209 |
-
var google_conversion_language = "en";
|
210 |
-
var google_conversion_format = "3";
|
211 |
-
var google_conversion_color = "ffffff";
|
212 |
-
var google_conversion_label = "<?php echo $conversion_label; ?>";
|
213 |
-
<?php
|
214 |
-
|
215 |
-
if ( $order_total ) {
|
216 |
-
echo "var google_conversion_value = " . $order_total . ";";
|
217 |
-
}
|
218 |
|
219 |
-
?>
|
220 |
-
|
221 |
-
var google_conversion_currency = "<?php echo $order->get_order_currency(); ?>";
|
222 |
-
var google_remarketing_only = false;
|
223 |
-
/* ]]> */
|
224 |
-
</script>
|
225 |
-
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
|
226 |
-
</script>
|
227 |
-
<noscript>
|
228 |
<div style="display:inline;">
|
229 |
-
<img height="1" width="1" style="border-style:none;" alt="" src="
|
230 |
</div>
|
231 |
-
|
232 |
|
233 |
<?php
|
234 |
|
1 |
<?php
|
2 |
+
/**
|
|
|
3 |
Plugin Name: WooCommerce Google AdWords conversion tracking tag
|
4 |
+
Plugin URI: https://wordpress.org/plugins/woocommerce-google-adwords-conversion-tracking-tag/
|
5 |
+
Description: Google AdWords dynamic conversion value tracking for WooCommerce.
|
6 |
+
Author: Wolf & Bär GmbH
|
|
|
7 |
Author URI: http://www.wolfundbaer.ch
|
8 |
+
Version: 0.2.4
|
9 |
+
License: GPLv2 or later
|
10 |
+
Text Domain: woocommerce-google-adwords-conversion-tracking-tag
|
11 |
+
**/
|
12 |
|
13 |
+
// Security measure: http://mikejolley.com/2013/08/keeping-your-shit-secure-whilst-developing-for-wordpress/
|
14 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
+
exit; // Exit if accessed directly
|
16 |
+
}
|
17 |
|
18 |
|
19 |
class WGACT{
|
38 |
|
39 |
function cdata_markupfix($content) { $content = str_replace("]]>", "]]>", $content); return $content; }
|
40 |
function cdata_template_redirect( $content ) { ob_start('cdata_markupfix'); }
|
41 |
+
//add_action('template_redirect','cdata_template_redirect',-1);
|
42 |
|
43 |
// add the Google AdWords tag to the footer of the page
|
44 |
//add_action( 'wp_head', array( $this, 'GoogleAdWordsTag' ));
|
47 |
add_action( 'woocommerce_thankyou', array( $this, 'GoogleAdWordsTag' ));
|
48 |
|
49 |
// add the admin options page
|
50 |
+
// add_action('admin_menu', array( $this, 'wgact_plugin_admin_add_page'));
|
51 |
+
add_action('admin_menu', array( $this, 'wgact_plugin_admin_add_page'),99);
|
52 |
|
53 |
// install a settings page in the admin console
|
54 |
add_action('admin_init', array( $this, 'wgact_plugin_admin_init'));
|
55 |
|
56 |
// add a settings link on the plugins page
|
57 |
add_filter('plugin_action_links', array($this, 'wgact_settings_link'), 10, 2);
|
58 |
+
|
59 |
+
// Load textdomain
|
60 |
+
// source: http://wordpress.stackexchange.com/questions/80334/how-to-make-a-wordpress-plugin-translation-ready
|
61 |
+
// source: http://fooplugins.com/make-a-wordpress-plugin-translations/
|
62 |
+
// source: http://geertdedeckere.be/article/loading-wordpress-language-files-the-right-way
|
63 |
+
add_action('init', array($this, 'load_plugin_textdomain'));
|
64 |
|
65 |
|
66 |
}
|
67 |
|
68 |
+
// Load text domain function
|
69 |
+
public function load_plugin_textdomain(){
|
70 |
+
load_plugin_textdomain('woocommerce-google-adwords-conversion-tracking-tag', FALSE, dirname(plugin_basename(__FILE__)).'/languages/');
|
71 |
+
}
|
72 |
+
|
73 |
// adds a link on the plugins page for the wgact settings
|
74 |
function wgact_settings_link($links, $file) {
|
75 |
if ($file == plugin_basename(__FILE__))
|
76 |
+
$links[] = '<a href="' . admin_url("admin.php?page=do_wgact") . '">'. __('Settings') .'</a>';
|
77 |
return $links;
|
78 |
}
|
79 |
|
80 |
// add the admin options page
|
81 |
function wgact_plugin_admin_add_page() {
|
82 |
+
//add_options_page('WGACT Plugin Page', 'WGACT Plugin Menu', 'manage_options', 'do_wgact', array($this, 'wgact_plugin_options_page'));
|
83 |
+
add_submenu_page('woocommerce', esc_html__( 'AdWords Conversion Tracking', 'woocommerce-google-adwords-conversion-tracking-tag' ), esc_html__( 'AdWords Conversion Tracking', 'woocommerce-google-adwords-conversion-tracking-tag' ), 'manage_options', 'do_wgact', array($this, 'wgact_plugin_options_page'));
|
84 |
}
|
85 |
|
86 |
// display the admin options page
|
97 |
|
98 |
<br>
|
99 |
<div style="background: #eee; width: 772px">
|
100 |
+
<div style="background: #ccc; padding: 10px; font-weight: bold"><?php esc_html_e( 'AdWords Conversion Tracking Settings', 'woocommerce-google-adwords-conversion-tracking-tag' ) ?></div>
|
101 |
<form action="options.php" method="post">
|
102 |
|
103 |
<?php settings_fields('wgact_plugin_options'); ?>
|
118 |
<br>
|
119 |
|
120 |
<div style="background: #eee; width: 772px">
|
121 |
+
<div style="background: #ccc; padding: 10px; font-weight: bold"><?php esc_html_e( 'Donation', 'woocommerce-google-adwords-conversion-tracking-tag' ) ?></div>
|
122 |
|
123 |
<table class="form-table" style="margin: 10px">
|
124 |
<tr>
|
125 |
<th scope="row">
|
126 |
+
<div style="padding: 10px"><?php esc_html_e( 'This plugin was developed by', 'woocommerce-google-adwords-conversion-tracking-tag' ) ?> <a href="http://www.wolfundbaer.ch" target="_blank">Wolf & Bär GmbH</a><p><?php esc_html_e( 'Buy me a beer if you like the plugin.', 'woocommerce-google-adwords-conversion-tracking-tag' ) ?><br>
|
127 |
+
<?php esc_html_e( 'If you want me to continue developing the plugin buy me a few more beers. Although, I probably will continue to develop the plugin anyway. It would be just much more fun if I had a few beers to celebrate my milestones.', 'woocommerce-google-adwords-conversion-tracking-tag' ) ?></div>
|
128 |
|
129 |
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
130 |
<input type="hidden" name="cmd" value="_s-xclick">
|
148 |
//register_setting( 'plugin_options', 'plugin_options', 'wgact_plugin_options_validate' );
|
149 |
register_setting( 'wgact_plugin_options', 'wgact_plugin_options_1');
|
150 |
register_setting( 'wgact_plugin_options', 'wgact_plugin_options_2');
|
151 |
+
add_settings_section('wgact_plugin_main', esc_html__( 'Main Settings', 'woocommerce-google-adwords-conversion-tracking-tag' ), array($this,'wgact_plugin_section_text'), 'do_wgact');
|
152 |
+
add_settings_field('wgact_plugin_text_string_1', esc_html__( 'Conversion ID', 'woocommerce-google-adwords-conversion-tracking-tag' ), array($this,'wgact_plugin_setting_string_1'), 'do_wgact', 'wgact_plugin_main');
|
153 |
+
add_settings_field('wgact_plugin_text_string_2', esc_html__( 'Conversion Label', 'woocommerce-google-adwords-conversion-tracking-tag' ), array($this,'wgact_plugin_setting_string_2'), 'do_wgact', 'wgact_plugin_main');
|
154 |
}
|
155 |
|
156 |
function wgact_plugin_section_text() {
|
157 |
+
//echo '<p>Woocommerce Google AdWords conversion tracking tag</p>';
|
158 |
}
|
159 |
|
160 |
/*
|
221 |
?>
|
222 |
|
223 |
<!-- Google Code for Sales (AdWords) Conversion Page -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
225 |
<div style="display:inline;">
|
226 |
+
<img height="1" width="1" style="border-style:none;" alt="" src="http<?php if(is_ssl()){echo "s";}?>://www.googleadservices.com/pagead/conversion/<?php echo $conversion_id; ?>/?value=<?php echo $order_total; ?>&currency_code=<?php echo $order->get_order_currency(); ?>&label=<?php echo $conversion_label; ?>&guid=ON&script=0"/>
|
227 |
</div>
|
228 |
+
|
229 |
|
230 |
<?php
|
231 |
|