/** Convert gps coordinates to html * @param int $w * @param int $h * @param int $type * @return string */ public function to_html(\System\Template\Renderer $ren, $w = \System\Gps::MAP_WIDTH_DEFAULT, $h = \System\Gps::MAP_HEIGHT_DEFAULT, $type = \System\Gps::GMAP_TYPE_ROADMAP) { return \Stag::img(array("src" => $this->map($w, $h, $type), "alt" => '')); }
public function label(\System\Template\Renderer $ren) { return $ren->link_for('team', \Stag::span(array("class" => "icon", "style" => "background:url(" . $this->logo->thumb(16, 16) . '); width:16px; height:16px;', "close" => true)) . span('team_name_short', $this->name), array("args" => array($this))); }