From: Steve Sutton Date: Thu, 24 Sep 2015 16:45:56 +0000 (-0400) Subject: Fixes - image and member name X-Git-Tag: v0.0.3^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9f4ccd400b26622d00a9fa88d5100c74de1d1c9e;p=WP-Plugins%2Fglm-coupons.git Fixes - image and member name Member name shows up on all of them. fixed Image size adjustment. --- diff --git a/controllers/front.php b/controllers/front.php index 87b6c21..5481881 100644 --- a/controllers/front.php +++ b/controllers/front.php @@ -104,6 +104,8 @@ class glm_coupon_front $custom = get_post_custom($coupon->ID); if ($custom['glm_coupons_member'][0]) { $member_data = $this->_getMemberData($custom['glm_coupons_member'][0]); + } else { + $member_data = array(); } $coupon->end = false; $coupon->glm_coupons_startdate = $custom['glm_coupons_startdate'][0]; @@ -112,7 +114,7 @@ class glm_coupon_front $coupon->glm_coupons_url = preg_replace('/http:\/\//i', '', $coupon->glm_coupons_url); $coupon->glm_coupons_member = ($member_data['member_name']) ? $member_data['member_name'] : ''; $coupon->glm_coupons_address = ($member_data['address']) ? $member_data['address'] : ''; - $coupon->glm_coupons_thumb = get_the_post_thumbnail($coupon->ID, 'thumbnail', array('class' => 'aligncenter')); + $coupon->glm_coupons_thumb = get_the_post_thumbnail($coupon->ID, array(151, 151), array('class' => 'aligncenter')); $post_categories = wp_get_object_terms( $coupon->ID, GLM_COUPON_TAX_CATEGORIES,