コード例 #1
0
ファイル: class.ExporterTwitter.php プロジェクト: 9x/Runalyze
 /**
  * Display
  */
 public function display()
 {
     $url = 'https://twitter.com/share?url=' . $this->getPublicURL() . '&text=' . $this->getText() . '&via=RunalyzeDE';
     $Linklist = new BlocklinkList();
     $Linklist->addCompleteLink($this->externalLink($url, __('Tweet!')));
     $Linklist->display();
     echo HTML::info(__('You will be forwared to Twitter, where you can define which text shall be displayed.'));
 }
コード例 #2
0
 /**
  * Display
  */
 public function display()
 {
     if (!$this->Context->activity()->isPublic()) {
         echo HTML::error(__('This training is private and cannot be shared.'));
         return;
     }
     $Linklist = new BlocklinkList();
     $Linklist->addCompleteLink($this->externalLink($this->getUrl(), __('Share!')));
     $Linklist->display();
     echo HTML::info(__('You will be forwarded to Facebook, where you can define which text shall be displayed.'));
     $this->throwLinkErrorForLocalhost();
 }
コード例 #3
0
 /**
  * Display
  */
 public function display()
 {
     if (!$this->Context->activity()->isPublic()) {
         echo HTML::error(__('This training is private and cannot be shared.'));
         return;
     }
     $url = 'https://plus.google.com/share?url=' . urlencode($this->getPublicURL()) . '&h1=de';
     $Linklist = new BlocklinkList();
     $Linklist->addCompleteLink($this->externalLink($url, __('Share +1')));
     $Linklist->display();
     echo HTML::info(__('You will be forwared to Google+, where you can define which text shall be displayed.'));
     $this->throwLinkErrorForLocalhost();
 }
コード例 #4
0
 /**
  * Display list
  */
 private function displayList()
 {
     ksort($this->Formats);
     foreach ($this->Formats as $Type => $Formats) {
         echo '<p><strong>' . ExporterType::heading($Type) . '</strong></p>';
         $List = new BlocklinkList();
         $List->addCSSclass('blocklist-inline clearfix');
         foreach ($Formats as $Format) {
             $URL = ExporterWindow::$URL . '?id=' . Request::sendId() . '&type=' . $Format;
             $List->addLinkWithIcon($URL, $Format, call_user_func(array('Exporter' . $Format, 'IconClass')));
         }
         $List->display();
     }
 }
コード例 #5
0
ファイル: class.FrontendShared.php プロジェクト: 9x/Runalyze
 /**
  * Display link to www.runalyze.de
  */
 protected function displayLinkToRunalyze()
 {
     $List = new BlocklinkList();
     $List->addCompleteLink('<a class="nopadding" href="http://www.runalyze.de/" title="Runalyze - Online Lauftagebuch"><strong>&raquo;&nbsp;runalyze.de</strong></a>');
     $List->display();
 }
コード例 #6
0
 /**
  * Display link to tool
  */
 protected function displayLinkToTool()
 {
     $Linklist = new BlocklinkList();
     $Linklist->addCompleteLink($this->Plugin->getWindowLink(Icon::$CALCULATOR . ' ' . __('Open tool'), true));
     $Linklist->display();
 }