コード例 #1
0
 /**
  * Set plot
  */
 protected function setRightContent()
 {
     $this->addRightContent('plot', __('Pace plot'), new Activity\Plot\Pace($this->Context));
     if ($this->Context->trackdata()->has(\Runalyze\Model\Trackdata\Object::PACE) && $this->Context->trackdata()->has(\Runalyze\Model\Trackdata\Object::TIME)) {
         $Table = new TableZonesPace($this->Context);
         $Code = $Table->getCode();
         $Code .= HTML::info(__('You\'ll be soon able to configure your own zones.'));
         $this->addRightContent('zones', __('Pace zones'), $Code);
     }
 }
コード例 #2
0
 /**
  * Set plot
  */
 protected function setRightContent()
 {
     if (Configuration::ActivityView()->plotMode()->showCollection() && Configuration::ActivityView()->mapFirst()) {
         $this->addMap();
     }
     $this->addRightContent('plot', __('Composite plot'), $this->getPlot());
     if ($this->Context->trackdata()->has(\Runalyze\Model\Trackdata\Object::PACE)) {
         $Table = new TableZonesPace($this->Context);
         $Code = $Table->getCode();
         $Code .= HTML::info(__('You will be soon able to configure your own zones.'));
         $this->addRightContent('zones-pace', __('Pace zones'), $Code);
     }
     if ($this->Context->trackdata()->has(\Runalyze\Model\Trackdata\Object::HEARTRATE)) {
         $Table = new TableZonesHeartrate($this->Context);
         $Code = $Table->getCode();
         $Code .= HTML::info(__('You will be soon able to configure your own zones.'));
         $this->addRightContent('zones-hr', __('Heart rate zones'), $Code);
     }
 }