Changeset 38249
- Timestamp:
- 08/11/10 06:25:17 (3 years ago)
- Files:
-
- 1 modified
-
platform/tdiary/plugin/youtube.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/plugin/youtube.rb
r37332 r38249 7 7 # 8 8 def youtube( video_id, size = [425,350] ) 9 if @conf.mobile_agent? or @conf.iphone? orfeed? then9 if @conf.mobile_agent? or feed? then 10 10 %Q|<div class="youtube"><a href="http://www.youtube.com/watch?v=#{video_id}">YouTube (#{video_id})</a></div>| 11 elsif defined?( :iphone? ) and iphone?12 %Q|<div class="youtube"><a href="youtube:#{video_id}">YouTube (#{video_id})</a></div>|13 11 else 12 if @conf.smartphone? 13 size = [240, 194] 14 end 14 15 <<-TAG 15 <object class="youtube" width="#{size[0]}" height="#{size[1]}"><param name="movie" value="http://www.youtube.com/v/#{video_id}"><embed src="http://www.youtube.com/v/#{video_id}" type="application/x-shockwave-flash" width="#{size[0]}" height="#{size[1]}"></embed></object> 16 <iframe class="youtube-player" type="text/html" width="#{size[0]}" height="#{size[1]}" src="http://www.youtube.com/embed/#{video_id}" frameborder="0"> 17 </iframe> 16 18 TAG 17 19 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)