예제 #1
0
파일: gps.php 프로젝트: just-paja/fudjan
 /** 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" => ''));
 }
예제 #2
0
 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)));
 }