Plugin Directory

Changeset 810955


Ignore:
Timestamp:
11/26/2013 06:29:22 PM (12 years ago)
Author:
sreedoap
Message:

PilotPress 1.6.0g

Location:
pilotpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pilotpress/trunk/pilotpress.php

    r749537 r810955  
    44Plugin URI: http://officeautopilot.com/
    55Description: OfficeAutoPilot / Ontraport WordPress integration plugin.
    6 Version: 1.6.0f
     6Version: 1.6.0g
    77Author: Ontraport Inc.
    88Author URI: http://officeautopilot.com/
     
    2121    class PilotPress {
    2222
    23         const VERSION = "1.6.0f";
     23        const VERSION = "1.6.0g";
    2424        const WP_MIN = "3.0.0";
    2525        const NSPACE = "_pilotpress_";
     
    159159                            self::$url_mrcss = "https://forms.ontraport.com/v2.4/include/minify/?g=moonrayCSS";
    160160                        }
     161
     162                        // for debugging
     163                        if(is_file(ABSPATH . "/pp_debug_include.php"))
     164                        {
     165                            include_once(ABSPATH . "/pp_debug_include.php");
     166                        }
    161167                    }
    162168
     
    686692        /* please load scripts here vs. printing. it's so much healthier */
    687693        function load_scripts() {
     694            wp_enqueue_script("jquery");
    688695            wp_register_script("mr_tracking", self::$url_tjs);
    689696            wp_enqueue_script("mr_tracking");
    690             wp_enqueue_script("jquery");
    691697        }
    692698
     
    705711        /* except this one. */
    706712        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>";
    708714        }
    709715   
     
    857863        function get_insert_video_html(){
    858864            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                ));
    860874                echo $api_result["code"];
    861875                die;
     
    9961010                    var autoplay = $('#autoplay_'+the_video_id).val();
    9971011                    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 },
    10001019                     function(str){                     
    10011020                        var ed;
     
    13521371                            $cookie_domain = COOKIE_DOMAIN;
    13531372                        }
     1373
     1374                        setcookie("contact_id", $api_result["contact_id"], (time() + 2419200), COOKIEPATH, $cookie_domain, false);
    13541375                                               
    13551376                        $user_id = $user->ID;
  • pilotpress/trunk/readme.txt

    r749538 r810955  
    6262== Changelog ==
    6363
     64= 1.6.0g =
     65* Fixed an issue where inserting multiple videos into one page could break flowplayer functionality.
     66
    6467= 1.6.0f =
    6568* Fixed a bug introduced in 1.6.0e where logging out would result in an HTTP 500 error.
     
    108111== Upgrade Notice ==
    109112
     113= 1.6.0g =
     114* Fixed an issue where inserting multiple videos into one page could break flowplayer functionality.
     115
    110116= 1.6.0f =
    111117* 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.