Changeset 778159
- Timestamp:
- 09/25/2013 07:03:54 AM (13 years ago)
- Location:
- contus-video-gallery/trunk
- Files:
-
- 5 added
- 69 edited
-
ContusFeatureVideos.php (modified) (8 diffs)
-
ContusPopularVideos.php (modified) (7 diffs)
-
ContusRecentVideos.php (modified) (7 diffs)
-
ContusRelatedVideos.php (modified) (7 diffs)
-
ContusVideoCategory.php (modified) (3 diffs)
-
ContusVideoSearch.php (modified) (1 diff)
-
README.md (added)
-
admin/ajax/videoupload.php (modified) (1 diff)
-
admin/controllers/ajaxplaylistController.php (modified) (1 diff)
-
admin/controllers/playlistController.php (modified) (1 diff)
-
admin/controllers/videoadsController.php (modified) (2 diffs)
-
admin/controllers/videosController.php (modified) (7 diffs)
-
admin/controllers/videosettingsController.php (modified) (7 diffs)
-
admin/css/adminsettings.css (modified) (1 diff)
-
admin/css/jquery.ui.all.css (modified) (1 diff)
-
admin/css/jquery.ui.base.css (modified) (1 diff)
-
admin/css/jquery.ui.core.css (modified) (1 diff)
-
admin/css/jquery.ui.theme.css (modified) (1 diff)
-
admin/js/admin.js (modified) (17 diffs)
-
admin/js/jquery-1.4.4.js (modified) (1 diff)
-
admin/js/jquery-ui-1.7.1.custom.min.js (modified) (1 diff)
-
admin/js/jquery.ui.core.js (modified) (1 diff)
-
admin/js/jquery.ui.mouse.js (modified) (1 diff)
-
admin/js/jquery.ui.sortable.js (modified) (1 diff)
-
admin/js/jquery.ui.widget.js (modified) (1 diff)
-
admin/models/ajaxplaylist.php (modified) (1 diff)
-
admin/models/playlist.php (modified) (1 diff)
-
admin/models/video.php (modified) (1 diff)
-
admin/models/videoad.php (modified) (1 diff)
-
admin/models/videosetting.php (modified) (1 diff)
-
admin/views/ajaxplaylist/ajaxplaylist.php (modified) (1 diff)
-
admin/views/playlist/addplaylist.php (modified) (3 diffs)
-
admin/views/playlist/playlist.php (modified) (1 diff)
-
admin/views/video/addvideo.php (modified) (18 diffs)
-
admin/views/video/video.php (modified) (3 diffs)
-
admin/views/videoads/addvideoads.php (modified) (17 diffs)
-
admin/views/videoads/videoads.php (modified) (1 diff)
-
admin/views/videosetting.php (modified) (22 diffs)
-
configXML.php (modified) (4 diffs)
-
css/jquery.jcarousel.css (modified) (2 diffs)
-
css/rtl.css (modified) (1 diff)
-
css/skins.css (modified) (2 diffs)
-
css/style.css (modified) (13 diffs)
-
front/controllers/videohomeController.php (modified) (1 diff)
-
front/controllers/videomoreController.php (modified) (1 diff)
-
front/controllers/videoshortcodeController.php (modified) (1 diff)
-
front/models/videohome.php (modified) (7 diffs)
-
front/models/videomore.php (modified) (2 diffs)
-
front/models/videoshortcode.php (modified) (2 diffs)
-
front/views/videohome.php (modified) (24 diffs)
-
front/views/videomore.php (modified) (28 diffs)
-
front/views/videoshortcode.php (modified) (17 diffs)
-
hdflv-config.php (modified) (1 diff)
-
hdflvplayer/email.php (modified) (1 diff)
-
hdflvplayer/hdplayer.swf (modified) (previous)
-
hdflvvideoshare.php (modified) (13 diffs)
-
hitCount.php (modified) (1 diff)
-
images/arrow_left-rel.png (modified) (previous)
-
images/arrow_right-rel.png (modified) (previous)
-
images/stars831-thump.png (added)
-
images/stars831.png (added)
-
install.php (modified) (11 diffs)
-
js/jquery-1.2.3.pack.js (modified) (1 diff)
-
js/jquery.jcarousel.pack.js (modified) (1 diff)
-
js/mycarousel.js (added)
-
js/script.js (modified) (4 diffs)
-
languageXML.php (modified) (1 diff)
-
myadsXML.php (modified) (3 diffs)
-
myextractXML.php (modified) (2 diffs)
-
myimaadsXML.php (modified) (1 diff)
-
mymidrollXML.php (modified) (2 diffs)
-
rateCount.php (added)
-
readme.txt (modified) (4 diffs)
-
sortorder.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
contus-video-gallery/trunk/ContusFeatureVideos.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Wordpress video gallery Featured videos widget. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 66 66 <?php 67 67 $moreName = $wpdb->get_var("SELECT ID FROM " . $wpdb->prefix . "posts WHERE post_content='[videomore]' AND post_status='publish' AND post_type='page' LIMIT 1"); 68 $styleSheet = $wpdb->get_var("SELECT stylesheet FROM " . $wpdb->prefix . "hdflvvideoshare_settings WHERE settings_id='1'"); 69 $site_url = get_bloginfo('url'); 68 $ratingscontrol = $wpdb->get_var("SELECT ratingscontrol FROM " . $wpdb->prefix . "hdflvvideoshare_settings WHERE settings_id='1'"); 70 69 ?> 71 70 <!-- For Featured Videos --> … … 73 72 echo $before_widget; 74 73 $fetched = ''; 74 $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1"); 75 75 $viewslang = __('Views', 'video_gallery'); 76 76 $viewlang = __('View', 'video_gallery'); … … 94 94 $div .='<ul class="ulwidget">'; 95 95 96 ## were there any posts found?96 ## were there any posts found? 97 97 if (!empty($features)) { 98 ## posts were found, loop through them99 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);98 ## posts were found, loop through them 99 $image_path = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 100 100 $_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 101 101 … … 107 107 $imageFea = $_imagePath . 'nothumbimage.jpg'; 108 108 } else { 109 if ($file_type == 2 ) { ##For uploaded image109 if ($file_type == 2 || $file_type == 5 ) { ##For uploaded image 110 110 $imageFea = $image_path . $imageFea; 111 111 } … … 113 113 $vidF = $feature->vid; 114 114 $name = strlen($feature->name); 115 ##output to screen115 ##output to screen 116 116 $div .='<li class="clearfix sideThumb">'; 117 117 $div .='<div class="imgBorder"><a href="' . $guid . '"><img src="' . $imageFea . '" alt="' . $feature->name . '" class="img" width="120" height="80" style="width: 120px; height: 80px;" /></a>'; … … 120 120 } 121 121 $div .='</div>'; 122 $div .='<div class="side_video_info">< h6><ahref="' . $guid . '">';122 $div .='<div class="side_video_info"><a class="videoHname" href="' . $guid . '">'; 123 123 if ($name > 25) { 124 $div .= substr($feature->name, 0, 25) . ' ';124 $div .= substr($feature->name, 0, 25) . '..'; 125 125 } else { 126 126 $div .= $feature->name; 127 127 } 128 $div .='</a> </h6>';128 $div .='</a>'; 129 129 $div .='<div class="clear"></div>'; 130 130 if ($feature->hitcount > 1) … … 133 133 $viewlanguage = $viewlang; 134 134 $div .='<span class="views">' . $feature->hitcount . ' ' . $viewlanguage . '</span>'; 135 135 136 ## Rating starts here 137 if ($ratingscontrol == 1) { 138 if (isset($feature->ratecount) && $feature->ratecount != 0) { 139 $ratestar = round($feature->rate / $feature->ratecount); 140 } else { 141 $ratestar = 0; 142 } 143 $div .= '<span class="ratethis1 '.$ratearray[$ratestar].'"></span>'; 144 } 145 ## Rating ends here 146 136 147 $div .='<div class="clear"></div>'; 137 148 $div .='<div class="clear"></div>'; -
contus-video-gallery/trunk/ContusPopularVideos.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Wordpress video gallery popular videos widget. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 65 65 <?php 66 66 $moreName = $wpdb->get_var("SELECT ID FROM " . $wpdb->prefix . "posts WHERE post_content='[videomore]' AND post_status='publish' AND post_type='page' LIMIT 1"); 67 $styleSheet = $wpdb->get_var("SELECT stylesheet FROM " . $wpdb->prefix . "hdflvvideoshare_settings WHERE settings_id='1'"); 68 $site_url = get_bloginfo('url'); 67 $ratingscontrol = $wpdb->get_var("SELECT ratingscontrol FROM " . $wpdb->prefix . "hdflvvideoshare_settings WHERE settings_id='1'"); 69 68 ?> 70 69 … … 74 73 echo $before_widget; 75 74 $fetched = ''; 75 $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1"); 76 76 $viewslang = __('Views', 'video_gallery'); 77 77 $viewlang = __('View', 'video_gallery'); … … 98 98 if (!empty($populars)) { 99 99 ## posts were found, loop through them 100 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);100 $image_path = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 101 101 $_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 102 102 foreach ($populars as $popular) { … … 107 107 $imagePop = $_imagePath . 'nothumbimage.jpg'; 108 108 } else { 109 if ($file_type == 2 ) { ##For uploaded image109 if ($file_type == 2 || $file_type == 5 ) { ##For uploaded image 110 110 $imagePop = $image_path . $imagePop; 111 111 } … … 120 120 } 121 121 $div .='</div>'; 122 $div .='<div class="side_video_info">< h6><ahref="' . $guid . '">';122 $div .='<div class="side_video_info"><a class="videoHname" href="' . $guid . '">'; 123 123 if ($name > 25) { 124 $div .= substr($popular->name, 0, 25) . ' ';124 $div .= substr($popular->name, 0, 25) . '..'; 125 125 } else { 126 126 $div .= $popular->name; 127 127 } 128 $div .='</a>< /h6><div class="clear"></div>';128 $div .='</a><div class="clear"></div>'; 129 129 if($popular->hitcount>1) 130 130 $viewlanguage = $viewslang; … … 133 133 $div .='<span class="views">'.$popular->hitcount . ' '. $viewlanguage; 134 134 $div .= '</span>'; 135 ## Rating starts here 136 if ($ratingscontrol == 1) { 137 if (isset($popular->ratecount) && $popular->ratecount != 0) { 138 $ratestar = round($popular->rate / $popular->ratecount); 139 } else { 140 $ratestar = 0; 141 } 142 $div .= '<span class="ratethis1 '.$ratearray[$ratestar].'"></span>'; 143 } 144 ## Rating ends here 135 145 $div .='<div class="clear"></div>'; 136 146 $div .='</div>'; -
contus-video-gallery/trunk/ContusRecentVideos.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Wordpress video gallery Recent videos widget. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 67 67 <?php 68 68 $moreName = $wpdb->get_var("SELECT ID FROM " . $wpdb->prefix . "posts WHERE post_content='[videomore]' AND post_status='publish' AND post_type='page' LIMIT 1"); 69 $styleSheet = $wpdb->get_var("SELECT stylesheet FROM " . $wpdb->prefix . "hdflvvideoshare_settings WHERE settings_id='1'"); 70 $site_url = get_bloginfo('url'); 69 $ratingscontrol = $wpdb->get_var("SELECT ratingscontrol FROM " . $wpdb->prefix . "hdflvvideoshare_settings WHERE settings_id='1'"); 71 70 ?> 72 71 … … 76 75 echo $before_widget; 77 76 $fetched = ''; 77 $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1"); 78 78 $viewslang = __('Views', 'video_gallery'); 79 79 $viewlang = __('View', 'video_gallery'); … … 98 98 if (!empty($posts)) { 99 99 ## posts were found, loop through them 100 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);100 $image_path = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 101 101 $_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 102 102 foreach ($posts as $post) { … … 107 107 $image = $_imagePath . 'nothumbimage.jpg'; 108 108 } else { 109 if ($file_type == 2 ) { ##For uploaded image109 if ($file_type == 2 || $file_type == 5 ) { ##For uploaded image 110 110 $image = $image_path . $image; 111 111 } … … 121 121 $div .= '</div>'; 122 122 123 $div .= '<div class="side_video_info">< h6><ahref="' . $guid . '">';123 $div .= '<div class="side_video_info"><a class="videoHname" href="' . $guid . '">'; 124 124 if ($name > 25) { 125 $div .= substr($post->name, 0, 25) . ' ';125 $div .= substr($post->name, 0, 25) . '..'; 126 126 } else { 127 127 $div .= $post->name; 128 128 } 129 $div .= '</a>< /h6><div class="clear"></div>';129 $div .= '</a><div class="clear"></div>'; 130 130 if ($post->hitcount > 1) 131 131 $viewlanguage = $viewslang; … … 134 134 $div .= '<span class="views">' . $post->hitcount . ' ' . $viewlanguage; 135 135 $div .= '</span>'; 136 ## Rating starts here 137 if ($ratingscontrol == 1) { 138 if (isset($post->ratecount) && $post->ratecount != 0) { 139 $ratestar = round($post->rate / $post->ratecount); 140 } else { 141 $ratestar = 0; 142 } 143 $div .= '<span class="ratethis1 '.$ratearray[$ratestar].'"></span>'; 144 } 145 ## Rating ends here 136 146 $div .= '<div class="clear"></div>'; 137 147 $div .= '</div>'; -
contus-video-gallery/trunk/ContusRelatedVideos.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Wordpress video gallery Related videos widget. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 72 72 $videoID = intval($_GET['p']); 73 73 echo $before_widget; 74 $div .= '<div id="related-videos" class="sidebar-wrap "> 75 <h3 class="widget-title">' . $title . '</h3>'; 76 $div .='<ul class="ulwidget">'; 74 $moreName = $wpdb->get_var("SELECT ID FROM " . $wpdb->prefix . "posts WHERE post_content='[videomore]' AND post_status='publish' AND post_type='page' LIMIT 1"); 77 75 if (!empty($videoID)) { 78 76 $videoID = $wpdb->get_var("SELECT vid FROM " . $wpdb->prefix . "hdflvvideoshare WHERE slug='$videoID'"); 79 77 if (!empty($videoID)) { 80 78 $video_playlist_id = $wpdb->get_var("SELECT playlist_id FROM " . $wpdb->prefix . "hdflvvideoshare_med2play WHERE media_id='$videoID'"); 81 $moreName = $wpdb->get_var("SELECT ID FROM " . $wpdb->prefix . "posts WHERE post_content='[videomore]' AND post_status='publish' AND post_type='page' LIMIT 1"); 82 $styleSheet = $wpdb->get_var("SELECT stylesheet FROM " . $wpdb->prefix . "hdflvvideoshare_settings WHERE settings_id='1'"); 79 $ratingscontrol = $wpdb->get_var("SELECT ratingscontrol FROM " . $wpdb->prefix . "hdflvvideoshare_settings WHERE settings_id='1'"); 83 80 $site_url = get_bloginfo('url'); 81 $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1"); 84 82 85 83 $viewslang = __('Views', 'video_gallery'); … … 102 100 $countF = $moreF[0]->relatedcontus; 103 101 } 102 } 103 } 104 if(!empty($video_playlist_id)){ 105 $link = '<a href="' . $site_url . '/?page_id=' . $moreName . '&playid=' . $video_playlist_id . '">' . $title . '</a>'; 106 } else { 107 $link = $title; 108 } 109 $div .= '<div id="related-videos" class="sidebar-wrap "> 110 <h3 class="widget-title">' . $link . '</h3>'; 111 $div .='<ul class="ulwidget">'; 112 if (!empty($videoID)) { 104 113 ## were there any posts found? 105 114 if (!empty($relatedVideos)) { 106 115 ## posts were found, loop through them 107 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);116 $image_path = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 108 117 $_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 109 118 foreach ($relatedVideos as $feature) { … … 114 123 $imageFea = $_imagePath . 'nothumbimage.jpg'; 115 124 } else { 116 if ($file_type == 2 ) { ##For uploaded image125 if ($file_type == 2 || $file_type == 5 ) { ##For uploaded image 117 126 $imageFea = $image_path . $imageFea; 118 127 } … … 127 136 } 128 137 $div .= '</div>'; 129 $div .= '<div class="side_video_info">< h6><ahref="' . $guid . '">';138 $div .= '<div class="side_video_info"><a class="videoHname" href="' . $guid . '">'; 130 139 if ($name > 25) { 131 $div .= substr($feature->name, 0, 25) . ' ';140 $div .= substr($feature->name, 0, 25) . '..'; 132 141 } else { 133 142 $div .= $feature->name; 134 143 } 135 $div .= '</a>< /h6><div class="clear"></div>';144 $div .= '</a><div class="clear"></div>'; 136 145 if ($feature->hitcount > 1) 137 146 $viewlanguage = $viewslang; … … 140 149 $div .= '<span class="views">' . $feature->hitcount . ' ' . $viewlanguage; 141 150 $div .= '</span>'; 151 ## Rating starts here 152 if ($ratingscontrol == 1) { 153 if (isset($feature->ratecount) && $feature->ratecount != 0) { 154 $ratestar = round($feature->rate / $feature->ratecount); 155 } else { 156 $ratestar = 0; 157 } 158 $div .= '<span class="ratethis1 '.$ratearray[$ratestar].'"></span>'; 159 } 160 ## Rating ends here 142 161 $div .= '</span>'; 143 162 $div .= '<div class="clear"></div>'; … … 147 166 } 148 167 } 149 } 150 else { 168 else { 151 169 $div .= "<li>" . __('No Related videos', 'video_gallery') . "</li>"; 152 170 } -
contus-video-gallery/trunk/ContusVideoCategory.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Wordpress Video Gallery Video Category Widget. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 87 87 $playlist_id = $feature->pid; 88 88 $div .= '<li>'; 89 $div .= '<div class="clear"></div><a class=" playlistName" href="' . $site_url . '?page_id=' . $moreName . '&playid=' . $playlist_id . '">' . $fetched . '</a>';89 $div .= '<div class="clear"></div><a class="videoHname " href="' . $site_url . '?page_id=' . $moreName . '&playid=' . $playlist_id . '">' . $fetched . '</a>'; 90 90 $div .= '</li>'; 91 91 } … … 95 95 ## end list 96 96 if (($show < $countCategories)) { 97 $div .= '<li class="right"><a href="' . $site_url . '/?page_id=' . $moreName . '&more=categories">' . __('More Categories', 'video_gallery') . '</a></li>';97 $div .= '<li><div class="right video-more"><a href="' . $site_url . '/?page_id=' . $moreName . '&more=categories">' . __('More Categories', 'video_gallery') . ' »</a></div></li>'; 98 98 } 99 99 $div .= '</ul></div>'; -
contus-video-gallery/trunk/ContusVideoSearch.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Wordpress Video Gallery Video Search Widget. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/ajax/videoupload.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Ajax Video Upload. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/controllers/ajaxplaylistController.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Ajax Playlist Controller. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/controllers/playlistController.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Playlist Controller. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/controllers/videoadsController.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video Ad Controller. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 69 69 $adtype = filter_input(INPUT_POST, 'adtype'); 70 70 $videoadFilepath = filter_input(INPUT_POST, 'normalvideoform-value'); 71 $dir = dirname(plugin_basename(__FILE__)); 72 $dirExp = explode('/', $dir); 73 $dirPage = $dirExp[0]; 71 74 if(empty($videoadFilepath)) 72 75 $videoadFilepath = filter_input(INPUT_POST, 'videoadfilepath'); 73 76 else{ 74 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);77 $image_path = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 75 78 $videoadFilepath=$image_path.$videoadFilepath; 76 79 } -
contus-video-gallery/trunk/admin/controllers/videosController.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video Controller. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 19 19 public $_search; 20 20 public $_videosearchQuery; 21 public $_settingsData; 21 22 public $_addnewVideo; 22 23 public $_searchBtn; … … 65 66 $slug = sanitize_title($videoName); 66 67 $videoDescription = filter_input(INPUT_POST, 'description'); 68 $embedcode = filter_input(INPUT_POST, 'embed_code'); 67 69 $tags_name = filter_input(INPUT_POST, 'tags_name'); 68 70 $seo_tags_name=stripslashes($tags_name); … … 122 124 } else { 123 125 $act_filepath1 = $_REQUEST['normalvideoform-value']; 124 $video_path=str_replace('plugins/contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 126 $dir = dirname(plugin_basename(__FILE__)); 127 $dirExp = explode('/', $dir); 128 $dirPage = $dirExp[0]; 129 $video_path=str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 125 130 $act_filepath1=$video_path.$act_filepath1; 126 131 $act_filepath = addslashes(trim($_POST['customurl'])); … … 189 194 $act_opimage = $pre_image; 190 195 } 196 if(!empty($embedcode)){ 197 $file_type = '5'; 198 } 191 199 192 200 $videoData = array( 193 201 'name' => $videoName, 194 202 'description' => $videoDescription, 203 'embedcode' => $embedcode, 195 204 'file' => $act_filepath, 196 205 'file_type' => $file_type, … … 243 252 if ($sorder[$new_list1] == '') 244 253 $sorder[$new_list1] = '0'; 245 $wpdb->query(" INSERT INTO " . $wpdb->prefix . "hdflvvideoshare_med2play (media_id,playlist_id,sorder) VALUES ($this->_videoId, $new_list, $sorder[$new_list1])");254 $wpdb->query(" INSERT INTO " . $wpdb->prefix . "hdflvvideoshare_med2play (media_id,playlist_id,sorder) VALUES ($this->_videoId, $new_list, '0')"); 246 255 } 247 256 } 248 257 $i = 0; 249 258 foreach ($pieces as $new_list) { 250 $wpdb->query(" UPDATE " . $wpdb->prefix . "hdflvvideoshare_med2play SET sorder= ' $sorder[$i]' WHERE media_id = '$this->_videoId' and playlist_id = '$new_list'");259 $wpdb->query(" UPDATE " . $wpdb->prefix . "hdflvvideoshare_med2play SET sorder= '0' WHERE media_id = '$this->_videoId' and playlist_id = '$new_list'"); 251 260 $i++; 252 261 } … … 603 612 $displayMsg = $videoOBJ->get_message(); 604 613 $searchMsg = $videoOBJ->_videosearchQuery; 605 614 $settingsGrid = $videoOBJ->_settingsData; 606 615 $adminPage = filter_input(INPUT_GET, 'page'); 607 616 if ($adminPage == 'video') {//including video form if starts -
contus-video-gallery/trunk/admin/controllers/videosettingsController.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video Settings Controller. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 35 35 $keydisqusApps = filter_input(INPUT_POST, 'keydisqusApps'); 36 36 $embedVisible = filter_input(INPUT_POST, 'embed_visible'); 37 $ratingscontrol = filter_input(INPUT_POST, 'ratingscontrol'); 37 38 $downLoad = filter_input(INPUT_POST, 'download'); 38 39 $playerTimer = filter_input(INPUT_POST, 'timer'); … … 108 109 $progressControl = filter_input(INPUT_POST, 'progressControl'); 109 110 $imageDefault = filter_input(INPUT_POST, 'imageDefault'); 110 111 $player_color = array( 112 'sharepanel_up_BgColor' => $sharepanel_up_BgColor, 113 'sharepanel_down_BgColor' => $sharepanel_down_BgColor, 114 'sharepaneltextColor' => $sharepaneltextColor, 115 'sendButtonColor' => $sendButtonColor, 116 'sendButtonTextColor' => $sendButtonTextColor, 117 'textColor' => $textColor, 118 'skinBgColor' => $skinBgColor, 119 'seek_barColor' => $seek_barColor, 120 'buffer_barColor' => $buffer_barColor, 121 'skinIconColor' => $skinIconColor, 122 'pro_BgColor' => $pro_BgColor, 123 'playButtonColor' => $playButtonColor, 124 'playButtonBgColor' => $playButtonBgColor, 125 'playerButtonColor' => $playerButtonColor, 126 'playerButtonBgColor' => $playerButtonBgColor, 127 'relatedVideoBgColor' => $relatedVideoBgColor, 128 'scroll_barColor' => $scroll_barColor, 129 'scroll_BgColor' => $scroll_BgColor 130 ); 131 111 132 $settingsData = array( 112 133 'default_player' => $default_player, … … 118 139 'keydisqusApps' => $keydisqusApps, 119 140 'embed_visible' => $embedVisible, 141 'ratingscontrol' => $ratingscontrol, 120 142 'download' => $downLoad, 121 143 'timer' => $playerTimer, … … 155 177 'playlist' => $playList, 156 178 'fullscreen' => $fullScreen, 157 'sharepanel_up_BgColor' => $sharepanel_up_BgColor, 158 'sharepanel_down_BgColor' => $sharepanel_down_BgColor, 159 'sharepaneltextColor' => $sharepaneltextColor, 160 'sendButtonColor' => $sendButtonColor, 161 'sendButtonTextColor' => $sendButtonTextColor, 162 'textColor' => $textColor, 163 'skinBgColor' => $skinBgColor, 164 'seek_barColor' => $seek_barColor, 165 'buffer_barColor' => $buffer_barColor, 166 'skinIconColor' => $skinIconColor, 167 'pro_BgColor' => $pro_BgColor, 168 'playButtonColor' => $playButtonColor, 169 'playButtonBgColor' => $playButtonBgColor, 170 'playerButtonColor' => $playerButtonColor, 171 'playerButtonBgColor' => $playerButtonBgColor, 172 'relatedVideoBgColor' => $relatedVideoBgColor, 173 'scroll_barColor' => $scroll_barColor, 174 'scroll_BgColor' => $scroll_BgColor, 179 'player_colors'=> serialize($player_color), 175 180 'playlist_open' => $playlist_open, 176 181 'showPlaylist' => $showPlaylist, … … 188 193 'imageDefault' => $imageDefault, 189 194 ); 190 $image_path = str_replace('plugins/contus-video-gallery/admin/controllers', 'uploads/videogallery/', dirname(__FILE__)); 195 $dir = dirname(plugin_basename(__FILE__)); 196 $dirExp = explode('/', $dir); 197 $dirPage = $dirExp[0]; 198 $image_path = str_replace('plugins/'.$dirPage.'/admin/controllers', 'uploads/videogallery/', dirname(__FILE__)); 191 199 if($_FILES['logopath']["name"] != ''){ 192 200 $allowedExtensions = array('jpg','jpeg','png','gif'); … … 202 210 $settingsData['logopath'] = $logopath; 203 211 } 204 $settingsDataformat = array('%d','%d','%d', '%d', '%d', '%s', '%s', '%d', '%d','%d', 205 '%d', '%d','%d', '%d', '%d', '%d', '%d', '%d', '%d','%s', 206 '%s', '%s','%s', '%s', '%s', '%s', '%s', '%s', '%s','%d', 207 '%d', '%d','%s', '%d', '%d', '%d', '%d', '%d', '%d','%d', 208 '%d', '%d','%d', '%d', '%d', '%s', '%s', '%s', '%s','%s', 209 '%s', '%s','%s', '%s', '%s', '%s', '%s', '%s', '%s','%s', 210 '%s', '%s','%s', '%s', '%d', '%d', '%d', '%s', '%s','%s', 211 '%s', '%d','%d', '%d', '%d', '%d', '%d', '%s'); 212 $settingsDataformat = array('%d','%d','%d', '%d', '%d', '%s', '%s', '%d', '%d', '%d', 213 '%d', '%d', '%d','%d', '%d', '%d', '%d', '%d', '%d', '%d', 214 '%s', '%s', '%s','%s', '%s', '%s', '%s', '%s', '%s', '%s', 215 '%d', '%d', '%d','%s', '%d', '%d', '%d', '%d', '%d', '%d', 216 '%d', '%d', '%d','%d', '%d', '%d', '%s', '%d', '%d', '%d', 217 '%s', '%s', '%s', '%s', '%d','%d', '%d', '%d', '%d', '%d', 218 '%s', '%s'); 212 219 $updateflag = $this->update_settings($settingsData, $settingsDataformat); 213 220 if ($updateflag) { -
contus-video-gallery/trunk/admin/css/adminsettings.css
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: Admin Settings css file 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/css/jquery.ui.all.css
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery ui css file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/css/jquery.ui.base.css
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery ui base css file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/css/jquery.ui.core.css
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery ui core css file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/css/jquery.ui.theme.css
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquey ui theme css file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/js/admin.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: Admin action javacript file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com … … 61 61 } 62 62 63 function Videoadtype() 64 { 65 if(document.getElementById('prepostroll').checked==true) 66 { 67 document.getElementById('upload2').style.display = "none"; 68 document.getElementById('videoadurl').style.display = "block"; 63 function Videoadtype(adtype) 64 { 65 if(adtype=="prepostroll") 66 { 69 67 document.getElementById('admethod').value = "prepost"; 70 68 document.getElementById('videoadmethod').style.display = "block"; 71 69 document.getElementById('videoaddetails').style.display = "block"; 70 document.getElementById('adimpresurl').style.display = "block"; 71 document.getElementById('adclickurl').style.display = "block"; 72 document.getElementById('adtargeturl').style.display = "block"; 73 document.getElementById('addescription').style.display = "block"; 74 document.getElementById('adtitle').style.display = "block"; 72 75 document.getElementById('videoimaaddetails').style.display = "none"; 73 76 } 74 77 75 if( document.getElementById('midroll').checked==true)78 if(adtype=="midroll") 76 79 { 77 80 document.getElementById('upload2').style.display = "none"; … … 80 83 document.getElementById('videoadurl').style.display = "none"; 81 84 document.getElementById('videoaddetails').style.display = "block"; 85 document.getElementById('adimpresurl').style.display = "block"; 86 document.getElementById('adclickurl').style.display = "block"; 87 document.getElementById('adtargeturl').style.display = "block"; 88 document.getElementById('addescription').style.display = "block"; 89 document.getElementById('adtitle').style.display = "block"; 82 90 document.getElementById('videoimaaddetails').style.display = "none"; 83 91 } 84 if(document.getElementById('imaad').checked==true)92 else if(adtype=="imaad") 85 93 { 86 94 document.getElementById('upload2').style.display = "none"; … … 88 96 document.getElementById('admethod').value = "imaad"; 89 97 document.getElementById('videoadurl').style.display = "none"; 90 document.getElementById('videoaddetails').style.display = " none";98 document.getElementById('videoaddetails').style.display = "block"; 91 99 document.getElementById('videoimaaddetails').style.display = "block"; 100 document.getElementById('adimpresurl').style.display = "none"; 101 document.getElementById('adclickurl').style.display = "none"; 102 document.getElementById('adtargeturl').style.display = "none"; 103 document.getElementById('addescription').style.display = "none"; 104 document.getElementById('adtitle').style.display = ""; 92 105 document.getElementById('imaadTypevideo').checked=true; 93 changeimaadtype( );94 } 95 96 97 } 98 function Videoad method()99 { 100 if(document.getElementById('filebtn').checked==true)101 { 106 changeimaadtype('videoad'); 107 } 108 109 110 } 111 function Videoadtypemethod(adtype) 112 { 113 if(adtype=="fileuplo") 114 { 102 115 document.getElementById('upload2').style.display = "block"; 103 116 document.getElementById('videoadurl').style.display = "none"; … … 105 118 } 106 119 107 if(document.getElementById('urlbtn').checked==true)108 { 120 else if(adtype=="urlad") 121 { 109 122 document.getElementById('upload2').style.display = "none"; 110 123 document.getElementById('videoadurl').style.display = "block"; … … 114 127 115 128 } 116 function changeimaadtype( )117 { 118 if(document.getElementById('imaadTypetext').checked==true)129 function changeimaadtype(adtype) 130 { 131 if(adtype=="textad") 119 132 { 120 133 document.getElementById('adimapath').style.display = "none"; … … 124 137 document.getElementById('adimacontentid').style.display = ""; 125 138 document.getElementById('adimachannels').style.display = ""; 126 127 } 128 129 if(document.getElementById('imaadTypevideo').checked==true)139 document.getElementById('imaadTypetext').checked=true; 140 } 141 142 else if(adtype=="videoad") 130 143 { 131 144 document.getElementById('adimapath').style.display = ""; … … 135 148 document.getElementById('adimacontentid').style.display = "none"; 136 149 document.getElementById('adimachannels').style.display = "none"; 137 150 document.getElementById('imaadTypevideo').checked=true; 138 151 } 139 152 } … … 197 210 return false; 198 211 } 199 } else if(document.getElementById(' midroll').checked==true && document.getElementById('name').value == ''){212 } else if(document.getElementById('name').value == ''){ 200 213 document.getElementById('nameerrormessage').innerHTML = 'Enter Ad Name'; 201 214 document.getElementById('name').focus(); 202 215 return false; 203 216 204 } else if(document.getElementById('imaad').checked==true){ 217 } 218 if(document.getElementById('imaad').checked==true){ 205 219 if(document.getElementById('imaadTypetext').checked==true && document.getElementById('publisherId').value == '') 206 220 { … … 221 235 return false; 222 236 223 }else if(document.getElementById('imaadTypevideo').checked==true && document.getElementById('imaadpath').value == '') 224 { 237 }else { 238 if(document.getElementById('imaadTypevideo').checked==true) 239 { 240 if(document.getElementById('imaadpath').value == ''){ 225 241 document.getElementById('imaadpatherrormessage').innerHTML = 'Enter IMA Ad Path'; 226 242 document.getElementById('imaadpath').focus(); 227 243 return false; 228 244 } else{ 245 var thevideoadurl=document.getElementById("imaadpath").value; 246 var tomatch= /(http:\/\/|https:\/\/)[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}|(http:\/\/|https:\/\/)/ 247 if (!tomatch.test(thevideoadurl)) 248 { 249 document.getElementById('imaadpatherrormessage').innerHTML = 'Enter Valid IMA Ad URL'; 250 document.getElementById("imaadpath").focus(); 251 return false; 252 } 253 } 254 255 } 229 256 } 230 257 … … 392 419 { 393 420 document.forms[form_handle].target = "uploadvideo_target"; 394 document.forms[form_handle].action = "../wp-content/plugins/ contus-video-gallery/admin/ajax/videoupload.php?processing=1";421 document.forms[form_handle].action = "../wp-content/plugins/"+folder+"/admin/ajax/videoupload.php?processing=1"; 395 422 document.forms[form_handle].submit(); 396 423 } … … 420 447 document.getElementById(divprefix + "-upload-message").style.display = "none"; 421 448 document.getElementById(divprefix + "-upload-filename").innerHTML = document.forms[form_handle].myfile.value; 422 document.getElementById(divprefix + "-upload-image").src = '../wp-content/plugins/ contus-video-gallery/images/empty.gif';449 document.getElementById(divprefix + "-upload-image").src = '../wp-content/plugins/'+folder+'/images/empty.gif'; 423 450 document.getElementById(divprefix + "-upload-cancel").innerHTML = '<a style="float:right;padding-right:10px;" href=javascript:cancelUpload("'+form_handle+'") name="submitcancel">Cancel</a>'; 424 451 break; … … 430 457 document.getElementById(divprefix + "-upload-message").style.display = "none"; 431 458 document.getElementById(divprefix + "-upload-filename").innerHTML = document.forms[form_handle].myfile.value; 432 document.getElementById(divprefix + "-upload-image").src = '../wp-content/plugins/ contus-video-gallery/images/loader.gif';459 document.getElementById(divprefix + "-upload-image").src = '../wp-content/plugins/'+folder+'/images/loader.gif'; 433 460 document.getElementById(divprefix + "-upload-cancel").innerHTML = '<a style="float:right;padding-right:10px;" href=javascript:cancelUpload("'+form_handle+'") name="submitcancel">Cancel</a>'; 434 461 break; … … 442 469 break; 443 470 case 0: 444 document.getElementById(divprefix + "-upload-image").src = '../wp-content/plugins/ contus-video-gallery/images/success.gif';471 document.getElementById(divprefix + "-upload-image").src = '../wp-content/plugins/'+folder+'/images/success.gif'; 445 472 document.getElementById(divprefix + "-upload-status").innerHTML = ""; 446 473 document.getElementById(divprefix + "-upload-message").style.display = ""; … … 452 479 453 480 default: 454 document.getElementById(divprefix + "-upload-image").src = '../wp-content/plugins/ contus-video-gallery/images/error.gif';481 document.getElementById(divprefix + "-upload-image").src = '../wp-content/plugins/'+folder+'/images/error.gif'; 455 482 document.getElementById(divprefix + "-upload-status").innerHTML = " "; 456 483 document.getElementById(divprefix + "-upload-message").style.display = ""; … … 645 672 } 646 673 } 647 if(document.getElementById('name').value == ''){ 674 else if(document.getElementById('btn5').checked === true) 675 { 676 var embed_code = document.getElementById('embedcode').value; 677 embed_code = (embed_code + '').replace(/[\\"']/g, '\\$&').replace(/\u0000/g, '\\0'); 678 document.getElementById('embed_code').value=embed_code; 679 if(embed_code===''){ 680 document.getElementById('embedmessage').innerHTML = 'Enter Embed Code'; 681 return false; 682 } else if(embed_code.indexOf('<iframe')!=0 && embed_code.indexOf('<embed')!=0 && embed_code.indexOf('<object')!=0){ 683 document.getElementById('embedmessage').innerHTML = 'Enter Valid Embed Code'; 684 return false; 685 } else{ 686 document.getElementById('embedmessage').innerHTML = ''; 687 } 688 } 689 if(document.getElementById('name').value === ''){ 648 690 document.getElementById('titlemessage').innerHTML = 'Enter Title'; 649 691 return false; … … 652 694 for (var i = 0; i < check_box.length; i++) 653 695 { 654 if (check_box[i].type == 'checkbox')696 if (check_box[i].type === 'checkbox') 655 697 { 656 698 if (check_box[i].checked) { -
contus-video-gallery/trunk/admin/js/jquery-1.4.4.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery core file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/js/jquery-ui-1.7.1.custom.min.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery ui custom file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/js/jquery.ui.core.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery ui core file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/js/jquery.ui.mouse.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery ui mouse file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/js/jquery.ui.sortable.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery ui sortable file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/js/jquery.ui.widget.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery ui widget file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/models/ajaxplaylist.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: ajax playlist model file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/models/playlist.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: playlist model file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/models/video.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: video model file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/models/videoad.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: video ad model file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/models/videosetting.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: video setting model file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/views/ajaxplaylist/ajaxplaylist.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Ajax playlist view file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/views/playlist/addplaylist.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: add playlist model file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 10 10 */ 11 11 ?> 12 <?php 13 $dir = dirname(plugin_basename(__FILE__)); 14 $dirExp = explode('/', $dir); 15 $dirPage = $dirExp[0]; 16 ?> 17 <script type="text/javascript"> 18 folder = '<?php echo $dirPage; ?>' 19 </script> 12 20 <div class="apptha_gallery"> 13 21 <?php if(isset($playListId)){ ?> … … 53 61 <input type="hidden" name="ordering" id="ordering" value="<?php echo $Playlistorder+1; ?>"> 54 62 <?php if(isset($playListId)){ ?> 55 <input type="submit" name="playlistadd" onclick="return validateplyalistInput();" class="button-primary" value="<?php _e('Update Category', 'video_gallery'); ?>" class="button" /></p> <?php } else{?> 56 <input type="submit" name="playlistadd" onclick="return validateplyalistInput();" class="button-primary" value="<?php _e('Add Category', 'video_gallery'); ?>" class="button" /></p> <?php } ?> 63 <input type="submit" name="playlistadd" onclick="return validateplyalistInput();" class="button-primary" value="<?php _e('Update Category', 'video_gallery'); ?>" class="button" /> <?php } else{?> 64 <input type="submit" name="playlistadd" onclick="return validateplyalistInput();" class="button-primary" value="<?php _e('Add Category', 'video_gallery'); ?>" class="button" /> <?php } ?> 65 <input type="button" onclick="window.location.href='admin.php?page=playlist'" class="button-secondary" name="cancel" value="<?php _e('Cancel'); ?>" class="button" /> 57 66 </form> 58 67 </div> -
contus-video-gallery/trunk/admin/views/playlist/playlist.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: playlist model file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/views/video/addvideo.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Add video view file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 11 11 ?> 12 12 <!-- Add A Video --> 13 <?php 14 $dir = dirname(plugin_basename(__FILE__)); 15 $dirExp = explode('/', $dir); 16 $dirPage = $dirExp[0]; 17 ?> 18 <script type="text/javascript"> 19 folder = '<?php echo $dirPage; ?>' 20 </script> 13 21 <?php 14 22 $act_vid = 0; 15 23 $site_url = get_option('siteurl'); 16 $contus = dirname(plugin_basename(__FILE__));17 24 if (isset($_GET['videoId'])) 18 25 $act_vid = (int) $_GET['videoId']; … … 27 34 <div class="apptha_gallery"> 28 35 <div class="wrap"> 29 <script type="text/javascript" src="../wp-content/plugins/ contus-video-gallery/admin/js/jquery-1.3.2.min.js"></script>30 <script type="text/javascript" src="../wp-content/plugins/ contus-video-gallery/admin/js/jquery-ui-1.7.1.custom.min.js"></script>36 <script type="text/javascript" src="../wp-content/plugins/<?php echo $dirPage; ?>/admin/js/jquery-1.3.2.min.js"></script> 37 <script type="text/javascript" src="../wp-content/plugins/<?php echo $dirPage; ?>/admin/js/jquery-ui-1.7.1.custom.min.js"></script> 31 38 32 39 <script type="text/javascript"> … … 35 42 if(t2.value == "y" || t2 == "y") 36 43 { 37 document.getElementById('upload2').style.display = "block" 44 document.getElementById('upload2').style.display = "block"; 45 document.getElementById('supportformats').style.display = ""; 46 document.getElementById('ffmpeg_disable_new4').style.display = ""; 47 document.getElementById('ffmpeg_disable_new2').style.display = ""; 48 document.getElementById('ffmpeg_disable_new1').style.display = ""; 38 49 document.getElementById('youtube').style.display = "none"; 50 document.getElementById('embedvideo').style.display = "none"; 39 51 document.getElementById('customurl').style.display = "none"; 40 52 } else if(t2.value == "c" || t2 == "c"){ 41 53 document.getElementById('youtube').style.display = "block"; 42 54 document.getElementById('upload2').style.display = "none"; 55 document.getElementById('embedvideo').style.display = "none"; 43 56 document.getElementById('customurl').style.display = "none"; 44 57 } else if(t2.value == "url" || t2 == "url"){ 45 58 document.getElementById('customurl').style.display = "block"; 59 document.getElementById('embedvideo').style.display = "none"; 46 60 document.getElementById('islive_visible').style.display = "none"; 47 61 document.getElementById('stream1').style.display = "none"; … … 53 67 document.getElementById('islive_visible').style.display = ""; 54 68 document.getElementById('stream1').style.display = ""; 69 document.getElementById('embedvideo').style.display = "none"; 55 70 document.getElementById('hdvideourl').style.display = "none"; 56 71 document.getElementById('youtube').style.display = "none"; 57 72 document.getElementById('upload2').style.display = "none"; 73 } else if(t2.value == "embed" || t2 == "embed"){ 74 document.getElementById('embedvideo').style.display = "block"; 75 document.getElementById('islive_visible').style.display = ""; 76 document.getElementById('stream1').style.display = ""; 77 document.getElementById('customurl').style.display = "none"; 78 document.getElementById('hdvideourl').style.display = "none"; 79 document.getElementById('youtube').style.display = "none"; 80 document.getElementById('adstypebox').style.display = "none"; 81 document.getElementById('upload2').style.display = "block" 82 document.getElementById('supportformats').style.display = "none"; 83 document.getElementById('ffmpeg_disable_new4').style.display = "none"; 84 document.getElementById('ffmpeg_disable_new2').style.display = "none"; 85 document.getElementById('ffmpeg_disable_new1').style.display = "none"; 58 86 } 59 87 } … … 89 117 <span><input type="radio" name="agree" id="btn3" value="url" onClick="t1(this)" /> <?php _e('Custom URL', 'video_gallery'); ?></span> 90 118 <span><input type="radio" name="agree" id="btn4" value="rtmp" onClick="t1(this)" /> <?php _e('RTMP', 'video_gallery'); ?></span> 119 <?php if(isset($settingsGrid->license) && strlen($settingsGrid->license) == 31){ ?> 120 <span><input type="radio" name="agree" id="btn5" value="embed" onClick="t1(this)" /> <?php _e('Embed Video', 'video_gallery'); ?></span> 121 <?php } ?> 91 122 </h3> 92 123 … … 106 137 <p><?php _e('Here you need to enter the video URL', 'video_gallery') ?></p> 107 138 <p><?php _e('It accepts Youtube links like : http://www.youtube.com/watch?v=tTGHCRUdlBs or http://youtu.be/tTGHCRUdlBs', 'video_gallery') ?></p> 139 </td> 140 </tr> 141 </table> 142 </div> 143 144 <div id="embedvideo" class="rtmp_inside inside" > 145 <table class="form-table"> 146 <tr> 147 <th scope="row"><?php _e('Embed Code', 'video_gallery') ?></th> 148 <td class="rtmp_td"> 149 <textarea id="embedcode" name="embedcode" rows="5" cols="60"><?php if (isset($videoEdit->embedcode))echo stripslashes($videoEdit->embedcode); ?></textarea> 150 <span id="embedmessage" style="display: block; margin-top:10px;color:red;font-size:12px;font-weight:bold;"></span> 108 151 </td> 109 152 </tr> … … 189 232 </form> 190 233 <div id="upload2" class="inside" style="margin:15px;"> 191 < ?php _e('<b>Supported video formats:</b>( MP4, M4V, M4A, MOV, Mp4v or F4V)', 'video_gallery') ?>234 <div id="supportformats"><?php _e('<b>Supported video formats:</b>( MP4, M4V, M4A, MOV, Mp4v or F4V)', 'video_gallery') ?></div> 192 235 <table class="form-table"> 193 236 <tr id="ffmpeg_disable_new1" name="ffmpeg_disable_new1"><td style="vertical-align: middle;"><?php _e('Upload Video', 'video_gallery') ?></td> … … 204 247 <span id="uploadmessage" style="display: block; margin-top:10px;color:red;font-size:12px;font-weight:bold;"></span> 205 248 <div id="f1-upload-progress" style="display:none"> 206 <div style="float:left"><img id="f1-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/ contus-video-gallery/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px"/>249 <div style="float:left"><img id="f1-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/'.$dirPage.'/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px"/> 207 250 <label style="padding-top:0px;padding-left:4px;font-size:14px;font-weight:bold;vertical-align:top" id="f1-upload-filename">PostRoll.flv</label></div> 208 251 <div style="float:right"> <span id="f1-upload-cancel"> … … 231 274 232 275 <div id="f2-upload-progress" style="display:none"> 233 <div style="float:left"><img id="f2-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/ contus-video-gallery/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px" />276 <div style="float:left"><img id="f2-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/'.$dirPage.'/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px" /> 234 277 <label style="padding-top:0px;padding-left:4px;font-size:14px;font-weight:bold;vertical-align:top" id="f2-upload-filename">PostRoll.flv</label></div> 235 278 <div style="float:right"><span id="f2-upload-cancel"> … … 254 297 <input type="button" class="button" name="uploadBtn" value="Upload Image" disabled="disabled" onclick="return addQueue(this.form.name,this.form.myfile.value);" /> 255 298 <input type="hidden" name="mode" value="image" /> 256 <label id="lbl_normal"><?php if (isset($videoEdit->file_type) && $videoEdit->file_type == 2)299 <label id="lbl_normal"><?php if (isset($videoEdit->file_type) && ($videoEdit->file_type == 2 || $videoEdit->file_type == 5)) 257 300 echo $videoEdit->image; ?></label> 258 301 </form> … … 260 303 <span id="uploadthumbmessage" style="display: block; margin-top:10px;color:red;font-size:12px;font-weight:bold;"></span> 261 304 <div id="f3-upload-progress" style="display:none"> 262 <div style="float:left"><img id="f3-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/ contus-video-gallery/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px" />305 <div style="float:left"><img id="f3-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/'.$dirPage.'/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px" /> 263 306 <label style="padding-top:0px;padding-left:4px;font-size:14px;font-weight:bold;vertical-align:top" id="f3-upload-filename">PostRoll.flv</label></div> 264 307 <div style="float:right"> <span id="f3-upload-cancel"> … … 285 328 </div> 286 329 <div id="f4-upload-progress" style="display:none"> 287 <div style="float:left"><img id="f4-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/ contus-video-gallery/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px" />330 <div style="float:left"><img id="f4-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/'.$dirPage.'/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px" /> 288 331 <label style="padding-top:0px;padding-left:4px;font-size:14px;font-weight:bold;vertical-align:top" id="f4-upload-filename">PostRoll.flv</label></div> 289 332 <div style="float:right"><span id="f4-upload-cancel"> … … 311 354 <input type="hidden" name="hdvideoform-value" id="hdvideoform-value" value="<?php if (isset($videoEdit->file_type) && $videoEdit->file_type == 2) 312 355 echo $videoEdit->hdfile; ?>" /> 313 <input type="hidden" name="thumbimageform-value" id="thumbimageform-value" value="<?php if (isset($videoEdit->file_type) && $videoEdit->file_type == 2)356 <input type="hidden" name="thumbimageform-value" id="thumbimageform-value" value="<?php if (isset($videoEdit->file_type) && ($videoEdit->file_type == 2 || $videoEdit->file_type == 5)) 314 357 echo $videoEdit->image; ?>" /> 315 358 <input type="hidden" name="previewimageform-value" id="previewimageform-value" value="<?php if (isset($videoEdit->file_type) && $videoEdit->file_type == 2) … … 317 360 <input type="hidden" name="youtube-value" id="youtube-value" value="" /> 318 361 <input type="hidden" name="streamerpath-value" id="streamerpath-value" value="" /> 362 <input type="hidden" name="embed_code" id="embed_code" value="" /> 319 363 <input type="hidden" name="islive-value" id="islive-value" value="0" /> 320 364 <input type="hidden" name="customurl" id="customurl1" value="" /> … … 401 445 } 402 446 ?> value="0"> <label>No</label> 403 <br/><?php _e('Note : Not supported for YouTube videos', 'video_gallery') ?>447 <br/><?php _e('Note : Not supported for YouTube and Embed videos', 'video_gallery') ?> 404 448 </td> 405 449 </tr> … … 434 478 ?> 435 479 436 <div class="stuffbox" >480 <div class="stuffbox" id="adstypebox"> 437 481 <h3 class="hndle"><span><?php _e('Select Ads', 'video_gallery'); ?></span></h3> 438 482 <div class="inside" style="margin:15px;"> … … 639 683 document.getElementById("btn4").checked = true; 640 684 <?php 685 } elseif (isset($videoEdit->file_type) && $videoEdit->file_type == 5) { 686 ?> 687 t1("embed"); 688 document.getElementById("btn5").checked = true; 689 <?php 641 690 }else{ 642 691 ?> -
contus-video-gallery/trunk/admin/views/video/video.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video view file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 70 70 <br><br> 71 71 72 <strong><?php _e('[hdvideo id=3 playlistid=2 width=400 height=400] or [hdvideo playlistid=2] or [hdvideo id=3] ', 'video_gallery'); ?></strong>72 <strong><?php _e('[hdvideo id=3 playlistid=2 width=400 height=400] or [hdvideo playlistid=2] or [hdvideo id=3] or [hdvideo playlistid=2 relatedvideos=on]', 'video_gallery'); ?></strong><br><br> 73 73 74 74 <?php _e("id - The Video ID, you can find the video id on 'All Videos' admin page.", "video_gallery"); ?><br><br> 75 75 <?php _e('Playlist id - You can find the Category ID on manage Category page.', 'video_gallery'); ?><br><br> 76 <?php _e('relatedvideos - You can enable/disable Related Videos on the page or post under the player. By default, it will be in "off" status.', 'video_gallery'); ?><br><br> 76 77 77 78 <?php _e("Both the Video ID and Category ID will be generated automatically once you add new Video or Category to 'Wordpress Video Gallery'.", "video_gallery"); ?><br><br> … … 79 80 <?php _e('You can use the plugin code with flashvars when you would like to display a player on any page/post with some specific settings.', 'video_gallery'); ?><br><br> 80 81 81 <strong><?php _e("[hdvideo id=3 flashvars=autoplay=true&zoomIcon=false]", "video_gallery"); ?></strong> 82 <strong><?php _e("[hdvideo id=4 flashvars=autoplay=true&zoomIcon=false]", "video_gallery"); ?></strong><br><br> 83 <?php _e('You can also enable ratings and view count for the video using the below short code.', 'video_gallery'); ?><br><br> 84 <strong><?php _e("[hdvideo id=1 ratingscontrol=on views=on title=on]", "video_gallery"); ?></strong><br><br> 85 <?php _e('ratingscontrol - You can enable/disable Ratings on the page or post under the player. By default, it will be in "off" status.', 'video_gallery'); ?><br><br> 86 <?php _e('title - You can enable/disable Title on the page or post above the player. By default, it will be in "off" status.', 'video_gallery'); ?><br><br> 87 <?php _e('views - You can enable/disable View count of the video on the page or post under the player. By default, it will be in "off" status.', 'video_gallery'); ?> 82 88 </div> 83 89 -
contus-video-gallery/trunk/admin/views/videoads/addvideoads.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Add video ads view file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 10 10 */ 11 11 ?> 12 <?php 13 $dir = dirname(plugin_basename(__FILE__)); 14 $dirExp = explode('/', $dir); 15 $dirPage = $dirExp[0]; 16 $image_path = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 17 ?> 18 <script type="text/javascript"> 19 folder = '<?php echo $dirPage; ?>' 20 </script> 12 21 <div class="apptha_gallery"> 13 22 <?php if (isset($videoadId)) { … … 46 55 echo 'checked="checked" '; 47 56 } 48 ?> onClick="Videoadtype( )"/> Preroll/Postroll Ad57 ?> onClick="Videoadtype('prepostroll')"/> Preroll/Postroll Ad 49 58 </span> 50 59 <span> … … 53 62 echo 'checked="checked" '; 54 63 } 55 ?> onClick="Videoadtype( )" /> Midroll Ad64 ?> onClick="Videoadtype('midroll')" /> Midroll Ad 56 65 </span> 57 66 <span> … … 60 69 echo 'checked="checked" '; 61 70 } 62 ?> onClick="Videoadtype( )" /> IMA Ad71 ?> onClick="Videoadtype('imaad')" /> IMA Ad 63 72 </span> 64 73 </h3> … … 67 76 <td width="150"><?php _e('Select File Path', 'video_gallery') ?></td> 68 77 <td> 69 <input type="radio" name="videoad" id="filebtn" value="1" <?php 70 if (isset($videoadEdit) && $videoadEdit->adtype == 'file') { 71 echo 'checked="checked" '; 72 } 73 ?> onClick="Videoadmethod()" /> File 74 <input type="radio" name="videoad" id="urlbtn" value="2" <?php 75 if (isset($videoadEdit) && $videoadEdit->adtype == 'url') { 76 echo 'checked="checked" '; 77 } 78 ?> onClick="Videoadmethod()" /> URL 78 <input type="radio" name="videoad" id="filebtn" value="1" onClick="Videoadtypemethod('fileuplo');" /> File 79 <input type="radio" name="videoad" id="urlbtn" value="2" onClick="Videoadtypemethod('urlad');" /> URL 79 80 </td> 80 81 </tr> … … 92 93 <input type="button" class="button" name="uploadBtn" value="<?php _e('Upload Video', 'video_gallery') ?>" disabled="disabled" onclick="return addQueue(this.form.name,this.form.myfile.value);" /> 93 94 <input type="hidden" name="mode" value="video" /> 94 <label id="lbl_normal"><?php $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); echo (isset($videoadEdit->file_path) && $uploaded_video == 1) ? str_replace($image_path, '', $videoadEdit->file_path) : ""; ?></label>95 <label id="lbl_normal"><?php $image_path = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); echo (isset($videoadEdit->file_path) && $uploaded_video == 1) ? str_replace($image_path, '', $videoadEdit->file_path) : ""; ?></label> 95 96 </form> 96 97 <?php _e('<b>Supported video formats:</b>( MP4, M4V, M4A, MOV, Mp4v or F4V)', 'video_gallery') ?> … … 98 99 <span id="uploadmessage" style="display: block; margin-top:10px;margin-left:300px;color:red;font-size:12px;font-weight:bold;"></span> 99 100 <div id="f1-upload-progress" style="display:none"> 100 <div style="float:left"><img id="f1-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/ contus-video-gallery/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px"/>101 <div style="float:left"><img id="f1-upload-image" src="<?php echo get_option('siteurl') . '/wp-content/plugins/'.$dirPage.'/images/empty.gif' ?>" alt="Uploading" style="padding-top:2px"/> 101 102 <label style="padding-top:0px;padding-left:4px;font-size:14px;font-weight:bold;vertical-align:top" id="f1-upload-filename">PostRoll.flv</label></div> 102 103 <div style="float:right"> <span id="f1-upload-cancel"> … … 116 117 </div> 117 118 <form action="" name="videoadsform" class="videoform" method="post" enctype="multipart/form-data" > 118 <table id="videoaddetails" style="display: none;" class="form-table"> 119 <tr> 120 <td scope="row" width="150"><?php _e('Title / Name', 'video_gallery') ?></td> 121 <td> 122 <input type="text" size="50" maxlength="200" name="videoadname" id="name" value="<?php echo (isset($videoadEdit->title)) ? $videoadEdit->title : ""; ?>" /> 123 <span id="nameerrormessage" style="display: block;color:red; "></span> 124 </td> 125 </tr> 126 <tr> 127 <td scope="row" width="150"><?php _e('Description', 'video_gallery') ?></td> 128 <td> 129 <input type="text" size="50" name="description" id="description" value="<?php echo (isset($videoadEdit->description)) ? $videoadEdit->description : ""; ?>" /> 130 </td> 131 </tr> 132 <tr> 133 <td scope="row" width="150"><?php _e('Target URL', 'video_gallery') ?></td> 134 <td> 135 <input type="text" size="50" name="targeturl" id="targeturl" value="<?php echo (isset($videoadEdit->targeturl)) ? $videoadEdit->targeturl : ''; ?>" /> 136 <span id="targeterrormessage" style="display: block;color:red; "></span> 137 </td> 138 </tr> 139 <tr> 140 <td scope="row" width="150"><?php _e('Click Hits URL', 'video_gallery') ?></td> 141 <td><input type="text" size="50" name="clickurl" id="clickurl" value="<?php echo (isset($videoadEdit->clickurl)) ? $videoadEdit->clickurl : ''; ?>" /> 142 <span id="clickerrormessage" style="display: block;color:red; "></span> 143 </td> 144 </tr> 145 <tr> 146 <td scope="row" width="150"><?php _e('Impression Hits URL', 'video_gallery') ?></td> 147 <td><input type="text" size="50" name="impressionurl" id="impressionurl" value="<?php echo (isset($videoadEdit->impressionurl)) ? $videoadEdit->impressionurl : ''; ?>" /> 148 <span id="impressionerrormessage" style="display: block;color:red; "></span> 149 </td> 150 </tr> 151 </table> 119 152 120 <table id="videoimaaddetails" style="display: none;" class="form-table"> 153 121 <tr> 154 122 <td scope="row" width="150"><?php _e('IMA Ad Type', 'video_gallery') ?></td> 155 123 <td> 156 <input type="radio" name="imaadType" id="imaadTypetext" onclick="changeimaadtype( );" value="1" <?php124 <input type="radio" name="imaadType" id="imaadTypetext" onclick="changeimaadtype('textad');" value="1" <?php 157 125 if (isset($videoadEdit->imaadType) && $videoadEdit->imaadType == 1) { 158 126 echo "checked"; … … 161 129 162 130 163 <input type="radio" name="imaadType" id="imaadTypevideo" onclick="changeimaadtype( );" value="0" <?php131 <input type="radio" name="imaadType" id="imaadTypevideo" onclick="changeimaadtype('videoad');" value="0" <?php 164 132 if (isset($videoadEdit->imaadType) && $videoadEdit->imaadType == 0) { 165 133 echo "checked"; … … 170 138 <td scope="row" width="150"><?php _e('IMA Ad Path', 'video_gallery') ?></td> 171 139 <td> 172 <input type="text" size="50" name="imaadpath" id="imaadpath" value="<?php echo (isset($videoadEdit->imaadpath)) ? $videoadEdit->imaadpath : '';?>" />140 <input type="text" size="50" name="imaadpath" id="imaadpath" value="<?php if(isset($videoadEdit->imaadpath)){ echo $videoadEdit->imaadpath; }else{ echo '';} ?>" /> 173 141 <span id="imaadpatherrormessage" style="display: block;color:red; "></span> 174 142 </td> … … 177 145 <td scope="row" width="150"><?php _e('Ad Slot Width', 'video_gallery') ?></td> 178 146 <td> 179 <input type="text" size="50" name="videoimaadwidth" id="adwidth" value="<?php echo (isset($videoadEdit-> adwidth)) ? $videoadEdit->adwidth : ""; ?>" />147 <input type="text" size="50" name="videoimaadwidth" id="adwidth" value="<?php echo (isset($videoadEdit->imaadwidth)) ? $videoadEdit->imaadwidth : ""; ?>" /> 180 148 </td> 181 149 </tr> … … 183 151 <td scope="row" width="150"><?php _e('Ad Slot Height', 'video_gallery') ?></td> 184 152 <td> 185 <input type="text" size="50" name="videoimaadheight" id="adheight" value="<?php echo (isset($videoadEdit-> adheight)) ? $videoadEdit->adheight : ""; ?>" />153 <input type="text" size="50" name="videoimaadheight" id="adheight" value="<?php echo (isset($videoadEdit->imaadheight)) ? $videoadEdit->imaadheight : ""; ?>" /> 186 154 </td> 187 155 </tr> … … 203 171 <td><input type="text" size="50" name="channels" id="channels" value="<?php echo (isset($videoadEdit->channels)) ? $videoadEdit->channels : ''; ?>" /> 204 172 <span id="imachannelserrormessage" style="display: block;color:red; "></span> 173 </td> 174 </tr> 175 </table> 176 <table id="videoaddetails" style="display: none;" class="form-table"> 177 <tr id="adtitle" style="display: none;"> 178 <td scope="row" width="150"><?php _e('Title / Name', 'video_gallery') ?></td> 179 <td> 180 <input type="text" size="50" maxlength="200" name="videoadname" id="name" value="<?php echo (isset($videoadEdit->title)) ? $videoadEdit->title : ""; ?>" /> 181 <span id="nameerrormessage" style="display: block;color:red; "></span> 182 </td> 183 </tr> 184 <tr id="addescription" style="display: none;"> 185 <td scope="row" width="150"><?php _e('Description', 'video_gallery') ?></td> 186 <td> 187 <input type="text" size="50" name="description" id="description" value="<?php echo (isset($videoadEdit->description)) ? $videoadEdit->description : ""; ?>" /> 188 </td> 189 </tr> 190 <tr id="adtargeturl" style="display: none;"> 191 <td scope="row" width="150"><?php _e('Target URL', 'video_gallery') ?></td> 192 <td> 193 <input type="text" size="50" name="targeturl" id="targeturl" value="<?php echo (isset($videoadEdit->targeturl)) ? $videoadEdit->targeturl : ''; ?>" /> 194 <span id="targeterrormessage" style="display: block;color:red; "></span> 195 </td> 196 </tr> 197 <tr id="adclickurl" style="display: none;"> 198 <td scope="row" width="150"><?php _e('Click Hits URL', 'video_gallery') ?></td> 199 <td><input type="text" size="50" name="clickurl" id="clickurl" value="<?php echo (isset($videoadEdit->clickurl)) ? $videoadEdit->clickurl : ''; ?>" /> 200 <span id="clickerrormessage" style="display: block;color:red; "></span> 201 </td> 202 </tr> 203 <tr id="adimpresurl" style="display: none;"> 204 <td scope="row" width="150"><?php _e('Impression Hits URL', 'video_gallery') ?></td> 205 <td><input type="text" size="50" name="impressionurl" id="impressionurl" value="<?php echo (isset($videoadEdit->impressionurl)) ? $videoadEdit->impressionurl : ''; ?>" /> 206 <span id="impressionerrormessage" style="display: block;color:red; "></span> 205 207 </td> 206 208 </tr> … … 246 248 <?php if (isset($videoadId)) { ?> 247 249 <input type="submit" name="videoadsadd" class="button-primary" onclick="return validateadInput();" value="<?php _e('Update Video Ad', 'video_gallery'); ?>" class="button" /> <?php } else { ?> <input type="submit" name="videoadsadd" class="button-primary" onclick="return validateadInput();" value="<?php _e('Add Video Ad', 'video_gallery'); ?>" class="button" /> <?php } ?> 248 <input type="hidden" name="normalvideoform-value" id="normalvideoform-value" value="<?php echo (isset($videoadEdit->file_path) && $uploaded_video == 1) ? $videoadEdit->file_path : ""; ?>" /> 250 <input type="button" onclick="window.location.href='admin.php?page=videoads'" class="button-secondary" name="cancel" value="<?php _e('Cancel'); ?>" class="button" /> 251 <input type="hidden" name="normalvideoform-value" id="normalvideoform-value" value="<?php if(isset($videoadEdit->file_path) && $uploaded_video == 1) { echo str_replace($image_path, '', $videoadEdit->file_path); } else{ echo ""; } ?>" /> 249 252 <input type="hidden" name="admethod" id="admethod" value="<?php echo (isset($videoadEdit->admethod)) ? $videoadEdit->admethod : ""; ?>" /> 250 253 <input type="hidden" name="adtype" id="adtype" value="<?php echo (isset($videoadEdit->adtype)) ? $videoadEdit->adtype : ""; ?>" /> … … 260 263 ?> 261 264 document.getElementById("filebtn").checked = true; 262 Videoad method();265 Videoadtypemethod('fileuplo'); 263 266 <?php 264 267 } else { 265 268 ?> 266 269 document.getElementById("urlbtn").checked = true; 267 Videoad method();270 Videoadtypemethod('urlad'); 268 271 <?php 269 272 } … … 271 274 ?> 272 275 document.getElementById("midroll").checked = true; 273 Videoadtype( );276 Videoadtype('midroll'); 274 277 <?php 275 278 }else if (isset($videoadEdit->admethod) && $videoadEdit->admethod == 'imaad') { 276 279 ?> 277 280 document.getElementById("imaad").checked = true; 278 document.getElementById('imaadTypevideo').checked=true; 279 Videoadtype(); 281 Videoadtype('imaad'); 280 282 <?php 281 283 }else { 282 284 ?> 283 285 document.getElementById("prepostroll").checked = true; 284 Videoadtype( );286 Videoadtype('prepostroll'); 285 287 <?php 286 288 } 289 if(!empty($videoadEdit->imaadpath)){ 290 ?> changeimaadtype('videoad');<?php 291 } else { 292 ?> changeimaadtype('textad'); <?php 293 } 287 294 ?> 288 295 </script> -
contus-video-gallery/trunk/admin/views/videoads/videoads.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video ad view file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/admin/views/videosetting.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: video settings view file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 11 11 ?> 12 12 <!-- MENU OPTIONS STARTS ---> 13 <?php 14 $dir = dirname(plugin_basename(__FILE__)); 15 $dirExp = explode('/', $dir); 16 $dirPage = $dirExp[0]; 17 $player_colors = unserialize($settingsGrid->player_colors); 18 ?> 19 <script type="text/javascript"> 20 folder = '<?php echo $dirPage; ?>' 21 </script> 13 22 <div class="apptha_gallery"> 14 23 <h2 class="nav-tab-wrapper"> … … 209 218 <td><input type='checkbox' class='check' <?php if ($settingsGrid->embed_visible == 1) { ?> checked <?php } ?> name="embed_visible" value="1" size=45 /></td> 210 219 </tr> 220 <tr> 221 <th scope='row'><?php _e("Enable Ratings", "video_gallery"); ?></th> 222 <td><input type='checkbox' class='check' <?php if ($settingsGrid->ratingscontrol == 1) { ?> checked <?php } ?> name="ratingscontrol" value="1" size=45 /></td> 223 </tr> 211 224 </table> 212 225 </div> … … 219 232 <tr> 220 233 <th scope='row'><?php _e("Share Popup Header Color", "video_gallery"); ?></th> 221 <td><input type='text' name="sharepanel_up_BgColor" value="<?php echo $ settingsGrid->sharepanel_up_BgColor?>" size=45 />234 <td><input type='text' name="sharepanel_up_BgColor" value="<?php echo $player_colors['sharepanel_up_BgColor']; ?>" size=45 /> 222 235 </td> 223 236 </tr> … … 225 238 <tr> 226 239 <th scope='row'><?php _e("Share Popup Background Color", "video_gallery"); ?></th> 227 <td><input type='text' name="sharepanel_down_BgColor" value="<?php echo $ settingsGrid->sharepanel_down_BgColor?>" size=45 />240 <td><input type='text' name="sharepanel_down_BgColor" value="<?php echo $player_colors['sharepanel_down_BgColor']; ?>" size=45 /> 228 241 </td> 229 242 </tr> … … 231 244 <tr> 232 245 <th scope='row'><?php _e("Share Popup Text Color", "video_gallery"); ?></th> 233 <td><input type='text' name="sharepaneltextColor" value="<?php echo $ settingsGrid->sharepaneltextColor?>" size=45 />246 <td><input type='text' name="sharepaneltextColor" value="<?php echo $player_colors['sharepaneltextColor']; ?>" size=45 /> 234 247 </td> 235 248 </tr> … … 237 250 <tr> 238 251 <th scope='row'><?php _e("Send Button Color", "video_gallery"); ?></th> 239 <td><input type='text' name="sendButtonColor" value="<?php echo $ settingsGrid->sendButtonColor?>" size=45 />252 <td><input type='text' name="sendButtonColor" value="<?php echo $player_colors['sendButtonColor']; ?>" size=45 /> 240 253 </td> 241 254 </tr> … … 243 256 <tr> 244 257 <th scope='row'><?php _e("Send Button Text Color", "video_gallery"); ?></th> 245 <td><input type='text' name="sendButtonTextColor" value="<?php echo $ settingsGrid->sendButtonTextColor?>" size=45 />258 <td><input type='text' name="sendButtonTextColor" value="<?php echo $player_colors['sendButtonTextColor']; ?>" size=45 /> 246 259 </td> 247 260 </tr> … … 249 262 <tr> 250 263 <th scope='row'><?php _e("Player Text Color", "video_gallery"); ?></th> 251 <td><input type='text' name="textColor" value="<?php echo $ settingsGrid->textColor?>" size=45 />264 <td><input type='text' name="textColor" value="<?php echo $player_colors['textColor']; ?>" size=45 /> 252 265 </td> 253 266 </tr> … … 255 268 <tr> 256 269 <th scope='row'><?php _e("Skin Background Color", "video_gallery"); ?></th> 257 <td><input type='text' name="skinBgColor" value="<?php echo $ settingsGrid->skinBgColor?>" size=45 />270 <td><input type='text' name="skinBgColor" value="<?php echo $player_colors['skinBgColor']; ?>" size=45 /> 258 271 </td> 259 272 </tr> … … 261 274 <tr> 262 275 <th scope='row'><?php _e("Seek Bar Color", "video_gallery"); ?></th> 263 <td><input type='text' name="seek_barColor" value="<?php echo $ settingsGrid->seek_barColor?>" size=45 />276 <td><input type='text' name="seek_barColor" value="<?php echo $player_colors['seek_barColor']; ?>" size=45 /> 264 277 </td> 265 278 </tr> … … 267 280 <tr> 268 281 <th scope='row'><?php _e("Buffer Bar Color", "video_gallery"); ?></th> 269 <td><input type='text' name="buffer_barColor" value="<?php echo $ settingsGrid->buffer_barColor?>" size=45 />282 <td><input type='text' name="buffer_barColor" value="<?php echo $player_colors['buffer_barColor']; ?>" size=45 /> 270 283 </td> 271 284 </tr> … … 273 286 <tr> 274 287 <th scope='row'><?php _e("Skin Icons Color", "video_gallery"); ?></th> 275 <td><input type='text' name="skinIconColor" value="<?php echo $ settingsGrid->skinIconColor?>" size=45 />288 <td><input type='text' name="skinIconColor" value="<?php echo $player_colors['skinIconColor']; ?>" size=45 /> 276 289 </td> 277 290 </tr> … … 279 292 <tr> 280 293 <th scope='row'><?php _e("Progress Bar Background Color", "video_gallery"); ?></th> 281 <td><input type='text' name="pro_BgColor" value="<?php echo $ settingsGrid->pro_BgColor?>" size=45 />294 <td><input type='text' name="pro_BgColor" value="<?php echo $player_colors['pro_BgColor']; ?>" size=45 /> 282 295 </td> 283 296 </tr> … … 285 298 <tr> 286 299 <th scope='row'><?php _e("Play Button Color", "video_gallery"); ?></th> 287 <td><input type='text' name="playButtonColor" value="<?php echo $ settingsGrid->playButtonColor?>" size=45 />300 <td><input type='text' name="playButtonColor" value="<?php echo $player_colors['playButtonColor']; ?>" size=45 /> 288 301 </td> 289 302 </tr> … … 291 304 <tr> 292 305 <th scope='row'><?php _e("Play Button Background Color", "video_gallery"); ?></th> 293 <td><input type='text' name="playButtonBgColor" value="<?php echo $ settingsGrid->playButtonBgColor?>" size=45 />306 <td><input type='text' name="playButtonBgColor" value="<?php echo $player_colors['playButtonBgColor']; ?>" size=45 /> 294 307 </td> 295 308 </tr> … … 297 310 <tr> 298 311 <th scope='row'><?php _e("Player Buttons Color", "video_gallery"); ?></th> 299 <td><input type='text' name="playerButtonColor" value="<?php echo $ settingsGrid->playerButtonColor?>" size=45 />312 <td><input type='text' name="playerButtonColor" value="<?php echo $player_colors['playerButtonColor']; ?>" size=45 /> 300 313 </td> 301 314 </tr> … … 303 316 <tr> 304 317 <th scope='row'><?php _e("Player Buttons Background Color", "video_gallery"); ?></th> 305 <td><input type='text' name="playerButtonBgColor" value="<?php echo $ settingsGrid->playerButtonBgColor?>" size=45 />318 <td><input type='text' name="playerButtonBgColor" value="<?php echo $player_colors['playerButtonBgColor']; ?>" size=45 /> 306 319 </td> 307 320 </tr> … … 309 322 <tr id="related_bgColor" style="display:none;"> 310 323 <th scope='row'><?php _e("Related Videos Background Color", "video_gallery"); ?></th> 311 <td><input type='text' name="relatedVideoBgColor" value="<?php echo $ settingsGrid->relatedVideoBgColor?>" size=45 />324 <td><input type='text' name="relatedVideoBgColor" value="<?php echo $player_colors['relatedVideoBgColor']; ?>" size=45 /> 312 325 </td> 313 326 </tr> … … 315 328 <tr id="related_scroll_barColor" style="display:none;"> 316 329 <th scope='row'><?php _e("Related Videos Scroll Bar Color", "video_gallery"); ?></th> 317 <td><input type='text' name="scroll_barColor" value="<?php echo $ settingsGrid->scroll_barColor?>" size=45 />330 <td><input type='text' name="scroll_barColor" value="<?php echo $player_colors['scroll_barColor']; ?>" size=45 /> 318 331 </td> 319 332 </tr> … … 321 334 <tr id="related_scroll_barbgColor" style="display:none;"> 322 335 <th scope='row'><?php _e("Related Videos Scroll Bar Background Color", "video_gallery"); ?></th> 323 <td><input type='text' name="scroll_BgColor" value="<?php echo $ settingsGrid->scroll_BgColor?>" size=45 />336 <td><input type='text' name="scroll_BgColor" value="<?php echo $player_colors['scroll_BgColor']; ?>" size=45 /> 324 337 </td> 325 338 </tr> … … 445 458 </div> 446 459 <div class="portlet"> 447 <div class="portlet-header"><b><?php _e(" FacebookSettings", "video_gallery"); ?></b></div>460 <div class="portlet-header"><b><?php _e("Comment Settings", "video_gallery"); ?></b></div> 448 461 <div class="portlet-content"> 449 462 <table class="form-table"> -
contus-video-gallery/trunk/configXML.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: ConfigXML file for player. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 20 20 global $site_url; 21 21 22 $dir = dirname(plugin_basename(__FILE__)); 23 $dirExp = explode('/', $dir); 24 $dirPage = $dirExp[0]; 25 22 26 $contusOBJ = new ContusVideoView(); 23 27 $settingsData = $contusOBJ->_settingsData; 24 28 $mId = filter_input(INPUT_GET, 'mid'); 25 $logoPath = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);29 $logoPath = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 26 30 27 31 $playXml = APPTHA_VGALLERY_BASEURL . 'myextractXML.php'; … … 58 62 $postrollAds = ($settingsData->postroll == 0) ? 'true' : 'false'; 59 63 $midroll_ads = ($settingsData->midroll_ads == 0) ? 'true' : 'false'; 60 $youtube_hide_logo = ($settingsData->hideLogo == 1) ? 'true' : 'false';61 64 $trackCode = ($settingsData->trackCode == 0) ? '' : $settingsData->trackCode; 65 $player_colors = unserialize($settingsData->player_colors); 62 66 67 $logotarget = $settingsData->logo_target; 68 if (!preg_match("~^(?:f|ht)tps?://~i", $logotarget)) { 69 $logotarget = "http://" . $logotarget; 70 } 71 63 72 /* Configuration Start */ 64 73 echo '<?xml version="1.0" encoding="utf-8"?>'; … … 74 83 <logoalpha>' . $settingsData->logoalpha . '</logoalpha> 75 84 <logoalign>' . $settingsData->logoalign . '</logoalign> 76 <logo_target>' . $ settingsData->logo_target . '</logo_target>77 <sharepanel_up_BgColor>' . $ settingsData->sharepanel_up_BgColor. '</sharepanel_up_BgColor>78 <sharepanel_down_BgColor>' . $ settingsData->sharepanel_down_BgColor. '</sharepanel_down_BgColor>79 <sharepaneltextColor>' . $ settingsData->sharepaneltextColor. '</sharepaneltextColor>80 <sendButtonColor>' . $ settingsData->sendButtonColor. '</sendButtonColor>81 <sendButtonTextColor>' . $ settingsData->sendButtonTextColor. '</sendButtonTextColor>82 <textColor>' . $ settingsData->textColor. '</textColor>83 <skinBgColor>' . $ settingsData->skinBgColor. '</skinBgColor>84 <seek_barColor>' . $ settingsData->seek_barColor. '</seek_barColor>85 <buffer_barColor>' . $ settingsData->buffer_barColor. '</buffer_barColor>86 <skinIconColor>' . $ settingsData->skinIconColor. '</skinIconColor>87 <pro_BgColor>' . $ settingsData->pro_BgColor. '</pro_BgColor>88 <playButtonColor>' . $ settingsData->playButtonColor. '</playButtonColor>89 <playButtonBgColor>' . $ settingsData->playButtonBgColor. '</playButtonBgColor>90 <playerButtonColor>' . $ settingsData->playerButtonColor. '</playerButtonColor>91 <playerButtonBgColor>' . $ settingsData->playerButtonBgColor. '</playerButtonBgColor>92 <relatedVideoBgColor>' . $ settingsData->relatedVideoBgColor. '</relatedVideoBgColor>93 <scroll_barColor>' . $ settingsData->scroll_barColor. '</scroll_barColor>94 <scroll_BgColor>' . $ settingsData->scroll_BgColor. '</scroll_BgColor>85 <logo_target>' . $logotarget . '</logo_target> 86 <sharepanel_up_BgColor>' . $player_colors['sharepanel_up_BgColor'] . '</sharepanel_up_BgColor> 87 <sharepanel_down_BgColor>' . $player_colors['sharepanel_down_BgColor'] . '</sharepanel_down_BgColor> 88 <sharepaneltextColor>' . $player_colors['sharepaneltextColor'] . '</sharepaneltextColor> 89 <sendButtonColor>' . $player_colors['sendButtonColor'] . '</sendButtonColor> 90 <sendButtonTextColor>' . $player_colors['sendButtonTextColor'] . '</sendButtonTextColor> 91 <textColor>' . $player_colors['textColor'] . '</textColor> 92 <skinBgColor>' . $player_colors['skinBgColor'] . '</skinBgColor> 93 <seek_barColor>' . $player_colors['seek_barColor'] . '</seek_barColor> 94 <buffer_barColor>' . $player_colors['buffer_barColor'] . '</buffer_barColor> 95 <skinIconColor>' . $player_colors['skinIconColor'] . '</skinIconColor> 96 <pro_BgColor>' . $player_colors['pro_BgColor'] . '</pro_BgColor> 97 <playButtonColor>' . $player_colors['playButtonColor'] . '</playButtonColor> 98 <playButtonBgColor>' . $player_colors['playButtonBgColor'] . '</playButtonBgColor> 99 <playerButtonColor>' . $player_colors['playerButtonColor'] . '</playerButtonColor> 100 <playerButtonBgColor>' . $player_colors['playerButtonBgColor'] . '</playerButtonBgColor> 101 <relatedVideoBgColor>' . $player_colors['relatedVideoBgColor'] . '</relatedVideoBgColor> 102 <scroll_barColor>' . $player_colors['scroll_barColor'] . '</scroll_barColor> 103 <scroll_BgColor>' . $player_colors['scroll_BgColor'] . '</scroll_BgColor> 95 104 <skin>' . $skinPath . '</skin> 96 105 <skin_autohide>' . $skinAutohide . '</skin_autohide> -
contus-video-gallery/trunk/css/jquery.jcarousel.css
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jcarousel css file 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com … … 28 28 left: 0; 29 29 margin: 0; 30 padding: 0 !important;30 padding: 5px 0 !important; 31 31 } 32 32 .jcarousel-list li, -
contus-video-gallery/trunk/css/rtl.css
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: Plugin css file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/css/skins.css
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: Skins css file 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com … … 9 9 */ 10 10 11 .jcarousel-skin-tango .jcarousel-container {-moz-border-radius: 3px;border: 1px solid #dfdfdf;-webkit-border-radius: 3px;-moz-border-radius: 3px;border-radius: 3px;padding: 10px;} 12 .jcarousel-skin-tango .jcarousel-clip-horizontal { height: auto; margin-top: 15px;} 11 .jcarousel-skin-tango {clear: both;margin-top: 15px;} 12 .jcarousel-skin-tango .jcarousel-container {clear: both;} 13 .jcarousel-skin-tango .jcarousel-clip-horizontal { height: auto; margin-top: 15px; border-radius: 2px;-webkit-border-radius: 2px; 14 -moz-border-radius: 2px; 15 padding: 5px; 16 17 -moz-box-shadow: 0px 0px 3px #999; 18 -webkit-box-shadow: 0px 0px 3px #999; 19 box-shadow: 0px 0px 3px #999;} 20 .jcarousel-skin-tango .vid_info{float: left;clear: both;} 13 21 .jcarousel-skin-tango .jcarousel-clip-vertical { width: 80px; height: auto; margin-top:15px;} 14 .jcarousel-skin-tango .jcarousel-item { width: 140px; height: auto;} 15 .jcarousel-skin-tango .jcarousel-item-horizontal { margin: 0 6px;} 22 .jcarousel-skin-tango .jcarousel-item {width: 130px; 23 height: auto; 24 margin: 2px 0;} 25 .jcarousel-skin-tango .jcarousel-item-horizontal { margin: 0 11px 0 6px;list-style: none;} 16 26 .jcarousel-skin-tango .jcarousel-item-vertical { margin-bottom: 10px;} 17 27 .jcarousel-skin-tango .jcarousel-item-placeholder { background: #fff; color: #000;} 18 .jcarousel-skin-tango .jcarousel-next-horizontal { 19 position: absolute; 20 top: 5px; 21 right: 5px; 22 width: 6px; 23 height: 17px; 24 cursor: pointer; 25 float: right; 26 background: #FFF url('../images/arrow_right-rel.png') no-repeat center; 27 padding: 2px; 28 -webkit-border-radius: 2px; 29 -moz-border-radius: 2px; 30 border-radius: 2px; 28 .jcarousel-skin-tango .jcarousel-next-horizontal {position: absolute; 29 top: 37%; 30 right: -1px; 31 width: 6px; 32 height: 10px; 33 cursor: pointer; 34 float: right; 35 background: url('../images/arrow_right-rel.png') no-repeat center; 36 padding: 17px 7px; 37 -webkit-border-radius: 2px 0 0 2px; 38 -moz-border-radius: 2px 0 0 2px; 39 border-radius: 2px 0 0 2px; 31 40 } 32 41 .jcarousel-skin-tango .jcarousel-prev-horizontal { 33 position: absolute; 34 top: 5px; 35 right: 15px; 36 width: 6px; 37 height: 17px; 38 cursor: pointer; 39 background: #FFF url('../images/arrow_left-rel.png') no-repeat center; 40 padding: 2px; 41 -webkit-border-radius: 2px; 42 -moz-border-radius: 2px; 43 border-radius: 2px; 42 position: absolute; 43 top: 37%; 44 left: -1px; 45 width: 6px; 46 height: 10px; 47 cursor: pointer; 48 background: url('../images/arrow_left-rel.png') no-repeat center; 49 padding: 17px 7px; 44 50 } 45 51 .jcarousel-skin-tango .jcarousel-next-disabled-horizontal, 46 52 .jcarousel-skin-tango .jcarousel-prev-disabled-horizontal{ 47 opacity: 0. 5;53 opacity: 0.7; 48 54 filter: alpha(opacity = 50); 49 55 cursor: default; -
contus-video-gallery/trunk/css/style.css
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: Plugin css file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com 8 8 License: GPL2 9 9 */ 10 10 11 11 h1 .videoHname a, h2 .videoHname a, h3 .videoHname a, h4 .videoHname a, h5 .videoHname a, h6 .videoHname a { } 12 12 .home-category h5, .home-category h1, .home-category h2, .home-category h3, .home-category h5, .home-category h6{margin: 0 !important; padding: 0 !important; text-decoration: none !important;} … … 14 14 .video-cat-thumb h1 a, .video-cat-thumb h2 a, .video-cat-thumb h3 a, .video-cat-thumb h4 a, .video-cat-thumb h5 a, .video-cat-thumb h6 a{text-decoration: none !important;} 15 15 .paddBotm h1 a, .paddBotm h2 a, .paddBotm h3 a, .paddBotm h4 a, .paddBotm h5 a, .paddBotm h6 a{text-decoration: none !important;} 16 .video-block h1 a, .video-block h2 a, .video-block h3 a, .video-block h4 a, .video-block h5 a, .video-block h6 a{text-decoration: none !important; font-size: 12px !important; line-height: 13px !important; margin-bottom: 3px !important; height: 25px; float: left;} 16 .video-block h1 a, .video-block h2 a, .video-block h3 a, .video-block h4 a, .video-block h5 a, .video-block h6 a{text-decoration: none !important; margin-bottom: 3px !important; float: left;} 17 .vid_info h6{ overflow: hidden;} 17 18 .video-block h5 a{width: 100%;} 18 .video-block h5 { line-height: 12px !important;margin-top: 5px !important;}19 .video-block .vid_info .video_views { font-size: 1 2px !important; float: left;}19 .video-block h5 { margin-top: 5px !important;} 20 .video-block .vid_info .video_views { font-size: 11px !important; float: right;opacity:0.8;filter:alpha(opacity=80); } 20 21 21 22 .home-category h1 a, .home-category h2 a, .home-category h3 a, .home-category h4 a, .home-category h5 a, .home-category h6 a{margin: 0 !important; padding: 0 !important; text-decoration: none !important;} … … 27 28 overflow: hidden; 28 29 float: left; 29 width: 110px; 30 width: 43%; 31 max-width: 120px; 32 margin-right: 4%; 30 33 position: relative; 31 34 } … … 47 50 } 48 51 .paddBotm{margin-bottom:10px;} 49 .side_video_info{float: left;width: 125px;margin-left: 10px;}52 .side_video_info{float: left;width: 50%;} 50 53 .side_video_info h6{line-height: 15px;} 51 54 … … 78 81 79 82 .more_title{ margin: 0px 0; } 80 .videoHname { float: left;clear: both;}83 .videoHname {clear: both;} 81 84 #mycarousel .videoHname {float: none;} 82 85 .tags … … 86 89 text-align: left; 87 90 } 88 .video-more {float:right;clear:both; width: auto;} 91 .video-more {float:right;clear:both; width: auto;text-decoration: none;font-size: 12px;font-weight: bold;} 92 .sidebar-wrap .video-more {font-size: 11px;} 89 93 .fb_iframe_widget iframe, .fb_iframe_widget{width:100% !important;} 90 94 .fb_iframe_widget span:first-child{width:100% !important;} … … 101 105 .video-pagination a{margin: 0 5px; text-align: right;} 102 106 .video-block a img, 103 .video-block img {padding: 0 !important; margin: 0 !important; width: 140px !important; max-width: none; 104 height: 90px !important; border:none} 105 .views, .videoHname, .videoName, .playlistName { font-size: 12px !important; } 106 .playlistName {display: block;} 107 .vid_info .playlistName{ float: right; } 107 .video-block img {padding: 0 !important; margin: 0 !important; width: 140px !important; max-width: none;height: 90px !important; border:none} 108 .videoHname, .playlistName{display: block;clear: both;text-decoration: none} 109 .videoHname {font-size: 12px;font-weight: bold;min-height: 35px;border-width: 0px !important;} 110 .side_video_info .videoHname {line-height: 15px;} 111 .video-block a{border-width: 0px !important;} 112 #videos-category.sidebar-wrap .videoHname {height: auto;} 113 .sidebar-wrap .views {font-size: 11px;clear: both;display: block;} 114 .sidebar-wrap { width: 100%;} 115 .sidebar-wrap ul{margin: 0 !important;padding: 0 !important;} 116 .sidebar-wrap ul, 117 .sidebar-wrap li{list-style: none; background: transparent !important;} 118 .sidebar-wrap .widget-title a{text-decoration: none;} 119 .playlistName {font-size: 11px;border-width: 0px !important;} 108 120 .ulwidget .imgBorder img{width:100%;max-height: 100px;} 109 121 .jcarousel-skin-tango{} … … 117 129 .video-page-container .video-page-date{width: auto; float: left;width: 50%; } 118 130 .video-page-container .video-page-views{ float: right; text-align: right;width: 50%;} 119 .video-page-container .video-page-tag{ padding-bottom: 20px; border-bottom: 1px solid #ccc; margin-bottom: 5px; } 120 .video-page-container .video-page-category {padding-bottom: 10px;} 121 .video-page-info{clear: both; overflow: hidden; padding-bottom: 20px; } 122 .embed{ padding: 0 10px; border: 1px solid #ccc; text-decoration: none; float: left; } 131 .video-page-container.shortcode .video-page-info{float: left;text-align: left;width: 50%;} 132 .video-page-container.shortcode .video-page-info.noviews{width: 100%;} 133 .video-page-container.shortcode .video-page-views {float: left;text-align: left;} 134 .video-page-container.shortcode .video-page-rating{width: 50%;float: left;} 135 .video-page-container.shortcode .noviews .video-page-rating{width: 100%;} 136 137 .video-page-container.shortcode .video-page-rating .floatleft {float: right;} 138 .video-page-container.shortcode .video-page-rating .floatleft .rateimgleft{ float: right;} 139 140 .video-page-container .video-page-tag{ padding-bottom: 10px; margin-bottom: 5px; clear: both;} 141 .video-page-container .video-page-category {} 142 .video-page-info{clear: both; overflow: hidden; padding-bottom: 5px; } 143 .video-page-info .video-page-rating{float: right; } 144 .video-page-info .video-page-rating .rateimgleft{float: right; } 145 .video-page-info .video-page-rating .rateright-views{margin-right: 5px;padding-top: 2px;width: 120px;text-align: right;} 146 .video-page-info .video-page-category{float: left;width: 49%;} 147 .player embed{margin: 0 0 10px 0 !important; } 148 .embed{ padding: 0 10px; border: 1px solid #ccc; text-decoration: none; float: left; } 123 149 .embed .embed_text{ float: left; } 124 150 .embed .embed_arrow{ width: 0px; height: 0px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #666; margin-top: 7px; display: block; float: left; margin-left: 5px;} 125 .video-page-desc{ width: 100%; overflow: hidden; text-align: justify; padding-top: 20px; clear: both;}151 .video-page-desc{ width: 100%; overflow: hidden; text-align: justify; padding-top: 10px; clear: both;border-top: 1px solid #CCC;margin-top: 10px;} 126 152 #embedcode{ padding: 2%; width: 95.5%; font-size: 13px; float: left; height: 90px; margin-top: 5px; } 127 153 .video_wrapper h3, … … 132 158 .video-block:first-child{ padding-left: 0px !important; margin-left: 0px !important; width: 140px; } 133 159 .video-block i{display: none !important} 160 .video-block .vid_info{} 134 161 .video-block 135 162 { line-height: 17px; 136 float: left;163 float: none; 137 164 padding-bottom: 25px; 138 165 width:140px; 139 166 min-height: 145px; 140 display: block; 167 display: inline-block !important; 168 vertical-align: top; 141 169 list-style-type: none; 142 170 margin: 0 !important; … … 145 173 .video_duration{ position: absolute; right: 0; bottom: 10px; font-size: 10px; background: #000; padding: 0 3px; color: #fff; line-height: 11px; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;} 146 174 .tablenav-pages{float: right; margin: 1em 0;} 175 .tablenav-pages a, 176 .tablenav-pages span{padding: 0 2px} 147 177 148 178 h2.related-videos{ text-align: left !important; margin: 20px 0 0 !important; } … … 154 184 bottom: 10px;} 155 185 .widget .side_video_info h6{ padding-bottom: 5px; margin: 0;} 156 .widget .side_video_info h6 a{ font-size: 12px !important; text-decoration: none; } 157 .widget .side_video_info .views{ float: left; } 158 186 .widget .side_video_info h6 a{ text-decoration: none;} 187 .widget .side_video_info .views{ float: left; font-size: 11px;} 188 189 .widget #featured-videos ul, 190 .widget #recent-videos ul, 191 .widget #related-videos ul, 192 .widget #videos-category ul, 193 .widget #popular-videos ul {list-style: none !important; padding: 0 !important; margin: 0 !important; background: transparent;} 159 194 .widget #featured-videos ul li, 160 195 .widget #recent-videos ul li, 161 196 .widget #related-videos ul li, 197 .widget #videos-category ul, 162 198 .widget #popular-videos ul li {background: transparent;padding: 0;} 163 199 164 200 .flike{width: 85px;} 165 201 .ttweet{width: 66px} 166 .gplusshare{} 167 202 .video-socialshare .gplusshare{margin-left: 3px;} 168 203 .fbshare { 169 204 background: url(../images/fb_share_button.png) no-repeat; … … 172 207 height: 20px; 173 208 } 174 175 176 .jcarousel-skin-tango #mycarousel li .imgSidethumb img{width: 120px; height: 90px; }209 .videoplayer_title{clear:both;} 210 211 .jcarousel-skin-tango #mycarousel li .imgSidethumb img{width: 120px; height: 90px;cursor: pointer;} 177 212 178 213 /***************************** Banner **/ … … 240 275 } 241 276 277 /*Rating css*/ 278 .ratethis{ background: url(../images/stars831-thump.png) no-repeat 0 0; width:100px;height:20px;margin:5px 5px 5px 5px;clear:both;position:relative;list-style:none;} 279 #rateid ul.ratethis{list-style:none;} 280 .nopos {background-position:0 0} 281 .onepos {background-position:0 -20px} 282 .twopos {background-position:0 -40px} 283 .threepos {background-position:0 -60px} 284 .fourpos {background-position:0 -80px} 285 .fivepos {background-position:0 -100px} 286 #rateimg ul.ratethis li { text-indent:-999em;cursor: pointer;float:left;list-style:none;} 287 #rateimg .ratethis{margin: 0px; 288 padding: 0px !important; 289 /*margin-right: 10px;*/ 290 } 291 .callout-header-home h2{margin-bottom:5px;font-size:15px;} 292 h2.hoverable a{font-size:18px;} 293 h2.hoverable a:hover{background:none;} 294 /*.gr h2 {border-bottom:1px solid #C3C3C3;padding-bottom:5px;}*/ 295 ul.ratethis li a { position:absolute;left:0;top:0;width:20px;height:20px;text-decoration:none;z-index: 200;} 296 ul.ratethis li.one a {left:0} 297 ul.ratethis li.two a {left:20px;} 298 ul.ratethis li.three a {left:40px;} 299 ul.ratethis li.four a {left:60px;} 300 ul.ratethis li.five a {left:80px;} 301 ul.ratethis li a:hover { background: url(../images/stars831-thump.png) no-repeat 0 0;z-index:2;width:100px;height:20px;overflow:hidden;left:0;} 302 ul.ratethis li.one a:hover {background-position:0 -120px;} 303 ul.ratethis li.two a:hover {background-position:0 -140px;} 304 ul.ratethis li.three a:hover {background-position:0 -160px;} 305 ul.ratethis li.four a:hover {background-position:0 -180px;} 306 ul.ratethis li.five a:hover {background-position:0 -200px;} 307 308 .player_related_video { 309 clear: both; 310 } 311 .video-socialshare iframe{margin: 0 !important;} 312 313 .ratethis1{ background: url(../images/stars831.png) no-repeat !important;width:60px;height:12px;clear:both;position:relative;list-style:none;float:left;margin: 4px 0;} 314 ul.ratethis1 li {cursor: pointer;float:left;} 315 .nopos1 {background-position:0 0 !important;} 316 .onepos1 {background-position:0 -12px !important;} 317 .twopos1 {background-position:0 -24px !important;} 318 .threepos1 {background-position:0 -36px !important;} 319 .fourpos1 {background-position:0 -48px !important;} 320 .fivepos1 {background-position:0 -60px !important;} -
contus-video-gallery/trunk/front/controllers/videohomeController.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video home page controller file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/front/controllers/videomoreController.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video More page controller file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/front/controllers/videoshortcodeController.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video detail and short tags controller file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/front/models/videohome.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: video home page model file 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 75 75 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p ON p.pid=m.playlist_id 76 76 INNER JOIN " . $wpdb->prefix . "posts s ON s.ID=w.slug 77 WHERE w.vid='$vid' andw.publish='1' AND p.is_publish='1' GROUP BY w.vid";77 WHERE w.vid='$vid' AND w.publish='1' AND p.is_publish='1' GROUP BY w.vid"; 78 78 79 79 $themediafiles = $wpdb->get_results($select); … … 93 93 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p 94 94 WHERE (m.playlist_id = '$playlist_id' 95 AND m.media_id = w.vid AND p.pid=m.playlist_id AND m.media_id != '".intval($vid)."' AND w.publish='1' AND p.is_publish='1' ) GROUP BY w.vid";95 AND m.media_id = w.vid AND w.file_type!=5 AND p.pid=m.playlist_id AND m.media_id != '".intval($vid)."' AND w.publish='1' AND p.is_publish='1' ) GROUP BY w.vid"; 96 96 $fetched = $wpdb->get_results($fetch_video); 97 97 ## Array rotation to autoplay the videos correctly … … 106 106 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p 107 107 INNER JOIN " . $wpdb->prefix . "posts s ON s.ID=w.slug 108 WHERE (w.vid=$r->vid AND m.media_id != '".intval($vid)."' AND w. publish='1' AND p.is_publish='1' ) GROUP BY w.vid";108 WHERE (w.vid=$r->vid AND m.media_id != '".intval($vid)."' AND w.file_type!=5 AND w.publish='1' AND p.is_publish='1' ) GROUP BY w.vid"; 109 109 110 110 $arrGreat = $wpdb->get_row($query); … … 115 115 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p 116 116 INNER JOIN " . $wpdb->prefix . "posts s ON s.ID=w.slug 117 WHERE (w.vid=$r->vid AND m.media_id != '".intval($vid)."' AND w. publish='1' AND p.is_publish='1' ) GROUP BY w.vid";117 WHERE (w.vid=$r->vid AND m.media_id != '".intval($vid)."' AND w.file_type!=5 AND w.publish='1' AND p.is_publish='1' ) GROUP BY w.vid"; 118 118 119 119 $arrLess = $wpdb->get_row($query); … … 137 137 if ($playlist) 138 138 { 139 $select = " SELECT *,s.guid FROM " . $wpdb->prefix . "hdflvvideoshare w";139 $select = " SELECT w.*,s.guid,m.playlist_id FROM " . $wpdb->prefix . "hdflvvideoshare w"; 140 140 $select .= " INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play m"; 141 $select .= " INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p"; 141 142 $select .= " INNER JOIN " . $wpdb->prefix . "posts s ON s.ID=w.slug"; 142 143 $select .= " WHERE (m.playlist_id = '".intval($playlist_id)."'"; 143 $select .= " AND m.media_id = w.vid ) GROUP BY w.vid ";144 $select .= " AND m.media_id = w.vid AND w.file_type!=5 AND w.publish='1' AND p.is_publish='1') GROUP BY w.vid "; 144 145 $select .= " ORDER BY m.sorder ASC , m.porder ASC ,w.vid ASC"; 145 146 $themediafiles = $wpdb->get_results($select); … … 160 161 INNER JOIN " . $this->_wpdb->prefix . "hdflvvideoshare_playlist p ON p.pid=m.playlist_id 161 162 INNER JOIN " . $this->_wpdb->prefix . "posts s ON s.ID=w.slug 162 WHERE featured='1' andpublish='1' AND p.is_publish='1' GROUP BY w.vid ORDER BY ordering ASC";163 WHERE featured='1' AND w.file_type!=5 AND publish='1' AND p.is_publish='1' GROUP BY w.vid ORDER BY ordering ASC"; 163 164 return $this->_wpdb->get_results($query); 164 165 } ##function for getting settings data ends -
contus-video-gallery/trunk/front/models/videomore.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: video more page model file 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 63 63 $pagenum = isset($pagenum ) ? absint($pagenum ) : 1; 64 64 $offset = ( $pagenum - 1 ) * $dataLimit; 65 $query = "SELECT t1.vid,t1.name,t1. description,s.guid,t3.pid,t3.playlist_name,t1.image,t1.file,t1.file_type,t1.duration,t1.hitcount,t2.playlist_id,t3.playlist_name FROM " . $this->_wpdb->prefix . "hdflvvideoshare AS t165 $query = "SELECT t1.vid,t1.name,t1.ratecount,t1.rate,t1.description,s.guid,t3.pid,t3.playlist_name,t1.image,t1.file,t1.file_type,t1.duration,t1.hitcount,t2.playlist_id,t3.playlist_name FROM " . $this->_wpdb->prefix . "hdflvvideoshare AS t1 66 66 LEFT JOIN " . $this->_wpdb->prefix . "hdflvvideoshare_med2play AS t2 ON t2.media_id = t1.vid 67 67 LEFT JOIN " . $this->_wpdb->prefix . "hdflvvideoshare_playlist AS t3 ON t3.pid = t2.playlist_id -
contus-video-gallery/trunk/front/models/videoshortcode.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video detail and short tag page model file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 29 29 {//function for getting Tag name starts 30 30 global $wpdb; 31 $video_count = $this->_wpdb->get_row("SELECT t1.vid,t1.description,t4.tags_name,t1.name,t1.post_date,t1.image,t1.file,t1.hitcount,t 2.playlist_id,t3.playlist_name"31 $video_count = $this->_wpdb->get_row("SELECT t1.vid,t1.description,t4.tags_name,t1.name,t1.post_date,t1.image,t1.file,t1.hitcount,t1.ratecount,t1.file_type,t1.embedcode,t1.rate,t2.playlist_id,t3.playlist_name" 32 32 . " FROM " . $this->_videoinfotable . " AS t1" 33 33 . " LEFT JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play AS t2" -
contus-video-gallery/trunk/front/views/videohome.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video home page view file 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 21 21 public $_vId; 22 22 23 public function __construct() { ##contructor starts23 public function __construct() { ##contructor starts 24 24 parent::__construct(); 25 $this->_settingsData = $this->settings_data(); 26 $this->_videosData = $this->videos_data(); 27 $this->_mPageid = $this->More_pageid(); 28 $this->_feaMore = $this->Video_count(); 29 $this->_vId = filter_input(INPUT_GET, 'vid'); 30 $this->_pId = filter_input(INPUT_GET, 'pid'); 31 $this->_tagname = $this->Tag_detail($this->_vId); 32 $this->_pagenum = filter_input(INPUT_GET, 'pagenum'); 25 $this->_settingsData = $this->settings_data(); ## Get player settings 26 $this->_videosData = $this->videos_data(); ## Get particular video data 27 $this->_mPageid = $this->More_pageid(); ## Get more page id 28 $this->_feaMore = $this->Video_count(); ## Get featured videos count 29 $this->_vId = filter_input(INPUT_GET, 'vid'); ## Get vid from URL 30 $this->_pId = filter_input(INPUT_GET, 'pid'); ## Get pid from URL 31 $this->_tagname = $this->Tag_detail($this->_vId); ## Get tag detail for the current video 32 $this->_pagenum = filter_input(INPUT_GET, 'pagenum'); ## Get current page number 33 33 $this->_showF = 5; 34 34 $this->_colCat = $this->_settingsData->colCat; 35 35 $this->_site_url = get_bloginfo('url'); 36 36 $this->_singlevideoData = $this->home_playerdata(); 37 $this->_featuredvideodata = $this->home_featuredvideodata(); 37 $this->_featuredvideodata = $this->home_featuredvideodata(); ## Get featured videos data 38 38 $this->_viewslang = __('Views', 'video_gallery'); 39 39 $this->_viewlang = __('View', 'video_gallery'); 40 $this->_bannerswfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer_banner.swf'; 41 $this->_swfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer.swf'; 42 $this->_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 40 $dir = dirname(plugin_basename(__FILE__)); 41 $dirExp = explode('/', $dir); 42 $this->_plugin_name = $dirExp[0]; ## Get plugin folder name 43 $this->_bannerswfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer_banner.swf'; ## Declare banner swf path 44 $this->_swfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer.swf'; ## Declare swf path 45 $this->_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; ## Declare image path 43 46 } 44 47 ##contructor ends 45 function home_player() { ##FUNCTION FOR HOME PAGE STARTS 46 $fetchedVideosVideos = $this->_videosData; 47 if (!empty($fetchedVideosVideos)) 48 $fetchedVideos = $fetchedVideosVideos[0]; 48 function home_player() { ## FUNCTION FOR HOME PAGE STARTS 49 49 $settingsData = $this->_settingsData; 50 50 $videoUrl = $videoId = $thumb_image = $homeplayerData = $file_type = ''; 51 if (!empty($this->_featuredvideodata[0])) 51 if (!empty($this->_featuredvideodata[0])){ 52 52 $homeplayerData = $this->_featuredvideodata[0]; 53 $image_path = str_replace('plugins/contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 53 } 54 $image_path = str_replace('plugins/'.$this->_plugin_name.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 54 55 $_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 55 56 if (!empty($homeplayerData)) { 56 $videoUrl = $homeplayerData->file; 57 $videoId = $homeplayerData->vid; 58 $thumb_image = $homeplayerData->image; 59 $file_type = $homeplayerData->file_type; 60 if ($thumb_image == '') { ## If there is no thumb image for video57 $videoUrl = $homeplayerData->file; ## Get video URL 58 $videoId = $homeplayerData->vid; ## Get Video ID 59 $thumb_image = $homeplayerData->image; ## Get thumb image 60 $file_type = $homeplayerData->file_type; ## Get file type of a video 61 if ($thumb_image == '') { ## If there is no thumb image for video 61 62 $thumb_image = $_imagePath . 'nothumbimage.jpg'; 62 63 } else { 63 if ($file_type == 2) { ## For uploaded image64 if ($file_type == 2) { ## For uploaded image 64 65 $thumb_image = $image_path . $thumb_image; 65 66 } … … 68 69 69 70 $moduleName = "playerModule"; 70 $div = '<div>'; ##video player starts 71 $div = '<div>'; ## video player starts 72 ## To increase hit count of a video 73 $div .= '<script type="text/javascript" src="' . APPTHA_VGALLERY_BASEURL . 'js/script.js"></script>'; 71 74 $div .= '<style type="text/css" scoped> .video-block {margin-left:' . $settingsData->gutterspace . 'px !important; } </style>'; 75 $div .=' <script> 76 var baseurl,folder,videoPage; 77 baseurl = "' . $this->_site_url . '"; 78 folder = "' . $this->_plugin_name . '"; 79 videoPage = "' . $this->_mPageid . '"; </script>'; 72 80 if (!empty($this->_vId)) { 73 81 $baseref = '&vid=' . $this->_vId; … … 77 85 $div .='<div id="mediaspace" class="mediaspace" style="color: #666;">'; 78 86 $div .='<h3 id="video_title" style="width:' . $settingsData->width . ';text-align: left;" class="more_title"></h3>'; 79 ## FLASH PLAYER STARTS HERE87 ## FLASH PLAYER STARTS HERE 80 88 $div .='<div id="flashplayer">'; 81 89 if ($settingsData->default_player == 1) { … … 86 94 $showplaylist = ''; 87 95 } 88 ## IF VIDEO IS Vimeo96 ## IF VIDEO IS Vimeo 89 97 if ((preg_match('/vimeo/', $videoUrl)) && ($videoUrl != '')) { 90 98 $vresult = explode("/", $videoUrl); 91 99 $div .='<iframe type="text/html" width="' . $settingsData->width . '" height="' . $settingsData->height . '" src="http://player.vimeo.com/video/' . $vresult[3] . '" frameborder="0"></iframe>'; 92 } else { 93 $div .= '<embed id="player" src="' . $swf . '" flashvars="baserefW=' . APPTHA_VGALLERY_BASEURL . $baseref . $showplaylist . '&mid=' . $moduleName . '" width="' . $settingsData->width . '" height="' . $settingsData->height . '" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent" />'; 100 } 101 ## Embed player code 102 else if($homeplayerData->file_type == 5 && !empty($homeplayerData->embedcode)){ 103 $div .= stripslashes($homeplayerData->embedcode); 104 $div .= '<script> currentvideo("'.$homeplayerData->name.'",'.$homeplayerData->vid.'); </script>'; 105 } else{ 106 ## Flash player code 107 $div .= '<embed id="player" src="' . $swf . '" flashvars="baserefW=' . APPTHA_VGALLERY_BASEURL . $baseref . $showplaylist . '&mtype=' . $moduleName . '" width="' . $settingsData->width . '" height="' . $settingsData->height . '" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent" />'; 94 108 } 95 109 $div .='</div>'; 96 ## FLASH PLAYER ENDS AND HTML5 PLAYER STARTS HERE110 ## FLASH PLAYER ENDS AND HTML5 PLAYER STARTS HERE 97 111 $htmlvideo = ''; 98 112 $div .='<div id="htmlplayer">'; … … 105 119 $videoId1 = $imgval[0]; 106 120 $htmlvideo ="<iframe type='text/html' src='http://www.youtube.com/embed/" . $videoId1 . "' frameborder='0'></iframe>"; 121 } else if($homeplayerData->file_type == 5 && !empty($homeplayerData->embedcode)){ 122 $htmlvideo = stripslashes($homeplayerData->embedcode); 107 123 } else { ##IF VIDEO IS UPLOAD OR DIRECT PATH 108 124 if ($file_type == 2) { ##For uploaded image … … 141 157 } 142 158 </script>'; 143 ##ERROR MESSAGE FOR VIDEO NOT SUPPORTED TO PLAYER ENDS 144 ##HTML5 ENDS 145 ## $div .='</div>'; 159 ## ERROR MESSAGE FOR VIDEO NOT SUPPORTED TO PLAYER ENDS 160 ## HTML5 ENDS 146 161 $div .= '<div id="video_tag" class="views"></div>'; 147 162 $div .= '</div>'; … … 157 172 switch ($type) { 158 173 case 'pop': ##GETTING POPULAR VIDEOS STARTS 159 $TypeSet = $this->_settingsData->popular; ##Popular Videos160 $rowF = $this->_settingsData->rowsPop; ##row fieldof popular videos161 $colF = $this->_settingsData->colPop; ##column fieldof popular videos174 $TypeSet = $this->_settingsData->popular; ## Popular Videos 175 $rowF = $this->_settingsData->rowsPop; ## get row of popular videos 176 $colF = $this->_settingsData->colPop; ## get column of popular videos 162 177 $dataLimit = $rowF * $colF; 163 178 $thumImageorder = 'w.hitcount DESC'; … … 170 185 171 186 case 'rec': 172 $TypeSet = $this->_settingsData->recent; 173 $rowF = $this->_settingsData->rowsRec; 174 $colF = $this->_settingsData->colRec; 187 $TypeSet = $this->_settingsData->recent; ## Recent Videos 188 $rowF = $this->_settingsData->rowsRec; ## get row of Recent videos 189 $colF = $this->_settingsData->colRec; ## get column of Recent videos 175 190 $dataLimit = $rowF * $colF; 176 191 $thumImageorder = 'w.vid DESC'; … … 185 200 $thumImageorder = 'w.ordering ASC'; 186 201 $where = 'AND w.featured=1'; 187 $TypeSet = $this->_settingsData->feature; 188 $rowF = $this->_settingsData->rowsFea; 189 $colF = $this->_settingsData->colFea; 202 $TypeSet = $this->_settingsData->feature; ## feature Videos 203 $rowF = $this->_settingsData->rowsFea; ## get row of feature videos 204 $colF = $this->_settingsData->colFea; ## get column of feature videos 190 205 $dataLimit = $rowF * $colF; 191 206 $TypeOFvideos = $this->home_thumbdata($thumImageorder, $where, $dataLimit); … … 197 212 case 'cat': 198 213 if ($this->_settingsData->homecategory == 1) { 199 $rowF = $this->_settingsData->rowCat; 200 $colF = $this->_settingsData->colCat; 201 $category_page = $this->_settingsData->category_page; 214 $rowF = $this->_settingsData->rowCat; ## category Videos 215 $colF = $this->_settingsData->colCat; ## get row of category videos 216 $category_page = $this->_settingsData->category_page; ## get column of category videos 202 217 $dataLimit = $rowF * $colF; 203 218 $TypeOFvideos = $this->home_categoriesthumbdata($this->_pagenum, $category_page); … … 210 225 211 226 $class = $div = ''; 212 213 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);227 $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1"); 228 $image_path = str_replace('plugins/'.$this->_plugin_name.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 214 229 if ($TypeSet) { ## CHECKING FAETURED VIDEOS ENABLE STARTS 215 230 $div = '<div class="video_wrapper" id="' . $type_name . '_video">'; … … 219 234 $div .= '<h2 class="video_header">' . $typename . ' ' . __('Videos', 'video_gallery') . '</h2>'; 220 235 $j = 0; 221 $clearwidth = 0;222 $clear = '';223 236 foreach ($TypeOFvideos as $video) { 224 237 $duration[$j] = $video->duration; ## VIDEO DURATION … … 231 244 $imageFea[$j] = $this->_imagePath . 'nothumbimage.jpg'; 232 245 } else { 233 if ($file_type == 2 ) { ##For uploaded image246 if ($file_type == 2 || $file_type == 5) { ##For uploaded image 234 247 $imageFea[$j] = $image_path . $imageFea[$j]; 235 248 } … … 238 251 $nameF[$j] = $video->name; ## VIDEI NAME 239 252 $hitcount[$j] = $video->hitcount; ## VIDEO HITCOUNT 253 $ratecount[$j] = $video->ratecount; ## VIDEO RATECOUNT 254 $rate[$j] = $video->rate; ## VIDEO RATE 240 255 $j++; 241 256 } … … 255 270 } 256 271 $div .= '</div>'; 257 $div .= '<div class="vid_info">< h5><a href="' . $guid[$j] . '" class="videoHname">';272 $div .= '<div class="vid_info"><a href="' . $guid[$j] . '" class="videoHname"><span>'; 258 273 if (strlen($nameF[$j]) > 30) { 259 $div .= substr($nameF[$j], 0, 30) . ' ';274 $div .= substr($nameF[$j], 0, 30) . '..'; 260 275 } else { 261 276 $div .= $nameF[$j]; 262 277 } 263 $div .= '</ a></h5>';278 $div .= '</span></a>'; 264 279 $div .= ''; 280 if ($fetched[$j] != '') { 281 $div .= '<a class="playlistName" href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&playid=' . $playlist_id[$j] . '"><span>' . $fetched[$j] . '</span></a>'; 282 } 283 if ($this->_settingsData->ratingscontrol == 1) { 284 if (isset($ratecount[$j]) && $ratecount[$j] != 0) { 285 $ratestar = round($rate[$j] / $ratecount[$j]); 286 } else { 287 $ratestar = 0; 288 } 289 $div .= '<span class="ratethis1 '.$ratearray[$ratestar].'"></span>'; 290 } 265 291 if ($hitcount[$j] > 1) 266 292 $viewlang = $this->_viewslang; … … 269 295 $div .= '<span class="video_views">' . $hitcount[$j] . ' ' . $viewlang; 270 296 $div .= '</span>'; 271 272 if ($fetched[$j] != '') {273 $div .= ' <a class="playlistName" href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&playid=' . $playlist_id[$j] . '">' . $fetched[$j] . '</a>';274 }275 297 $div .= '</div>'; 276 298 $div .= '</li>'; … … 282 304 283 305 if (($this->_showF < $this->_feaMore)) { ##PAGINATION STARTS 284 $div .= '< h5 class="more_title" ><a class="video-more" href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&more=' . $morePage . '">' . __('More Videos', 'video_gallery') . ' »</a></h5>';306 $div .= '<span class="more_title" ><a class="video-more" href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&more=' . $morePage . '">' . __('More Videos', 'video_gallery') . ' »</a></span>'; 285 307 } else if (($this->_showF == $this->_feaMore)) { 286 $div .= '<div style="float:right"> </div>';308 $div .= '<div style="float:right"></div>'; 287 309 } ##PAGINATION ENDS 288 310 } … … 298 320 global $wpdb; 299 321 $div = ''; 300 $ pagenum = isset($pagenum) ? absint($pagenum) : 1; ## Calculating page number301 $ start = ( $pagenum - 1 ) * $dataLimit; ## Video starting from322 $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1"); 323 $pagenum = isset($pagenum) ? absint($pagenum) : 1; ## Calculating page number 302 324 $div .= '<style scoped> .video-block { margin-left:' . $this->_settingsData->gutterspace . 'px !important;} </style>'; 303 325 foreach ($TypeOFvideos as $catList) { 304 ## Fetch videos for every category326 ## Fetch videos for every category 305 327 $sql = "SELECT s.guid,w.* FROM " . $wpdb->prefix . "hdflvvideoshare as w 306 328 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play as m ON m.media_id = w.vid … … 314 336 if (!empty($playlistCount)) { 315 337 $inc = 1; 316 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);338 $image_path = str_replace('plugins/'.$this->_plugin_name.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 317 339 $div .= '<ul class="video-block-container">'; 318 340 foreach ($playLists as $playList) { 319 341 320 342 $duration = $playList->duration; 321 $imageFea = $playList->image; ## VIDEO IMAGE343 $imageFea = $playList->image; ## VIDEO IMAGE 322 344 $file_type = $playList->file_type; ## Video Type 323 $guid = $playList->guid; ## guid324 if ($imageFea == '') { ## If there is no thumb image for video345 $guid = $playList->guid; ## guid - url for video detail page 346 if ($imageFea == '') { ## If there is no thumb image for video 325 347 $imageFea = $this->_imagePath . 'nothumbimage.jpg'; 326 348 } else { 327 if ($file_type == 2 ) { ##For uploaded image349 if ($file_type == 2 || $file_type == 5) { ##For uploaded image 328 350 $imageFea = $image_path . $imageFea; 329 351 } 330 352 } 331 353 if (strlen($playList->name) > 30) { 332 $playListName = substr($playList->name, 0, 30) . " ";354 $playListName = substr($playList->name, 0, 30) . ".."; 333 355 } else { 334 356 $playListName = $playList->name; … … 339 361 $div .= '<span class="video_duration">' . $duration . '</span>'; 340 362 } 341 $div .= '</div><div class="vid_info"><h5><a href="' . $guid . '" class="videoHname">' . $playListName . '</a></h5>'; 363 $div .= '</div><div class="vid_info"><a href="' . $guid . '" class="videoHname"><span>' . $playListName . '</span></a>'; 364 ## Rating starts here 365 if ($this->_settingsData->ratingscontrol == 1) { 366 if (isset($playList->ratecount) && $playList->ratecount != 0) { 367 $ratestar = round($playList->rate / $playList->ratecount); 368 } else { 369 $ratestar = 0; 370 } 371 $div .= '<span class="ratethis1 '.$ratearray[$ratestar].'"></span>'; 372 } 373 ## Rating ends here 342 374 if ($playList->hitcount > 1) 343 375 $viewlang = $this->_viewslang; … … 346 378 347 379 $div .= '<span class="video_views">' . $playList->hitcount . ' ' . $viewlang . '</span>'; 348 380 381 349 382 $div .= '</div></li>'; 350 383 … … 368 401 $div .='<div class="clear"></div>'; 369 402 403 if($category_page!=0){ 370 404 ##PAGINATION STARTS 371 405 $total = $CountOFVideos; … … 383 417 $div .='<div class="tablenav"><div class="tablenav-pages" >' . $page_links . '</div></div>'; 384 418 } 385 ##PAGINATION ENDS 419 ##PAGINATION ENDS 420 } 386 421 return $div; 387 422 } -
contus-video-gallery/trunk/front/views/videomore.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video more page view file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 19 19 public $_pagenum; 20 20 21 public function __construct() { //contructor starts21 public function __construct() { ## contructor starts 22 22 parent::__construct(); 23 $this->_settingsData = $this->settings_data(); 24 $this->_mPageid = $this->More_pageid(); 25 $this->_feaMore = $this->Video_count(); 26 $this->_vId = filter_input(INPUT_GET, 'vid'); 27 $this->_pagenum = filter_input(INPUT_GET, 'pagenum'); 28 $this->_playid = filter_input(INPUT_GET, 'playid'); 23 $this->_settingsData = $this->settings_data(); ## Get player settings 24 $this->_mPageid = $this->More_pageid(); ## Get more page id 25 $this->_feaMore = $this->Video_count(); ## Get featured videos count 26 $this->_vId = filter_input(INPUT_GET, 'vid'); ## Get vid from URL 27 $this->_pagenum = filter_input(INPUT_GET, 'pagenum'); ## Get current page number 28 $this->_playid = filter_input(INPUT_GET, 'playid'); ## Get pid from URL 29 29 $this->_viewslang = __('Views', 'video_gallery'); 30 30 $this->_viewlang = __('View', 'video_gallery'); 31 ## Get search keyword 31 32 $video_search = filter_var(filter_input(INPUT_POST, 'video_search'), FILTER_SANITIZE_STRING); 32 33 $video_search1 = filter_var(filter_input(INPUT_GET, 'video_search'), FILTER_SANITIZE_STRING); 33 if(empty($video_search)) 34 if(empty($video_search)){ 34 35 $this->_video_search= $video_search1; 35 else36 } else { 36 37 $this->_video_search= $video_search; 38 } 37 39 $this->_showF = 5; 38 $this->_colF = $this->_settingsData->colMore; 39 $this->_colCat = $this->_settingsData->colCat; 40 $this->_rowCat = $this->_settingsData->rowCat; 41 $this->_perCat = $this->_colCat * $this->_rowCat; 42 $this->_site_url = get_bloginfo('url'); 43 $this->_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 40 $this->_colF = $this->_settingsData->colMore; ## get row of more page 41 $this->_colCat = $this->_settingsData->colCat; ## get column of more page 42 $this->_rowCat = $this->_settingsData->rowCat; ## get row of category videos 43 $this->_perCat = $this->_colCat * $this->_rowCat; ## get column of category videos 44 $dir = dirname(plugin_basename(__FILE__)); 45 $dirExp = explode('/', $dir); 46 $this->_folder = $dirExp[0]; ## Get plugin folder name 47 $this->_site_url = get_bloginfo('url'); ## Get base url 48 $this->_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; ## Declare image path 44 49 } //contructor ends 45 50 46 function video_more_pages($type) { //More PAGE FEATURED VIDEOS STARTS51 function video_more_pages($type) { ## More PAGE FEATURED VIDEOS STARTS 47 52 if (function_exists('homeVideo') != true) { 48 $type_name='';53 $type_name=''; 49 54 switch ($type) { 50 case 'pop': //GETTING POPULAR VIDEOS STARTS51 $rowF = $this->_settingsData->rowMore; //row field of popular videos52 $colF = $this->_settingsData->colMore; //column field of popular videos55 case 'pop': ## GETTING POPULAR VIDEOS STARTS 56 $rowF = $this->_settingsData->rowMore; ## row field of popular videos 57 $colF = $this->_settingsData->colMore; ## column field of popular videos 53 58 $dataLimit = $rowF * $colF; 54 59 $where = ''; … … 59 64 $type_name = 'popular'; 60 65 $morePage = '&more=pop'; 61 break; //GETTING POPULAR VIDEOS ENDS66 break; ## GETTING POPULAR VIDEOS ENDS 62 67 63 68 case 'rec': … … 96 101 $morePage = '&playid=' . $thumImageorder; 97 102 break; 98 case 'categories':99 $rowF = $this->_settingsData->rowCat;100 $colF = $this->_settingsData->colCat;101 $dataLimit = $rowF * $colF;102 $TypeOFvideos = $this->home_categoriesthumbdata($this->_pagenum, $dataLimit);103 $CountOFVideos = $this->Countof_Videocategories();104 $typename = __('Video Categories', 'video_gallery');105 return $this->categoryList($CountOFVideos, $TypeOFvideos, $this->_pagenum, $dataLimit);106 break;107 103 case 'search': 108 104 $thumImageorder = "( t4.tags_name LIKE '%" . $this->_video_search . "%' || t1.description LIKE '%" . $this->_video_search . "%' || t1.name LIKE '%" . $this->_video_search . "%')"; … … 115 111 return $this->searchList($this->_video_search,$CountOFVideos, $TypeOFvideos, $this->_pagenum, $dataLimit); 116 112 break; 113 case 'categories': 114 default: 115 $rowF = $this->_settingsData->rowCat; 116 $colF = $this->_settingsData->colCat; 117 $dataLimit = $rowF * $colF; 118 $TypeOFvideos = $this->home_categoriesthumbdata($this->_pagenum, $dataLimit); 119 $CountOFVideos = $this->Countof_Videocategories(); 120 $typename = __('Video Categories', 'video_gallery'); 121 return $this->categoryList($CountOFVideos, $TypeOFvideos, $this->_pagenum, $dataLimit); 122 break; 123 117 124 } 118 125 119 126 $class = $div = ''; 127 $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1"); 120 128 ?> 121 129 … … 134 142 $clearwidth = 0; 135 143 $clear = $fetched[$j] = ''; 136 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);144 $image_path = str_replace('plugins/'.$this->_folder.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 137 145 foreach ($TypeOFvideos as $video) { 138 $duration[$j] = $video->duration; //VIDEO DURATION139 $imageFea[$j] = $video->image; //VIDEO IMAGE140 $file_type = $video->file_type; //Video Type141 $guid[$j] = $video->guid; //guid142 if ($imageFea[$j] == '') { //If there is no thumb image for video146 $duration[$j] = $video->duration; ## VIDEO DURATION 147 $imageFea[$j] = $video->image; ## VIDEO IMAGE 148 $file_type = $video->file_type; ## Video Type 149 $guid[$j] = $video->guid; ## guid 150 if ($imageFea[$j] == '') { ## If there is no thumb image for video 143 151 $imageFea[$j] = $this->_imagePath . 'nothumbimage.jpg'; 144 152 } else { 145 if ($file_type == 2 ) { //For uploaded image153 if ($file_type == 2 || $file_type == 5 ) { //For uploaded image 146 154 $imageFea[$j] = $image_path . $imageFea[$j]; 147 155 } 148 156 } 149 $vidF[$j] = $video->vid; //VIDEO ID 150 $nameF[$j] = $video->name; //VIDEI NAME 151 $hitcount[$j] = $video->hitcount; //VIDEO HITCOUNT 157 $vidF[$j] = $video->vid; ## VIDEO ID 158 $nameF[$j] = $video->name; ## VIDEI NAME 159 $hitcount[$j] = $video->hitcount; ## VIDEO HITCOUNT 160 $ratecount[$j] = $video->ratecount; ## VIDEO RATECOUNT 161 $rate[$j] = $video->rate; ## VIDEO RATE 152 162 if (!empty($this->_playid)) { 153 163 $fetched[$j] = $video->playlist_name; … … 156 166 $getPlaylist = $this->_wpdb->get_row("SELECT playlist_id FROM " . $this->_wpdb->prefix . "hdflvvideoshare_med2play WHERE media_id='".intval($vidF[$j])."'"); 157 167 if (isset($getPlaylist->playlist_id)) { 158 $playlist_id = $getPlaylist->playlist_id; //VIDEO CATEGORY ID168 $playlist_id = $getPlaylist->playlist_id; ## VIDEO CATEGORY ID 159 169 $fetPlay[$j] = $this->_wpdb->get_row("SELECT playlist_name FROM " . $this->_wpdb->prefix . "hdflvvideoshare_playlist WHERE pid='".intval($playlist_id)."'"); 160 $fetched[$j] = $fetPlay[$j]->playlist_name; //CATEOGORY NAME170 $fetched[$j] = $fetPlay[$j]->playlist_name; ## CATEOGORY NAME 161 171 } 162 172 } … … 166 176 $div .= '<ul class="video-block-container">'; 167 177 for ($j = 0; $j < count($TypeOFvideos); $j++) { 168 if (strlen($nameF[$j]) > 30) { //Displaying Video Title169 $videoname = substr($nameF[$j], 0, 30) . ' ';178 if (strlen($nameF[$j]) > 30) { ## Displaying Video Title 179 $videoname = substr($nameF[$j], 0, 30) . '..'; 170 180 } 171 181 else { 172 182 $videoname = $nameF[$j]; 173 183 } 174 if (($j % $colF) == 0 && $j!=0) { //COLUMN COUNT175 $div .= '</ul>< ul class="video-block-container">';184 if (($j % $colF) == 0 && $j!=0) { ## COLUMN COUNT 185 $div .= '</ul><div class="clear"></div><ul class="video-block-container">'; 176 186 } 177 187 $div .= '<li class="video-block">'; … … 181 191 } 182 192 $div .= '</div>'; 183 $div .= '<div class="vid_info">< h5><a href="' . $guid[$j] . '" class="videoHname">';193 $div .= '<div class="vid_info"><a href="' . $guid[$j] . '" class="videoHname"><span>'; 184 194 $div .= $videoname; 185 $div .= '</a></h5>'; 195 $div .= '</span></a>'; 196 if (!empty($fetched[$j])) { 197 $div .= '<a class="playlistName" href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&playid=' . $playlist_id . '"><span>' . $fetched[$j] . '</span></a>'; 198 } 199 ## Rating starts here 200 if ($this->_settingsData->ratingscontrol == 1) { 201 if (isset($ratecount[$j]) && $ratecount[$j] != 0) { 202 $ratestar = round($rate[$j] / $ratecount[$j]); 203 } else { 204 $ratestar = 0; 205 } 206 $div .= '<span class="ratethis1 '.$ratearray[$ratestar].'"></span>'; 207 } 208 ## Rating ends here 186 209 $div .= ' 187 210 <span class="video_views">'; … … 192 215 $div .= $hitcount[$j] . ' '.$viewlang; 193 216 $div .= '</span>'; 194 195 196 197 if (!empty($fetched[$j])) {198 $div .= '<span class="playlistName"><a href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&playid=' . $playlist_id . '">' . $fetched[$j] . '</a></span>';199 }200 217 $div .= '</div>'; 201 218 $div .= '</li>'; 202 //ELSE ENDS203 } //FOR EACH ENDS219 ## ELSE ENDS 220 } ## FOR EACH ENDS 204 221 $div .= '</ul>'; 205 222 $div .= '</div>'; … … 215 232 $div .= '</div>'; 216 233 217 //PAGINATION STARTS234 ## PAGINATION STARTS 218 235 $total = $CountOFVideos; 219 236 $num_of_pages = ceil($total / $dataLimit); … … 230 247 $div .='<div class="tablenav"><div class="tablenav-pages" >' . $page_links . '</div></div>'; 231 248 } 232 //PAGINATION ENDS249 ## PAGINATION ENDS 233 250 return $div; 234 251 } … … 239 256 global $wpdb; 240 257 $div = ''; 241 $pagenum = isset($pagenum) ? absint($pagenum) : 1; // Calculating page number 242 $start = ( $pagenum - 1 ) * $dataLimit; // Video starting from 258 $pagenum = isset($pagenum) ? absint($pagenum) : 1; ## Calculating page number 259 $start = ( $pagenum - 1 ) * $dataLimit; ## Video starting from 260 $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1"); 243 261 ?> 244 262 245 263 <?php 246 $div .='<div><h1 class="entry-title">'.__('Video Categories', 'video_gallery').'</h1></div>'; 264 247 265 $div .= '<style> .video-block { margin-left:' . $this->_settingsData->gutterspace . 'px !important; } </style>'; 248 266 foreach ($TypeOFvideos as $catList) { 249 //Fetch videos for every category267 ## Fetch videos for every category 250 268 $sql = "SELECT s.guid,w.* FROM " . $wpdb->prefix . "hdflvvideoshare AS w 251 269 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play AS m ON m.media_id = w.vid … … 260 278 $i = 0; 261 279 $inc = 1; 262 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);280 $image_path = str_replace('plugins/'.$this->_folder.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 263 281 $div .= '<ul class="video-block-container">'; 264 282 foreach ($playLists as $playList) { 265 283 266 284 $duration = $playList->duration; 267 $imageFea = $playList->image; //VIDEO IMAGE268 $file_type = $playList->file_type; //Video Type269 $guid = $playList->guid; //guid270 if ($imageFea == '') { //If there is no thumb image for video285 $imageFea = $playList->image; ## VIDEO IMAGE 286 $file_type = $playList->file_type; ## Video Type 287 $guid = $playList->guid; ## guid 288 if ($imageFea == '') { ## If there is no thumb image for video 271 289 $imageFea = $this->_imagePath . 'nothumbimage.jpg'; 272 290 } else { 273 if ($file_type == 2 ) { //For uploaded image291 if ($file_type == 2 || $file_type == 5 ) { ## For uploaded image 274 292 $imageFea = $image_path . $imageFea; 275 293 } 276 294 } 277 295 if (strlen($playList->name) > 30) { 278 $playListName = substr($playList->name, 0, 30) . " ";296 $playListName = substr($playList->name, 0, 30) . ".."; 279 297 } else { 280 298 $playListName = $playList->name; … … 286 304 } 287 305 $div .= '</div><div class="vid_info"><h5><a href="' . $guid . '" class="videoHname">' . $playListName . '</a></h5>'; 288 306 ## Rating starts here 307 if ($this->_settingsData->ratingscontrol == 1) { 308 if (isset($playList->ratecount) && $playList->ratecount != 0) { 309 $ratestar = round($playList->rate / $playList->ratecount); 310 } else { 311 $ratestar = 0; 312 } 313 $div .= '<span class="ratethis1 '.$ratearray[$ratestar].'"></span>'; 314 } 315 ## Rating ends here 289 316 if($playList->hitcount>1) 290 317 $viewlang = $this->_viewslang; … … 293 320 294 321 $div .= '<span class="video_views">' . $playList->hitcount . ' '.$viewlang . '</span>'; 295 322 296 323 $div .= '</div></li>'; 297 324 … … 301 328 $i = $i + 1; 302 329 } 303 if (($inc % $this->_colCat ) == 0 && $inc!=0) { //COLUMN COUNT304 $div .= '</ul>< ul class="video-block-container">';330 if (($inc % $this->_colCat ) == 0 && $inc!=0) { ## COLUMN COUNT 331 $div .= '</ul><div class="clear"></div><ul class="video-block-container">'; 305 332 } 306 333 $inc++; … … 313 340 $div .= '<div align="right"> </div>'; 314 341 } 315 } else { //If there is no video for category342 } else { ## If there is no video for category 316 343 $div .= '<div>'.__('No Videos For this Category', 'video_gallery').'</div>'; 317 344 } … … 320 347 $div .= '<div class="clear"></div>'; 321 348 322 //PAGINATION STARTS349 ## PAGINATION STARTS 323 350 $total = $CountOFVideos; 324 351 $num_of_pages = ceil($total / $dataLimit); … … 336 363 } 337 364 338 //PAGINATION ENDS365 ## PAGINATION ENDS 339 366 return $div; 340 367 } … … 344 371 global $wpdb; 345 372 $div = ''; 346 $pagenum = isset($pagenum) ? absint($pagenum) : 1; // Calculating page number 347 $start = ( $pagenum - 1 ) * $dataLimit; // Video starting from 348 $limit = $dataLimit; // Video Limit 373 $pagenum = isset($pagenum) ? absint($pagenum) : 1; ## Calculating page number 374 $start = ( $pagenum - 1 ) * $dataLimit; ## Video starting from 375 $limit = $dataLimit; ## Video Limit 376 $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1"); 349 377 ?> 350 378 … … 354 382 $div .= '<style> .video-block { margin-left:' . $this->_settingsData->gutterspace . 'px !important; } </style>'; 355 383 356 //Fetch videos for every category384 ## Fetch videos for every category 357 385 if (!empty($TypeOFvideos)) { 358 386 $i = 0; 359 387 $inc = 0; 360 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);388 $image_path = str_replace('plugins/'.$this->_folder.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 361 389 $div .= '<ul class="video-block-container">'; 362 390 … … 364 392 365 393 $duration = $playList->duration; 366 $imageFea = $playList->image; //VIDEO IMAGE367 $file_type = $playList->file_type; //Video Type368 $guid = $playList->guid; //guid369 if ($imageFea == '') { //If there is no thumb image for video394 $imageFea = $playList->image; ## VIDEO IMAGE 395 $file_type = $playList->file_type; ## Video Type 396 $guid = $playList->guid; ## guid 397 if ($imageFea == '') { ## If there is no thumb image for video 370 398 $imageFea = $this->_imagePath . 'nothumbimage.jpg'; 371 399 } else { 372 if ($file_type == 2 ) { //For uploaded image400 if ($file_type == 2 || $file_type == 5 ) { ## For uploaded image 373 401 $imageFea = $image_path . $imageFea; 374 402 } 375 403 } 376 404 if (strlen($playList->name) > 30) { 377 $playListName = substr($playList->name, 0, 30) . " ";405 $playListName = substr($playList->name, 0, 30) . ".."; 378 406 } else { 379 407 $playListName = $playList->name; 380 408 } 381 if (($inc % $this->_colF ) == 0 && $inc!=0) { //COLUMN COUNT382 $div .= '</ul>< ul class="video-block-container">';409 if (($inc % $this->_colF ) == 0 && $inc!=0) { ## COLUMN COUNT 410 $div .= '</ul><div class="clear"></div><ul class="video-block-container">'; 383 411 } 384 412 $div .= '<li class="video-block"><div class="video-thumbimg"><a href="' . $guid . '"><img src="' . $imageFea . '" alt="" class="imgHome" title="" /></a>'; … … 387 415 } 388 416 $div .= '</div><h5><a href="' . $guid . '" class="videoHname">' . $playListName . '</a></h5><div class="vid_info">'; 417 if (!empty($playList->playlist_name)) { 418 $div .= '<h6 class="playlistName"><a href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&playid=' . $playList->pid . '">' . $playList->playlist_name . '</a></h6>'; 419 } 420 ## Rating starts here 421 if ($this->_settingsData->ratingscontrol == 1) { 422 if (isset($playList->ratecount) && $playList->ratecount != 0) { 423 $ratestar = round($playList->rate / $playList->ratecount); 424 } else { 425 $ratestar = 0; 426 } 427 $div .= '<span class="ratethis1 '.$ratearray[$ratestar].'"></span>'; 428 } 429 ## Rating ends here 389 430 if($playList->hitcount>1) 390 431 $viewlang = $this->_viewslang; … … 392 433 $viewlang = $this->_viewlang; 393 434 $div .= '<span class="video_views">' . $playList->hitcount . ' '.$viewlang . '</span>'; 394 395 if (!empty($playList->playlist_name)) { 396 $div .= '<span class="playlistName"><a href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&playid=' . $playList->pid . '">' . $playList->playlist_name . '</a></span>'; 397 } 398 435 399 436 $div .= '</div></li>'; 400 437 … … 403 440 $div .= '</ul>'; 404 441 405 } else { //If there is no video for category442 } else { ## If there is no video for category 406 443 $div .= '<div>'.__('No Videos Found', 'video_gallery').'</div>'; 407 444 } … … 410 447 $div .= '<div class="clear"></div>'; 411 448 412 //PAGINATION STARTS449 ## PAGINATION STARTS 413 450 $total = $CountOFVideos; 414 451 $num_of_pages = ceil($total / $dataLimit); … … 427 464 } 428 465 429 //PAGINATION ENDS466 ## PAGINATION ENDS 430 467 return $div; 431 468 } 432 //CATEGORY FUNCTION ENDS469 ## CATEGORY FUNCTION ENDS 433 470 } 434 //class over471 ## class over 435 472 } else { 436 473 echo 'class contusMore already exists'; -
contus-video-gallery/trunk/front/views/videoshortcode.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video detail and short tag page view file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 21 21 public $_vId; 22 22 23 public function __construct() { ##contructor starts23 public function __construct() { ##contructor starts 24 24 parent::__construct(); 25 25 26 $this->_vId = filter_input(INPUT_GET, 'vid'); 27 $this->_post_type = filter_input(INPUT_GET, 'post_type'); 26 $this->_vId = filter_input(INPUT_GET, 'vid'); ## Get vid from URL 27 $this->_post_type = filter_input(INPUT_GET, 'post_type'); ## Get post type from URL 28 28 $this->_page_post_type = $this->url_to_custompostid(get_permalink()); 29 29 $this->_showF = 5; 30 30 $this->_contOBJ = new ContusVideoController(); 31 $this->_mPageid = $this->More_pageid(); 31 $this->_mPageid = $this->More_pageid(); ## Get more page id 32 32 $dir = dirname(plugin_basename(__FILE__)); 33 33 $dirExp = explode('/', $dir); 34 $this->_plugin_name = $dirExp[0]; 35 $this->_site_url = get_bloginfo('url'); 36 $this->_swfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer.swf'; 37 $this->_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 34 $this->_plugin_name = $dirExp[0]; ## Get plugin folder name 35 $this->_site_url = get_bloginfo('url'); ## Get base url 36 $this->_swfPath = APPTHA_VGALLERY_BASEURL . 'hdflvplayer' . DS . 'hdplayer.swf'; ## Declare swf path 37 $this->_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; ## Declare image path 38 38 } 39 39 ## contructor ends … … 138 138 return 0; 139 139 } 140 141 ## Detect mobile device 142 143 function detect_mobile() 144 { 145 $_SERVER['ALL_HTTP'] = isset($_SERVER['ALL_HTTP']) ? $_SERVER['ALL_HTTP'] : ''; 146 147 $mobile_browser = '0'; 148 149 $agent = strtolower($_SERVER['HTTP_USER_AGENT']); 150 151 if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|iphone|ipad|ipod|android|xoom)/i', $agent)) 152 $mobile_browser++; 153 154 if((isset($_SERVER['HTTP_ACCEPT'])) and (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') !== false)) 155 $mobile_browser++; 156 157 if(isset($_SERVER['HTTP_X_WAP_PROFILE'])) 158 $mobile_browser++; 159 160 if(isset($_SERVER['HTTP_PROFILE'])) 161 $mobile_browser++; 162 163 $mobile_ua = substr($agent,0,4); 164 $mobile_agents = array( 165 'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac', 166 'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno', 167 'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-', 168 'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-', 169 'newt','noki','oper','palm','pana','pant','phil','play','port','prox', 170 'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar', 171 'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-', 172 'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp', 173 'wapr','webc','winw','xda','xda-' 174 ); 175 176 if(in_array($mobile_ua, $mobile_agents)) 177 $mobile_browser++; 178 179 if(strpos(strtolower($_SERVER['ALL_HTTP']), 'operamini') !== false) 180 $mobile_browser++; 181 182 ## Pre-final check to reset everything if the user is on Windows 183 if(strpos($agent, 'windows') !== false) 184 $mobile_browser=0; 185 186 ## But WP7 is also Windows, with a slightly different characteristic 187 if(strpos($agent, 'windows phone') !== false) 188 $mobile_browser++; 189 190 if($mobile_browser>0) 191 return true; 192 else 193 return false; 194 } 195 140 196 ## to display player 141 197 function HDFLV_shareRender($arguments= array()) { 142 198 global $wpdb; 143 global $videoid, $site_url; 144 $output = $videourl = $imgurl = $vid = $playlistid = $homeplayerData = ''; 145 $image_path = str_replace('plugins/contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 199 $output = $videourl = $imgurl = $vid = $playlistid = $homeplayerData = $ratecount = $rate = $plugin_css = ''; 200 $image_path = str_replace('plugins/'.$this->_plugin_name.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 146 201 $_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 147 $configXML = $wpdb->get_row("SELECT embed_visible,keydisqusApps,comment_option,keyApps,configXML,width,height FROM " . $wpdb->prefix . "hdflvvideoshare_settings");148 $flashvars = "baserefW=" . get_option('siteurl'); ## generate flashvars detail for player starts here202 $configXML = $wpdb->get_row("SELECT ratingscontrol,embed_visible,keydisqusApps,comment_option,keyApps,configXML,width,height FROM " . $wpdb->prefix . "hdflvvideoshare_settings"); 203 $flashvars = $pluginflashvars = "baserefW=" . get_option('siteurl'); ## generate flashvars detail for player starts here 149 204 150 205 if (isset($arguments['width'])) { … … 160 215 if (isset($arguments['id'])) { 161 216 $vid = $videodivId = $arguments['id']; ## get video id from short code 162 if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') 163 $homeplayerData = $this->video_detail($vid); 217 } 218 if (!empty($vid)) { 219 $homeplayerData = $this->video_detail($vid); 220 $fetched[] = $homeplayerData; 164 221 } 165 222 ## store video details in variables … … 168 225 $videoId = $homeplayerData->vid; 169 226 $video_title = $homeplayerData->name; 170 $video_thumb = $homeplayerData->image; 171 $video_playlistname = $homeplayerData->playlist_name; 227 $video_file_type = $homeplayerData->file_type; 228 if($video_file_type == 2 || $video_file_type == 5 ){ 229 $video_thumb = $image_path . $homeplayerData->image; 230 } 172 231 $video_playlist_id = $homeplayerData->playlist_id; 173 232 $description = $homeplayerData->description; 174 233 $tag_name = $homeplayerData->tags_name; 175 234 $hitcount = $homeplayerData->hitcount; 235 $ratecount = $homeplayerData->ratecount; 236 $rate = $homeplayerData->rate; 176 237 $post_date = $homeplayerData->post_date; 177 238 } … … 193 254 } elseif (!empty($playlistid)) { 194 255 $flashvars .="&pid=" . $playlistid . "&showPlaylist=true"; 256 $playlist_videos = $this->_contOBJ->video_Pid_detail($playlistid); 257 $videoId = $playlist_videos[0]->vid; 258 $video_playlist_id = $playlist_videos[0]->playlist_id; 259 $hitcount = $playlist_videos[0]->hitcount; 260 $ratecount = $playlist_videos[0]->ratecount; 261 $rate = $playlist_videos[0]->rate; 262 $fetched[] = $playlist_videos[0]; 195 263 } else if ($this->_post_type != 'videogallery' && $this->_page_post_type != 'videogallery') { 196 264 $flashvars .="&vid=" . $vid . "&showPlaylist=false"; … … 206 274 ## generate flashvars detail for player ends here 207 275 208 $player_not_supp rot = __('Player doesnot support this video.', 'video_gallery');276 $player_not_support = __('Player doesnot support this video.', 'video_gallery'); 209 277 $htmlplayer_not_support = __('Html5 Not support This video Format.', 'video_gallery'); 210 211 ## Flash player starts here 278 279 ## To increase hit count of a video 280 $output .= '<script type="text/javascript" src="' . APPTHA_VGALLERY_BASEURL . 'js/script.js"></script>'; 281 282 $output .=' <script> 283 var baseurl,folder,videoPage; 284 baseurl = "' . $this->_site_url . '"; 285 folder = "' . $this->_plugin_name . '"; 286 videoPage = "' . $this->_mPageid . '"; </script>'; 287 if (isset($arguments['title']) && $arguments['title']=='on'){ 288 $output .= '<h2 id="video_title' . $videodivId . '" class="videoplayer_title" ></h2>'; 289 $flashvars .="&videodata=current_video_".$videodivId; 290 } 212 291 $output .= '<div id="mediaspace' . $videodivId . '" class="player" >'; 292 293 ## Embed player code 294 if($fetched[0]->file_type == 5 && !empty($fetched[0]->embedcode)){ 295 $output .= stripslashes($fetched[0]->embedcode); 296 $output .= '<script> current_video('.$fetched[0]->vid.',"'.$fetched[0]->name.'"); </script>'; 297 } else{ 298 ## Flash player code 213 299 $output .= '<embed src="' . $this->_swfPath . '" flashvars="' . $flashvars . '" width="' . $width . '" height="' . $height . '" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" wmode="transparent">'; 300 } 301 214 302 $output .= '</div>'; 215 ## Flash player ends here 216 303 217 304 $useragent = $_SERVER['HTTP_USER_AGENT']; 218 305 if (strpos($useragent, 'Windows Phone') > 0) ## check for windows phone … … 222 309 $output .='<div id="htmlplayer' . $videodivId . '" class="player" >'; 223 310 ## GEt video detail for HTML5 player 224 if (!empty($vid)) { 225 $videoid_videos = $this->_contOBJ->video_detail($vid); 226 $fetched[] = $videoid_videos[0]; 227 } else if (!empty($playlistid)) { 228 $playlist_videos = $this->_contOBJ->video_Pid_detail($playlistid); 229 $fetched[] = $playlist_videos[0]; 230 } 311 231 312 foreach ($fetched as $media) { ## Load video details 232 313 $videourl = $media->file; … … 236 317 $imgurl = $_imagePath . 'nothumbimage.jpg'; 237 318 } else { 238 if ($file_type == 2 ) { ## For uploaded image319 if ($file_type == 2 || $file_type == 5 ) { ## For uploaded image 239 320 $imgurl = $image_path . $imgurl; 240 321 } … … 242 323 } 243 324 ## Check for youtube video 244 if ((preg_match('/vimeo/', $videourl)) && ($videourl != '')) { ##IF VIDEO IS YOUTUBE 245 $vresult = explode("/", $videourl); 246 $htmlvideo ="<iframe type='text/html' src='http://player.vimeo.com/video/" . $vresult[3] . "' frameborder='0'></iframe>"; 247 } else if (preg_match("/www\.youtube\.com\/watch\?v=[^&]+/", $videourl, $vresult)) { 325 if (preg_match("/www\.youtube\.com\/watch\?v=[^&]+/", $videourl, $vresult)) { 248 326 $urlArray = explode("=", $vresult[0]); 249 327 $video_id = trim($urlArray[1]); … … 251 329 ## Generate youtube embed code for html5 player 252 330 $htmlvideo ="<iframe type='text/html' src='" . $videourl . "' frameborder='0'></iframe>"; 331 } else if($fetched[0]->file_type == 5 && !empty($fetched[0]->embedcode)){ 332 $htmlvideo = stripslashes($fetched[0]->embedcode); 253 333 } else { ## Check for upload, URL and RTMP videos 254 334 if ($file_type == 2) { ## For uploaded image … … 264 344 ## Check platform 265 345 $output .=' <script> 346 function current_video_'.$videodivId.'(video_id,d_title){ 347 if(d_title == undefined) 348 { 349 document.getElementById("video_title'.$videodivId.'").innerHTML=""; 350 } 351 else { 352 document.getElementById("video_title'.$videodivId.'").innerHTML=d_title; 353 } 354 } 266 355 var txt = navigator.platform ; 267 356 var windo = "' . $windo . '"; … … 277 366 if(txt =="iPod"|| txt =="iPad" || txt == "iPhone" || windo=="Windows Phone" || txt == "Linux armv7l" || txt == "Linux armv6l") 278 367 { 279 alert("' . $player_not_supprot . '"); } } 368 alert("' . $player_not_support . '"); } } 369 function videogallery_change_player(embedcode,id,player_div,file_type,vid){ 370 if(file_type==5){ 371 currentvideo("",vid); 372 } 373 document.getElementById("mediaspace"+id).innerHTML = ""; 374 document.getElementById("htmlplayer"+id).innerHTML = ""; 375 document.getElementById(player_div+id).innerHTML = embedcode; 376 document.getElementById(player_div+id).focus(); 377 } 280 378 </script>'; 281 379 ## HTML5 player ends here 282 283 if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') {284 380 ## Display description, views, tags, playlist names detail under player 285 $output .='<div class="video-page-container"> 286 <div class="vido_info_container"><div class="video-page-info"> 287 <div class="video-page-date"><strong>' . __("Posted on", "video_gallery") . ' </strong>: ' . date("m-d-Y", strtotime($post_date)) . '</div> 288 <div class="video-page-views"><strong>' . __("Views", "video_gallery") . ' </strong>: ' . $hitcount . '</div></div> 289 <div class="video-page-category"><strong>' . __("Category", "video_gallery") . ' </strong>: '; 290 381 if ($this->_post_type != 'videogallery' && $this->_page_post_type != 'videogallery') { 382 $plugin_css = "shortcode"; 383 } 384 if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') { 385 $videogalleryviews = true; 386 } else if (isset($arguments['views']) && $arguments['views']=='on'){ 387 $videogalleryviews = true; 388 $no_views = ''; 389 } else{ 390 $videogalleryviews = false; 391 $no_views = 'noviews'; 392 } 393 $output .='<div class="video-page-container '.$plugin_css.'"> 394 <div class="vido_info_container"><div class="video-page-info '.$no_views.'">'; 395 if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') { 396 $output .='<div class="video-page-date"><strong>' . __("Posted on", "video_gallery") . ' </strong>: ' . date("m-d-Y", strtotime($post_date)) . '</div>'; 397 } 398 399 if($videogalleryviews==true){ 400 $output .= '<div class="video-page-views"><strong>' . __("Views", "video_gallery") . ' </strong>: ' . $hitcount . '</div></div>'; 401 } 402 if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') { 403 $output .= '<div class="video-page-info">'; 404 $output .= '<div class="video-page-category"><strong>' . __("Category", "video_gallery") . ' </strong>: '; 291 405 foreach ($playlistData as $playlist) { 292 293 406 if ($incre > 0) { 294 407 $playlistname.=', ' . '<a href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&playid=' . $playlist->pid . '">' . $playlist->playlist_name . '</a>'; … … 298 411 $incre++; 299 412 } 300 301 $output .=$playlistname . '</div> 302 <div class="video-page-tag"><strong>' . __("Tags", "video_gallery") . ' </strong>: ' . $tag_name . ' ' . '</div> 303 '; 304 $dir = dirname(plugin_basename(__FILE__)); 305 $dirExp = explode('/', $dir); 306 $dirPage = $dirExp[0]; 413 $output .=$playlistname . '</div>'; 414 } 415 ## Rating starts here 416 if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') { 417 $ratingscontrol = true; 418 } else if (isset($arguments['ratingscontrol']) && $arguments['ratingscontrol']=='on'){ 419 $ratingscontrol = true; 420 } else{ 421 $ratingscontrol = false; 422 } 423 if ($configXML->ratingscontrol == 1 && $ratingscontrol==true) { 424 if (isset($ratecount) && $ratecount != 0) { 425 $ratestar = round($rate / $ratecount); 426 } else { 427 $ratestar = 0; 428 } 429 $output .= '<div class="video-page-rating"> 430 <div class="centermargin floatleft" > 431 <div class="rateimgleft" id="rateimg" onmouseover="displayrating' . $videodivId .$vid. '(0);" onmouseout="resetvalue' . $videodivId .$vid. '();" > 432 <div id="a' . $videodivId .$vid. '" class="floatleft"></div> 433 <ul class="ratethis " id="rate' . $videodivId .$vid. '" > 434 <li class="one" > 435 <a title="1 Star Rating" onclick="getrate' . $videodivId .$vid. '(1);" onmousemove="displayrating' . $videodivId .$vid. '(1);" onmouseout="resetvalue' . $videodivId .$vid. '();">1</a> 436 </li> 437 <li class="two" > 438 <a title="2 Star Rating" onclick="getrate' . $videodivId .$vid. '(2);" onmousemove="displayrating' . $videodivId .$vid. '(2);" onmouseout="resetvalue' . $videodivId .$vid. '();">2</a> 439 </li> 440 <li class="three" > 441 <a title="3 Star Rating" onclick="getrate' . $videodivId .$vid. '(3);" onmousemove="displayrating' . $videodivId .$vid. '(3);" onmouseout="resetvalue' . $videodivId .$vid. '();">3</a> 442 </li> 443 <li class="four" > 444 <a title="4 Star Rating" onclick="getrate' . $videodivId .$vid. '(4);" onmousemove="displayrating' . $videodivId .$vid. '(4);" onmouseout="resetvalue' . $videodivId .$vid. '();" >4</a> 445 </li> 446 <li class="five" > 447 <a title="5 Star Rating" onclick="getrate' . $videodivId .$vid. '(5);" onmousemove="displayrating' . $videodivId .$vid. '(5);" onmouseout="resetvalue' . $videodivId .$vid. '();" >5</a> 448 </li> 449 </ul> 450 <input type="hidden" name="videoid" id="videoid' . $videodivId .$vid. '" value="'.$videoId.'" /> 451 <input type="hidden" value="" id="storeratemsg' . $videodivId .$vid. '" /> 452 </div> 453 <div class="rateright-views floatleft" > 454 <span class="clsrateviews" id="ratemsg' . $videodivId . $vid.'" onmouseover="displayrating' . $videodivId .$vid. '(0);" onmouseout="resetvalue' . $videodivId .$vid. '();"> </span> 455 <span class="rightrateimg" id="ratemsg1' . $videodivId .$vid. '" onmouseover="displayrating' . $videodivId .$vid. '(0);" onmouseout="resetvalue' . $videodivId .$vid. '();"> </span> 456 </div> 457 </div> 458 </div> '; 459 $output .= '<script type="text/javascript"> 460 function ratecal' . $videodivId .$vid. '(rating,ratecount) 461 { 462 if(rating==1) 463 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis onepos"; 464 else if(rating==2) 465 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis twopos"; 466 else if(rating==3) 467 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis threepos"; 468 else if(rating==4) 469 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis fourpos"; 470 else if(rating==5) 471 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis fivepos"; 472 else 473 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis nopos"; 474 document.getElementById("ratemsg' . $videodivId . $vid.'").innerHTML="Ratings: "+ratecount; 475 } 476 '; 477 if (isset($ratestar) && isset($ratecount)) { 478 if($ratecount==''){ 479 $ratecount = 0; 480 } 481 $output .= 'ratecal' . $videodivId .$vid. '('.$ratestar.','.$ratecount.'); '; 482 } 483 $output .=' 484 function createObject' . $videodivId .$vid. '() 485 { 486 var request_type; 487 var browser = navigator.appName; 488 if(browser == "Microsoft Internet Explorer"){ 489 request_type = new ActiveXObject("Microsoft.XMLHTTP"); 490 }else{ 491 request_type = new XMLHttpRequest(); 492 } 493 return request_type; 494 } 495 var http = createObject' . $videodivId .$vid. '(); 496 var nocache = 0; 497 function getrate' . $videodivId .$vid. '(t) 498 { 499 if(t==1) 500 { 501 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis onepos"; 502 document.getElementById("a' . $videodivId .$vid. '").className="ratethis onepos"; 503 } 504 if(t==2) 505 { 506 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis twopos"; 507 document.getElementById("a' . $videodivId .$vid. '").className="ratethis twopos"; 508 } 509 if(t==3) 510 { 511 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis threepos"; 512 document.getElementById("a' . $videodivId .$vid. '").className="ratethis threepos"; 513 } 514 if(t==4) 515 { 516 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis fourpos"; 517 document.getElementById("a' . $videodivId .$vid. '").className="ratethis fourpos"; 518 } 519 if(t==5) 520 { 521 document.getElementById("rate' . $videodivId .$vid. '").className="ratethis fivepos"; 522 document.getElementById("a' . $videodivId .$vid. '").className="ratethis fivepos"; 523 } 524 document.getElementById("rate' . $videodivId .$vid. '").style.display="none"; 525 document.getElementById("ratemsg' . $videodivId .$vid. '").innerHTML="Thanks for rating!"; 526 var vid= document.getElementById("videoid' . $videodivId .$vid. '").value; 527 nocache = Math.random(); 528 http.open("get", baseurl+"/wp-content/plugins/"+folder+"/rateCount.php?vid="+vid+"&rate="+t,true); 529 http.onreadystatechange = insertReply' . $videodivId .$vid. '; 530 http.send(null); 531 document.getElementById("rate' . $videodivId .$vid. '").style.visibility="disable"; 532 } 533 function insertReply' . $videodivId .$vid. '() 534 { 535 if(http.readyState == 4) 536 { 537 document.getElementById("ratemsg' . $videodivId .$vid. '").innerHTML="Ratings: "+http.responseText; 538 document.getElementById("rate' . $videodivId .$vid. '").className=""; 539 document.getElementById("storeratemsg' . $videodivId .$vid. '").value=http.responseText; 540 } 541 } 542 543 function resetvalue' . $videodivId .$vid. '() 544 { 545 document.getElementById("ratemsg1' . $videodivId .$vid. '").style.display="none"; 546 document.getElementById("ratemsg' . $videodivId .$vid. '").style.display="block"; 547 if(document.getElementById("storeratemsg' . $videodivId .$vid. '").value == "") { 548 document.getElementById("ratemsg' . $videodivId . $vid.'").innerHTML="Ratings: '.$ratecount.'"; 549 }else { 550 document.getElementById("ratemsg' . $videodivId .$vid. '").innerHTML="Ratings: "+document.getElementById("storeratemsg' . $videodivId .$vid. '").value; 551 } 552 } 553 function displayrating' . $videodivId .$vid. '(t) 554 { 555 if(t==1) 556 { 557 document.getElementById("ratemsg' . $videodivId .$vid. '").innerHTML="Poor"; 558 } 559 if(t==2) 560 { 561 document.getElementById("ratemsg' . $videodivId .$vid. '").innerHTML="Nothing Special"; 562 } 563 if(t==3) 564 { 565 document.getElementById("ratemsg' . $videodivId .$vid. '").innerHTML="Worth Watching"; 566 } 567 if(t==4) 568 { 569 document.getElementById("ratemsg' . $videodivId .$vid. '").innerHTML="Pretty Cool"; 570 } 571 if(t==5) 572 { 573 document.getElementById("ratemsg' . $videodivId .$vid. '").innerHTML="Awesome"; 574 } 575 document.getElementById("ratemsg1' . $videodivId .$vid. '").style.display="none"; 576 document.getElementById("ratemsg' . $videodivId .$vid. '").style.display="block"; 577 } 578 </script>'; 579 } 580 ## Rating ends here 581 $output .='</div>'; 582 if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') { 583 if(!empty($tag_name)){ ## Tag display 584 $output .='<div class="video-page-tag"><strong>' . __("Tags", "video_gallery") . ' </strong>: ' . $tag_name . ' ' . '</div>'; 585 } 307 586 ## Display Social icons start here 308 if (strpos($videoUrl, 'youtube') > 0) { ## IF VIDEO IS YOUTUBE587 if (strpos($videoUrl, 'youtube') > 0) { ## IF VIDEO IS YOUTUBE 309 588 $imgstr = explode("v=", $videoUrl); 310 589 $imgval = explode("&", $imgstr[1]); … … 312 591 $video_thumb = "http://img.youtube.com/vi/" . $videoId1 . "/mqdefault.jpg"; 313 592 } 314 $video_title = str_replace(" ", "%20", $video_title);593 $video_title_share = str_replace(" ", "%20", $video_title); 315 594 $videodescription = str_replace(" ", "%20", $description); 316 595 $blog_title = get_bloginfo('name'); 317 596 $current_url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '?random=' . rand(0, 100); 318 $sd = "medium%5D=103&p%5Bvideo%5D%5Bwidth%5D=640&p%5Bvideo%5D%5Bheight%5D=360&p%5Bvideo%5D%5Bsrc%5D=" . urlencode($this->_swfPath) . "%3Ffile%3D" . urlencode($videoUrl) . "%26baserefW%3D" . urlencode(APPTHA_VGALLERY_BASEURL) . "%2F%26vid%3D" . $vid . "%26embedplayer%3Dtrue%26HD_default%3Dtrue%26share%3Dfalse%26skin_autohide%3Dtrue%26showPlaylist%3Dfalse&p%5B"; 319 $url_fb = "http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=" . $video_title . "&p%5Bsummary%5D=" . strip_tags($videodescription) . "&p%5B" . $sd . "url%5D=" . $current_url . "&p%5Bimages%5D%5B0%5D=" . urlencode($video_thumb); 597 if($video_file_type == 5 ){ 598 $sd = ''; 599 } else{ 600 $sd = "%5Bvideo%5D%5Bheight%5D=360&p%5Bvideo%5D%5Bsrc%5D=" . urlencode($this->_swfPath) . "%3Ffile%3D" . urlencode($videoUrl) . "%26baserefW%3D" . urlencode(APPTHA_VGALLERY_BASEURL) . "%2F%26vid%3D" . $vid . "%26embedplayer%3Dtrue%26HD_default%3Dtrue%26share%3Dfalse%26skin_autohide%3Dtrue%26showPlaylist%3Dfalse&p"; 601 } 602 $url_fb = "http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=" . $video_title_share . "&p%5Bsummary%5D=" . strip_tags($videodescription) . "&p%5Bmedium%5D=103&p%5Bvideo%5D%5Bwidth%5D=640&p" . $sd . "%5Burl%5D=" . urlencode($current_url) . "&p%5Bimages%5D%5B0%5D=" . urlencode($video_thumb); 320 603 $output .= ' 321 604 <!-- Facebook share Start --> … … 323 606 <div class="floatleft" style=" margin-right: 5px; "><a href="' . $url_fb . '" class="fbshare" id="fbshare" target="_blank" ></a></div> 324 607 <!-- Facebook share End and Twitter like Start --> 325 <div class="floatleft ttweet" ><a href="https://twitter.com/share" class="twitter-share-button" data-url="' . $current_url . '" data-via="' . $blog_title . '" data-text="' . $ description. '">' . __('Tweet', 'video_gallery') . '</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://plugins.trac.wordpress.org//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></div>608 <div class="floatleft ttweet" ><a href="https://twitter.com/share" class="twitter-share-button" data-url="' . $current_url . '" data-via="' . $blog_title . '" data-text="' . $video_title . '">' . __('Tweet', 'video_gallery') . '</a><script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://plugins.trac.wordpress.org//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></div> 326 609 <!-- Twitter like End and Google plus one Start --> 327 610 <div class="floatleft gplusshare" ><script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script><div class="g-plusone" data-size="medium" data-count="false"></div></div> 328 611 <!-- Google plus one End --> 329 612 </div></div>'; 330 ## Display Related videos starts here 331 $output .= '<script type="text/javascript" src="' . APPTHA_VGALLERY_BASEURL . 'js/jquery-1.2.3.pack.js"></script>'; 332 ##jCarousel library 333 $output .= '<script type="text/javascript" src="' . APPTHA_VGALLERY_BASEURL . 'js/jquery.jcarousel.pack.js"></script>'; 334 ##jCarousel core stylesheet 335 $output .= '<link rel="stylesheet" type="text/css" href="' . APPTHA_VGALLERY_BASEURL . 'css/jquery.jcarousel.css" />'; 336 ##jCarousel skin stylesheet 337 $output .= '<link rel="stylesheet" type="text/css" href="' . APPTHA_VGALLERY_BASEURL . 'css/skins.css" />'; 338 ## To increase hit count of a video 339 $output .= '<script type="text/javascript" src="' . APPTHA_VGALLERY_BASEURL . 'js/script.js"></script>'; 340 341 $output .= '<script type="text/javascript"> 342 var baseurl,folder; 343 baseurl = "' . $this->_site_url . '"; 344 folder = "' . $this->_plugin_name . '"; 345 videoPage = "' . $this->_mPageid . '"; 346 347 function mycarousel_initCallback(carousel){ 348 // Disable autoscrolling if the user clicks the prev or next button. 349 carousel.buttonNext.bind("click", function() { 350 carousel.startAuto(0); 351 }); 352 353 carousel.buttonPrev.bind("click", function() { 354 carousel.startAuto(0); 355 }); 356 357 // Pause autoscrolling if the user moves with the cursor over the clip. 358 carousel.clip.hover(function() { 359 carousel.stopAuto(); 360 }, function() { 361 carousel.startAuto(); 362 });carousel.buttonPrev.bind("click", function() { 363 carousel.startAuto(0); 364 }); 365 }; 366 jQuery(document).ready(function() { 367 jQuery("#mycarousel").jcarousel({ 368 auto: 0, 369 wrap: "last", 370 scroll:1, 371 initCallback: mycarousel_initCallback 372 }); 373 }); 374 </script>'; 375 376 $output .= '<div class="clearfix">'; 377 $output .= '<div id="wrap" class="video-cat-thumb">'; 378 $select = "SELECT distinct(a.vid),name,guid,description,file,hdfile,file_type,duration,image,opimage,download,link,featured,hitcount, 379 a.post_date,postrollads,prerollads FROM " . $wpdb->prefix . "hdflvvideoshare a 380 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play b ON a.vid=b.media_id 381 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p ON p.pid=b.playlist_id 382 INNER JOIN " . $wpdb->prefix . "posts s ON s.ID=a.slug 383 WHERE b.playlist_id=" . intval($video_playlist_id) . " AND a.vid != " . intval($videoId) . " and a.publish='1' AND p.is_publish='1' 384 ORDER BY a.vid DESC"; 613 614 $output .= '<div class="clearfix">'; 615 $output .= '<div class="video-cat-thumb">'; 385 616 386 617 if ($configXML->embed_visible == 1) { 387 618 ## embed code 388 619 389 $split = explode("/", $videourl); 390 if (!empty($videourl) && (preg_match('/vimeo/', $videourl)) && ($videourl != '')) { 391 $embed_code = '<iframe src="http://player.vimeo.com/video/' . $split[3] . '?title=0&byline=0&portrait=0&color=6fde9f" width="400" height="225" class="iframe_frameborder" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'; 620 if($fetched[0]->file_type == 5 && !empty($fetched[0]->embedcode)){ 621 $embed_code = stripslashes($fetched[0]->embedcode); 392 622 } else { 393 $embed_code = '<embed src="' . $this->_swfPath . '" flashvars="' . $flashvars . '&shareIcon=false&email=false&showPlaylist=false&zoomIcon=false&copylink=' . get_permalink() . '&embedplayer=true" width="' . $width . '" height="' . $height . '" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" wmode="transparent">';394 } 395 $output .='<a href="javascript:void(0)" onclick="enableEmbed();" class="embed" id="allowEmbed"><span class="embed_text">' . __("Embed Code", "video_gallery") . '</span><span class="embed_arrow"></span></a>623 $embed_code = '<embed src="' . $this->_swfPath . '" flashvars="' . $flashvars . '&shareIcon=false&email=false&showPlaylist=false&zoomIcon=false&copylink=' . get_permalink() . '&embedplayer=true" width="' . $width . '" height="' . $height . '" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" wmode="transparent">'; 624 } 625 $output .='<a href="javascript:void(0)" onclick="enableEmbed();" class="embed" id="allowEmbed"><span class="embed_text">' . __("Embed Code", "video_gallery") . '</span><span class="embed_arrow"></span></a> 396 626 <textarea onclick="this.select()" id="embedcode" name="embedcode" style="display:none;" rows="7" >' . $embed_code . '</textarea> 397 627 <input type="hidden" name="flagembed" id="flagembed" /> … … 411 641 } 412 642 413 $output .= '<div class="video-page-desc"><strong>' . __("Description", "video_gallery") . ' </strong>: ' . $description . '</div></div>'; 414 415 $output .= '<div ><h2 class="related-videos">' . __("Related Videos", "video_gallery") . '</h2>'; 416 $related = mysql_query($select); 417 if (!empty($related)) 418 $result = mysql_num_rows($related); 419 if ($result != '') { 420 ##Slide Display Here 421 $output .= '<ul id="mycarousel" class="jcarousel-skin-tango" style="margin:0 !important;">'; 422 $image_path = str_replace('plugins/contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 423 while ($relFet = mysql_fetch_object($related)) { 424 $file_type = $relFet->file_type; ## Video Type 425 $imageFea = $relFet->image; ##VIDEO IMAGE 426 $guid = $relFet->guid; ##guid 427 if ($imageFea == '') { ##If there is no thumb image for video 428 $imageFea = $this->_imagePath . 'nothumbimage.jpg'; 429 } else { 430 if ($file_type == 2) { ##For uploaded image 431 $imageFea = $image_path . $imageFea; 432 } 643 $output .= '<div style="clear: both;"></div><div class="video-page-desc">' . $description . '</div></div>'; 644 645 $output .='</div>'; 646 } 647 $output .='</div>'; 648 if (($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') || (((isset($arguments['playlistid']) && isset($arguments['id'])) || (isset($arguments['playlistid']))) && (isset($arguments['relatedvideos']) && $arguments['relatedvideos']=='on')) ){ 649 ## Display Related videos starts here 650 $select = "SELECT distinct(a.vid),b.playlist_id,name,guid,description,file,hdfile,file_type,duration,embedcode,image,opimage,download,link,featured,hitcount, 651 a.post_date,postrollads,prerollads FROM " . $wpdb->prefix . "hdflvvideoshare a 652 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play b ON a.vid=b.media_id 653 INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p ON p.pid=b.playlist_id 654 INNER JOIN " . $wpdb->prefix . "posts s ON s.ID=a.slug 655 WHERE b.playlist_id=" . intval($video_playlist_id) . " AND a.vid != " . intval($videoId) . " and a.publish='1' AND p.is_publish='1' 656 ORDER BY a.vid DESC"; 657 $output .= '<div class="player_related_video"><h2 class="related-videos">' . __("Related Videos", "video_gallery") . '</h2><div style="clear: both;"></div>'; 658 $related = mysql_query($select); 659 if (!empty($related)) 660 $result = mysql_num_rows($related); 661 if ($result != '') { 662 ## Slide Display Here 663 $output .= '<ul id="mycarousel" class="jcarousel-skin-tango" style="margin:0 !important;">'; 664 $image_path = str_replace('plugins/'.$this->_plugin_name.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 665 while ($relFet = mysql_fetch_object($related)) { 666 $file_type = $relFet->file_type; ## Video Type 667 $imageFea = $relFet->image; ##VIDEO IMAGE 668 $reafile = $relFet->file; ##VIDEO IMAGE 669 $guid = $relFet->guid; ##guid 670 if ($imageFea == '') { ##If there is no thumb image for video 671 $imageFea = $this->_imagePath . 'nothumbimage.jpg'; 672 } else { 673 if ($file_type == 2 || $file_type == 5 ) { ##For uploaded image 674 $imageFea = $image_path . $imageFea; 433 675 } 434 435 $output .='<li><div class="imgSidethumb"><a href="' . $guid . '"> 436 <img src="' . $imageFea . '" alt="' . $relFet->name . '" class="related" /></a></div>'; 437 $output .='<div class="vid_info"><h5><a href="' . $guid . '" class="videoHname">'; 438 $output .= substr($relFet->name, 0, 30); 439 $output .='</a></h5>'; 440 $output .='</li>'; 441 } 442 443 $output .= '</ul></div></div></div>'; 444 } else { 445 $output .='</div></div></div>'; 446 } 447 ## Display Related videos ends here 448 ## Default Comments 449 if ($configXML->comment_option == 0) { 450 $output .='<style type="text/css">#comments.comments-area, #disqus_thread{ display: none!important; } </style>'; 451 } 452 ## Facebook Comments 453 if ($configXML->comment_option == 2) { 454 $output .='<style type="text/css">#comments.comments-area, #disqus_thread{ display: none!important; } </style>'; 455 $output .='<div class="clear"></div> 456 <h2 class="related-videos">' . __("Post Your Comments", "video_gallery") . '</h2> 457 <div id="fb-root"></div> 458 <script>(function(d, s, id) { 459 var js, fjs = d.getElementsByTagName(s)[0]; 460 if (d.getElementById(id)) return; 461 js = d.createElement(s); js.id = id; 462 js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=' . $configXML->keyApps . '"; 463 fjs.parentNode.insertBefore(js, fjs); 464 }(document, "script", "facebook-jssdk"));</script>'; 465 $output .='<div class="fb-comments" data-href="' . get_permalink() . '" data-num-posts="5"></div>'; 466 } 467 ## Disqus Comment 468 else if ($configXML->comment_option == 3) { 469 $output .='<style type="text/css">#comments.comments-area{ display: none!important; } </style>'; 470 $output .='<div id="disqus_thread"></div> 471 <script type="text/javascript"> 472 var disqus_shortname = "' . $configXML->keydisqusApps . '"; 473 (function() { 474 var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true; 475 dsq.src = "http://"+ disqus_shortname + ".disqus.com/embed.js"; 476 (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq); 477 })(); 478 </script> 479 <noscript>' . __("Please enable JavaScript to view the", "video_gallery") . ' <a href="http://disqus.com/?ref_noscript">' . __("comments powered by Disqus.", "video_gallery") . '</a></noscript> 480 <a href="http://disqus.com" class="dsq-brlink">' . __("comments powered by", "video_gallery") . ' <span class="logo-disqus">' . __("Disqus", "video_gallery") . '</span></a>'; 676 } 677 ## Embed player code 678 if($file_type == 5 && !empty($relFet->embedcode)){ 679 $player_values = htmlentities(stripslashes($relFet->embedcode)); 680 } else{ 681 ## Flash player code 682 $player_values = htmlentities('<embed src="' . $this->_swfPath . '" flashvars="' . $pluginflashvars . '&mtype=playerModule&vid='.$relFet->vid.'" width="' . $width . '" height="' . $height . '" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" wmode="transparent">'); 683 } 684 if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') { 685 $thumb_href = 'href="'. $guid.'"'; 686 } else{ 687 $mobile = $this->detect_mobile(); 688 if($mobile === true){ 689 ## Check for youtube video 690 if (preg_match("/www\.youtube\.com\/watch\?v=[^&]+/", $reafile, $vresult)) { 691 $urlArray = explode("=", $vresult[0]); 692 $video_id = trim($urlArray[1]); 693 $reavideourl = "http://www.youtube.com/embed/$video_id"; 694 ## Generate youtube embed code for html5 player 695 $player_values =htmlentities('<iframe type="text/html" src="' . $reavideourl . '" frameborder="0"></iframe>'); 696 } else if ($file_type != 5) { ## Check for upload, URL and RTMP videos 697 if ($file_type == 2) { ## For uploaded image 698 $reavideourl = $image_path . $reafile; 699 } else if ($file_type == 4) { ## For RTMP videos 700 $streamer = str_replace("rtmp://", "http://", $media->streamer_path); 701 $reavideourl = $streamer . '_definst_/mp4:' . $reafile . '/playlist.m3u8'; 702 } 703 ## Generate video code for html5 player 704 $player_values =htmlentities('<video id="video" poster="' . $imageFea . '" src="' . $reavideourl .'" autobuffer controls onerror="failed(event)">' . $htmlplayer_not_support . '</video>'); 705 } 706 $player_div = 'htmlplayer'; 707 }else{ 708 $player_div = 'mediaspace'; 709 } 710 $embedplayer = "videogallery_change_player('".$player_values."',".$videodivId.",'".$player_div."',$file_type,$relFet->vid)"; 711 $thumb_href = 'href="javascript:void(0);" onclick="'.$embedplayer.'"'; 712 } 713 $output .='<li><div class="imgSidethumb"><a ' . $thumb_href . '> 714 <img src="' . $imageFea . '" alt="' . $relFet->name . '" class="related" /></a></div>'; 715 $output .='<div class="vid_info"><span><a ' . $thumb_href . ' class="videoHname">'; 716 if (strlen($relFet->name) > 30) { ## Displaying Video Title 717 $videoname = substr($relFet->name, 0, 30) . '..'; 718 } 719 else { 720 $videoname = $relFet->name; 721 } 722 $output .= $videoname; 723 $output .='</a></span></div>'; 724 $output .='</li>'; 725 } 726 727 $output .= '</ul></div>'; 728 } else { 729 $output .= '</div>'; 730 } 731 732 ## Display Related videos ends here 733 } 734 if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') { 735 ## Default Comments 736 if ($configXML->comment_option == 0) { 737 $output .='<style type="text/css">#comments.comments-area, #disqus_thread{ display: none!important; } </style>'; 738 } 739 ## Facebook Comments 740 if ($configXML->comment_option == 2) { 741 $output .='<style type="text/css">#comments.comments-area, #disqus_thread{ display: none!important; } </style>'; 742 $output .='<div class="clear"></div> 743 <h2 class="related-videos">' . __("Post Your Comments", "video_gallery") . '</h2> 744 <div id="fb-root"></div> 745 <script>(function(d, s, id) { 746 var js, fjs = d.getElementsByTagName(s)[0]; 747 if (d.getElementById(id)) return; 748 js = d.createElement(s); js.id = id; 749 js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=' . $configXML->keyApps . '"; 750 fjs.parentNode.insertBefore(js, fjs); 751 }(document, "script", "facebook-jssdk"));</script>'; 752 $output .='<div class="fb-comments" data-href="' . get_permalink() . '" data-num-posts="5"></div>'; 753 } 754 ## Disqus Comment 755 else if ($configXML->comment_option == 3) { 756 $output .='<style type="text/css">#comments.comments-area{ display: none!important; } </style>'; 757 $output .='<div id="disqus_thread"></div> 758 <script type="text/javascript"> 759 var disqus_shortname = "' . $configXML->keydisqusApps . '"; 760 (function() { 761 var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true; 762 dsq.src = "http://"+ disqus_shortname + ".disqus.com/embed.js"; 763 (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq); 764 })(); 765 </script> 766 <noscript>' . __("Please enable JavaScript to view the", "video_gallery") . ' <a href="http://disqus.com/?ref_noscript">' . __("comments powered by Disqus.", "video_gallery") . '</a></noscript> 767 <a href="http://disqus.com" class="dsq-brlink">' . __("comments powered by", "video_gallery") . ' <span class="logo-disqus">' . __("Disqus", "video_gallery") . '</span></a>'; 481 768 } 482 769 } -
contus-video-gallery/trunk/hdflv-config.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Wordpress Video Gallery plugin config file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/hdflvplayer/email.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: email file for player. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/hdflvvideoshare.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Simplifies the process of adding video to a WordPress blog. Powered by Apptha. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 22 22 $frontViewPath = APPTHA_VGALLERY_BASEDIR . '/front/views/'; 23 23 $widgetPath = get_template_directory() . '/html/widgets'; 24 25 global $dirPage; 26 $dir = dirname(plugin_basename(__FILE__)); 27 $dirExp = explode('/', $dir); 28 $dirPage = $dirExp[0]; 24 29 25 30 ## Load widgets … … 118 123 register_activation_hook(__FILE__, 'videogallery_install'); 119 124 120 if (isset($_GET['action']) && $_GET['action'] == "activate-plugin" && $_GET['plugin'] == "contus-video-gallery/hdflvvideoshare.php") { 125 $plugin_main_file = $dirPage."/hdflvvideoshare.php"; 126 if (isset($_GET['action']) && $_GET['action'] == "activate-plugin" && $_GET['plugin'] == $plugin_main_file) { 121 127 122 128 ## declare table names and global variable to access WP query … … 137 143 138 144 ## declare variables 139 $updateSlug = $updatestreamer_path = $updateislive = $updateordering = $updatekeyApps = $updatekeydisqusApps = 140 $sharepanel_up_BgColor = $sharepanel_down_BgColor = $sharepaneltextColor = $sendButtonColor = $sendButtonTextColor = 141 $textColor = $skinBgColor = $seek_barColor = $buffer_barColor = $skinIconColor = $pro_BgColor = $playButtonColor = $playButtonBgColor = 142 $playerButtonColor = $playerButtonBgColor = $relatedVideoBgColor = $scroll_barColor = $scroll_BgColor = $playlist_open = 143 $showPlaylist = $updatecontentId = $updateimaadpath = $updatepublisherId = $updateimaadwidth = $updateimaadheight = $midroll_ads = $adsSkip = $adsSkipDuration = $relatedVideoView = $imaAds = $trackCode = $showTag = 145 $updateSlug = $updatestreamer_path = $updateislive = $updateratecount = $updaterate = $updateordering = $updatekeyApps = $updatekeydisqusApps = 146 $player_colors = $playlist_open = $updatecolMore = $updateembedcode = $updatedefault_player = $updaterowMore = 147 $showPlaylist = $updatecontentId = $updateimaadpath = $updatepublisherId = $updateimaadwidth = $updateimaadheight = $midroll_ads = $adsSkip = $adsSkipDuration = $relatedVideoView = $imaAds = $trackCode = $showTag = $ratingscontrol = 144 148 $updateaddescription = $updateimaadType = $updateadtargeturl = $updateadclickurl = $updateadimpressionurl = $updateadmethod = $updateadtype = $updateispublish = 145 149 $shareIcon = $updateimaad = $updatechannels = $updatemidrollads = $volumecontrol = $playlist_auto = $progressControl = $imageDefault = $updatepublish = $updateadpublish = ''; … … 153 157 $updateislive = AddColumnIfNotExists($errorMsg, "$table_name", "islive", "INT( 11 ) NOT NULL"); 154 158 $updateordering = AddColumnIfNotExists($errorMsg, "$table_name", "ordering", "INT( 11 ) NOT NULL"); 159 $updateratecount = AddColumnIfNotExists($errorMsg, "$table_name", "ratecount", "INT( 25 ) NOT NULL DEFAULT 0"); 160 $updaterate = AddColumnIfNotExists($errorMsg, "$table_name", "rate", "INT( 25 ) NOT NULL DEFAULT 0"); 161 $updateembedcode = AddColumnIfNotExists($errorMsg, "$table_name", "embedcode", "LONGTEXT NOT NULL"); 155 162 156 163 ## AD table update … … 179 186 $updatecolMore = AddColumnIfNotExists($errorMsg, "$table_settings", "colMore", "varchar(25) $charset_collate NOT NULL DEFAULT 4"); 180 187 $updatekeydisqusApps = AddColumnIfNotExists($errorMsg, "$table_settings", "keydisqusApps", "varchar(50) $charset_collate NOT NULL"); 181 $sharepanel_up_BgColor = AddColumnIfNotExists($errorMsg, "$table_settings", "sharepanel_up_BgColor", "varchar(50) $charset_collate NOT NULL"); 182 $sharepanel_down_BgColor= AddColumnIfNotExists($errorMsg, "$table_settings", "sharepanel_down_BgColor", "varchar(50) $charset_collate NOT NULL"); 183 $sharepaneltextColor = AddColumnIfNotExists($errorMsg, "$table_settings", "sharepaneltextColor", "varchar(50) $charset_collate NOT NULL"); 184 $sendButtonColor = AddColumnIfNotExists($errorMsg, "$table_settings", "sendButtonColor", "varchar(50) $charset_collate NOT NULL"); 185 $sendButtonTextColor = AddColumnIfNotExists($errorMsg, "$table_settings", "sendButtonTextColor", "varchar(50) $charset_collate NOT NULL"); 186 $textColor = AddColumnIfNotExists($errorMsg, "$table_settings", "textColor", "varchar(50) $charset_collate NOT NULL"); 187 $skinBgColor = AddColumnIfNotExists($errorMsg, "$table_settings", "skinBgColor", "varchar(50) $charset_collate NOT NULL"); 188 $seek_barColor = AddColumnIfNotExists($errorMsg, "$table_settings", "seek_barColor", "varchar(50) $charset_collate NOT NULL"); 189 $buffer_barColor = AddColumnIfNotExists($errorMsg, "$table_settings", "buffer_barColor", "varchar(50) $charset_collate NOT NULL"); 190 $skinIconColor = AddColumnIfNotExists($errorMsg, "$table_settings", "skinIconColor", "varchar(50) $charset_collate NOT NULL"); 191 $pro_BgColor = AddColumnIfNotExists($errorMsg, "$table_settings", "pro_BgColor", "varchar(50) $charset_collate NOT NULL"); 192 $playButtonColor = AddColumnIfNotExists($errorMsg, "$table_settings", "playButtonColor", "varchar(50) $charset_collate NOT NULL"); 193 $playButtonBgColor = AddColumnIfNotExists($errorMsg, "$table_settings", "playButtonBgColor", "varchar(50) $charset_collate NOT NULL"); 194 $playerButtonColor = AddColumnIfNotExists($errorMsg, "$table_settings", "playerButtonColor", "varchar(50) $charset_collate NOT NULL"); 195 $playerButtonBgColor = AddColumnIfNotExists($errorMsg, "$table_settings", "playerButtonBgColor", "varchar(50) $charset_collate NOT NULL"); 196 $relatedVideoBgColor = AddColumnIfNotExists($errorMsg, "$table_settings", "relatedVideoBgColor", "varchar(50) $charset_collate NOT NULL"); 197 $scroll_barColor = AddColumnIfNotExists($errorMsg, "$table_settings", "scroll_barColor", "varchar(50) $charset_collate NOT NULL"); 198 $scroll_BgColor = AddColumnIfNotExists($errorMsg, "$table_settings", "scroll_BgColor", "varchar(50) $charset_collate NOT NULL"); 188 $player_colors = AddColumnIfNotExists($errorMsg, "$table_settings", "player_colors", "longtext $charset_collate NOT NULL"); 199 189 $playlist_open = AddColumnIfNotExists($errorMsg, "$table_settings", "playlist_open", "INT( 3 ) NOT NULL"); 200 190 $showPlaylist = AddColumnIfNotExists($errorMsg, "$table_settings", "showPlaylist", "INT( 3 ) NOT NULL"); … … 206 196 $trackCode = AddColumnIfNotExists($errorMsg, "$table_settings", "trackCode", "TEXT $charset_collate NOT NULL"); 207 197 $showTag = AddColumnIfNotExists($errorMsg, "$table_settings", "showTag", "INT( 3 ) NOT NULL"); 198 $ratingscontrol = AddColumnIfNotExists($errorMsg, "$table_settings", "ratingscontrol", "INT( 3 ) NOT NULL"); 208 199 $shareIcon = AddColumnIfNotExists($errorMsg, "$table_settings", "shareIcon", "INT( 3 ) NOT NULL"); 209 $volumecontrol = AddColumnIfNotExists($errorMsg, "$table_settings", "volumecontrol", "INT( 3 ) NOT NULL ");200 $volumecontrol = AddColumnIfNotExists($errorMsg, "$table_settings", "volumecontrol", "INT( 3 ) NOT NULL DEFAULT 1"); 210 201 $playlist_auto = AddColumnIfNotExists($errorMsg, "$table_settings", "playlist_auto", "INT( 3 ) NOT NULL"); 211 $progressControl = AddColumnIfNotExists($errorMsg, "$table_settings", "progressControl", "INT( 3 ) NOT NULL ");202 $progressControl = AddColumnIfNotExists($errorMsg, "$table_settings", "progressControl", "INT( 3 ) NOT NULL DEFAULT 1"); 212 203 $imageDefault = AddColumnIfNotExists($errorMsg, "$table_settings", "imageDefault", "INT( 3 ) NOT NULL"); 213 204 … … 266 257 wp_enqueue_style('videogallery_css1'); 267 258 } 259 ## function to add css and javascript files for admin 260 function videogallery_jcar_js_css() { 261 wp_register_script('videogallery_jcar_lib_js', APPTHA_VGALLERY_BASEURL . 'js/jquery-1.2.3.pack.js'); 262 wp_enqueue_script('videogallery_jcar_lib_js'); 263 wp_register_script('videogallery_jcar_js', APPTHA_VGALLERY_BASEURL . 'js/jquery.jcarousel.pack.js'); 264 wp_enqueue_script('videogallery_jcar_js'); 265 wp_register_style('videogallery_jcar_css', APPTHA_VGALLERY_BASEURL . 'css/jquery.jcarousel.css'); 266 wp_enqueue_style('videogallery_jcar_css'); 267 wp_register_style('videogallery_jcar_skin_css', APPTHA_VGALLERY_BASEURL . 'css/skins.css'); 268 wp_enqueue_style('videogallery_jcar_skin_css'); 269 wp_register_script('videogallery_jcar_init_js', APPTHA_VGALLERY_BASEURL . 'js/mycarousel.js'); 270 wp_enqueue_script('videogallery_jcar_init_js'); 271 } 268 272 add_action('wp_enqueue_scripts', 'videogallery_cssJs'); 269 270 273 ## Function to add og detail for facebook 271 274 add_action('wp_head', 'add_meta_details'); … … 299 302 function add_meta_details() { 300 303 global $wpdb; 304 global $dirPage; 301 305 ## Get current video id from url, if permalink on 302 306 $videoID = url_to_custompostid(get_permalink()); … … 317 321 . " WHERE t1.publish='1' AND t3.is_publish='1' AND t1.vid='" . intval($videoID) . "' LIMIT 1"); 318 322 ## Get image path for thumb image 319 $image_path = str_replace('plugins/ contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL);323 $image_path = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 320 324 $_imagePath = APPTHA_VGALLERY_BASEURL . 'images' . DS; 321 325 if(!empty($video_count)){ … … 464 468 function video_shortcodeplace($arguments= array()) { 465 469 global $frontControllerPath, $frontModelPath, $frontViewPath; 470 videogallery_jcar_js_css(); 466 471 include_once ($frontControllerPath . 'videoshortcodeController.php'); 467 472 $pageOBJ = new ContusVideoShortcodeView(); … … 477 482 include_once ($frontControllerPath . 'videomoreController.php'); 478 483 $more = filter_input(INPUT_GET, 'more'); 479 $playid = '';480 484 $playid = filter_input(INPUT_GET, 'playid'); 481 485 if (!empty($playid)) … … 513 517 $wpdb->query(" DROP TABLE " . $wpdb->prefix . "hdflvvideoshare_playlist"); 514 518 $wpdb->query(" DROP TABLE " . $wpdb->prefix . "hdflvvideoshare_med2play"); 515 $langfound = false;516 519 $table_language = $wpdb->prefix . 'hdflvvideoshare_language'; 517 520 foreach ($wpdb->get_results("SHOW TABLES;", ARRAY_N) as $row) { -
contus-video-gallery/trunk/hitCount.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video hitcount file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/install.php
r756214 r778159 4 4 URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Wordpress Video Gallery Installation file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 74 74 global $wpdb; 75 75 $posttable = $wpdb->prefix . 'posts'; 76 $videoID = $wpdb->get_results("select vid,name from " . $wpdb->prefix . "hdflvvideoshare"); 76 $slugID = $wpdb->get_results("SELECT slug FROM " . $wpdb->prefix . "hdflvvideoshare ORDER BY vid DESC LIMIT 1"); 77 if(empty($slugID)){ 78 $videoID = $wpdb->get_results("SELECT vid,name FROM " . $wpdb->prefix . "hdflvvideoshare"); 77 79 for ($i = 0; $i < count($videoID); $i++) { 78 80 $slug = sanitize_title($videoID[$i]->name); … … 93 95 $vid = $featuredID[$i]->vid; 94 96 $wpdb->query("UPDATE " . $wpdb->prefix . "hdflvvideoshare SET featured = 1 WHERE vid = $vid"); 97 } 95 98 } 96 99 } … … 150 153 name MEDIUMTEXT NULL, 151 154 description MEDIUMTEXT NOT NULL, 155 embedcode LONGTEXT NOT NULL, 152 156 file MEDIUMTEXT NULL, 153 157 streamer_path MEDIUMTEXT NULL, … … 162 166 featured varchar(25) NOT NULL, 163 167 hitcount int(25) NOT NULL DEFAULT '0', 168 ratecount int(25) NOT NULL DEFAULT '0', 169 rate int(25) NOT NULL DEFAULT '0', 164 170 post_date datetime NOT NULL, 165 171 postrollads VARCHAR(25) NOT NULL, … … 218 224 stagecolor VARCHAR(45) NOT NULL, 219 225 embed_visible INT(3) NOT NULL DEFAULT '0', 226 ratingscontrol INT(3) NOT NULL DEFAULT '0', 220 227 shareURL VARCHAR(200) NOT NULL, 221 228 playlistXML VARCHAR(200) NOT NULL, … … 265 272 gutterspace INT(3) NOT NULL, 266 273 default_player INT(11) NOT NULL, 267 sharepanel_up_BgColor VARCHAR(45) NOT NULL, 268 sharepanel_down_BgColor VARCHAR(45) NOT NULL, 269 sharepaneltextColor VARCHAR(45) NOT NULL, 270 sendButtonColor VARCHAR(45) NOT NULL, 271 sendButtonTextColor VARCHAR(45) NOT NULL, 272 textColor VARCHAR(45) NOT NULL, 273 skinBgColor VARCHAR(45) NOT NULL, 274 seek_barColor VARCHAR(45) NOT NULL, 275 buffer_barColor VARCHAR(45) NOT NULL, 276 skinIconColor VARCHAR(45) NOT NULL, 277 pro_BgColor VARCHAR(45) NOT NULL, 278 playButtonColor VARCHAR(45) NOT NULL, 279 playButtonBgColor VARCHAR(45) NOT NULL, 280 playerButtonColor VARCHAR(45) NOT NULL, 281 playerButtonBgColor VARCHAR(45) NOT NULL, 282 relatedVideoBgColor VARCHAR(45) NOT NULL, 283 scroll_barColor VARCHAR(45) NOT NULL, 284 scroll_BgColor VARCHAR(45) NOT NULL, 274 player_colors LONGTEXT NOT NULL, 285 275 playlist_open INT(3) NOT NULL, 286 276 showPlaylist INT(3) NOT NULL, … … 343 333 $contus_more = "INSERT INTO " . $wpdb->prefix . "posts(`post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_title`, `post_excerpt`, `post_status`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_content_filtered`, `post_parent`, `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count`) 344 334 VALUES 345 (1, NOW(), NOW(), '[videomore]', ' ', '', 'publish', 'open', 'open', '', 'video-more', '', '', '2011-01-10 10:42:23',335 (1, NOW(), NOW(), '[videomore]', 'Video Categories', '', 'publish', 'open', 'open', '', 'video-more', '', '', '2011-01-10 10:42:23', 346 336 '2011-01-10 10:42:23', '',0, '$site_url/?page_id=',0, 'page', '', 0)"; 347 337 … … 383 373 if (empty($videoCategories)) { 384 374 385 $contus_videoCategories = $wpdb->query("INSERT INTO " . $ wpdb->prefix . "hdflvvideoshare (`slug`, `name`, `description`, `file`, `hdfile`, `file_type`, `duration`, `image`, `opimage`, `download`, `link`, `featured`, `hitcount`, `post_date`, `postrollads`, `prerollads`, `publish`,`ordering`,`streamer_path`,`islive`) VALUES386 ($postid[0],'Pacific Rim Official Wondercon Trailer (2013) - Guillermo del Toro Movie HD', '', 'http://www.youtube.com/watch?v=Ef6vQBGqLW8', '', 1, '2:38', 'http://i3.ytimg.com/vi/Ef6vQBGqLW8/mqdefault.jpg', 'http://i3.ytimg.com/vi/Ef6vQBGqLW8/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=Ef6vQBGqLW8', '1', 1, '2013-08-06 13:54:39', '0', '0', '1','0','','0'),387 ($postid[1],'GI JOE 2 Retaliation Trailer 2 - 2013 Movie - Official [HD]', 'G I Joe Retaliation Trailer 2 - 2013 movie - official movie trailer in HD - sequel of the 2009 \'s GI Joe film - starring Channing Tatum, Adrianne Palicki, Dwayne Johnson, Bruce Willis - directed by Jon Chu.', ' http://www.youtube.com/watch?v=mKNpy-tGwxE', '', 1, '2:31', 'http://i3.ytimg.com/vi/mKNpy-tGwxE/mqdefault.jpg', 'http://i3.ytimg.com/vi/mKNpy-tGwxE/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=mKNpy-tGwxE', '1', 2, '2013-08-06 13:46:43', '0', '0', '1','1','','0'),388 ($postid[2],'2012 - Full HD trailer - At UK Cinemas November 13', 'Never before has a date in history been so significant to so many cultures, so many religions, scientists, and governments. 2012 is an epic adventure about a global cataclysm that brings an end to the world and tells of the heroic struggle of the survivo', 'http://www.youtube.com/watch?v=rvI66Xaj9-o', '', 1, '2:22', 'http://i3.ytimg.com/vi/rvI66Xaj9-o/mqdefault.jpg', 'http://i3.ytimg.com/vi/rvI66Xaj9-o/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=rvI66Xaj9-o', '1', 1, '2013-08-06 13:47:15', '0', '0', '1','2','','0'),389 ($postid[3],'Iron Man - Trailer [HD]', 'Paramount Pictures and Marvel Studios\' big screen adaptation of Marvel\'s legendary Super Hero Iron Man will launch into theaters on May 2, 2008. Oscar nominee Robert Downey Jr. stars as Tony Stark/Iron Man in the story of a billionaire industrialist and', 'http://www.youtube.com/watch?v=8hYlB38asDY', '', 1, '2:30', 'http://i3.ytimg.com/vi/8hYlB38asDY/mqdefault.jpg', 'http://i3.ytimg.com/vi/8hYlB38asDY/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=8hYlB38asDY', '1', 1, '2013-08-06 13:50:52', '0', '0', '1','3','','0'),390 ($postid[4],'THE AVENGERS Trailer 2012 Movie - Official [HD]', 'The Avengers Trailer 2012 - Official movie teaser trailer in HD - starring Robert Downey Jr., Chris Evans, Mark Ruffalo, Chris Hemsworth, Scarlett Johansson.Joss Whedon brings together the ultimate team of superheroes in the first official trailer for', 'http://www.youtube.com/watch?v=orfMJJEd0wk', '', 1, '1:47', 'http://i3.ytimg.com/vi/orfMJJEd0wk/mqdefault.jpg', 'http://i3.ytimg.com/vi/orfMJJEd0wk/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=orfMJJEd0wk', '1', 1, '2013-08-06 13:53:12', '0', '0', '1','4','','0'),391 ($postid[5],'Cronicles of Narnia :Prince Caspian Trailer HD 720p', 'Cronicles of Narnia :Prince Caspian Trailer High Definition 720p', 'http://www.youtube.com/watch?v=yfX1S-ifI3E', '', 1, '2:31', 'http://i3.ytimg.com/vi/yfX1S-ifI3E/mqdefault.jpg', 'http://i3.ytimg.com/vi/yfX1S-ifI3E/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=yfX1S-ifI3E', '1', 1, '2013-08-06 13:53:58', '0', '0', '1','5','','0'),392 ($postid[6],'The Hobbit: The Desolation of Smaug International Trailer (2013) - Lord of the Rings Movie HD', '', 'http://www.youtube.com/watch?v=TeGb5XGk2U0', '', 1, '1:57', 'http://i3.ytimg.com/vi/TeGb5XGk2U0/mqdefault.jpg', 'http://i3.ytimg.com/vi/TeGb5XGk2U0/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=TeGb5XGk2U0', '1', 4, '2013-08-06 14:00:39', '0', '0', '1','6','','0'),393 ($postid[7],'Pirates of the Caribbean: On Stranger Tides Trailer HD', '', 'http://www.youtube.com/watch?v=egoQRNKeYxw', '', 1, '2:29', 'http://i3.ytimg.com/vi/egoQRNKeYxw/mqdefault.jpg', 'http://i3.ytimg.com/vi/egoQRNKeYxw/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=egoQRNKeYxw', '1', 3, '2013-08-06 14:01:58', '0', '0', '1','7','','0'),394 ($postid[8],'Fast & Furious 6 - Official Trailer [HD]', 'Since Dom (Diesel) and Brians (Walker) Rio heist toppled a kingpins empire and left their crew with $100 million, our heroes have scattered across the globe. But their inability to return home and living forever on the lam have left their lives incomplete', 'http://www.youtube.com/watch?v=PP7pH4pqC5A', '', 1, '2:35', 'http://i3.ytimg.com/vi/PP7pH4pqC5A/mqdefault.jpg', 'http://i3.ytimg.com/vi/PP7pH4pqC5A/maxresdefault.jpg', '0', 'http://www.youtube.com/watch?v=PP7pH4pqC5A', '1', 2, '2013-08-06 14:04:38', '0', '0', '1','8','','0'),395 ($postid[9],'Samsung Demo HD - Blu-Ray Sound 7.1 ch', 'En el video se muestra el audio 7.1 de Samsung en sus equipos Blu-Ray como el HT-BD2 y el BD-P3600, este ultimo con salida de 8 canales discretos', 'http://www.youtube.com/watch?v=UJ1MOWg15Ec', '', 1, '1:40', 'http://i3.ytimg.com/vi/UJ1MOWg15Ec/mqdefault.jpg', 'http://i3.ytimg.com/vi/UJ1MOWg15Ec/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=UJ1MOWg15Ec', '1', 3, '2013-08-06 14:04:52', '0', '0', '1','9','','0'),396 ($postid[10],'White House Down Trailer #2 2013 Jamie Foxx Movie - Official [HD]', 'White House Down Trailer #2 2013 - Official movie trailer 2 in HD - starring Channing Tatum, Jamie Foxx, Maggie Gyllenhaal - directed by Roland Emmerich - a Washington, D.C. police officer is on a tour of the presidential mansion when a heavily armed grou', 'http://www.youtube.com/watch?v=Kkoor7Z6aeE', '', 1, '2:35', 'http://i3.ytimg.com/vi/Kkoor7Z6aeE/mqdefault.jpg', 'http://i3.ytimg.com/vi/Kkoor7Z6aeE/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=Kkoor7Z6aeE', '1', 3, '2013-08-06 14:08:59', '0', '0', '1','10','','0'),397 ($postid[11],'Landscapes: Volume 2', '', 'http://www.youtube.com/watch?v=DaYx4XmWEoI', '', 1, '3:31', 'http://i3.ytimg.com/vi/DaYx4XmWEoI/mqdefault.jpg', 'http://i3.ytimg.com/vi/DaYx4XmWEoI/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=DaYx4XmWEoI', '1', 1, '2013-08-06 14:09:48', '0', '0', '1','11','','0'),398 ($postid[12],'Krrish 3 - Official Theatrical Trailer (Exclusive)', 'Watch the Exclusive Official Theatrical Trailer of Krrish 3, the most awaited movie of the year starring Hrithik Roshan, Priyanka Chopra, Kangna Ranaut, Vivek Oberoi & Shaurya Chauhan. Releasing this Diwali...!Directed & Produced by - Rakesh Roshan', 'http://www.youtube.com/watch?v=MCCVVgtI5xU', '', 1, '2:16', 'http://i3.ytimg.com/vi/MCCVVgtI5xU/mqdefault.jpg', 'http://i3.ytimg.com/vi/MCCVVgtI5xU/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=MCCVVgtI5xU', '1', 2, '2013-08-06 14:10:54', '0', '0', '1','12','','0'),399 ($postid[13],'THE TWILIGHT SAGA: BREAKING DAWN PART 2 - TV Spot Generation', '', 'http://www.youtube.com/watch?v=ey0aA3YY0Mo', '', 1, '0:32', 'http://i3.ytimg.com/vi/ey0aA3YY0Mo/mqdefault.jpg', 'http://i3.ytimg.com/vi/ey0aA3YY0Mo/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=ey0aA3YY0Mo', '1', 3, 'http://www.youtube.com/watch?v=ey0aA3YY0Mo', '0', '0', '1','13','','0'),400 ($postid[14],'Journey To The Center Of The Earth HD Trailer', '', 'http://www.youtube.com/watch?v=iJkspWwwZLM', '', 1, '2:30', 'http://i3.ytimg.com/vi/iJkspWwwZLM/mqdefault.jpg', 'http://i3.ytimg.com/vi/iJkspWwwZLM/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=iJkspWwwZLM', '1', 2, '2013-08-06 14:12:07', '0', '0', '1','14','','0'),401 ($postid[15],'ICE AGE 4 Trailer 2012 Movie - Continental Drift - Official [HD]', 'Ice Age 4: Continental Drift Trailer 2012 Movie - Official Ice Age 4 trailer in [HD] - Scrat accidentally triggers the breakup of Pangea and thus the splitting of the continents.', 'http://www.youtube.com/watch?v=ja-qjGeDBZQ', '', 1, '2:33', 'http://i3.ytimg.com/vi/ja-qjGeDBZQ/mqdefault.jpg', 'http://i3.ytimg.com/vi/ja-qjGeDBZQ/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=ja-qjGeDBZQ', '1', 3, '2013-08-06 13:47:15', '0', '0', '1','15','','0'),402 ($postid[16],'Big Buck Bunny', 'Big Buck Bunny was the first project in the Blender Institute Amsterdam. This 10 minute movie has been made inspired by the best cartoon tradition.', 'http://www.youtube.com/watch?v=Vpg9yizPP_g', '', 1, '1:47', 'http://i3.ytimg.com/vi/Vpg9yizPP_g/mqdefault.jpg', 'http://i3.ytimg.com/vi/Vpg9yizPP_g/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=Vpg9yizPP_g', '1', 3, '2013-08-06 13:53:12', '0', '0', '1','16','','0')375 $contus_videoCategories = $wpdb->query("INSERT INTO " . $table_name . " (`slug`, `name`, `description`, `embedcode`, `file`, `hdfile`, `file_type`, `duration`, `image`, `opimage`, `download`, `link`, `featured`, `hitcount`, `post_date`, `postrollads`, `prerollads`, `publish`,`ordering`,`streamer_path`,`islive`, `ratecount`, `rate`) VALUES 376 ($postid[0],'Pacific Rim Official Wondercon Trailer (2013) - Guillermo del Toro Movie HD', '','', 'http://www.youtube.com/watch?v=Ef6vQBGqLW8', '', 1, '2:38', 'http://i3.ytimg.com/vi/Ef6vQBGqLW8/mqdefault.jpg', 'http://i3.ytimg.com/vi/Ef6vQBGqLW8/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=Ef6vQBGqLW8', '1', 1, '2013-08-06 13:54:39', '0', '0', '1','0','','0','0','0'), 377 ($postid[1],'GI JOE 2 Retaliation Trailer 2 - 2013 Movie - Official [HD]', 'G I Joe Retaliation Trailer 2 - 2013 movie - official movie trailer in HD - sequel of the 2009 \'s GI Joe film - starring Channing Tatum, Adrianne Palicki, Dwayne Johnson, Bruce Willis - directed by Jon Chu.', '','http://www.youtube.com/watch?v=mKNpy-tGwxE', '', 1, '2:31', 'http://i3.ytimg.com/vi/mKNpy-tGwxE/mqdefault.jpg', 'http://i3.ytimg.com/vi/mKNpy-tGwxE/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=mKNpy-tGwxE', '1', 2, '2013-08-06 13:46:43', '0', '0', '1','1','','0','0','0'), 378 ($postid[2],'2012 - Full HD trailer - At UK Cinemas November 13', 'Never before has a date in history been so significant to so many cultures, so many religions, scientists, and governments. 2012 is an epic adventure about a global cataclysm that brings an end to the world and tells of the heroic struggle of the survivo','', 'http://www.youtube.com/watch?v=rvI66Xaj9-o', '', 1, '2:22', 'http://i3.ytimg.com/vi/rvI66Xaj9-o/mqdefault.jpg', 'http://i3.ytimg.com/vi/rvI66Xaj9-o/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=rvI66Xaj9-o', '1', 1, '2013-08-06 13:47:15', '0', '0', '1','2','','0','0','0'), 379 ($postid[3],'Iron Man - Trailer [HD]', 'Paramount Pictures and Marvel Studios\' big screen adaptation of Marvel\'s legendary Super Hero Iron Man will launch into theaters on May 2, 2008. Oscar nominee Robert Downey Jr. stars as Tony Stark/Iron Man in the story of a billionaire industrialist and','', 'http://www.youtube.com/watch?v=8hYlB38asDY', '', 1, '2:30', 'http://i3.ytimg.com/vi/8hYlB38asDY/mqdefault.jpg', 'http://i3.ytimg.com/vi/8hYlB38asDY/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=8hYlB38asDY', '1', 1, '2013-08-06 13:50:52', '0', '0', '1','3','','0','0','0'), 380 ($postid[4],'THE AVENGERS Trailer 2012 Movie - Official [HD]', 'The Avengers Trailer 2012 - Official movie teaser trailer in HD - starring Robert Downey Jr., Chris Evans, Mark Ruffalo, Chris Hemsworth, Scarlett Johansson.Joss Whedon brings together the ultimate team of superheroes in the first official trailer for','', 'http://www.youtube.com/watch?v=orfMJJEd0wk', '', 1, '1:47', 'http://i3.ytimg.com/vi/orfMJJEd0wk/mqdefault.jpg', 'http://i3.ytimg.com/vi/orfMJJEd0wk/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=orfMJJEd0wk', '1', 1, '2013-08-06 13:53:12', '0', '0', '1','4','','0','0','0'), 381 ($postid[5],'Cronicles of Narnia :Prince Caspian Trailer HD 720p', 'Cronicles of Narnia :Prince Caspian Trailer High Definition 720p','', 'http://www.youtube.com/watch?v=yfX1S-ifI3E', '', 1, '2:31', 'http://i3.ytimg.com/vi/yfX1S-ifI3E/mqdefault.jpg', 'http://i3.ytimg.com/vi/yfX1S-ifI3E/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=yfX1S-ifI3E', '1', 1, '2013-08-06 13:53:58', '0', '0', '1','5','','0','0','0'), 382 ($postid[6],'The Hobbit: The Desolation of Smaug International Trailer (2013) - Lord of the Rings Movie HD', '','', 'http://www.youtube.com/watch?v=TeGb5XGk2U0', '', 1, '1:57', 'http://i3.ytimg.com/vi/TeGb5XGk2U0/mqdefault.jpg', 'http://i3.ytimg.com/vi/TeGb5XGk2U0/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=TeGb5XGk2U0', '1', 4, '2013-08-06 14:00:39', '0', '0', '1','6','','0','0','0'), 383 ($postid[7],'Pirates of the Caribbean: On Stranger Tides Trailer HD', '','', 'http://www.youtube.com/watch?v=egoQRNKeYxw', '', 1, '2:29', 'http://i3.ytimg.com/vi/egoQRNKeYxw/mqdefault.jpg', 'http://i3.ytimg.com/vi/egoQRNKeYxw/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=egoQRNKeYxw', '1', 3, '2013-08-06 14:01:58', '0', '0', '1','7','','0','0','0'), 384 ($postid[8],'Fast & Furious 6 - Official Trailer [HD]', 'Since Dom (Diesel) and Brians (Walker) Rio heist toppled a kingpins empire and left their crew with $100 million, our heroes have scattered across the globe. But their inability to return home and living forever on the lam have left their lives incomplete','', 'http://www.youtube.com/watch?v=PP7pH4pqC5A', '', 1, '2:35', 'http://i3.ytimg.com/vi/PP7pH4pqC5A/mqdefault.jpg', 'http://i3.ytimg.com/vi/PP7pH4pqC5A/maxresdefault.jpg', '0', 'http://www.youtube.com/watch?v=PP7pH4pqC5A', '1', 2, '2013-08-06 14:04:38', '0', '0', '1','8','','0','0','0'), 385 ($postid[9],'Samsung Demo HD - Blu-Ray Sound 7.1 ch', 'En el video se muestra el audio 7.1 de Samsung en sus equipos Blu-Ray como el HT-BD2 y el BD-P3600, este ultimo con salida de 8 canales discretos','', 'http://www.youtube.com/watch?v=UJ1MOWg15Ec', '', 1, '1:40', 'http://i3.ytimg.com/vi/UJ1MOWg15Ec/mqdefault.jpg', 'http://i3.ytimg.com/vi/UJ1MOWg15Ec/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=UJ1MOWg15Ec', '1', 3, '2013-08-06 14:04:52', '0', '0', '1','9','','0','0','0'), 386 ($postid[10],'White House Down Trailer #2 2013 Jamie Foxx Movie - Official [HD]', 'White House Down Trailer #2 2013 - Official movie trailer 2 in HD - starring Channing Tatum, Jamie Foxx, Maggie Gyllenhaal - directed by Roland Emmerich - a Washington, D.C. police officer is on a tour of the presidential mansion when a heavily armed grou','', 'http://www.youtube.com/watch?v=Kkoor7Z6aeE', '', 1, '2:35', 'http://i3.ytimg.com/vi/Kkoor7Z6aeE/mqdefault.jpg', 'http://i3.ytimg.com/vi/Kkoor7Z6aeE/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=Kkoor7Z6aeE', '1', 3, '2013-08-06 14:08:59', '0', '0', '1','10','','0','0','0'), 387 ($postid[11],'Landscapes: Volume 2', '','', 'http://www.youtube.com/watch?v=DaYx4XmWEoI', '', 1, '3:31', 'http://i3.ytimg.com/vi/DaYx4XmWEoI/mqdefault.jpg', 'http://i3.ytimg.com/vi/DaYx4XmWEoI/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=DaYx4XmWEoI', '1', 1, '2013-08-06 14:09:48', '0', '0', '1','11','','0','0','0'), 388 ($postid[12],'Krrish 3 - Official Theatrical Trailer (Exclusive)', 'Watch the Exclusive Official Theatrical Trailer of Krrish 3, the most awaited movie of the year starring Hrithik Roshan, Priyanka Chopra, Kangna Ranaut, Vivek Oberoi & Shaurya Chauhan. Releasing this Diwali...!Directed & Produced by - Rakesh Roshan','', 'http://www.youtube.com/watch?v=MCCVVgtI5xU', '', 1, '2:16', 'http://i3.ytimg.com/vi/MCCVVgtI5xU/mqdefault.jpg', 'http://i3.ytimg.com/vi/MCCVVgtI5xU/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=MCCVVgtI5xU', '1', 2, '2013-08-06 14:10:54', '0', '0', '1','12','','0','0','0'), 389 ($postid[13],'THE TWILIGHT SAGA: BREAKING DAWN PART 2 - TV Spot Generation', '','', 'http://www.youtube.com/watch?v=ey0aA3YY0Mo', '', 1, '0:32', 'http://i3.ytimg.com/vi/ey0aA3YY0Mo/mqdefault.jpg', 'http://i3.ytimg.com/vi/ey0aA3YY0Mo/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=ey0aA3YY0Mo', '1', 3, 'http://www.youtube.com/watch?v=ey0aA3YY0Mo', '0', '0', '1','13','','0','0','0'), 390 ($postid[14],'Journey To The Center Of The Earth HD Trailer', '','', 'http://www.youtube.com/watch?v=iJkspWwwZLM', '', 1, '2:30', 'http://i3.ytimg.com/vi/iJkspWwwZLM/mqdefault.jpg', 'http://i3.ytimg.com/vi/iJkspWwwZLM/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=iJkspWwwZLM', '1', 2, '2013-08-06 14:12:07', '0', '0', '1','14','','0','0','0'), 391 ($postid[15],'ICE AGE 4 Trailer 2012 Movie - Continental Drift - Official [HD]', 'Ice Age 4: Continental Drift Trailer 2012 Movie - Official Ice Age 4 trailer in [HD] - Scrat accidentally triggers the breakup of Pangea and thus the splitting of the continents.','', 'http://www.youtube.com/watch?v=ja-qjGeDBZQ', '', 1, '2:33', 'http://i3.ytimg.com/vi/ja-qjGeDBZQ/mqdefault.jpg', 'http://i3.ytimg.com/vi/ja-qjGeDBZQ/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=ja-qjGeDBZQ', '1', 3, '2013-08-06 13:47:15', '0', '0', '1','15','','0','0','0'), 392 ($postid[16],'Big Buck Bunny', 'Big Buck Bunny was the first project in the Blender Institute Amsterdam. This 10 minute movie has been made inspired by the best cartoon tradition.','', 'http://www.youtube.com/watch?v=Vpg9yizPP_g', '', 1, '1:47', 'http://i3.ytimg.com/vi/Vpg9yizPP_g/mqdefault.jpg', 'http://i3.ytimg.com/vi/Vpg9yizPP_g/maxresdefault.jpg', '', 'http://www.youtube.com/watch?v=Vpg9yizPP_g', '1', 3, '2013-08-06 13:53:12', '0', '0', '1','16','','0','0','0') 403 393 "); 404 394 ## video title array … … 452 442 `buffer`, `normalscale`, `fullscreenscale`, `logopath`, `logo_target`, 453 443 `volume`, `logoalign`, `hdflvplayer_ads`, `HD_default`, `download`, 454 `logoalpha`,`skin_autohide`, `stagecolor`, `embed_visible`, `shareURL`, 455 `playlistXML`,`debug`, `timer`, `zoom`, `email`, 456 `fullscreen`, `width`, `height`, `display_logo`,`configXML`, 457 `uploads`, `license`, `keyApps`,`keydisqusApps`,`preroll`, 458 `postroll`,`feature`, `rowsFea`, `colFea`,`recent`, 459 `rowsRec`, `colRec`, `popular`, `rowsPop`,`colPop`, 460 `page`, `category_page`, `ffmpeg_path`, `stylesheet`,`comment_option`, 461 `rowCat`, `colCat`,`homecategory`,`bannercategory`,`banner_categorylist`, 462 `hbannercategory`,`hbanner_categorylist`,`vbannercategory`,`vbanner_categorylist`,`bannerw`, 463 `playerw`,`numvideos`,`gutterspace`,`colMore`,`rowMore`, 464 `sharepanel_up_BgColor`,`sharepanel_down_BgColor`,`sharepaneltextColor`,`sendButtonColor`,`sendButtonTextColor`, 465 `textColor`,`skinBgColor`,`seek_barColor`,`buffer_barColor`,`skinIconColor`, 466 `pro_BgColor`,`playButtonColor`,`playButtonBgColor`,`playerButtonColor`,`playerButtonBgColor`, 467 `relatedVideoBgColor`,`scroll_barColor`,`scroll_BgColor`,`playlist_open`,`showPlaylist`, 468 `midroll_ads`,`adsSkip`,`adsSkipDuration`,`relatedVideoView`,`imaAds`, 469 `trackCode`,`showTag`,`shareIcon`,`volumecontrol`,`playlist_auto`, 470 `progressControl`,`imageDefault`) 444 `logoalpha`,`skin_autohide`, `stagecolor`, `embed_visible`, `ratingscontrol`, 445 `shareURL`,`playlistXML`,`debug`, `timer`, `zoom`, 446 `email`,`fullscreen`, `width`, `height`, `display_logo`, 447 `configXML`,`uploads`, `license`, `keyApps`,`keydisqusApps`, 448 `preroll`,`postroll`,`feature`, `rowsFea`, `colFea`, 449 `recent`,`rowsRec`, `colRec`, `popular`, `rowsPop`, 450 `colPop`,`page`, `category_page`, `ffmpeg_path`, `stylesheet`, 451 `comment_option`,`rowCat`, `colCat`,`homecategory`,`bannercategory`, 452 `banner_categorylist`,`hbannercategory`,`hbanner_categorylist`,`vbannercategory`,`vbanner_categorylist`, 453 `bannerw`,`playerw`,`numvideos`,`gutterspace`,`colMore`, 454 `rowMore`,`player_colors`,`playlist_open`,`showPlaylist`,`midroll_ads`, 455 `adsSkip`,`adsSkipDuration`,`relatedVideoView`,`imaAds`,`trackCode`, 456 `showTag`,`shareIcon`,`volumecontrol`,`playlist_auto`,`progressControl`, 457 `imageDefault`) 471 458 VALUES 472 459 (0,1, 1, 1, 1, 473 460 3, 2, 2, 'platoon.jpg', '' , 474 461 50, 'BL', 0, 1, 1, 475 100, 1, '', 1, '', 476 '', 0, 1, 1, 1, 477 1, 620, 350, 0, '0' , 478 'wp-content/uploads/videogallery', '', '','','0', 479 '0', '1', '2', '4','1', 480 '2', '4', '1', '2','4', 481 '20', '4', '', '','1', 482 '2','4','off','popular','1', 483 'hpopular','1','vpopular','1','650', 484 '450','5','20','4','2', 485 '','','0x1d1d1d','0x1d1d1d','0xFFFFFF', 486 '','','','','', 487 '','','','','', 488 '','','','1','1', 489 '0','1','5','center','0', 490 '','1','1','1','1', 491 '1','1')"); 462 100, 1, '', 1, 1, 463 '','', 0, 1, 1, 464 1,1, 620, 350, 0, 465 '0' ,'wp-content/uploads/videogallery', '', '','', 466 '0','0', '1', '2', '4', 467 '1','2', '4', '1', '2', 468 '4','20', '4', '', '', 469 '1','2','4','off','popular', 470 '1','hpopular','1','vpopular','1', 471 '650','450','5','20','4', 472 '2','','1','1','0', 473 '1','5','center','0','', 474 '1','1','1','1', '1', 475 '1')"); 492 476 } 493 477 … … 515 499 (23, 11, 4, 0, 0)"); 516 500 } 501 flush_rewrite_rules(); 517 502 } 518 503 ?> -
contus-video-gallery/trunk/js/jquery-1.2.3.pack.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jquery core file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/js/jquery.jcarousel.pack.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: jcarousel file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/js/script.js
r756214 r778159 3 3 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 4 4 Description: VIdeo Gallery plugin script file. 5 Version: 2. 25 Version: 2.3 6 6 Author: Apptha 7 7 Author URI: http://www.apptha.com … … 9 9 */ 10 10 11 function current video(title,vid){11 function current_video(vid,title){ 12 12 13 13 if (window.XMLHttpRequest) … … 24 24 if (xmlhttp.readyState==4) 25 25 { 26 //alert('i am ready');27 26 } 28 27 } … … 30 29 xmlhttp.open("GET",baseurl+"/wp-content/plugins/"+folder+"/hitCount.php?vid="+vid,true); 31 30 xmlhttp.send(); 32 document.getElementById('video_title').innerHTML=title; 33 } 31 } 34 32 -
contus-video-gallery/trunk/languageXML.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: LanguageXML file for player. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/myadsXML.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: AdsXML file for player. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 24 24 header ("content-type: text/xml"); 25 25 echo '<?xml version="1.0" encoding="utf-8"?>'; 26 echo '<ads >';26 echo '<ads random="false">'; 27 27 if (count($themediafiles) > 0) { 28 28 foreach ($themediafiles as $rows) { … … 30 30 if ($admethod == 'prepost') { ## Allow only for preroll or post roll ads 31 31 $postvideo = $rows->file_path; 32 echo '<ad id="' . $rows->ads_id . '" url="' . $postvideo . '">';33 echo '<![CDATA[' . $rows->description .']]>';34 echo'</ad>';32 echo '<ad id="' . $rows->ads_id . '" url="' . $postvideo . '" targeturl="' . $rows->targeturl . '" clickurl="' . $rows->clickurl . '" impressionurl="' . $rows->impressionurl . '">'; 33 echo '<![CDATA['.$rows->description.']]>'; 34 echo '</ad>'; 35 35 } 36 36 } -
contus-video-gallery/trunk/myextractXML.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: playlistxml file for player. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 49 49 } 50 50 51 $image_path = str_replace('plugins/contus-video-gallery/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 51 $dir = dirname(plugin_basename(__FILE__)); 52 $dirExp = explode('/', $dir); 53 $dirPage = $dirExp[0]; 54 $image_path = str_replace('plugins/'.$dirPage.'/', 'uploads/videogallery/', APPTHA_VGALLERY_BASEURL); 52 55 ## playlist XML starts here 53 56 header("content-type:text/xml;charset = utf-8"); -
contus-video-gallery/trunk/myimaadsXML.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: AdsXML file for player. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com -
contus-video-gallery/trunk/mymidrollXML.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: AdsXML file for player. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com … … 29 29 $impressionurl = $rows->impressionurl; 30 30 $description = $rows->description; 31 $title = $rows->title; 31 32 32 33 echo ' 33 34 <midroll targeturl="' . $targeturl . '" clickurl="' . $clickurl . '" impressionurl="' . $impressionurl . '"> 34 <![CDATA[' . $ description .']]>35 <![CDATA[' . $title . '<br>'.$description.'<br>'.$targeturl.']]> 35 36 </midroll> 36 37 '; -
contus-video-gallery/trunk/readme.txt
r758958 r778159 3 3 Tags: Video Player plugin, video, flash player, flv player, WORDPRESS VIDEO GALLERY, flv player wordpress, hd flv player, youtube plugin, youtube Video Player, high definition Video Player, flash, play flv wordpress, player, Video Plugin, wp flv player, wp flv plugin, flv player 2009, WORDPRESS VIDEO GALLERY, wp flv, wordpress flv plugin, wp hd flv player, flv player plugin, wordpress flv player 4 4 Requires at least: 2.8 5 Tested up to: 3.5. 26 Stable tag: 2. 25 Tested up to: 3.5.1 6 Stable tag: 2.3 7 7 Get the most exciting FLV player in the internet, designed and modified to suit your Wordpress websites. Installing this Video Plugin is real easy and if you have any difficulty in installation, contact our Video Player support team and quickly resolve your issue. You can either download this Video Plugin directly from our website or through Wordpress plugins page itself. This WORDPRESS VIDEO GALLERY Version has many advanced features that you cannot find elsewhere, such as that you can play youtube videos directly through this player, and it can also aptly be called as a youtube player. 8 8 … … 27 27 * Supports RTL feature 28 28 * Admin option to enable/disable Recent Videos, Popular Videos and Featured Videos 29 * Admin option to enable/disable Rating 29 30 * Easy to manage widgets like popular, featured, recent, related, video search, video categories. 30 31 * Flexible player size … … 44 45 * Option to include a well-suited meta information 45 46 * Option to add RTMP based videos 47 * Option to add Embed code based videos 48 * Rating option for the videos 46 49 * Language pack can be set on any preferred language 47 50 * Provides FFMPEG path in backend and generates timer for upload video. … … 66 69 67 70 == Screenshots == 71 Manage Video: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/video-uploadlist.JPG 68 72 69 1. **Video gallery(Front-end)** 73 Upload video file: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/upload-file.JPG 70 74 71 2. **Manage Video** - Displays Uploaded videos and details about the plugin. 75 Upload youtube URL: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/video-upload-file.JPG 72 76 73 3. **Upload video file** - Here you can upload video using Upload Method 77 Upload custom URL: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/custom-url.JPG 74 78 75 4. **Upload youtube URL** - Here you can upload video from YouTube 79 Manage video widgets: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/widgets.JPG 76 80 77 5. **Upload custom URL** - Here you can upload video via URL eg: http://www.domainname.com/foldername/video.mp4 81 Video gallery(Front-end): http://www.hdflvplayer.net/wordpress-video-gallery/gallery/front-video-page.JPG 78 82 79 6. **Upload RTMP Video** - You can add RTMP Streaming video 83 Videos(recent,popular,feature): http://www.hdflvplayer.net/wordpress-video-gallery/gallery/recent-popular.JPG 80 84 81 7. **Gallery settings** - You can control Player and Plugin here. 82 83 8. **Manage video widgets** - We are providing 5 widgets. They are : Popular, Recent, Featured, Related videos, Video Search and Video Categories. You can assign the above mentioned widgets in any position of your template. 84 85 9. **Videos(recent,popular,feature, Video Categories)** - We are also displaying Popular, Recent, Featured, Related videos and Video Categories in content page under player. 85 Gallery settings: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/gallery-settings.JPG . 86 86 87 87 == Other Notes == -
contus-video-gallery/trunk/sortorder.php
r756214 r778159 4 4 Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery 5 5 Description: Video hitcount file. 6 Version: 2. 26 Version: 2.3 7 7 Author: Apptha 8 8 Author URI: http://www.apptha.com
Note: See TracChangeset
for help on using the changeset viewer.