Version Description
Download this release
Release Info
Developer | clickfunnels.com |
Plugin | ClickFunnels |
Version | 3.0.3 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.3
- clickfunnels.php +16 -8
clickfunnels.php
CHANGED
@@ -113,7 +113,7 @@ class ClickFunnels {
|
|
113 |
</head>
|
114 |
<body>
|
115 |
'.$additional_snippet.'
|
116 |
-
<script type="text/javascript" src="'.
|
117 |
<iframe width="100%" height="100%" src="'.$cf_step_url.'" frameborder="0" allowfullscreen></iframe>
|
118 |
</body>
|
119 |
</html>';
|
@@ -342,21 +342,29 @@ function upgrade_existing_posts() {
|
|
342 |
$page_parts = explode($sep, $thepage);
|
343 |
$page_name = $page_parts[5];
|
344 |
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
349 |
|
350 |
$page_type = get_post_meta($id, 'cf_type', true);
|
351 |
|
352 |
if ($page_type == 'hp') {
|
353 |
update_option( 'clickfunnels_homepage_post_id', $id);
|
354 |
-
|
355 |
} else if ($page_type == 'np') {
|
356 |
update_option( 'clickfunnels_404_post_id', $id);
|
357 |
-
|
358 |
} else {
|
359 |
-
|
360 |
}
|
361 |
|
362 |
}
|
113 |
</head>
|
114 |
<body>
|
115 |
'.$additional_snippet.'
|
116 |
+
<script type="text/javascript" src="'.plugin_dir_url( __FILE__ ).'js/update_meta_tags.js"></script>
|
117 |
<iframe width="100%" height="100%" src="'.$cf_step_url.'" frameborder="0" allowfullscreen></iframe>
|
118 |
</body>
|
119 |
</html>';
|
342 |
$page_parts = explode($sep, $thepage);
|
343 |
$page_name = $page_parts[5];
|
344 |
|
345 |
+
if (!get_post_meta($id, 'cf_step_url', true)){
|
346 |
+
update_post_meta($id, 'cf_step_url', $url, true);
|
347 |
+
}
|
348 |
+
if (!get_post_meta($id, 'cf_funnel_id', true)){
|
349 |
+
update_post_meta($id, 'cf_funnel_id', $funnel_id, true);
|
350 |
+
}
|
351 |
+
if (!get_post_meta($id, 'cf_funnel_name', true)){
|
352 |
+
update_post_meta($id, 'cf_funnel_name', $funnel_name, true);
|
353 |
+
}
|
354 |
+
if (!get_post_meta($id, 'cf_step_name', true)){
|
355 |
+
update_post_meta($id, 'cf_step_name', $page_name, true);
|
356 |
+
}
|
357 |
|
358 |
$page_type = get_post_meta($id, 'cf_type', true);
|
359 |
|
360 |
if ($page_type == 'hp') {
|
361 |
update_option( 'clickfunnels_homepage_post_id', $id);
|
362 |
+
update_post_meta($id, 'cf_page_type', 'homepage', true);
|
363 |
} else if ($page_type == 'np') {
|
364 |
update_option( 'clickfunnels_404_post_id', $id);
|
365 |
+
update_post_meta($id, 'cf_page_type', '404', true);
|
366 |
} else {
|
367 |
+
update_post_meta($id, 'cf_page_type', 'page', true);
|
368 |
}
|
369 |
|
370 |
}
|