update call for blog_info
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 26 Jan 2016 19:25:09 +0000 (14:25 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 26 Jan 2016 19:25:09 +0000 (14:25 -0500)
models/coupon.php
views/front/couponPrint.php

index 86be705..a3708aa 100644 (file)
@@ -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' ) ) {
index 02645ed..f780e1d 100644 (file)
@@ -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( "<b>".get_bloginfo('name')."</b> - <b>".get_bloginfo('url')."</b>\n", 8, $options );
+    $y = $pdf->ezText( "<b>" . get_bloginfo('name') . "</b> - <b>" . home_url() . "</b>\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