Plugin Directory

Changeset 3288783


Ignore:
Timestamp:
05/07/2025 04:19:55 AM (11 months ago)
Author:
wpstream
Message:

Update to version 4.6.7.2 from GitHub

Location:
wpstream
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wpstream/tags/4.6.7.2/admin/class-wpstream-admin.php

    r3283102 r3288783  
    22352235            return $types;
    22362236        }
    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
    22402255         /**
    22412256        * 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  
    174174         */
    175175        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wpstream-public.php';
    176                
    177                 /**
     176
     177        /**
    178178         * The class responsible for custom post type
    179179       
    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        }
    186186
    187187        $this->loader = new Wpstream_Loader();
     
    294294                       
    295295                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' );
    297298                    $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 );
    298300                    $this->loader->add_action( 'admin_footer',                  $plugin_admin, 'wpstream_products_custom_js' );
    299301                    $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  
    194194
    195195.wpstream_player_container .video-js .vjs-big-play-button .vjs-icon-placeholder:before{
    196     top: 30% !important;
    197196    left: 2px;
    198197}
     
    200199.wpstream_player_container .video-js .vjs-big-play-button .vjs-control-text {
    201200    width: max-content !important;
     201}
     202
     203.wpstream_player_container .video-js .vjs-big-play-button {
     204    width: 1.63332em;
    202205}
    203206
  • wpstream/tags/4.6.7.2/public/js/wpstream-player.js

    r3283102 r3288783  
    941941    this.element.css("background-color", "rgb(174 69 69 / 90%)");
    942942
    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);
    946949
    947950    //var playerElement = wrapper.find('.wpstream-video' + id);
  • wpstream/tags/4.6.7.2/readme.txt

    r3283730 r3288783  
    55Tested up to: 6.8
    66Requires PHP: 7.1
    7 Stable tag: 4.6.7.1
     7Stable tag: 4.6.7.2
    88License: GPL
    99License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    138138== Changelog ==
    139139
     140= 4.6.7.2 =
     141* Fix - Styling of the play button over the player
     142* Enhancement - Register custom WooCommerce products
     143
    140144= 4.6.7.1 =
    141145* Enhancement - Added new demo option
  • wpstream/tags/4.6.7.2/wpstream.php

    r3283730 r3288783  
    44 * Plugin URI:        http://wpstream.net
    55 * 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.1
     6 * Version:           4.6.7.2
    77 * Author:            wpstream
    88 * Author URI:        http://wpstream.net
     
    1515    die;
    1616}
    17 define('WPSTREAM_PLUGIN_VERSION', '4.6.7.1');
     17define('WPSTREAM_PLUGIN_VERSION', '4.6.7.2');
    1818define('WPSTREAM_CLUBLINK', 'wpstream.net');
    1919define('WPSTREAM_CLUBLINKSSL', 'https');
  • wpstream/trunk/admin/class-wpstream-admin.php

    r3283102 r3288783  
    22352235            return $types;
    22362236        }
    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
    22402255         /**
    22412256        * Js action to do when user pick live stream or video on demand
  • wpstream/trunk/includes/class-wpstream.php

    r3278949 r3288783  
    174174         */
    175175        require_once plugin_dir_path( dirname( __FILE__ ) ) . 'public/class-wpstream-public.php';
    176                
    177                 /**
     176
     177        /**
    178178         * The class responsible for custom post type
    179179       
    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        }
    186186
    187187        $this->loader = new Wpstream_Loader();
     
    294294                       
    295295                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' );
    297298                    $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 );
    298300                    $this->loader->add_action( 'admin_footer',                  $plugin_admin, 'wpstream_products_custom_js' );
    299301                    $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  
    194194
    195195.wpstream_player_container .video-js .vjs-big-play-button .vjs-icon-placeholder:before{
    196     top: 30% !important;
    197196    left: 2px;
    198197}
     
    200199.wpstream_player_container .video-js .vjs-big-play-button .vjs-control-text {
    201200    width: max-content !important;
     201}
     202
     203.wpstream_player_container .video-js .vjs-big-play-button {
     204    width: 1.63332em;
    202205}
    203206
  • wpstream/trunk/public/js/wpstream-player.js

    r3283102 r3288783  
    941941    this.element.css("background-color", "rgb(174 69 69 / 90%)");
    942942
    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);
    946949
    947950    //var playerElement = wrapper.find('.wpstream-video' + id);
  • wpstream/trunk/readme.txt

    r3283730 r3288783  
    55Tested up to: 6.8
    66Requires PHP: 7.1
    7 Stable tag: 4.6.7.1
     7Stable tag: 4.6.7.2
    88License: GPL
    99License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    138138== Changelog ==
    139139
     140= 4.6.7.2 =
     141* Fix - Styling of the play button over the player
     142* Enhancement - Register custom WooCommerce products
     143
    140144= 4.6.7.1 =
    141145* Enhancement - Added new demo option
  • wpstream/trunk/wpstream.php

    r3283730 r3288783  
    44 * Plugin URI:        http://wpstream.net
    55 * 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.1
     6 * Version:           4.6.7.2
    77 * Author:            wpstream
    88 * Author URI:        http://wpstream.net
     
    1515    die;
    1616}
    17 define('WPSTREAM_PLUGIN_VERSION', '4.6.7.1');
     17define('WPSTREAM_PLUGIN_VERSION', '4.6.7.2');
    1818define('WPSTREAM_CLUBLINK', 'wpstream.net');
    1919define('WPSTREAM_CLUBLINKSSL', 'https');
Note: See TracChangeset for help on using the changeset viewer.