Skip to content

Commit

Permalink
Merge pull request #6 from milindmore22/GH-2-6-1
Browse files Browse the repository at this point in the history
Renamed plugin and updated logo to avoid copyright violations.
  • Loading branch information
milindmore22 authored Dec 14, 2020
2 parents 3f77321 + 034bdb7 commit e95f890
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 23 deletions.
4 changes: 2 additions & 2 deletions js/fancybox_admin.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* Admin Scripts for Youtube Fancybox.
* Admin Scripts for Video Lightbox.
*/

jQuery( document ).ready( function ( $ ) {
/**
* Generate shortcode for Youtube
* Generate shortcode for Video Lightbox
*/
$( document ).on( 'click', '#genrate', function () {
var url = $( '#youtubeurl' ).val();
Expand Down
2 changes: 1 addition & 1 deletion lib/class-youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct() {
* Adding submenu page for settings
*/
public function youtubefancybox_plugin_menu() {
add_submenu_page( 'ytubefancybox', 'Youtube FancyBox Options', 'Youtube', 'manage_options', 'ytube', array( $this, 'youtubefancybox_options' ) );
add_submenu_page( 'ytubefancybox', 'Video Lightbox Options', 'Youtube', 'manage_options', 'ytube', array( $this, 'youtubefancybox_options' ) );
}

/**
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# YouTube FancyBox
# Video Lightbox for YouTube/Vimeo

Contributors: milindmore22

A YouTube FancyBox uses fancy-box(light-box) to show YouTube video in a popup box on click of thumbnail which is generated from YouTube video.
A Video Lightbox for YouTube/Vimeo uses fancy-box(light-box) to show YouTube video in a popup box on click of thumbnail which is generated from YouTube video.

Offical Wordpress Plugin Repo :
https://wordpress.org/plugins/youtubefancybox/
## Description

A Youtube Fancybox uses colorbox /lightbox (thanks to Jack Moore(http://www.jacklmoore.com/colorbox/) to show YouTube video in a popup box on click of thumbnail which is generated from
A Video Lightbox for YouTube/Vimeo uses colorbox /lightbox (thanks to Jack Moore(http://www.jacklmoore.com/colorbox/) to show YouTube video in a popup box on click of thumbnail which is generated from
YouTube video. you can use it with shortcode in page, post and text widget.

## Example:
Expand Down
25 changes: 14 additions & 11 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
=== YouTube FancyBox ===
=== Video Lightbox for YouTube/Vimeo ===
Contributors: milindmore22
Tags: youtubefancybox, youtube, fancy box, popup video, lightbox, lightbox youtube, amp
Requires at least: 3.6
Requires PHP: 5.6
Tested up to: 5.6
Stable tag: 2.6
Stable tag: 2.6.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A YouTube/Vimeo FancyBox uses a fancy-box(light-box) to show YouTube/Vimeo video in a popup box on click of thumbnail which is generated from YouTube/Vimeo video.

== Description ==

A Youtube Fancybox uses colorbox thanks to [Jack Moore](http://www.jacklmoore.com/colorbox/) to show YouTube and Vimeo video in a popup box on click of thumbnail which is generated from Youtube and Vimeo video.
A Video Lightbox for YouTube/Vimeo uses colorbox thanks to [Jack Moore](http://www.jacklmoore.com/colorbox/) to show YouTube and Vimeo video in a popup box on click of thumbnail which is generated from Youtube and Vimeo video.
you can use it with a shortcode in the page, post, and text widget.

The plugin now has support for the official AMP plugin.

[markdown syntax]: Eg:
`[youtube videoid="<youtube videoid goes here>" height="<height goes here>" width="<width goes here>"]`
`[youtube url="<youtube url goes here>"]`
`&#91;youtube videoid="<youtube videoid goes here>" height="<height goes here>" width="<width goes here>"&#93;`
`&#91;youtube url="<youtube url goes here>"&#93;`

in the backend you can generate shortcodes also you can set default height, width, and an option to play video automatically.

Now Supports Vimeo

[markdown syntax]: Eg:
`[vimeo videoid="<vimeo videoid goes here>" height="<height goes here>" width="<width goes here>"]`
`[vimeo url="<vimeo url goes here>"]`
`&#91;vimeo videoid="<vimeo videoid goes here>" height="<height goes here>" width="<width goes here>"&#93;`
`&#91;vimeo url="<vimeo url goes here>"&#93;`


== Installation ==

1. Upload `youtubefancybox` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Place shortcode like`[youtube videoid="<videoid goes here>"]` in your page, post, text widget
3. Place shortcode like`&#91;youtube videoid="<videoid goes here>"&#93;` in your page, post, text widget

== Frequently Asked Questions ==

Expand All @@ -47,11 +47,11 @@ You can set the default height and width on the admin side
= I don't want to play video after lightbox opens =
You can set the default autoplay option at the backend
= I need to set different height and width for each Youtube thumbnail =
You can set height and width for each image thumbnail in shorcode `[youtube videoid="<videoid>" height="<height>" width="<width>"]`
You can set height and width for each image thumbnail in shorcode `&#91;youtube videoid="<videoid>" height="<height>" width="<width>"&#93;`
= Where can I get youtube video id =
You can find youtube video id at the backend by inserting youtube video URL
= Can I use youtube video URL instead of video id =
Yes, you can add `[youtube url="<youtube video URL here>"]`
Yes, you can add `&#91;youtube url="<youtube video URL here>"&#93;`

== Screenshots ==

Expand All @@ -62,6 +62,9 @@ Yes, you can add `[youtube url="<youtube video URL here>"]`

== Changelog ==

= 2.6.1 =
Renamed plugin and updated logo to avoid copyright violations.

= 2.6 =
Added Official AMP Plugin Support.
Tested up to 5.6
Expand Down Expand Up @@ -121,4 +124,4 @@ First release. Compatible with IE9,IE10, Chrome, Firefox

== Upgrade notice ==

Added Official AMP Plugin Support.
Renamed plugin and updated logo to avoid copyright violations.
Binary file modified screenshots/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions youtubefancybox.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* Plugin Name: YouTube FancyBox
* Plugin Name: Video Lightbox for YouTube/Vimeo
* Plugin URI: https://wordpress.org/plugins/youtubefancybox/
* Description: Display thumbnail of Youtube and Vimeo videos and on clicking on thumbnail it will open in popupbox and play video.
* Author: Milind More
* Author URI: https://milindmore.wordpress.com/
* Version: 2.6
* Version: 2.6.1
* Text Domain: ytubebox
* Domain Path: /languages/
* Requires PHP: 5.6
Expand All @@ -17,7 +17,7 @@
namespace YTubeFancy {

/**
* Youtube Fancybox main class.
* Video Lightbox main class.
*/
class Youtubefanybox {

Expand All @@ -33,7 +33,7 @@ class Youtubefanybox {
*/
public function __construct() {

$this->version = 2.6;
$this->version = '2.6.1';

/**
* If You are admin you will get admin settings
Expand All @@ -58,7 +58,7 @@ public function __construct() {
* Adds Menu page for Youtueb Fancybox.
*/
public function youtubefancybox_plugin_main_menu() {
add_menu_page( 'YouTube FancyBox', 'YouTube FancyBox', 'manage_options', 'ytubefancybox', array( $this, 'ytubefancybox_default_settings' ), '', 6 );
add_menu_page( 'Video Lightbox for YouTube/Vimeo', 'Video Lightbox', 'manage_options', 'ytubefancybox', array( $this, 'ytubefancybox_default_settings' ), 'dashicons-format-video', 6 );
}

/**
Expand Down Expand Up @@ -143,7 +143,7 @@ public function ytubefancybox_default_settings() {
fieldset { border: 1px solid; }
</style>
<div class="wrap">
<h1><?php esc_html_e( 'Youtube FancyBox', 'ytubebox' ); ?></h1>
<h1><?php esc_html_e( 'Video Lightbox', 'ytubebox' ); ?></h1>

<h2>Set Default Options</h2>
<hr />
Expand Down

0 comments on commit e95f890

Please sign in to comment.