/**
  * Set own navigation
  */
 protected function setOwnNavigation()
 {
     $LinkList = '';
     $LinkList .= '<li>' . Ajax::change(__('Personal bests'), 'statistics-inner', '#bestzeiten', 'triggered') . '</li>';
     $LinkList .= '<li>' . Ajax::change(__('All races'), 'statistics-inner', '#wk-tablelist') . '</li>';
     $this->setToolbarNavigationLinks(array($LinkList));
 }
 /**
  * Method for getting the right symbol(s)
  * @see PluginPanel::getRightSymbol()
  */
 protected function getRightSymbol()
 {
     $html = '<ul>';
     foreach ($this->getTimeset() as $i => $timeset) {
         $html .= '<li>' . Ajax::change($timeset['name'], 'sports', '#sports_' . $i) . '</li>';
     }
     return $html . '</ul>';
 }
 /**
  * Display change menu
  */
 private function displayChangeMenu()
 {
     if (count($this->RowsTabbedTitle) <= 1) {
         return;
     }
     echo '<div class="change-menu">';
     foreach ($this->RowsTabbedTitle as $i => $Title) {
         echo Ajax::change($Title, 'training-view-tabbed-' . $this->cssId(), 'training-view-tabbed-' . $this->cssId() . '-' . $i);
     }
     echo '</div>';
 }
 /**
  * Display change menu
  */
 private function displayChangeMenu()
 {
     if (count($this->Links) <= 1) {
         return;
     }
     echo '<div class="change-menu">';
     foreach ($this->Links as $key => $Title) {
         echo Ajax::change($Title, 'training-view-tabbed-' . $this->cssId(), 'training-view-tabbed-' . $this->cssId() . '-' . $key);
     }
     if (count($this->Links) > 1) {
         echo Ajax::change('<i class="fa fa-fw fa-bars"></i> ' . __('All'), 'training-view-tabbed-' . $this->cssId(), 'training-view-tabbed-' . $this->cssId());
     }
     echo '</div>';
 }
 /**
  * Method for getting the right symbol(s)
  */
 protected function getRightSymbol()
 {
     $Links = '';
     $Links .= '<li class="with-submenu"><span class="link">' . __('Choose time range') . '</span>';
     $Links .= '<ul class="submenu">';
     foreach ($this->Timeset as $i => $timeset) {
         $Link = Ajax::change($timeset['name'], 'sports', '#sports_' . $i);
         if ($i == $this->DefaultTimesetIndex) {
             $Link = Ajax::insertClass($Link, 'triggered');
         }
         $Links .= '<li>' . $Link . '</li>';
     }
     $Links .= '</ul>';
     $Links .= '</li>';
     return '<ul>' . $Links . '</ul>';
 }
 /**
  * Method for getting the right symbol(s)
  * @see PluginPanel::getRightSymbol()
  */
 protected function getRightSymbol()
 {
     $Code = '<ul>';
     foreach ($this->getTimeset() as $i => $timeset) {
         if (!$this->Configuration()->value('ziel_show_' . $i)) {
             continue;
         }
         $Code .= '<li>' . Ajax::change($timeset['name'], 'bunny', '#bunny_' . $i) . '</li>';
     }
     return $Code . '</ul>';
 }
 /**
  * Change-link for tablist
  * @return string
  */
 public final function link()
 {
     return Ajax::change($this->title(), 'ajax', $this->cssID(), $this->visible ? 'triggered' : '');
 }
Exemple #8
0
 /**
  * Display navigation
  */
 protected function displayNavigation()
 {
     $Links = array();
     foreach ($this->Tabs as $id => $Tab) {
         $Links[] = array('tag' => Ajax::change($Tab['title'], $this->containerID, '#' . $id, $Tab['active'] ? 'triggered' : ''));
     }
     echo '<div class="panel-menu">';
     echo Ajax::toolbarNavigation($Links);
     echo '</div>';
 }