/**
  * @param string $bearing
  * @param string $headerType
  * @param string $decimalSeperator
  * @param string $thousandsSeperator
  * @param string $strNew
  * @param string $headerLink
  * @return string
  */
 public function render(\Winkel\WinkelProducts\Domain\Model\Bearing $bearing = null, $headerType = '', $decimalSeperator = ',', $thousandsSeperator = '.', $strNew = 'NEW!', $headerLink = null)
 {
     /*
     * <f:if condition="{f:format.date(date: 'now', format: 'U')} < {f:format.date(date: '{bearing.newUntil}', format: 'U')}">
            <span class="label-new">' . $strNew . '</span>
        </f:if>
     */
     if ($bearing->getNewUntil() != null) {
         $newUntil = date_format($bearing->getNewUntil(), 'U');
         if (date('U') < $newUntil) {
             $new = '<span class="list-new">' . $strNew . '</span> ';
         } else {
             $new = '';
         }
     } else {
         $new = '';
     }
     if ($headerLink != null) {
         $headerLinkArray[0] = '<a href=' . $headerLink . ' onClick="_gaq.push([\'_trackEvent\', \'Form\', \'click\', \'' . $bearing->getTitleShow() . '\']);">';
         $headerLinkArray[1] = '</a>';
     } else {
         $headerLinkArray[0] = '';
         $headerLinkArray[1] = '';
     }
     // todo check $str
     $str = '</div>' . $headerLinkArray[0] . '<div class="diameter">';
     $str .= $new . $headerType . ': ' . $bearing->getTitleShow() . ' | <span class="diasign">Ø ' . number_format($bearing->getBearingDiameter(), 1, $decimalSeperator, $thousandsSeperator) . 'mm</span>';
     if ($bearing->getLoadCapacityFRkN() != '') {
         $str .= ' | <span class="red">F<sub>R</sub> kN</span>: ' . number_format($bearing->getLoadCapacityFRkN(), 2, $decimalSeperator, $thousandsSeperator);
     }
     if ($bearing->getLoadCapacityFAkN() != '') {
         $str .= ' | <span class="red">F<sub>A</sub> kN</span>: ' . number_format($bearing->getLoadCapacityFAkN(), 2, $decimalSeperator, $thousandsSeperator);
     }
     if ($bearing->getLoadCapacityC() != '') {
         $str .= ' | <span class="red">C kN</span>: ' . number_format($bearing->getLoadCapacityC(), 1, $decimalSeperator, $thousandsSeperator);
     }
     if ($bearing->getLoadCapacityCo() != '') {
         $str .= ' | <span class="red">C<sub>O</sub> kN</span>: ' . number_format($bearing->getLoadCapacityCo(), 1, $decimalSeperator, $thousandsSeperator);
     }
     $str .= '</div>' . $headerLinkArray[1] . '<div class="clearfix borlist p5 fz0">';
     if ($bearing->getType() != $GLOBALS['previousBearing']) {
         $GLOBALS['previousBearing'] = $bearing->getType();
         return $str;
     } else {
         return '';
     }
 }