Example #1
0
 function PrintShort($year = null) {
   //if ($this->id == NO_PARTY_ID) return "";
   if ($this->id == 0) return "??";
   $s = shortify_cut($this->name,20);
   return sprintf("<a href='party.php?which=%d&amp;when=%d'>%s %d</a>",
     $this->id,$year,_html($s),$year);
 }
 static function Display($itemID, $data)
 {
   $prod = PouetProd::Spawn( $itemID );
   $s = "<b>current</b>: ";
   $s .= "<a href='"._html($prod->download)."'>"._html(shortify_cut($prod->download,50))."</a>";
   if ($prod->download != $data["oldDownloadLink"])
   {
     $s .= "<br/><b>old</b>: ";
     $s .= "<a href='"._html($data["oldDownloadLink"])."'>"._html(shortify_cut($data["oldDownloadLink"],50))."</a>";
   }
   $s .= "<br/><b>new</b>: ";
   $s .= "<a href='"._html($data["downloadLink"])."'>"._html(shortify_cut($data["downloadLink"],50))."</a>";
   $s .= "<br/><b>reason</b>: ";
   $s .= _html($data["reason"]);
  
   return $s;
 }
Example #3
0
 function RenderLinkTruncated() {
   return sprintf("<a href='prod.php?which=%d'>%s</a>",$this->id,_html(shortify_cut($this->name,40)));
 }