| @@ -397,9 +397,9 @@ | ||
| 397 | 397 | public function show_user_data($pack_details){ |
| 398 | 398 | if( isset($pack_details['available_data_mb']) && isset( $pack_details['available_storage_mb']) ){ |
| 399 | 399 | $wpstream_convert_band = $this->wpstream_convert_band($pack_details['available_data_mb']); |
| 400 | 400 | if($wpstream_convert_band<0)$wpstream_convert_band=0; |
| 401 | - // print_r($pack_details); | |
| 401 | + | |
| 402 | 402 | $wpstream_convert_storage = $this->wpstream_convert_band($pack_details['available_storage_mb']); |
| 403 | 403 | if($wpstream_convert_storage<0)$wpstream_convert_storage=0; |
| 404 | 404 | |
| 405 | 405 | print '<div class="pack_details_wrapper"><strong>'.__('Your account information: ','wpstream').'</strong> '.__('You have','wpstream').'<strong> '.$wpstream_convert_band.' Gb</strong> '.__('available streaming data and','wpstream').' <strong>'.$wpstream_convert_storage.' Gb</strong> '.__('available recording storage','wpstream'); |
| @@ -832,9 +832,9 @@ | ||
| 832 | 832 | if($item_id == 0){ |
| 833 | 833 | //retrive or create channel for front end streamers |
| 834 | 834 | $item_id=$this->wpstream_retrive_front_end_channel(); |
| 835 | 835 | } |
| 836 | - print'</div><div class="wpstream_modal_background"></div>'; | |
| 836 | + print'<div class="wpstream_modal_background"></div>'; | |
| 837 | 837 | print '<div class="wpstream_error_modal_notification"><div class="wpstream_error_content">er2</div> |
| 838 | 838 | <div class="wpstream_error_ok wpstream_button" type="button">'.esc_html__('Close','wpstream').'</div> |
| 839 | 839 | </div>'; |
| 840 | 840 | $this->admin->wpstream_live_stream_unit( $item_id,$type ); |
| @@ -924,14 +924,15 @@ | ||
| 924 | 924 | ; |
| 925 | 925 | $author_posts = new WP_Query( $args ); |
| 926 | 926 | if( $author_posts->have_posts() ) { |
| 927 | 927 | $author_posts->the_post(); |
| 928 | - return get_the_ID(); | |
| 928 | + $the_id= get_the_ID(); | |
| 929 | 929 | }else{ |
| 930 | - return 0; | |
| 930 | + $the_id= 0; | |
| 931 | 931 | } |
| 932 | 932 | |
| 933 | 933 | wp_reset_query(); |
| 934 | 934 | wp_reset_postdata(); |
| 935 | + return $the_id; | |
| 935 | 936 | } |
| 936 | 937 | |
| 937 | 938 | } |