Changeset 1021493
- Timestamp:
- 11/07/2014 12:58:27 PM (11 years ago)
- Location:
- mk-auto-youtube-player/trunk
- Files:
-
- 2 edited
-
plugin-youtube-auto-player.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mk-auto-youtube-player/trunk/plugin-youtube-auto-player.php
r1018215 r1021493 5 5 Description: This will allow you to play youtube videos. Just add shortcode - [youtube-auto-id] and qry string for your youtube URL ID (?uid=XXXXX). i.e. if the youtube url is "<a href="https://www.youtube.com/watch?v=IzZtMQWIFe8">https://www.youtube.com/watch?v=IzZtMQWIFe8</a>" , ?uid=IzZtMQWIFe8 and by default the plugin will <a href="http://mkplugins.com">MK Auto Youtube Player</a> will hide all controls. But if for some reason you want to show controls (play, pause, fastforward and so on), just add "us=yes". So, your query string will be - ?uc=yes&uid=HLzmXEeu0vU 6 6 Author: Mark Kumar 7 Version: 2014.11.0 27 Version: 2014.11.07 8 8 Author URI: http://mkplugins.com 9 9 */ … … 47 47 $get_video_control =0; 48 48 } 49 50 $url = 'http://www.youtube.com/watch?v='.$get_file_id; 49 50 $url = parse_url(get_site_url()); 51 52 if($url['scheme'] == 'https') 53 { 54 $url = 'https://www.youtube.com/watch?v='.$get_file_id; 55 } 56 else 57 { 58 $url = 'http://www.youtube.com/watch?v='.$get_file_id; 59 } 60 51 61 $embed_args = array( 52 62 'width' => '853', -
mk-auto-youtube-player/trunk/readme.txt
r1018215 r1021493 6 6 Requires at least: 3.6.0 7 7 Tested up to: 3.9.2 8 Stable tag: 2014.11.0 28 Stable tag: 2014.11.07 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.