From b0ce5bdc81f69927edfd33995457f800c6174c13 Mon Sep 17 00:00:00 2001 From: 16mhz Date: Tue, 22 Jul 2014 17:18:31 +0200 Subject: [PATCH] Humble Store bridge now with thumbnail --- bridges/HumbleStoreDiscountBridge.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 bridges/HumbleStoreDiscountBridge.php diff --git a/bridges/HumbleStoreDiscountBridge.php b/bridges/HumbleStoreDiscountBridge.php old mode 100644 new mode 100755 index 4bcea23..7d109e0 --- a/bridges/HumbleStoreDiscountBridge.php +++ b/bridges/HumbleStoreDiscountBridge.php @@ -29,10 +29,12 @@ class HumbleStoreDiscountBridge extends BridgeAbstract{ $product_uri = $store_link . $value['machine_name']; $platforms = str_replace('\'', '', implode("','", $value['platforms'])); $delivery_methods = str_replace('\'', '', implode("','", $value['delivery_methods'])); + $thumbnail = 'https://www.humblebundle.com' . $value['storefront_featured_image_small']; - $content = '' . $product_name . '
Current price: ' . $new_price . '
Full price: ' . $full_price - . '
Delivery methods: ' . $delivery_methods . '
Platforms: ' - . $platforms . '
' . $value['description']; + $content = '' . $value['storefront_featured_image_small'] . '

' . $product_name + . '

Current price: ' . $new_price . '
Full price: ' . $full_price + . '
Developer: ' . $value['developer_name'] . '
Delivery methods: ' . $delivery_methods + . '
Platforms: ' . $platforms . '
' . $value['description']; $item = new \Item(); $item->title = $product_name . ' - ' . $new_price; @@ -56,4 +58,3 @@ class HumbleStoreDiscountBridge extends BridgeAbstract{ return 21600; // 6 hours } } -