Пример #1
0
 public function message($val, $ref, $reprint = false)
 {
     if ($val == 0) {
         return '';
     }
     $msg = _('WFC is offering to its Owners an Access Discount for a 10% discount on all eligible items.  The Access Discount is available only for Owners who register annually at Customer Service by presenting proof of participation (e.g., a current card or current award letter) in an applicable program.');
     $msg = wordwrap($msg, 50, "\n");
     $only = ReceiptLib::bold() . 'only' . ReceiptLib::unbold();
     $annually = ReceiptLib::bold() . 'annually' . ReceiptLib::unbold();
     $msg = str_replace('only', $only, $msg);
     $msg = str_replace('annually', $annually, $msg);
     return "\n" . $msg . "\n";
 }