Commit 226dcd72 authored by lucha's avatar lucha

[auto] Plugin: video-sidebar-widgets 5.9

parent 8e7f35bf
......@@ -7,13 +7,13 @@
class PostMetaVideoWidget extends WP_Widget {
//function to set up widget in admin
function PostMetaVideoWidget() {
function __construct() {
$widget_ops = array( 'classname' => 'postmetavideo',
'description' => __('A Video Widget that is controlled by Post or Page custom field settings.', 'postmetavideo') );
$control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'postmetavideo' );
$this->WP_Widget( 'postmetavideo', __('Post Meta Video Widget', 'postmetavideo'), $widget_ops, $control_ops );
parent::__construct( 'postmetavideo', __('Post Meta Video Widget', 'postmetavideo'), $widget_ops, $control_ops );
}
......
......@@ -6,10 +6,10 @@
class RandomVideoSidebarWidget extends WP_Widget {
function RandomVideoSidebarWidget() {
function __construct(){
$widget_ops = array( 'classname' => 'randomvideosidebar', 'description' => __('A Random Video Widget. Randomly selects 1 of the 5 preset videos for display', 'randomvideosidebar') );
$control_ops = array( 'width' => 850, 'height' => 700, 'id_base' => 'randomvideosidebar' );
$this->WP_Widget( 'randomvideosidebar', __('Random Video Sidebar Widget', 'randomvideosidebar'), $widget_ops, $control_ops );
parent::__construct( 'randomvideosidebar', __('Random Video Sidebar Widget', 'randomvideosidebar'), $widget_ops, $control_ops );
}
......
......@@ -7,13 +7,13 @@
class VideoSidebarWidget extends WP_Widget {
//function to set up widget in admin
function VideoSidebarWidget() {
function __construct(){
$widget_ops = array( 'classname' => 'videosidebar',
'description' => __('A Video Widget to display video in sidebar from various video sharing networks', 'videosidebar') );
$control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'videosidebar' );
$this->WP_Widget( 'videosidebar', __('Video Sidebar Widget', 'videosidebar'), $widget_ops, $control_ops );
parent::__construct( 'videosidebar', __('Video Sidebar Widget', 'videosidebar'), $widget_ops, $control_ops );
}
......
......@@ -184,7 +184,7 @@ if(!empty($source)): //do this only if video source not empty, to fix widget pag
//determine admin video width.
global $current_screen;
if($current_screen->id == 'post' || $current_screen->id == 'page'){
if(@$current_screen->id == 'post' || @$current_screen->id == 'page'){
$admin_video_width = '250';
$admin_video_height = '141';
}else{
......
......@@ -4,8 +4,8 @@ Donate link: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
Author link: http://denzeldesigns.com
Tags:video, widget, widgets, sidebar, videos, video sidebar widget, video widget, embed video, video embed, video in sidebar, youtube, vimeo, veoh, myspace video, revver, blip tv, tudou, youku, 6.cn, google videos, tangle
Requires at least:2.8.1
Tested up to: 4.2
Stable tag:5.8
Tested up to: 4.4
Stable tag:5.9
== Description ==
......@@ -15,6 +15,11 @@ Stable tag:5.8
== Changelog ==
= 5.9 =
Change to use PHP 5 constructor.
= 5.8 =
Let YouTube and Vimeo video print iframe embed code, the others remains unchanged.
......
......@@ -2,7 +2,7 @@
/*
Plugin Name: Video Sidebar Widgets
Plugin URI: http://denzeldesigns.com/wordpress-plugins/video-sidebar-widgets/
Version: 5.8
Version: 5.9
Description: Video Sidebar Widgets to display videos such as Vimeo, YouTube, MySpace Videos etc. Now with added shortcode and quicktag to embed video in post and page content.
Author: Denzel Chia
Author URI: http://denzeldesigns.com/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment