Plugin Directory

Changeset 1021493


Ignore:
Timestamp:
11/07/2014 12:58:27 PM (11 years ago)
Author:
mkplugins
Message:

new update 2014.11

Location:
mk-auto-youtube-player/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mk-auto-youtube-player/trunk/plugin-youtube-auto-player.php

    r1018215 r1021493  
    55Description: 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
    66Author: Mark Kumar
    7 Version: 2014.11.02
     7Version: 2014.11.07
    88Author URI: http://mkplugins.com
    99 */
     
    4747        $get_video_control =0;
    4848    }
    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   
    5161    $embed_args = array(
    5262    'width' => '853',
  • mk-auto-youtube-player/trunk/readme.txt

    r1018215 r1021493  
    66Requires at least: 3.6.0
    77Tested up to: 3.9.2
    8 Stable tag: 2014.11.02
     8Stable tag: 2014.11.07
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.