PluginProbe
WpStream – Live Streaming, Video on Demand, Pay Per View / 4.4.10
WpStream – Live Streaming, Video on Demand, Pay Per View v4.4.10
4.14.1 4.14.0 4.13.2 4.13.1 4.13 4.12.5 4.12.4 4.12.3 4.12.2 4.12.1 4.12 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9 4.5 4.5.1 4.5.11 4.5.11.1 4.5.11.2 4.5.11.4 4.5.11.5 4.5.11.6 All 181 releases
← All changes | includes/class-wpstream-player.php +4 -17 4.54.4.10 View file →
@@ -159,9 +159,9 @@
159 159 if ( is_user_logged_in() ) {
160 160 global $product;
161 161 $current_user = wp_get_current_user();
162 162 $product_id = intval($from_sh_id);
163 - $term_list = wp_get_post_terms($product_id, 'product_type');
163 + $term_list = wp_get_post_terms($product_id, 'product_type');
164 164
165 165
166 166
167 167
@@ -192,10 +192,9 @@
192 192 }else{
193 193
194 194 if( get_post_type($product_id) == 'product' ){
195 195 echo '<div class="wpstream_player_wrapper wpstream_player_shortcode no_buy"><div class="wpstream_player_container">';
196 - $message =esc_html( get_option('wpstream_product_not_bought','You did not yet purchase this item.')) ;
197 - echo '<div class="wpstream_notice" style="background:#e16767;">'.esc_html($message).'</div>';
196 + echo '<div class="wpstream_notice" style="background:#e16767;">'.esc_html__('You did not buy this product!','wpstream').'</div>';
198 197 echo '</div></div>';
199 198 }
200 199 }
201 200
@@ -202,19 +201,9 @@
202 201
203 202 }else{
204 203
205 204 $product_id = intval($from_sh_id);
206 - $term_list = wp_get_post_terms($product_id, 'product_type');
207 -
208 - if( get_post_type($product_id) == 'product' && ($term_list[0]->name=='live_stream' || $term_list[0]->name=='video_on_demand') ){
209 -
210 - echo '<div class="wpstream_player_wrapper wpstream_player_shortcode no_buy"><div class="wpstream_player_container">';
211 - $message= esc_html( get_option('wpstream_product_not_login','You must be logged in to watch this video.')) ;
212 -
213 -
214 - echo '<div class="wpstream_notice" style="background:#e16767;">'.esc_html($message).'</div>';
215 - echo '</div></div>';
216 - }elseif( get_post_type($product_id) == 'wpstream_product' ){
205 + if( get_post_type($product_id) == 'wpstream_product' ){
217 206 $this->wpstream_live_event_player($product_id);
218 207 } else if( get_post_type($product_id) == 'wpstream_product_vod' ){
219 208 $this->wpstream_video_on_demand_player($product_id);
220 209 }
@@ -258,11 +247,9 @@
258 247 }else{
259 248
260 249 if( get_post_type($product_id) == 'product' ){
261 250 echo '<div class="wpstream_player_wrapper wpstream_player_shortcode no_buy"><div class="wpstream_player_container">';
262 -
263 - $message =esc_html( get_option('wpstream_product_not_bought','You did not yet purchase this item.')) ;
264 - echo '<div class="wpstream_notice" style="background:#e16767;">'.$message.'</div>';
251 + echo '<div class="wpstream_notice" style="background:#e16767;">'.esc_html__('You did not buy this product!','wpstream').'</div>';
265 252 echo '</div></div>';
266 253 }
267 254 }
268 255