Version Description
Download this release
Release Info
Developer | clickfunnels.com |
Plugin | ClickFunnels |
Version | 2.0.5 |
Comparing to | |
See all releases |
Code changes from version 2.0.3 to 2.0.5
- CF_API.php +32 -8
- clickfunnels.php +6 -4
- footer.php +1 -1
- readme.txt +10 -1
CF_API.php
CHANGED
@@ -41,12 +41,36 @@ public function get_page_html( $funnel_id, $pagekey = 0, $meta = "", $title = ""
|
|
41 |
}
|
42 |
|
43 |
if ($favicon_choice == 'default') {
|
44 |
-
$
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
}
|
51 |
|
52 |
$newHTML = '<!DOCTYPE html>
|
@@ -73,8 +97,8 @@ $newHTML = '<!DOCTYPE html>
|
|
73 |
<style type="text/css">#IntercomDefaultWidget{display:none;}#Intercom{display:none;}</style>
|
74 |
<link href="https://assets3.clickfunnels.com/assets/lander.css" media="screen" rel="stylesheet"/>
|
75 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
76 |
-
<script type="text/javascript" src="https://static.clickfunnels.com/clickfunnels/landers/tmp/'.$pagekey.'.js"></script>
|
77 |
-
<script type="text/javascript">
|
78 |
// Clean up duplicate meta data
|
79 |
'.$favicon_js.'
|
80 |
$(".metaTagTop").remove();
|
41 |
}
|
42 |
|
43 |
if ($favicon_choice == 'default') {
|
44 |
+
$changed = false;
|
45 |
+
|
46 |
+
if($site_icon = get_option('site_icon')):
|
47 |
+
$favicon = wp_get_attachment_image_src($site_icon, 'full');
|
48 |
+
$favicon = $favicon[0];
|
49 |
+
$changed = true;
|
50 |
+
else:
|
51 |
+
preg_match_all('!<link(.*?)rel="(.*?)icon(.*?)"(.*?)href="(.*?)"(.*?)>!si', file_get_contents(home_url()), $res);
|
52 |
+
foreach($res as $row):
|
53 |
+
foreach($row as $item):
|
54 |
+
$img_res = @exif_imagetype($item);
|
55 |
+
if($img_res > 0 and $img_res < 18): // This is image
|
56 |
+
$favicon = $item;
|
57 |
+
$changed = true;
|
58 |
+
break;
|
59 |
+
endif;
|
60 |
+
endforeach;
|
61 |
+
endforeach;
|
62 |
+
endif;
|
63 |
+
|
64 |
+
if($changed):
|
65 |
+
$favicon_url = '<link href="'.$favicon.'" rel="shortcut icon" type="image/x-icon" />';
|
66 |
+
$favicon_js = '$("link[rel=\'icon\']").attr(\'href\',\''.$favicon.'\');';
|
67 |
+
else:
|
68 |
+
$favicon_url = '';
|
69 |
+
$favicon_js = '$("link[rel=\'icon\']").remove();';
|
70 |
+
endif;
|
71 |
+
} else {
|
72 |
+
$favicon_url = '<link href="'.$favicon.'" rel="shortcut icon" type="image/x-icon" />';
|
73 |
+
$favicon_js = '$("link[rel=\'icon\']").attr(\'href\',\''.$favicon.'\');';
|
74 |
}
|
75 |
|
76 |
$newHTML = '<!DOCTYPE html>
|
97 |
<style type="text/css">#IntercomDefaultWidget{display:none;}#Intercom{display:none;}</style>
|
98 |
<link href="https://assets3.clickfunnels.com/assets/lander.css" media="screen" rel="stylesheet"/>
|
99 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
100 |
+
<script data-cfasync="false" type="text/javascript" src="https://static.clickfunnels.com/clickfunnels/landers/tmp/'.$pagekey.'.js"></script>
|
101 |
+
<script data-cfasync="false" type="text/javascript">
|
102 |
// Clean up duplicate meta data
|
103 |
'.$favicon_js.'
|
104 |
$(".metaTagTop").remove();
|
clickfunnels.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: ClickFunnels
|
4 |
* Plugin URI: https://www.clickfunnels.com
|
5 |
* Description: Connect to your ClickFunnels account with simple authorization key and show any ClickFunnels page as your homepage or as 404 error pages or simply choose any of your pages and make clean URLs to your ClickFunnels pages. Don't have an account? <a target="_blank" href="https://www.clickfunnels.com">Sign up for your 2 week <em>free</em> trial now.</a>
|
6 |
-
* Version: 2.0.
|
7 |
* Author: Etison, LLC
|
8 |
* Author URI: https://www.clickfunnels.com
|
9 |
*/
|
@@ -25,7 +25,7 @@ class ClickFunnels {
|
|
25 |
add_filter( 'manage_edit-clickfunnels_columns', array( $this, 'add_columns' ) );
|
26 |
add_action( 'save_post', array( $this, 'save_meta' ), 10, 2 );
|
27 |
add_action( 'manage_posts_custom_column', array( $this, 'fill_columns' ) );
|
28 |
-
add_action( "template_redirect", array( $this, "do_redirects" ),
|
29 |
add_action( 'trashed_post', array( $this, 'post_trash' ), 10 );
|
30 |
add_filter( 'post_updated_messages', array( $this, 'updated_message' ) );
|
31 |
// check permalinks
|
@@ -362,8 +362,10 @@ class ClickFunnels {
|
|
362 |
update_post_meta( $post_id, "cf_wptracking_code", $cf_wptracking_code );
|
363 |
update_post_meta( $post_id, "cf_favicon_choice", $cf_favicon_choice );
|
364 |
$cf_options = get_option( "cf_options" );
|
365 |
-
|
366 |
-
|
|
|
|
|
367 |
if ( $this->is_404( $post_id ) )
|
368 |
$this->set_404( "", "" );
|
369 |
if ( $this->is_home( $post_id ) )
|
3 |
* Plugin Name: ClickFunnels
|
4 |
* Plugin URI: https://www.clickfunnels.com
|
5 |
* Description: Connect to your ClickFunnels account with simple authorization key and show any ClickFunnels page as your homepage or as 404 error pages or simply choose any of your pages and make clean URLs to your ClickFunnels pages. Don't have an account? <a target="_blank" href="https://www.clickfunnels.com">Sign up for your 2 week <em>free</em> trial now.</a>
|
6 |
+
* Version: 2.0.5
|
7 |
* Author: Etison, LLC
|
8 |
* Author URI: https://www.clickfunnels.com
|
9 |
*/
|
25 |
add_filter( 'manage_edit-clickfunnels_columns', array( $this, 'add_columns' ) );
|
26 |
add_action( 'save_post', array( $this, 'save_meta' ), 10, 2 );
|
27 |
add_action( 'manage_posts_custom_column', array( $this, 'fill_columns' ) );
|
28 |
+
add_action( "template_redirect", array( $this, "do_redirects" ), 1, 2 );
|
29 |
add_action( 'trashed_post', array( $this, 'post_trash' ), 10 );
|
30 |
add_filter( 'post_updated_messages', array( $this, 'updated_message' ) );
|
31 |
// check permalinks
|
362 |
update_post_meta( $post_id, "cf_wptracking_code", $cf_wptracking_code );
|
363 |
update_post_meta( $post_id, "cf_favicon_choice", $cf_favicon_choice );
|
364 |
$cf_options = get_option( "cf_options" );
|
365 |
+
if(isset( $cf_options['pages'][$cf_slug] )):
|
366 |
+
unset( $cf_options['pages'][$cf_slug] );
|
367 |
+
update_option( "cf_options", $cf_options );
|
368 |
+
endif;
|
369 |
if ( $this->is_404( $post_id ) )
|
370 |
$this->set_404( "", "" );
|
371 |
if ( $this->is_home( $post_id ) )
|
footer.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<div class="copyrightInfo">
|
2 |
-
<p><strong style="float: right;font-weight: 600;font-size: 11px;text-align: right;">Running Version 2.0.
|
3 |
</div>
|
4 |
<style>
|
5 |
.copyrightInfo {
|
1 |
<div class="copyrightInfo">
|
2 |
+
<p><strong style="float: right;font-weight: 600;font-size: 11px;text-align: right;">Running Version 2.0.5</strong> Copyright 2015+ © Eitson, LLC</p>
|
3 |
</div>
|
4 |
<style>
|
5 |
.copyrightInfo {
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Author URI: https://profiles.wordpress.org/clickfunnelscom
|
|
6 |
Tags: landing pages, clickfunnels, funnels, sales funnel, optin, internet marketing
|
7 |
Requires at least: 3.0
|
8 |
Tested up to: 4.4.1
|
9 |
-
Stable tag: 2.0.
|
10 |
|
11 |
Connect your ClickFunnels pages to your WordPress blog. Create custom pages, set as homepage or 404 page with easy setup.
|
12 |
|
@@ -100,6 +100,15 @@ By re-selecting the page it will ping the server which should refresh your page.
|
|
100 |
|
101 |
Stay current with the latest version of the plugin:
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
= Version 2.0.3 =
|
104 |
|
105 |
* API Not Connected Issue Fix
|
6 |
Tags: landing pages, clickfunnels, funnels, sales funnel, optin, internet marketing
|
7 |
Requires at least: 3.0
|
8 |
Tested up to: 4.4.1
|
9 |
+
Stable tag: 2.0.5
|
10 |
|
11 |
Connect your ClickFunnels pages to your WordPress blog. Create custom pages, set as homepage or 404 page with easy setup.
|
12 |
|
100 |
|
101 |
Stay current with the latest version of the plugin:
|
102 |
|
103 |
+
= Version 2.0.5 =
|
104 |
+
|
105 |
+
* Redirect fixes
|
106 |
+
|
107 |
+
= Version 2.0.4 =
|
108 |
+
|
109 |
+
* White screan fix
|
110 |
+
* Favicon fix
|
111 |
+
|
112 |
= Version 2.0.3 =
|
113 |
|
114 |
* API Not Connected Issue Fix
|