* @package NFB_Video_Plugin
* @author Audrey-Rose Savard
* @version 0.9.10
Plugin Name: NFB Video Plugin
Plugin URI: http://wordpress.org/extend/plugins/nfb-video-plugin/
Description: The NFB Video Plugin is designed to allow users to embed videos
from sites who provide autodiscoverable oembed links on their
film pages. Problems? email@example.com
Author: Audrey-Rose Savard | National Film Board of Canada
Author URI: http://audreyrosesavard.com/
Copyright 2009-2012 National Film Board of Canada (email : firstname.lastname@example.org)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
global $NFB_OEMBED, $NFB_ADMIN_ZONE;
$NFB_ADMIN_ZONE = 0;
$links = NFB_get_links($text);
foreach($links as $link):
$embed = NFB_retrieve_oembed(substr(trim($link), 2));
$text = preg_replace('/\s?'.str_replace("?", "\?", str_replace("/","\/",trim($link))).'/i', $embed, $text);
$nfb_lang = ((get_option('nfb_admin_lang') != null ) ? get_option('nfb_admin_lang') : "en");
$txt_1 = ( $nfb_lang == "fr") ? "Plugin Vidéo ONF - Paramêtres" : "NFB Video Plugin - Settings" ;
$txt_2 = ( $nfb_lang == "fr") ? "Plugin Vidéo ONF" : "NFB Video Plugin" ;
add_options_page($txt_1, $txt_2, 10, __FILE__,'oEmbed_NFB_options_main');
// set the variables to change to the new ones.
// these set your new variables and remove the old ones for the nfb video plugin
$mod_vars = array(
array( "nfb_max_vid_width", 516, "oembed_nfb_width" ),
array( "nfb_max_vid_height", 337, "oembed_nfb_height" ),
array( "nfb_admin_lang", "en", "" ),
array( "nfb_show_description", 0, "" ),
array( "nfb_css_oembed_box", "", "" ),
array( "nfb_css_oembed_caption", "", "oembed_nfb_css_video_caption" ),
array( "nfb_css_description", "", "" ),
foreach ($mod_vars as $v):
$option = get_option($v);
add_option( $v, ((($option != null) && ($option != "")) ? $option : $v ) );
if (get_option($v) == ""):
if ($v == "nfb_max_vid_width"):
elseif ($v == "nfb_max_vid_height"):
update_option("nfb_max_vid_height ", 337);
delete_option( $v );
$del_vars = array(
foreach ($del_vars as $v):
/* PAGE DETAILS */
// execute the following filter to replace the links with embeds.
add_filter('the_content', 'nfb_get_embed_code', 1);
// The Administration parts for oEmbed_NFB
// The plugin adds the CSS to the header
A Postdoctoral Fellow at The Georgia Institute of Technology
I developed a website on infinite series for first year calculus students in a range of undergraduate level courses using WordPress and MediaWiki.
I set-up and authored content for a website for a large Calculus II course that offers students with reference material on probability, as their textbook does not cover this material that they are expected to know.
The Pre-Calculus Program
I delivered an on-line pre-calculus program for first year students to help prepare them for a differential calculus course. The entire program was delivered in ALEKS. I helped compose a TLEF funding proposal that was accepted for funding to further improve the program.
Recent Volunteer Projects
Having recently moved to Atlanta, I am currently looking for projects to volunteer for. But while I was living in Vancouver last year, I was able to find time for some volunteer website design.
I helped a theatre project in El Salvador re-develop its website. The project is a collaboration with a theatre school, Es Artes, and the Stratford Shakespeare Festival.
Canadian Association for Food Studies
I helped redesign the website for CAFS, a Canadian association of researchers working at universities as well as public and community based organizations that share their findings on diverse issues dealing with food security concerns.