"Widgets" and create an "Adapter Video" widget. Version: 1.0.0 Author: Ryan Kienstra Author URI: www.ryankienstra.com License: GPLv2 */ add_action( 'init' , 'arv_localization_callback' ); function arv_localization_callback() { load_plugin_textdomain( 'adapter-responsive-video' , false , basename( dirname( __FILE__ ) ) . '/languages' ); } add_action( 'widgets_init' , 'arv_register_widget' ); function arv_register_widget() { register_widget( 'Adapter_Responsive_Video' ); } class Adapter_Responsive_Video extends WP_Widget { function __construct() { $options = array( 'classname' => 'adapter-responsive-video' , 'description' => __( 'Video from YouTube, Vimeo, and more.' , 'adapter-responsive-video' ) , ); $this->WP_Widget( 'adapter_responsive_video' , __( 'Adapter Video' , 'adapter-responsive-video' ) , $options ); } function form( $instance ) { $video_url = isset( $instance[ 'video_url' ] ) ? $instance[ 'video_url' ] : ""; ?>

\n"; } function arv_get_iframe_attribute( $iframe , $attribute ) { $pattern = '/" . $bootstrap_markup . ""; }