From Marty, 2 Years ago, written in PHP.
Embed
  1. /*
  2.         Create Flight Embed Code (Embed code from code.flight.org)
  3.     The code.flight.org site is temporary.
  4.         <iframe src="http://code.flight.org/view/embed/xxxxxxxx" style="border:none;width:100%"></iframe>
  5.     Example usage: [flightcode id="688828a7" height="600"]
  6. */
  7.  
  8. function flight_code($atts) {
  9.   extract(shortcode_atts(array(
  10.     'id' => '',
  11.     'height' => '300'
  12.   ), $atts));
  13.  
  14.   return '<iframe src="http://code.flight.org/view/embed/' . $id . '" style="border:none;width:100%;height:' . $height . 'px"></iframe>';
  15. }
  16. add_shortcode('flightcode', 'flight_code');