Changeset 2048899
- Timestamp:
- 03/12/2019 09:54:37 AM (7 years ago)
- Location:
- hoversignal/trunk
- Files:
-
- 2 edited
-
init.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hoversignal/trunk/init.php
r1963581 r2048899 4 4 Plugin URI: https://ru.wordpress.org/plugins/hoversignal/ 5 5 Description: HoverSignal adds interactive onsite notifications to your storefront. They display recent orders, on-site activity, products left in stock and a variety of other customer behaviors. You can also grow your email list with newsletter and sales timer notifications. 6 Version: 1.0. 16 Version: 1.0.3 7 7 Author: hoversignal 8 8 Author URI: https://hoversignal.com … … 112 112 foreach($order->get_items() as $item) { 113 113 $product = $item->get_product(); 114 $images_arr = wp_get_attachment_image_src( $product->get_image_id(), array('72', '72'), false ); 115 $image = null; 116 if($images_arr !== null && $images_arr[0] !== null) $image = $images_arr[0]; 114 if($product->get_image_id()) { 115 $images_arr = wp_get_attachment_image_src( $product->get_image_id(), array('72', '72'), false ); 116 $image = null; 117 if($images_arr !== null && $images_arr[0] !== null) $image = $images_arr[0]; 118 } else { 119 $image = ""; 120 } 117 121 118 122 $productArr = array( … … 143 147 foreach($items as $item) { 144 148 $product = $item->get_product(); 145 $images_arr = wp_get_attachment_image_src( $product->get_image_id(), array('72', '72'), false ); 146 $image = null; 147 if($images_arr !== null && $images_arr[0] !== null) $image = $images_arr[0]; 149 if($product->get_image_id()) { 150 $images_arr = wp_get_attachment_image_src( $product->get_image_id(), array('72', '72'), false ); 151 $image = null; 152 if($images_arr !== null && $images_arr[0] !== null) $image = $images_arr[0]; 153 } else { 154 $image = ""; 155 } 148 156 149 157 $productArr = array( … … 304 312 } 305 313 314 /* Set the HS script in the head */ 306 315 public function hoversignal_set_script() 307 316 { … … 330 339 s.type = "text/javascript"; 331 340 s.async = true; 332 s.src = "https://app.hoversignal.com/Api/S ignalScript/<?=$scriptKey['scriptId']?>";341 s.src = "https://app.hoversignal.com/Api/Script/<?=$scriptKey['scriptId']?>"; 333 342 if (w.opera == "[object Opera]") { 334 343 d.addEventListener("DOMContentLoaded", f, false); … … 343 352 344 353 new HoverSignal(); 345 ?> -
hoversignal/trunk/readme.txt
r2022541 r2048899 5 5 Requires at least: 4 6 6 Tested up to: 4.9.8 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 9 9 == Description == … … 63 63 == Changelog == 64 64 65 1.0.0 - preview ver ion65 1.0.0 - preview version 66 66 1.0.1 - change name 67 67 1.0.2 - image verification 68 1.0.3 - delete last php tag
Note: See TracChangeset
for help on using the changeset viewer.