mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
12 lines
No EOL
1.3 KiB
Text
12 lines
No EOL
1.3 KiB
Text
-if commercial_type == CONFIG['commercial_types']['slideshare']
|
|
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> (request.ssl? ? "https://" : "http://") + "www.slideshare.net/slideshow/embed_code/#{commercial_id}"}
|
|
-elsif commercial_type == CONFIG['commercial_types']['flickr']
|
|
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> (request.ssl? ? "https://" : "http://") + "flic.kr/p/#{commercial_id}/player/268a054da2"}
|
|
-elsif commercial_type == CONFIG['commercial_types']['vimeo']
|
|
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> "//player.vimeo.com/video/#{commercial_id}"}
|
|
-elsif commercial_type == CONFIG['commercial_types']['speakerdeck']
|
|
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> "//speakerdeck.com/player/#{commercial_id}?"}
|
|
-elsif commercial_type == CONFIG['commercial_types']['instagram']
|
|
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :scrolling =>"no", :allowtransparency=>"true", :src=> "//instagram.com/p/#{commercial_id}/embed/"}
|
|
-else
|
|
%iframe{:width=>"560", :height=>"315", :frameborder=>"0", :allowfullscreen=>"true", :src=> (request.ssl? ? "https://" : "http://") + "www.youtube.com/embed/#{commercial_id}?rel=0"} |