From: Steve Sutton Date: Tue, 26 Jan 2016 19:25:09 +0000 (-0500) Subject: update call for blog_info X-Git-Tag: v0.1.0^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=72a7fe73b2da04bf42457ee462535d841b07fd19;p=WP-Plugins%2Fglm-coupons.git update call for blog_info --- diff --git a/models/coupon.php b/models/coupon.php index 86be705..a3708aa 100644 --- a/models/coupon.php +++ b/models/coupon.php @@ -222,6 +222,12 @@ class glm_coupons_coupon */ private function _getMemberList() { + //return array( + //array( + //'id' => 24, + //'name' => 'Super 8 Hotel' + //) + //); global $wpdb; $members = array(); if ( !defined( 'GLM_MEMBERS_PLUGIN_DB_PREFIX' ) ) { diff --git a/views/front/couponPrint.php b/views/front/couponPrint.php index 02645ed..f780e1d 100644 --- a/views/front/couponPrint.php +++ b/views/front/couponPrint.php @@ -19,7 +19,7 @@ $all = $pdf->openObject(); $pdf->saveState(); $pdf->setLineStyle(1, '', '', array(20, 5, 10, 5)); $pdf->setStrokeColor(0, 0, 0, 1); -$pdf->addText(50, 34, 6, get_bloginfo('url') .date('F jS, Y')); +$pdf->addText(50, 34, 6, home_url() .date('F jS, Y')); $pdf->restoreState(); $pdf->closeObject(); $pdf->addObject($all, 'all'); @@ -108,7 +108,7 @@ foreach ($coupons as $coupon) { $pdf->saveState(); $pdf->setLineStyle(1, null, null, array()); $pdf->line($x, $y, $x + $coupon_width, $y); // make line for bottom - $y = $pdf->ezText( "".get_bloginfo('name')." - ".get_bloginfo('url')."\n", 8, $options ); + $y = $pdf->ezText( "" . get_bloginfo('name') . " - " . home_url() . "\n", 8, $options ); $pdf->restoreState(); $pdf->line($x, $y, $x + $coupon_width, $y); // make line for bottom $pdf->line($x + $coupon_width, $reset, $x + $coupon_width, $y); // make right