From 72a7fe73b2da04bf42457ee462535d841b07fd19 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 26 Jan 2016 14:25:09 -0500 Subject: [PATCH] update call for blog_info --- models/coupon.php | 6 ++++++ views/front/couponPrint.php | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 -- 2.17.1