<% case content_type when /image\// then %> 'filter', :macro => macro, :name => name, :index => 0) %>' alt="<%= h source %>" /> <% when /text\/plain/ then %>
<%= h content[0] %>
<% when /\/.*(x|ht)ml/ then %>
<%= content[0] %>
<% when /video\/x\-flv/ then require 'RMagick' image = Magick::Image::from_blob(content[0]).first %> 'filter', :macro => macro, :name => name, :index => 0) %>);background-repeat:no-repeat'><%= image_tag 'play_large.png', :plugin => 'wiki_external_filter', :style => "display:block;position:relative;left:#{image.columns / 2 - 83 / 2}px;top:#{image.rows / 2 - 83 / 2}px" %> <% @flowplayer_used = true %> <% else %> 'filter', :macro => macro, :name => name, :index => 0) %>' type='<%= content_type %>' title="<%= h source %>"> 'filter', :macro => macro, :name => name, :index => 0) %>' type='<%= content_type %>' title="<%= h source %>" /> <% end %> <% content_for :header_tags do %> <% if not @stylesheets_included @stylesheets_included = true %> <%= stylesheet_link_tag "wiki_external_filter.css", :plugin => "wiki_external_filter", :media => :all %> <% end %> <% if @flowplayer_used if not @flowplayer_scripts_included @flowplayer_scripts_included = true %> <%= javascript_include_tag 'flowplayer.min.js', :plugin => 'wiki_external_filter' %> <% end end end %>