Changeset 2848723
- Timestamp:
- 01/15/2023 05:23:24 PM (3 years ago)
- Location:
- bg-rutube-embed
- Files:
-
- 14 added
- 3 edited
-
tags/1.6.3 (added)
-
tags/1.6.3/bg-rutube.php (added)
-
tags/1.6.3/css (added)
-
tags/1.6.3/css/bg_rutube.css (added)
-
tags/1.6.3/css/play.svg (added)
-
tags/1.6.3/inc (added)
-
tags/1.6.3/inc/options.php (added)
-
tags/1.6.3/js (added)
-
tags/1.6.3/js/bg_rutube.js (added)
-
tags/1.6.3/languages (added)
-
tags/1.6.3/languages/bg-rutube-embed-ru_RU.mo (added)
-
tags/1.6.3/languages/bg-rutube-embed-ru_RU.po (added)
-
tags/1.6.3/languages/bg-rutube-embed.pot (added)
-
tags/1.6.3/readme.txt (added)
-
trunk/bg-rutube.php (modified) (8 diffs)
-
trunk/js/bg_rutube.js (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bg-rutube-embed/trunk/bg-rutube.php
r2829606 r2848723 4 4 Plugin URI: http://bogaiskov.ru/plugin-bg-rutube-embed/ 5 5 Description: The plugin is the easiest way to embed RuTube videos in WordPress. 6 Version: 1.6. 26 Version: 1.6.3 7 7 Author: VBog 8 8 Author URI: http://bogaiskov.ru … … 12 12 */ 13 13 14 /* Copyright 2022 Vadim Bogaiskov (email: vadim.bogaiskov@yandex.ru)14 /* Copyright 2022-2023 Vadim Bogaiskov (email: vadim.bogaiskov@yandex.ru) 15 15 16 16 This program is free software; you can redistribute it and/or modify … … 39 39 die( 'Sorry, you are not allowed to access this page directly.' ); 40 40 } 41 define('BG_RUTUBE_VERSION', '1.6. 2');41 define('BG_RUTUBE_VERSION', '1.6.3'); 42 42 43 43 // Подключаем CSS и JS … … 63 63 wp_embed_register_handler( 64 64 'bg_rutube_video', 65 '~rutube\.ru/video/([a-f0-9]+ )/?~i',65 '~rutube\.ru/video/([a-f0-9]+(\/?\?t=\d+)?)/?~i', 66 66 'bg_rutube_video_callback_oembed_provider' 67 67 ); … … 115 115 'perpage' => '', 116 116 'limit' => '', 117 'mode' => '' 117 'mode' => '', 118 'start'=> 0 118 119 ), $atts ) ); 119 120 … … 137 138 }); 138 139 } 139 $quote = bg_rutube_playlist_show ( $playlist, $perpage, $mode );140 $quote = bg_rutube_playlist_show ( $playlist, $perpage, $mode, $start ); 140 141 } 141 142 return $quote; … … 373 374 374 375 ******************************************************************************************/ 375 function bg_rutube_playlist_show ( $playlist, $perpage = '', $mode = '' ) {376 function bg_rutube_playlist_show ( $playlist, $perpage = '', $mode = '', $startTime = 0) { 376 377 static $id=999; 377 378 … … 415 416 416 417 ?> 417 <div id="bg_rutube_playlistContainer<?php echo esc_attr($uuid); ?>" class="bg_rutube_playlistContainer" data-uuid="<?php echo esc_attr($uuid); ?>" data-movie="<?php echo esc_attr($playlist['tracks'][$track_no]['uuid']); ?>" data-mode="<?php echo esc_attr($startmode); ?>" >418 <div id="bg_rutube_playlistContainer<?php echo esc_attr($uuid); ?>" class="bg_rutube_playlistContainer" data-uuid="<?php echo esc_attr($uuid); ?>" data-movie="<?php echo esc_attr($playlist['tracks'][$track_no]['uuid']); ?>" data-mode="<?php echo esc_attr($startmode); ?>" data-start="<?php echo esc_attr($startTime); ?>"> 418 419 <div class="bg_rutube_centerVideo"> 419 420 <div id="bg_rutube_videoContainer<?php echo esc_attr($uuid); ?>" class="bg_rutube_videoContainer");"></div> -
bg-rutube-embed/trunk/js/bg_rutube.js
r2826261 r2848723 11 11 var movieID = jQuery(this).attr('data-movie'); 12 12 var mode = jQuery(this).attr('data-mode'); 13 var startTime = jQuery(this).attr('data-start'); 14 if (startTime) movieID += '/?t='+startTime; 13 15 jQuery('div#bg_rutube_videoContainer'+uuid).append('<iframe id="bg_rutube_player'+uuid+'" class="bg_rutube-video" webkitAllowFullScreen mozallowfullscreen allowfullscreen frameborder="0" allow="autoplay" loading="lazy"></iframe>'); 14 16 var iframe = jQuery('iframe#bg_rutube_player'+uuid); … … 105 107 }, 800); 106 108 } 107 108 109 }); 109 110 }); 110 -
bg-rutube-embed/trunk/readme.txt
r2829606 r2848723 7 7 Requires at least: 3.0.1 8 8 Tested up to: 6.1.1 9 Stable tag: 1. 6.29 Stable tag: 1.7 10 10 License: GPLv2 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 30 30 * `"load"` - load video into the frame, 31 31 * `"play"` - load video into the frame and play, 32 * `''` (*empty*) - use plugin's settings (by default). 32 * `''` (*empty*) - use plugin's settings (by default); 33 * `start` - time in seconds when the video starts. 33 34 34 35 35 36 To embed a single video or playlist, just enter its URL (https://rutube.ru/video/{**uuid**}/ or https://rutube.ru/plst/{**uuid**}/) оn a separate line. 37 38 Optional parameter `?t={**time**}` in the URL is time in seconds when the video starts. 36 39 37 40 You can choose mode of start video on page load in settings and shortcode. … … 59 62 == Changelog == 60 63 64 = 1.6.3 = 65 66 * New shortcode parameter `start` - time in seconds when the video starts. 67 61 68 = 1.6.2 = 62 69 63 * New plugin option and shortcode parameter: mode of start video on page load.70 * New plugin option and shortcode parameter: mode of start video on page load. 64 71 65 72 = 1.6.1 =
Note: See TracChangeset
for help on using the changeset viewer.