Changeset 2378318
- Timestamp:
- 09/09/2020 08:51:49 PM (6 years ago)
- Location:
- brightedge-autopilot/trunk
- Files:
-
- 5 edited
-
be_ixf_php_wp.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/View.php (modified) (8 diffs)
-
src/be_ixf_client.php (modified) (2 diffs)
-
src/constants.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
brightedge-autopilot/trunk/be_ixf_php_wp.php
r2304216 r2378318 4 4 * Plugin URI: https://www.brightedge.com/ 5 5 * Description: Enables BrightEdge Autopilot on your Wordpress site. 6 * Version: 1.1. 26 * Version: 1.1.6 7 7 * Author: BrightEdge 8 8 * Author URI: https://www.brightedge.com/ -
brightedge-autopilot/trunk/readme.txt
r2304216 r2378318 6 6 Author: BrightEdge 7 7 Requires PHP: 5.5 8 Version: 1.1. 28 Version: 1.1.6 9 9 Copyright: BrightEdge Technologies, Inc. 10 10 License: www.brightedge.com/infrastructure-product-terms … … 24 24 25 25 == Changelog == 26 = 1.1.6 = 27 * Release date: June 29, 2020 28 29 **Update** 30 31 * Change WordPress hook for link block 32 33 34 = 1.1.5 = 35 * Release date: June 16, 2020 36 37 **Update** 38 39 * Support api.brightedge.com endpoint 40 41 42 = 1.1.4 = 43 * Release date: June 10, 2020 44 45 **Update** 46 47 * Support debug info 48 * Remove filter to avoid multiple injection 49 50 51 = 1.1.3 = 52 * Release date: May 27, 2020 53 54 **Update** 55 56 * Support body_open and body_1 at the same time 57 26 58 27 59 = 1.1.2 = -
brightedge-autopilot/trunk/src/View.php
r2285207 r2378318 17 17 && $this->checkBodyStr($this->controller->ixf_body_open_data)){ 18 18 $this->ixfAddBodyOpenBlock(); 19 } else if (isset($this->controller->ixf_data) 19 } 20 21 if (isset($this->controller->ixf_data) 20 22 && $this->checkBodyStr($this->controller->ixf_data)){ 21 23 // body 1 … … 29 31 $this->ixfAddBody1Block(); 30 32 } 33 } 34 35 if(isset($this->controller->ixf_close_data)){ 36 $this->ixfAddCloseBlock(); 31 37 } 32 38 } … … 87 93 } 88 94 89 if(isset($this->controller->ixf_close_data)){ 90 echo $this->controller->ixf_close_data; 91 } 95 remove_filter('wp_footer', array($this, 'ixfRenderBody1BlockAboveFooter')); 92 96 } 93 97 … … 108 112 } 109 113 110 if(isset($this->controller->ixf_close_data)){ 111 echo $this->controller->ixf_close_data; 112 } 114 remove_filter('wp_footer', array($this, 'ixfRenderBody1BlockFirstElementInFooter')); 113 115 } 114 116 … … 119 121 } 120 122 if(is_singular()){ 121 add_filter('the_content', array($this, 'ixfRenderBodyOpenBlock')); 123 add_action('wp_footer',function() { 124 echo $this->controller->ixf_body_open_data; 125 }, 99); 122 126 } 123 }124 125 public function ixfRenderBodyOpenBlock($content = ''){126 ob_start();127 128 if (isset($this->controller->ixf_body_open_data)) {129 echo $this->controller->ixf_body_open_data;130 }131 132 echo $content;133 134 if(isset($this->controller->ixf_close_data)){135 echo $this->controller->ixf_close_data;136 }137 return ob_get_clean();138 127 } 139 128 … … 165 154 } 166 155 167 if(isset($this->controller->ixf_close_data)){ 168 echo $this->controller->ixf_close_data; 169 } 156 remove_filter('the_content', array($this, 'ixfRenderBody1Block')); 157 170 158 return ob_get_clean(); 171 159 } … … 176 164 if (isset($this->controller->ixf_data)){ 177 165 echo $this->controller->ixf_data; 178 }179 180 if(isset($this->controller->ixf_close_data)){181 echo $this->controller->ixf_close_data;182 166 } 183 167 … … 200 184 echo $this->controller->ixf_data; 201 185 } 186 } 202 187 203 if(isset($this->controller->ixf_close_data)){ 188 public function ixfAddCloseBlock(){ 189 add_action('wp_footer',function() { 204 190 echo $this->controller->ixf_close_data; 205 } 191 }, 100); 206 192 } 207 193 } -
brightedge-autopilot/trunk/src/be_ixf_client.php
r2304216 r2378318 136 136 public static $PRODUCT_NAME = "be_ixf"; 137 137 public static $CLIENT_NAME = "php_sdk"; 138 public static $CLIENT_VERSION = "1.5. 1";138 public static $CLIENT_VERSION = "1.5.2"; 139 139 140 140 private static $API_VERSION = "1.0.0"; … … 297 297 && ($endpoint['scheme'] == "https" || $endpoint['scheme'] == "http") 298 298 && isset($endpoint['host']) 299 && preg_match("/^ixf.*-api\.bc0a\.com$/", $endpoint['host'])) { 299 && ( 300 $endpoint['host'] == "api.brightedge.com" 301 || preg_match("/^ixf.*-api\.bc0a\.com$/", $endpoint['host']) 302 )) { 300 303 $this->allowDirectApi = false; 301 304 $this->config[self::$API_ENDPOINT_CONFIG] = $_GET["ixf-endpoint"]; -
brightedge-autopilot/trunk/src/constants.php
r2304216 r2378318 5 5 class BEIXFConstants{ 6 6 // wordpress plugin version 7 const WP_VERSION = '<meta name="be:wp" content="1.1. 2">';7 const WP_VERSION = '<meta name="be:wp" content="1.1.6">'; 8 8 // account id 9 9 const ACCOUNT_ID = 'account_id';
Note: See TracChangeset
for help on using the changeset viewer.