/**
  * Display boxed values
  */
 protected function displayBoxedValues()
 {
     $Code = '';
     foreach ($this->BoxedValues as &$Value) {
         $Code .= $Value->getCode();
     }
     BoxedValue::wrapValues($Code);
 }
 /**
  * Display the content (new design)
  */
 protected function displayContentInNewDesign()
 {
     $Code = '';
     $UserData = new UserData(DataObject::$LAST_OBJECT);
     if ($UserData->getPulseMax() == 0) {
         $topBox = new BoxedValue(__('Enter maximal HR'), '', __('Otherwise calculations will be wrong'));
         $topBox->addClass('colored-orange');
         $topBox->defineAsFloatingBlockWithFixedWidth(1);
         $Code .= $topBox->getCode();
     }
     $FirstValues = array();
     $SecondValues = array();
     if ($this->Configuration()->value('use_weight')) {
         $FirstValues[] = new BoxedValue(Helper::Unknown($UserData->getWeight(), '-'), 'kg', __('Weight'));
     }
     if ($this->Configuration()->value('use_pulse')) {
         $FirstValues[] = new BoxedValue(Helper::Unknown($UserData->getPulseRest(), '-'), 'bpm', __('Resting HR'));
         $FirstValues[] = new BoxedValue(Helper::Unknown($UserData->getPulseMax(), '-'), 'bpm', __('Maximal HR'));
     }
     $NumberOfFirstValues = count($FirstValues);
     foreach ($FirstValues as &$Value) {
         $Value->defineAsFloatingBlock($NumberOfFirstValues == 2 ? "w50" : "w33");
         $Code .= $Value->getCode();
     }
     if (!empty($Code)) {
         $Code .= '<br>';
     }
     if ($this->Configuration()->value('use_body_fat')) {
         $SecondValues[] = new BoxedValue(Helper::Unknown($UserData->getBodyFat(), '-'), '&#37;', __('Fat'));
         $SecondValues[] = new BoxedValue(Helper::Unknown($UserData->getWater(), '-'), '&#37;', __('Water'));
         $SecondValues[] = new BoxedValue(Helper::Unknown($UserData->getMuscles(), '-'), '&#37;', __('Muscles'));
     }
     foreach ($SecondValues as &$Value) {
         $Value->defineAsFloatingBlock("w33");
         $Code .= $Value->getCode();
     }
     if (!empty($Code)) {
         echo BoxedValue::wrapValues($Code);
     }
     $this->displayPlots();
 }