/** * 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.')); }
/** * 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(); }
/** * 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(); }
/** * 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(); } }
/** * 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>» runalyze.de</strong></a>'); $List->display(); }
/** * Display link to tool */ protected function displayLinkToTool() { $Linklist = new BlocklinkList(); $Linklist->addCompleteLink($this->Plugin->getWindowLink(Icon::$CALCULATOR . ' ' . __('Open tool'), true)); $Linklist->display(); }