Changeset 1771613
- Timestamp:
- 11/20/2017 04:28:24 PM (8 years ago)
- Location:
- woocommerce-html5-video/trunk
- Files:
-
- 2 added
- 4 edited
-
WooCommerceHTML5Video.php (modified) (1 diff)
-
WooCommerceIntegrationBackend.php (modified) (5 diffs)
-
WooCommerceIntegrationFrontend.php (modified) (3 diffs)
-
languages/html5_video-ru_RU.mo (added)
-
languages/html5_video-ru_RU.po (added)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-html5-video/trunk/WooCommerceHTML5Video.php
r1576844 r1771613 6 6 * Author: Webilop 7 7 * Author URI: http://www.webilop.com 8 * Version: 1.7. 78 * Version: 1.7.8 9 9 * License: GPLv2 or later 10 10 */ -
woocommerce-html5-video/trunk/WooCommerceIntegrationBackend.php
r1576844 r1771613 3 3 4 4 class WooCommerceIntegrationBackend { 5 6 public static $supportedVideoFormats = array('mp4', 'ogg', 'webm'); 5 7 6 8 /** … … 11 13 ?> 12 14 <li class='html5_video'> 13 <a href='#video_tab'>< ?= __('Video','html5_video') ?></a>15 <a href='#video_tab'><span><?= __('Video','html5_video') ?></span></a> 14 16 </li> 15 17 <?php … … 308 310 309 311 //check if extension is valid 310 if(in_array($extension, array('mp4', 'ogg', 'webm'))):312 if(in_array($extension, self::$supportedVideoFormats)): 311 313 ob_start(); 312 314 ?> … … 408 410 $dimension = $height .' X ' . $width; 409 411 } 412 if(empty($width)) 413 $width = 'auto'; 414 if(empty($height)) 415 $height = 'auto'; 410 416 411 417 $class = "class=''"; … … 461 467 462 468 //check if extension is valid 463 if(in_array($extension, array('mp4', 'ogg', 'webm'))):469 if(in_array($extension, self::$supportedVideoFormats)): 464 470 ob_start(); 465 471 ?> -
woocommerce-html5-video/trunk/WooCommerceIntegrationFrontend.php
r1576844 r1771613 98 98 if (self::product_has_video_tabs($product)): 99 99 $videos = json_decode(get_post_meta($product->id, 'wo_di_video_product_videos', true)); 100 if (!is_null($videos) ):100 if (!is_null($videos) && is_array($videos)): 101 101 $width_config = get_option('wo_di_config_video_width'); 102 102 $height_config = get_option('wo_di_config_video_height'); … … 160 160 161 161 //check if extension is valid 162 if(in_array($extension, array('mp4', 'ogg', 'webm'))):162 if(in_array($extension, WooCommerceIntegrationBackend::$supportedVideoFormats)): 163 163 ?> 164 164 <video width="<?= $width ?>" height="<?= $height ?>" controls> … … 223 223 if ($number_videos > 0) { 224 224 $videos = json_decode(get_post_meta($product->id, 'wo_di_video_product_videos', true)); 225 foreach ($videos as $video) {226 if ($video->active == 1) {227 return true;228 }229 }225 if(is_array($videos)) 226 foreach ($videos as $video) 227 if ($video->active == 1) 228 return true; 229 230 230 return false; 231 231 } -
woocommerce-html5-video/trunk/readme.txt
r1576844 r1771613 4 4 Tags: woocommerce, woocommerce video, woocommerce add-on, online store, product video, html5 video, mp4, ogg 5 5 Requires at least: 4.0 6 Tested up to: 4. 57 Stable tag: 1.7. 76 Tested up to: 4.9 7 Stable tag: 1.7.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 32 32 33 33 The plugin has [documentation available in English](http://www.webilop.com/products/woocommerce-html5-video/) and the [documentation in Spanish](http://www.webilop.com/es_ES/productos/woocommerce-html5-video-2/) is also available. 34 35 = Collaboration = 36 [The plugin is available in Github](https://wordpress.org/plugins/woocommerce-html5-video/). We receive patches to fix bugs and translation files. 37 You can also add bug reports in [Github issues page](https://github.com/Webilop/woocommerce-html5-video/issues). 34 38 35 39 == Installation == … … 145 149 * Fix loading videos when direct to video URLs are used without the media library. 146 150 151 = 1.7.8 = 152 * Fixes on warning log messages. Thanks to an user's report. 153 * Fix on preview of videos with no dimensions. 154 * Fix on video icon in edition page of products. 155
Note: See TracChangeset
for help on using the changeset viewer.