Beispiel #1
0
 /**
  * Generate and return the address label
  * @param array
  * @return string
  */
 public function renderLabel($arrAddress)
 {
     $objAddress = new \Isotope\Model\Address();
     $objAddress->setRow($arrAddress);
     $strBuffer = $objAddress->generateHtml();
     $strBuffer .= '<div style="color:#b3b3b3;margin-top:8px">' . $GLOBALS['TL_LANG']['tl_iso_address']['store_id'][0] . ' ' . $arrAddress['store_id'];
     if ($arrAddress['isDefaultBilling']) {
         $strBuffer .= ', ' . $GLOBALS['TL_LANG']['tl_iso_address']['isDefaultBilling'][0];
     }
     if ($arrAddress['isDefaultShipping']) {
         $strBuffer .= ', ' . $GLOBALS['TL_LANG']['tl_iso_address']['isDefaultShipping'][0];
     }
     $strBuffer .= '</div>';
     return $strBuffer;
 }