Changeset 3288783
- Timestamp:
- 05/07/2025 04:19:55 AM (11 months ago)
- Location:
- wpstream
- Files:
-
- 12 edited
- 1 copied
-
tags/4.6.7.2 (copied) (copied from wpstream/trunk)
-
tags/4.6.7.2/admin/class-wpstream-admin.php (modified) (1 diff)
-
tags/4.6.7.2/includes/class-wpstream.php (modified) (2 diffs)
-
tags/4.6.7.2/public/css/wpstream_style.css (modified) (2 diffs)
-
tags/4.6.7.2/public/js/wpstream-player.js (modified) (1 diff)
-
tags/4.6.7.2/readme.txt (modified) (2 diffs)
-
tags/4.6.7.2/wpstream.php (modified) (2 diffs)
-
trunk/admin/class-wpstream-admin.php (modified) (1 diff)
-
trunk/includes/class-wpstream.php (modified) (2 diffs)
-
trunk/public/css/wpstream_style.css (modified) (2 diffs)
-
trunk/public/js/wpstream-player.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wpstream.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpstream/tags/4.6.7.2/admin/class-wpstream-admin.php
r3283102 r3288783 2235 2235 return $types; 2236 2236 } 2237 2238 2239 2237 2238 public function wpstream_add_products_class( $classname, $product_type ) { 2239 if ( 'live_stream' === $product_type ) { 2240 $classname = 'WC_Product_Live_Stream'; 2241 } 2242 if ( 'video_on_demand' === $product_type ) { 2243 $classname = 'WC_Product_Video_On_Demand'; 2244 } 2245 return $classname; 2246 } 2247 2248 public function wpstream_add_custom_wc_products() { 2249 if( class_exists( 'WooCommerce' ) ){ 2250 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_live_stream.php'; 2251 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_video_on_demand.php'; 2252 } 2253 } 2254 2240 2255 /** 2241 2256 * Js action to do when user pick live stream or video on demand -
wpstream/tags/4.6.7.2/includes/class-wpstream.php
r3278949 r3288783 174 174 */ 175 175 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wpstream-public.php'; 176 177 /**176 177 /** 178 178 * The class responsible for custom post type 179 179 180 */181 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpstream_product.php';182 if( class_exists( 'WooCommerce' ) ){183 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_live_stream.php';184 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_video_on_demand.php';185 }180 */ 181 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpstream_product.php'; 182 if( class_exists( 'WooCommerce' ) ){ 183 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_live_stream.php'; 184 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_video_on_demand.php'; 185 } 186 186 187 187 $this->loader = new Wpstream_Loader(); … … 294 294 295 295 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 296 296 297 $this->loader->add_action( 'init', $plugin_admin, 'wpstream_add_custom_wc_products' ); 297 298 $this->loader->add_filter( 'product_type_selector', $plugin_admin, 'wpstream_add_products' ); 299 $this->loader->add_filter( 'woocommerce_product_class', $plugin_admin, 'wpstream_add_products_class', 10, 2 ); 298 300 $this->loader->add_action( 'admin_footer', $plugin_admin, 'wpstream_products_custom_js' ); 299 301 $this->loader->add_filter( 'woocommerce_product_data_tabs', $plugin_admin, 'wpstream_hide_attributes_data_panel',10,1 ); -
wpstream/tags/4.6.7.2/public/css/wpstream_style.css
r3278949 r3288783 194 194 195 195 .wpstream_player_container .video-js .vjs-big-play-button .vjs-icon-placeholder:before{ 196 top: 30% !important;197 196 left: 2px; 198 197 } … … 200 199 .wpstream_player_container .video-js .vjs-big-play-button .vjs-control-text { 201 200 width: max-content !important; 201 } 202 203 .wpstream_player_container .video-js .vjs-big-play-button { 204 width: 1.63332em; 202 205 } 203 206 -
wpstream/tags/4.6.7.2/public/js/wpstream-player.js
r3283102 r3288783 941 941 this.element.css("background-color", "rgb(174 69 69 / 90%)"); 942 942 943 console.log("showviewercount: ", this.element.data().showviewercount); 944 this.showCounter = this.element.data().showviewercount.toString() === "1"; 945 console.log("showCounter: ", this.showCounter); 943 const data = this.element?.data?.() || {}; 944 console.log("showviewercount:", data.showviewercount); 945 this.showCounter = (data.showviewercount !== undefined && data.showviewercount !== null) 946 ? data.showviewercount.toString() === "1" 947 : false; 948 console.log("showCounter:", this.showCounter); 946 949 947 950 //var playerElement = wrapper.find('.wpstream-video' + id); -
wpstream/tags/4.6.7.2/readme.txt
r3283730 r3288783 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.1 7 Stable tag: 4.6.7. 17 Stable tag: 4.6.7.2 8 8 License: GPL 9 9 License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 138 138 == Changelog == 139 139 140 = 4.6.7.2 = 141 * Fix - Styling of the play button over the player 142 * Enhancement - Register custom WooCommerce products 143 140 144 = 4.6.7.1 = 141 145 * Enhancement - Added new demo option -
wpstream/tags/4.6.7.2/wpstream.php
r3283730 r3288783 4 4 * Plugin URI: http://wpstream.net 5 5 * Description: WpStream is a platform that allows you to live stream, create Video-on-Demand, and offer Pay-Per-View videos. We provide an affordable and user-friendly way for businesses, non-profits, and public institutions to broadcast their content and monetize their work. 6 * Version: 4.6.7. 16 * Version: 4.6.7.2 7 7 * Author: wpstream 8 8 * Author URI: http://wpstream.net … … 15 15 die; 16 16 } 17 define('WPSTREAM_PLUGIN_VERSION', '4.6.7. 1');17 define('WPSTREAM_PLUGIN_VERSION', '4.6.7.2'); 18 18 define('WPSTREAM_CLUBLINK', 'wpstream.net'); 19 19 define('WPSTREAM_CLUBLINKSSL', 'https'); -
wpstream/trunk/admin/class-wpstream-admin.php
r3283102 r3288783 2235 2235 return $types; 2236 2236 } 2237 2238 2239 2237 2238 public function wpstream_add_products_class( $classname, $product_type ) { 2239 if ( 'live_stream' === $product_type ) { 2240 $classname = 'WC_Product_Live_Stream'; 2241 } 2242 if ( 'video_on_demand' === $product_type ) { 2243 $classname = 'WC_Product_Video_On_Demand'; 2244 } 2245 return $classname; 2246 } 2247 2248 public function wpstream_add_custom_wc_products() { 2249 if( class_exists( 'WooCommerce' ) ){ 2250 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_live_stream.php'; 2251 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_video_on_demand.php'; 2252 } 2253 } 2254 2240 2255 /** 2241 2256 * Js action to do when user pick live stream or video on demand -
wpstream/trunk/includes/class-wpstream.php
r3278949 r3288783 174 174 */ 175 175 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wpstream-public.php'; 176 177 /**176 177 /** 178 178 * The class responsible for custom post type 179 179 180 */181 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpstream_product.php';182 if( class_exists( 'WooCommerce' ) ){183 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_live_stream.php';184 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_video_on_demand.php';185 }180 */ 181 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wpstream_product.php'; 182 if( class_exists( 'WooCommerce' ) ){ 183 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_live_stream.php'; 184 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wc_product_video_on_demand.php'; 185 } 186 186 187 187 $this->loader = new Wpstream_Loader(); … … 294 294 295 295 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 296 296 297 $this->loader->add_action( 'init', $plugin_admin, 'wpstream_add_custom_wc_products' ); 297 298 $this->loader->add_filter( 'product_type_selector', $plugin_admin, 'wpstream_add_products' ); 299 $this->loader->add_filter( 'woocommerce_product_class', $plugin_admin, 'wpstream_add_products_class', 10, 2 ); 298 300 $this->loader->add_action( 'admin_footer', $plugin_admin, 'wpstream_products_custom_js' ); 299 301 $this->loader->add_filter( 'woocommerce_product_data_tabs', $plugin_admin, 'wpstream_hide_attributes_data_panel',10,1 ); -
wpstream/trunk/public/css/wpstream_style.css
r3278949 r3288783 194 194 195 195 .wpstream_player_container .video-js .vjs-big-play-button .vjs-icon-placeholder:before{ 196 top: 30% !important;197 196 left: 2px; 198 197 } … … 200 199 .wpstream_player_container .video-js .vjs-big-play-button .vjs-control-text { 201 200 width: max-content !important; 201 } 202 203 .wpstream_player_container .video-js .vjs-big-play-button { 204 width: 1.63332em; 202 205 } 203 206 -
wpstream/trunk/public/js/wpstream-player.js
r3283102 r3288783 941 941 this.element.css("background-color", "rgb(174 69 69 / 90%)"); 942 942 943 console.log("showviewercount: ", this.element.data().showviewercount); 944 this.showCounter = this.element.data().showviewercount.toString() === "1"; 945 console.log("showCounter: ", this.showCounter); 943 const data = this.element?.data?.() || {}; 944 console.log("showviewercount:", data.showviewercount); 945 this.showCounter = (data.showviewercount !== undefined && data.showviewercount !== null) 946 ? data.showviewercount.toString() === "1" 947 : false; 948 console.log("showCounter:", this.showCounter); 946 949 947 950 //var playerElement = wrapper.find('.wpstream-video' + id); -
wpstream/trunk/readme.txt
r3283730 r3288783 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.1 7 Stable tag: 4.6.7. 17 Stable tag: 4.6.7.2 8 8 License: GPL 9 9 License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 138 138 == Changelog == 139 139 140 = 4.6.7.2 = 141 * Fix - Styling of the play button over the player 142 * Enhancement - Register custom WooCommerce products 143 140 144 = 4.6.7.1 = 141 145 * Enhancement - Added new demo option -
wpstream/trunk/wpstream.php
r3283730 r3288783 4 4 * Plugin URI: http://wpstream.net 5 5 * Description: WpStream is a platform that allows you to live stream, create Video-on-Demand, and offer Pay-Per-View videos. We provide an affordable and user-friendly way for businesses, non-profits, and public institutions to broadcast their content and monetize their work. 6 * Version: 4.6.7. 16 * Version: 4.6.7.2 7 7 * Author: wpstream 8 8 * Author URI: http://wpstream.net … … 15 15 die; 16 16 } 17 define('WPSTREAM_PLUGIN_VERSION', '4.6.7. 1');17 define('WPSTREAM_PLUGIN_VERSION', '4.6.7.2'); 18 18 define('WPSTREAM_CLUBLINK', 'wpstream.net'); 19 19 define('WPSTREAM_CLUBLINKSSL', 'https');
Note: See TracChangeset
for help on using the changeset viewer.