Changeset 810955
- Timestamp:
- 11/26/2013 06:29:22 PM (12 years ago)
- Location:
- pilotpress/trunk
- Files:
-
- 2 edited
-
pilotpress.php (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pilotpress/trunk/pilotpress.php
r749537 r810955 4 4 Plugin URI: http://officeautopilot.com/ 5 5 Description: OfficeAutoPilot / Ontraport WordPress integration plugin. 6 Version: 1.6.0 f6 Version: 1.6.0g 7 7 Author: Ontraport Inc. 8 8 Author URI: http://officeautopilot.com/ … … 21 21 class PilotPress { 22 22 23 const VERSION = "1.6.0 f";23 const VERSION = "1.6.0g"; 24 24 const WP_MIN = "3.0.0"; 25 25 const NSPACE = "_pilotpress_"; … … 159 159 self::$url_mrcss = "https://forms.ontraport.com/v2.4/include/minify/?g=moonrayCSS"; 160 160 } 161 162 // for debugging 163 if(is_file(ABSPATH . "/pp_debug_include.php")) 164 { 165 include_once(ABSPATH . "/pp_debug_include.php"); 166 } 161 167 } 162 168 … … 686 692 /* please load scripts here vs. printing. it's so much healthier */ 687 693 function load_scripts() { 694 wp_enqueue_script("jquery"); 688 695 wp_register_script("mr_tracking", self::$url_tjs); 689 696 wp_enqueue_script("mr_tracking"); 690 wp_enqueue_script("jquery");691 697 } 692 698 … … 705 711 /* except this one. */ 706 712 function tracking() { 707 echo "<script>_mri = \"".$this->get_setting('tracking','oap')."\";_mr_domain = \" reed.ontraport.net\"; mrtracking();</script>";713 echo "<script>_mri = \"".$this->get_setting('tracking','oap')."\";_mr_domain = \"" . $this->get_setting('tracking_url', 'oap') . "\"; mrtracking();</script>"; 708 714 } 709 715 … … 857 863 function get_insert_video_html(){ 858 864 if(isset($_POST["video_id"])) { 859 $api_result = $this->api_call("get_video", array("video_id" => $_POST["video_id"], "width" => '480', "height" => "320", "player" => $_POST["use_player"], "autoplay" => $_POST["use_autoplay"], "viral" => $_POST["use_viral"])); 865 $api_result = $this->api_call("get_video", array( 866 "video_id" => $_POST["video_id"], 867 "width" => '480', 868 "height" => "320", 869 "player" => $_POST["use_player"], 870 "autoplay" => $_POST["use_autoplay"], 871 "viral" => $_POST["use_viral"], 872 "omit_flowplayerjs" => ($_POST["omit_flowplayerjs"] == "true" ? true : false) 873 )); 860 874 echo $api_result["code"]; 861 875 die; … … 996 1010 var autoplay = $('#autoplay_'+the_video_id).val(); 997 1011 var viral = $('#viral_'+the_video_id).val(); 998 999 $.post("<?php echo $this->homepage_url; ?>/wp-admin/admin-ajax.php", { action: "pp_insert_video", video_id: the_video_id, use_viral: viral, use_player: player, use_autoplay: autoplay, 'cookie': encodeURIComponent(document.cookie) }, 1012 var omit_flowplayerjs = false; 1013 1014 if($("textarea.wp-editor-area", top.document).val().indexOf("clientvids/flowplayer") !== -1) { 1015 omit_flowplayerjs = true; 1016 } 1017 1018 $.post("<?php echo $this->homepage_url; ?>/wp-admin/admin-ajax.php", { action: "pp_insert_video", video_id: the_video_id, use_viral: viral, use_player: player, use_autoplay: autoplay, 'cookie': encodeURIComponent(document.cookie), "omit_flowplayerjs": omit_flowplayerjs }, 1000 1019 function(str){ 1001 1020 var ed; … … 1352 1371 $cookie_domain = COOKIE_DOMAIN; 1353 1372 } 1373 1374 setcookie("contact_id", $api_result["contact_id"], (time() + 2419200), COOKIEPATH, $cookie_domain, false); 1354 1375 1355 1376 $user_id = $user->ID; -
pilotpress/trunk/readme.txt
r749538 r810955 62 62 == Changelog == 63 63 64 = 1.6.0g = 65 * Fixed an issue where inserting multiple videos into one page could break flowplayer functionality. 66 64 67 = 1.6.0f = 65 68 * Fixed a bug introduced in 1.6.0e where logging out would result in an HTTP 500 error. … … 108 111 == Upgrade Notice == 109 112 113 = 1.6.0g = 114 * Fixed an issue where inserting multiple videos into one page could break flowplayer functionality. 115 110 116 = 1.6.0f = 111 117 * Fixed a bug introduced in 1.6.0e where logging out would result in an HTTP 500 error.
Note: See TracChangeset
for help on using the changeset viewer.