예제 #1
0
 static function getDeliveryMethodHtml($delivery_method, $label_strong)
 {
     if ($label_strong) {
         $method_html = "<strong>" . t(basket_plus_label::TEXT_DELIVERY_METHOD) . ": </strong>";
     } else {
         $method_html = t(basket_plus_label::TEXT_DELIVERY_METHOD) . ": <strong>";
     }
     //mail
     if ($delivery_method == Bp_Order_Model::DELIVERY_MAIL) {
         $method_html .= t(basket_plus_label::TEXT_DELIVERY_MAIL);
     } elseif ($delivery_method == Bp_Order_Model::DELIVERY_EMAIL) {
         $method_html .= t(basket_plus_label::TEXT_DELIVERY_EMAIL);
     } elseif ($delivery_method == Bp_Order_Model::DELIVERY_PICKUP) {
         $method_html .= t(basket_plus_label::TEXT_DELIVERY_PICKUP) . " " . basket_plus::getPickupLocation();
     } else {
         $method_html .= t("Unknown delivery method");
     }
     if (!$label_strong) {
         $method_html .= "</strong>";
     }
     $method_html .= "<br>";
     return $method_html;
 }