Changeset 37251
- Timestamp:
- 04/21/10 22:09:09 (3 years ago)
- Location:
- platform/tdiary
- Files:
-
- 1 removed
- 2 modified
-
doc/ja/plugin/image_detail.txt (modified) (1 diff)
-
plugin/image_detail.rb (modified) (4 diffs)
-
plugin/image_gps2.rb (deleted)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/doc/ja/plugin/image_detail.txt
r37241 r37251 10 10 revision 1.0: 11 11 ファーストリリース 12 revision 1.1: 13 スマートフォン対応、その他 12 14 13 15 インストール -
platform/tdiary/plugin/image_detail.rb
r34725 r37251 1 # image_gps.rb $Revision: 1.0 $ 1 # -*- coding: utf-8 -*- 2 # image_gps.rb $Revision: 1.1 $ 2 3 # 3 4 # 概要: … … 7 8 # 絵日記Plugin(image.rb)とおなじ 8 9 # 9 # Copyright (c) 2009 kp <kp@mmho.no-ip.org>10 # Copyright (c) 2009,2010 kp <kp@mmho.no-ip.org> 10 11 # Distributed under the GPL 11 12 # 12 13 13 14 =begin ChangeLog 15 2010-04-21 kp 16 * スマートフォン対応 17 * Google Maps API Keyが設定されていない場合はStaticMAPを生成しない 18 * リンク先をGoogleMapに統一 14 19 2009-06-03 kp 15 20 * first version … … 71 76 detail += "<li>露出補正:#{exif['ExposureBiasValue'].to_s}" if exif.tag?('ExposureBiasValue') 72 77 unless lat.nil? 73 img_map = %Q["http://maps.google.com/staticmap?format=gif&] 74 img_map += %Q[center=#{lat},#{lon}&zoom=14&size=200x200&markers=#{lat},#{lon}&] 75 img_map += %Q[key=#{@conf['image_gps.google_maps_api_key']}&sensor=false"] 76 detail += %Q[<li><a href="#{google}/maps?q=#{lat},#{lon}">] 77 detail += "#{exif['GPSLatitude'].to_s},#{exif['GPSLatitudeRef'].value}" 78 detail += " #{exif['GPSLongitude'].to_s},#{exif['GPSLongitudeRef'].value}" 79 detail += %Q[<img class="map" src=#{img_map}></a>] 78 unless (@conf['image_gps.google_maps_api_key'] == '' || @conf.iphone?) 79 img_map = %Q["http://maps.google.com/staticmap?format=gif&] 80 img_map += %Q[center=#{lat},#{lon}&zoom=14&size=200x200&markers=#{lat},#{lon}&] 81 img_map += %Q[key=#{@conf['image_gps.google_maps_api_key']}&sensor=false"] 82 end 83 map_link = %Q[<a href="#{google}/maps?q=#{lat},#{lon}">] 84 map_link += "#{exif['GPSLatitude'].to_s},#{exif['GPSLatitudeRef'].value}" 85 map_link += " #{exif['GPSLongitude'].to_s},#{exif['GPSLongitudeRef'].value}" 86 map_link += %Q[<img class="map" src=#{img_map}>] if img_map 87 map_link += "</a>" 88 detail += "<li>"+map_link 80 89 end 81 90 detail += "</ul>" … … 85 94 img_t = %Q[<img class="#{place}" src="#{@image_url}/#{image_t}" alt="#{alt}" title="#{alt}" #{size}>] 86 95 87 #static map88 96 url = '' 89 97 if @conf.mobile_agent? 90 url += %Q[<a href=#{ img_map}>] unless lat.nil?98 url += %Q[<a href=#{google}/maps/m?q=#{lat},#{lon}>] unless lat.nil? 91 99 url += thumbnail ? img_t : img 92 100 url += %Q[</a>] unless lat.nil? 93 101 else 94 url += %Q[<div class="photo_detail"> #{alt}] if detail102 url += %Q[<div class="photo_detail"><p>#{alt}</p>] if detail 95 103 url += %Q[<a href="#{@image_url}/#{image}">] 96 104 url += thumbnail ? img_t : img
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)