Esempio n. 1
0
 /**
  * Called after arguments have been parsed, parameters are set and validated.
  * 
  * Returns the output as raw HTML.
  * 
  * @return string raw HTML
  */
 public function getOutput()
 {
     $output = "<a class=\"FlattrButton\" style=\"display:none;\" href=\"{$this->url->getOutput()}\" title=\"{$this->title->getOutput()}\"";
     if ($this->uid->hasBeenSet()) {
         $output .= " data-flattr-uid=\"{$this->uid->getOutput()}\"";
     }
     if ($this->category->hasBeenSet()) {
         $output .= " data-flattr-category=\"{$this->category->getOutput()}\"";
     }
     if ($this->language->hasBeenSet()) {
         $output .= " data-flattr-language=\"{$this->language->getOutput()}\"";
     }
     if ($this->tags->hasBeenSet()) {
         $output .= " data-flattr-tags=\"{$this->tags->getOutput()}\"";
     }
     if ($this->compact->hasBeenSet()) {
         $output .= " data-flattr-button=\"compact\"";
     }
     if ($this->nopopout->hasBeenSet()) {
         $output .= " data-flattr-popout=\"0\"";
     }
     if ($this->hidden->hasBeenSet()) {
         $output .= " data-flattr-hidden=\"1\"";
     }
     $output .= ">";
     $output .= $this->description->getOutput();
     $output .= "</a>";
     $output .= "<script type=\"text/javascript\" src=\"http://api.flattr.com/js/0.6/load.js?mode=auto\"></script>";
     if ($this->left->hasBeenSet() || $this->right->hasBeenSet()) {
         $output = "<div class=\"{$this->getCSSClasses()}\">{$output}</div>";
     }
     return $output;
 }