Changeset 1316631
- Timestamp:
- 12/26/2015 10:43:49 PM (10 years ago)
- Location:
- check-amazon-link/trunk
- Files:
-
- 2 edited
-
AZLC_HTMLParser.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
check-amazon-link/trunk/AZLC_HTMLParser.php
r1259268 r1316631 53 53 $i ++; 54 54 } 55 // handle shortcode urls 56 if ( stripos( $url_parts['host'], "amzn.to" ) !== false && $this->supports_curl ) { 57 $finalURL = $this->getFinalUrl($url); 58 if(empty($finalURL)) { 59 break; 60 } 61 $data[ $i ]['url'] = $finalURL; 62 $data[ $i ]['link_text'] = $element->innertext; 63 $data[ $i ]['link_code'] = $element->outertext; 64 $data[ $i ]['link_type'] = "a"; 65 $i ++; 66 } 55 // handle Amazon Short Links urls 56 // this is commented out due to concerns over violating Amazon's TOS 57 // it would be nice to be able to check shortcodes 58 // so if you're reading this and have any thoughts, send them to the author's email 59 //if ( stripos( $url_parts['host'], "amzn.to" ) !== false && $this->supports_curl ) { 60 // $finalURL = $this->getFinalUrl($url); 61 // if(empty($finalURL)) { 62 // break; 63 // } 64 // $data[ $i ]['url'] = $finalURL; 65 // $data[ $i ]['link_text'] = $element->innertext; 66 // $data[ $i ]['link_code'] = $element->outertext; 67 // $data[ $i ]['link_type'] = "a"; 68 // $i ++; 69 //} 67 70 68 71 } -
check-amazon-link/trunk/readme.txt
r1309405 r1316631 35 35 * Uses the Amazon Product Advertising API to request current inventory status from Amazon. 36 36 * Supports Wordpress Multisite 37 * Supports Amazon Short Links (amzn.to) as of version 1.1.038 37 39 38 == Installation ==
Note: See TracChangeset
for help on using the changeset viewer.