Version Description
Download this release
Release Info
Developer | unbouncewordpress |
Plugin | Unbounce Landing Pages |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.7
- UBConfig.php +35 -14
- UBDiagnostics.php +8 -8
- Unbounce-Page.php +3 -3
- readme.txt +1 -1
UBConfig.php
CHANGED
@@ -2,22 +2,43 @@
|
|
2 |
|
3 |
class UBConfig {
|
4 |
|
5 |
-
const UB_PLUGIN_NAME
|
6 |
-
const
|
7 |
-
const
|
|
|
|
|
|
|
|
|
|
|
8 |
const UB_PAGE_SERVER_DOMAIN_KEY = 'ub-page-server-domain';
|
9 |
-
const UB_REMOTE_LOG_URL_KEY
|
10 |
-
const UB_REMOTE_EVENTS_URL_KEY
|
11 |
-
const UB_API_URL_KEY
|
12 |
-
const UB_API_CLIENT_ID_KEY
|
13 |
const UB_AUTHORIZED_DOMAINS_KEY = 'ub-authorized-domains';
|
14 |
-
const UB_HAS_AUTHORIZED_KEY
|
15 |
-
const UB_USER_ID_KEY
|
16 |
-
const UB_DOMAIN_ID_KEY
|
17 |
-
const UB_CLIENT_ID_KEY
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
public static function default_page_server_domain() {
|
23 |
$domain = getenv('UB_PAGE_SERVER_DOMAIN');
|
2 |
|
3 |
class UBConfig {
|
4 |
|
5 |
+
const UB_PLUGIN_NAME = 'ub-wordpress';
|
6 |
+
const UB_CACHE_TIMEOUT_ENV_KEY = 'UB_WP_ROUTES_CACHE_EXP';
|
7 |
+
const UB_USER_AGENT = 'Unbounce WP Plugin 1.0.7';
|
8 |
+
const UB_VERSION = '1.0.7';
|
9 |
+
|
10 |
+
# Option keys
|
11 |
+
const UB_ROUTES_CACHE_KEY = 'ub-route-cache';
|
12 |
+
const UB_REMOTE_DEBUG_KEY = 'ub-remote-debug';
|
13 |
const UB_PAGE_SERVER_DOMAIN_KEY = 'ub-page-server-domain';
|
14 |
+
const UB_REMOTE_LOG_URL_KEY = 'ub-remote-log-url';
|
15 |
+
const UB_REMOTE_EVENTS_URL_KEY = 'ub-remote-events-url';
|
16 |
+
const UB_API_URL_KEY = 'ub-api-url';
|
17 |
+
const UB_API_CLIENT_ID_KEY = 'ub-api-client-id';
|
18 |
const UB_AUTHORIZED_DOMAINS_KEY = 'ub-authorized-domains';
|
19 |
+
const UB_HAS_AUTHORIZED_KEY = 'ub-has-authorized';
|
20 |
+
const UB_USER_ID_KEY = 'ub-user-id';
|
21 |
+
const UB_DOMAIN_ID_KEY = 'ub-domain-id';
|
22 |
+
const UB_CLIENT_ID_KEY = 'ub-client-id';
|
23 |
+
|
24 |
+
public static function ub_option_keys() {
|
25 |
+
# All options, used by UBDiagnostics
|
26 |
+
# Arrays are not allowed in class constants, so use a function
|
27 |
+
return array(
|
28 |
+
UBConfig::UB_ROUTES_CACHE_KEY,
|
29 |
+
UBConfig::UB_REMOTE_DEBUG_KEY,
|
30 |
+
UBConfig::UB_PAGE_SERVER_DOMAIN_KEY,
|
31 |
+
UBConfig::UB_REMOTE_LOG_URL_KEY,
|
32 |
+
UBConfig::UB_REMOTE_EVENTS_URL_KEY,
|
33 |
+
UBConfig::UB_API_URL_KEY,
|
34 |
+
UBConfig::UB_API_CLIENT_ID_KEY,
|
35 |
+
UBConfig::UB_AUTHORIZED_DOMAINS_KEY,
|
36 |
+
UBConfig::UB_HAS_AUTHORIZED_KEY,
|
37 |
+
UBConfig::UB_USER_ID_KEY,
|
38 |
+
UBConfig::UB_DOMAIN_ID_KEY,
|
39 |
+
UBConfig::UB_CLIENT_ID_KEY
|
40 |
+
);
|
41 |
+
}
|
42 |
|
43 |
public static function default_page_server_domain() {
|
44 |
$domain = getenv('UB_PAGE_SERVER_DOMAIN');
|
UBDiagnostics.php
CHANGED
@@ -28,7 +28,7 @@ class UBDiagnostics {
|
|
28 |
return array(
|
29 |
'PHP Version' => phpversion(),
|
30 |
'WordPress Version' => UBDiagnostics::wordpress_version(),
|
31 |
-
'Unbounce Plugin Version' => "1.0.
|
32 |
'Permalink Structure' => get_option('permalink_structure', ''),
|
33 |
'Domain' => $domain,
|
34 |
'Domain Authorized' => print_r(UBConfig::is_authorized_domain($domain), true),
|
@@ -45,14 +45,14 @@ class UBDiagnostics {
|
|
45 |
}
|
46 |
|
47 |
private static function ub_options() {
|
48 |
-
$
|
49 |
-
return
|
50 |
-
},
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
}
|
57 |
|
58 |
private static function curl_version() {
|
28 |
return array(
|
29 |
'PHP Version' => phpversion(),
|
30 |
'WordPress Version' => UBDiagnostics::wordpress_version(),
|
31 |
+
'Unbounce Plugin Version' => "1.0.7",
|
32 |
'Permalink Structure' => get_option('permalink_structure', ''),
|
33 |
'Domain' => $domain,
|
34 |
'Domain Authorized' => print_r(UBConfig::is_authorized_domain($domain), true),
|
45 |
}
|
46 |
|
47 |
private static function ub_options() {
|
48 |
+
$option_values = array_map(function($key) {
|
49 |
+
return get_option($key);
|
50 |
+
}, UBConfig::ub_option_keys());
|
51 |
|
52 |
+
# Return an array where the key is the option key and the value
|
53 |
+
# the option value:
|
54 |
+
# array('ub-option-key' => 'option value')
|
55 |
+
return array_combine(UBConfig::ub_option_keys(), $option_values);
|
56 |
}
|
57 |
|
58 |
private static function curl_version() {
|
Unbounce-Page.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Unbounce
|
4 |
Plugin URI: http://unbounce.com
|
5 |
Description: Publish Unbounce Landing Pages to your Wordpress Domain.
|
6 |
-
Version: 1.0.
|
7 |
Author: Unbounce
|
8 |
Author URI: http://unbounce.com
|
9 |
License: GPLv2
|
@@ -262,7 +262,7 @@ function render_unbounce_pages($domain_info, $domain) {
|
|
262 |
echo '<a href="http://documentation.unbounce.com/hc/en-us/articles/205069824-Integrating-with-WordPress" target="_blank">Check out our knowledge base.</a>';
|
263 |
$diagnostics_url = admin_url('admin.php?page=unbounce-pages-diagnostics');
|
264 |
echo "<br/><a class='ub-diagnostics-link' href='${diagnostics_url}'>Diagnostics</a>";
|
265 |
-
echo '<p class="ub-version">Unbounce Version 1.0.
|
266 |
});
|
267 |
} else {
|
268 |
if (UBConfig::has_authorized()) {
|
@@ -299,7 +299,7 @@ function render_unbounce_pages($domain_info, $domain) {
|
|
299 |
echo ' target="_blank">Check out our knowledge base.</a>';
|
300 |
$diagnostics_url = admin_url('admin.php?page=unbounce-pages-diagnostics');
|
301 |
echo "<br/><a class='ub-diagnostics-link' href='${diagnostics_url}'>Diagnostics</a>";
|
302 |
-
echo '<p class="ub-version">Unbounce Version 1.0.
|
303 |
});
|
304 |
}
|
305 |
|
3 |
Plugin Name: Unbounce
|
4 |
Plugin URI: http://unbounce.com
|
5 |
Description: Publish Unbounce Landing Pages to your Wordpress Domain.
|
6 |
+
Version: 1.0.7
|
7 |
Author: Unbounce
|
8 |
Author URI: http://unbounce.com
|
9 |
License: GPLv2
|
262 |
echo '<a href="http://documentation.unbounce.com/hc/en-us/articles/205069824-Integrating-with-WordPress" target="_blank">Check out our knowledge base.</a>';
|
263 |
$diagnostics_url = admin_url('admin.php?page=unbounce-pages-diagnostics');
|
264 |
echo "<br/><a class='ub-diagnostics-link' href='${diagnostics_url}'>Diagnostics</a>";
|
265 |
+
echo '<p class="ub-version">Unbounce Version 1.0.7</p>';
|
266 |
});
|
267 |
} else {
|
268 |
if (UBConfig::has_authorized()) {
|
299 |
echo ' target="_blank">Check out our knowledge base.</a>';
|
300 |
$diagnostics_url = admin_url('admin.php?page=unbounce-pages-diagnostics');
|
301 |
echo "<br/><a class='ub-diagnostics-link' href='${diagnostics_url}'>Diagnostics</a>";
|
302 |
+
echo '<p class="ub-version">Unbounce Version 1.0.7</p>';
|
303 |
});
|
304 |
}
|
305 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: unbouncewordpress
|
|
3 |
Tags: Unbounce, AB testing, A/B testing, split testing, CRO, conversion optimization, wordpress landing page, wp landing pages, splash pages, landing pages, squeeze pages, lead gen, lead generation, email list, responsive landing pages, templates, inbound marketing, ppc, analytics
|
4 |
Requires at least: 4.1.5
|
5 |
Tested up to: 4.3
|
6 |
-
Stable tag: 1.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
3 |
Tags: Unbounce, AB testing, A/B testing, split testing, CRO, conversion optimization, wordpress landing page, wp landing pages, splash pages, landing pages, squeeze pages, lead gen, lead generation, email list, responsive landing pages, templates, inbound marketing, ppc, analytics
|
4 |
Requires at least: 4.1.5
|
5 |
Tested up to: 4.3
|
6 |
+
Stable tag: 1.0.7
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|