Changeset 976447
- Timestamp:
- 09/01/2014 01:37:49 PM (12 years ago)
- Location:
- contus-video-gallery
- Files:
-
- 16 edited
-
tags/2.7/ContusFeatureVideos.php (modified) (2 diffs)
-
tags/2.7/ContusRandomVideos.php (modified) (3 diffs)
-
tags/2.7/ContusRecentVideos.php (modified) (2 diffs)
-
tags/2.7/ContusRelatedVideos.php (modified) (1 diff)
-
tags/2.7/ContusVideoCategory.php (modified) (2 diffs)
-
tags/2.7/front/models/videohome.php (modified) (1 diff)
-
tags/2.7/front/views/videoshortcode.php (modified) (1 diff)
-
tags/2.7/hdflvvideoshare.php (modified) (1 diff)
-
trunk/ContusFeatureVideos.php (modified) (2 diffs)
-
trunk/ContusRandomVideos.php (modified) (3 diffs)
-
trunk/ContusRecentVideos.php (modified) (2 diffs)
-
trunk/ContusRelatedVideos.php (modified) (2 diffs)
-
trunk/ContusVideoCategory.php (modified) (2 diffs)
-
trunk/front/models/videohome.php (modified) (1 diff)
-
trunk/front/views/videoshortcode.php (modified) (2 diffs)
-
trunk/hdflvvideoshare.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
contus-video-gallery/tags/2.7/ContusFeatureVideos.php
r974692 r976447 53 53 extract ( $args, EXTR_SKIP ); 54 54 $title = empty ( $instance ['title'] ) ? ' ' : apply_filters ( 'widget_title', $instance ['title'] ); 55 $show = 3; 55 56 if (! empty ( $title )) 56 57 // WIDGET CODE GOES HERE … … 64 65 if( absint( $instance['show'] ) ){ 65 66 $show = $instance ['show']; 66 }else{67 $show =3;68 67 } 69 } else {70 $show = 3;71 68 } 72 69 -
contus-video-gallery/tags/2.7/ContusRandomVideos.php
r974692 r976447 93 93 $viewslang = __ ( 'Views', 'video_gallery' ); 94 94 $viewlang = __ ( 'View', 'video_gallery' ); 95 $show = 3; 95 96 echo $before_widget; 96 97 $div = '<div id="random-videos" class="sidebar-wrap "><h3 class="widget-title"><a href="' . $more_videos_link . '">' . $title . '</a></h3>'; … … 99 100 if( absint( $instance['show'] ) ){ 100 101 $show = $instance ['show']; 101 }else{102 $show = 3;103 102 } 104 }else{ 105 $show = 3; 106 } 103 } 104 107 105 $sql = 'SELECT DISTINCT a.*,s.guid,b.playlist_id,p.playlist_name FROM ' . $wpdb->prefix . 'hdflvvideoshare a 108 106 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id … … 111 109 WHERE a.publish=1 AND p.is_publish=1 GROUP BY a.vid ORDER BY RAND() LIMIT ' . $show; 112 110 $posts = $wpdb->get_results ( $sql ); 111 113 112 if (! empty ( $posts )) { 114 113 $fetched = $posts [0]->playlist_name; 115 114 } 115 116 116 $moreR = $wpdb->get_results ( 'SELECT count(a.vid) as contus from ' . $wpdb->prefix . 'hdflvvideoshare a 117 117 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id -
contus-video-gallery/tags/2.7/ContusRecentVideos.php
r974692 r976447 81 81 $viewslang = __ ( 'Views', 'video_gallery' ); 82 82 $viewlang = __ ( 'View', 'video_gallery' ); 83 $show = 3; 83 84 echo $before_widget; 84 85 $div = '<div id="recent-videos" class="sidebar-wrap "><h3 class="widget-title"><a href="' .$more_videos_link .'">' . $title . '</a></h3>'; 86 85 87 if ($instance ['show']) { 86 88 if( absint( $instance['show'] ) ) { 87 89 $show = $instance['show']; 88 90 } 89 $show = 3;90 } else {91 $show = 3;92 91 } 92 93 93 $sql = 'SELECT DISTINCT a.*,s.guid,b.playlist_id,p.playlist_name FROM ' . $wpdb->prefix . 'hdflvvideoshare a 94 94 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id … … 97 97 WHERE a.publish=1 AND p.is_publish=1 GROUP BY a.vid ORDER BY a.vid DESC LIMIT ' . $show; 98 98 $posts = $wpdb->get_results ( $sql ); 99 99 100 if (! empty ( $posts )) { 100 101 $fetched = $posts [0]->playlist_name; 101 102 } 103 102 104 $moreR = $wpdb->get_results ( 'SELECT count(a.vid) as contus from ' . $wpdb->prefix . 'hdflvvideoshare a 103 105 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id -
contus-video-gallery/tags/2.7/ContusRelatedVideos.php
r974692 r976447 40 40 extract( $args, EXTR_SKIP ); 41 41 $title = empty( $instance['title'] ) ? ' ' : apply_filters( 'widget_title', $instance['title'] ); 42 $show = 3; 42 43 global $wpdb; 43 44 // These are our own options 45 44 46 if($instance['show']){ 45 47 if( absint( $instance['show'] ) ){ 46 48 $show = $instance['show']; 47 }else{48 $show=3;49 49 } 50 }else{51 $show = 3;52 50 } 51 53 52 $site_url = get_site_url(); 54 53 $dir = dirname( plugin_basename( __FILE__ ) ); -
contus-video-gallery/tags/2.7/ContusVideoCategory.php
r973338 r976447 39 39 extract( $args, EXTR_SKIP ); 40 40 $title = empty( $instance['title']) ? ' ' : apply_filters( 'widget_title', $instance['title'] ); 41 $show = 3; 41 42 ## WIDGET CODE GOES HERE 42 43 global $wpdb; … … 46 47 if( absint( $instance['show'] ) ) { 47 48 $show = $instance['show']; 48 }else{ 49 $show = 3; 50 } 51 }else{ 52 $show = 3; 49 } 53 50 } 54 51 ?> -
contus-video-gallery/tags/2.7/front/models/videohome.php
r974692 r976447 99 99 $select = 'SELECT distinct w.vid,w.*,s.guid FROM ' . $wpdb->prefix . 'hdflvvideoshare w 100 100 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play m ON m.media_id = w.vid 101 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_playlist p ON p.pid=m.playlist_id ON p.pid=m.playlist_id101 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_playlist p ON p.pid=m.playlist_id 102 102 LEFT JOIN ' . $wpdb->prefix . 'posts s ON s.ID=w.slug 103 103 WHERE w.vid="' . $vid . '" AND w.publish=1 AND p.is_publish=1 GROUP BY w.vid'; -
contus-video-gallery/tags/2.7/front/views/videoshortcode.php
r974692 r976447 698 698 // Show /hide video description. 699 699 if ($configXML->showTag) { 700 $output .= '<div style="clear: both;"></div><div class="video-page-desc">' . apply_filters('the_content', $description ) . '</div> </div>';700 $output .= '<div style="clear: both;"></div><div class="video-page-desc">' . apply_filters('the_content', $description ) . '</div>'; 701 701 } 702 702 703 $output .= '</div>'; 704 } else { 705 // show / hide video description 706 if ($configXML->showTag) { 707 $output .= '<div style="clear:both;"></div><div class="video-page-desc">' . apply_filters('the_content', $fetched [0]->description ). '</div>'; 708 } 709 } 710 $output .= '</div></div>'; 703 $output .= '</div></div>'; 704 } 705 711 706 // Enable/disable Related videos starts here 712 707 if ( ( ( $this->_post_type === 'videogallery' && $configXML->playlist == 1|| $this->_page_post_type === 'videogallery' && $configXML->playlist == 1) ) || (((isset ( $arguments ['playlistid'] ) && isset ( $arguments ['id'] )) || $player_color['show_related_video']== 1|| (isset ( $arguments ['playlistid'] ))) && (isset ( $arguments ['relatedvideos'] ) && $arguments ['relatedvideos'] == 'on'))) { -
contus-video-gallery/tags/2.7/hdflvvideoshare.php
r973804 r976447 684 684 $progressControl = add_column_if_not_exists( $errorMsg, "$table_settings", 'progressControl', 'INT( 3 ) NOT NULL DEFAULT 1' ); 685 685 $imageDefault = add_column_if_not_exists( $errorMsg, "$table_settings", 'imageDefault', 'INT( 3 ) NOT NULL' ); 686 $memeber_upload_enable = add_column_if_not_exists( $errorMsg , "$table_setting" , 'memeber_upload_enable' , 'INT( 3 ) NOT NULL ');687 686 688 687 /** -
contus-video-gallery/trunk/ContusFeatureVideos.php
r974692 r976447 53 53 extract ( $args, EXTR_SKIP ); 54 54 $title = empty ( $instance ['title'] ) ? ' ' : apply_filters ( 'widget_title', $instance ['title'] ); 55 $show =3; 55 56 if (! empty ( $title )) 56 57 // WIDGET CODE GOES HERE … … 64 65 if( absint( $instance['show'] ) ){ 65 66 $show = $instance ['show']; 66 }else{67 $show =3;68 67 } 69 } else {70 $show = 3;71 68 } 72 69 -
contus-video-gallery/trunk/ContusRandomVideos.php
r974692 r976447 67 67 extract ( $args, EXTR_SKIP ); 68 68 $title = empty ( $instance ['title'] ) ? ' ' : apply_filters ( 'widget_title', $instance ['title'] ); 69 $show = 3; 69 70 global $wpdb; 70 71 // These are our own options … … 99 100 if( absint( $instance['show'] ) ){ 100 101 $show = $instance ['show']; 101 }else{102 $show = 3;103 102 } 104 }else{ 105 $show = 3; 106 } 103 } 104 107 105 $sql = 'SELECT DISTINCT a.*,s.guid,b.playlist_id,p.playlist_name FROM ' . $wpdb->prefix . 'hdflvvideoshare a 108 106 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id … … 111 109 WHERE a.publish=1 AND p.is_publish=1 GROUP BY a.vid ORDER BY RAND() LIMIT ' . $show; 112 110 $posts = $wpdb->get_results ( $sql ); 111 113 112 if (! empty ( $posts )) { 114 113 $fetched = $posts [0]->playlist_name; 115 114 } 115 116 116 $moreR = $wpdb->get_results ( 'SELECT count(a.vid) as contus from ' . $wpdb->prefix . 'hdflvvideoshare a 117 117 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id -
contus-video-gallery/trunk/ContusRecentVideos.php
r974692 r976447 81 81 $viewslang = __ ( 'Views', 'video_gallery' ); 82 82 $viewlang = __ ( 'View', 'video_gallery' ); 83 $show = 3; 83 84 echo $before_widget; 84 85 $div = '<div id="recent-videos" class="sidebar-wrap "><h3 class="widget-title"><a href="' .$more_videos_link .'">' . $title . '</a></h3>'; … … 87 88 $show = $instance['show']; 88 89 } 89 $show = 3;90 } else {91 $show = 3;92 90 } 91 93 92 $sql = 'SELECT DISTINCT a.*,s.guid,b.playlist_id,p.playlist_name FROM ' . $wpdb->prefix . 'hdflvvideoshare a 94 93 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play b ON a.vid=b.media_id -
contus-video-gallery/trunk/ContusRelatedVideos.php
r974692 r976447 40 40 extract( $args, EXTR_SKIP ); 41 41 $title = empty( $instance['title'] ) ? ' ' : apply_filters( 'widget_title', $instance['title'] ); 42 $show = 3; 42 43 global $wpdb; 43 44 // These are our own options … … 45 46 if( absint( $instance['show'] ) ){ 46 47 $show = $instance['show']; 47 }else{48 $show=3;49 48 } 50 }else{51 $show = 3;52 49 } 50 53 51 $site_url = get_site_url(); 54 52 $dir = dirname( plugin_basename( __FILE__ ) ); -
contus-video-gallery/trunk/ContusVideoCategory.php
r973338 r976447 39 39 extract( $args, EXTR_SKIP ); 40 40 $title = empty( $instance['title']) ? ' ' : apply_filters( 'widget_title', $instance['title'] ); 41 $show = 3; 41 42 ## WIDGET CODE GOES HERE 42 43 global $wpdb; … … 46 47 if( absint( $instance['show'] ) ) { 47 48 $show = $instance['show']; 48 }else{ 49 $show = 3; 50 } 51 }else{ 52 $show = 3; 49 } 53 50 } 54 51 ?> -
contus-video-gallery/trunk/front/models/videohome.php
r974692 r976447 99 99 $select = 'SELECT distinct w.vid,w.*,s.guid FROM ' . $wpdb->prefix . 'hdflvvideoshare w 100 100 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_med2play m ON m.media_id = w.vid 101 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_playlist p ON p.pid=m.playlist_id ON p.pid=m.playlist_id101 LEFT JOIN ' . $wpdb->prefix . 'hdflvvideoshare_playlist p ON p.pid=m.playlist_id 102 102 LEFT JOIN ' . $wpdb->prefix . 'posts s ON s.ID=w.slug 103 103 WHERE w.vid="' . $vid . '" AND w.publish=1 AND p.is_publish=1 GROUP BY w.vid'; -
contus-video-gallery/trunk/front/views/videoshortcode.php
r974692 r976447 197 197 } 198 198 // get Playlist detail 199 $playlistData = $this->playlist_detail ($vid );199 $playlistData = $this->playlist_detail ($vid ); 200 200 $incre = 0; 201 201 $playlistname = $windo = $htmlvideo = ''; … … 698 698 // Show /hide video description. 699 699 if ($configXML->showTag) { 700 $output .= '<div style="clear: both;"></div><div class="video-page-desc">' . apply_filters('the_content', $description ) . '</div> </div>';700 $output .= '<div style="clear: both;"></div><div class="video-page-desc">' . apply_filters('the_content', $description ) . '</div>'; 701 701 } 702 702 703 $output .= '</div>'; 704 } else { 705 // show / hide video description 706 if ($configXML->showTag) { 707 $output .= '<div style="clear:both;"></div><div class="video-page-desc">' . apply_filters('the_content', $fetched [0]->description ). '</div>'; 708 } 709 } 710 $output .= '</div></div>'; 703 $output .= '</div></div>'; 704 } 705 711 706 // Enable/disable Related videos starts here 712 707 if ( ( ( $this->_post_type === 'videogallery' && $configXML->playlist == 1|| $this->_page_post_type === 'videogallery' && $configXML->playlist == 1) ) || (((isset ( $arguments ['playlistid'] ) && isset ( $arguments ['id'] )) || $player_color['show_related_video']== 1|| (isset ( $arguments ['playlistid'] ))) && (isset ( $arguments ['relatedvideos'] ) && $arguments ['relatedvideos'] == 'on'))) { -
contus-video-gallery/trunk/hdflvvideoshare.php
r973804 r976447 684 684 $progressControl = add_column_if_not_exists( $errorMsg, "$table_settings", 'progressControl', 'INT( 3 ) NOT NULL DEFAULT 1' ); 685 685 $imageDefault = add_column_if_not_exists( $errorMsg, "$table_settings", 'imageDefault', 'INT( 3 ) NOT NULL' ); 686 $memeber_upload_enable = add_column_if_not_exists( $errorMsg , "$table_setting" , 'memeber_upload_enable' , 'INT( 3 ) NOT NULL ');687 686 688 687 /**
Note: See TracChangeset
for help on using the changeset viewer.