Plugin Directory

Changeset 778159


Ignore:
Timestamp:
09/25/2013 07:03:54 AM (13 years ago)
Author:
hdflvplayer
Message:

Commit for updating WordPress Video Gallery version 2.3

Location:
contus-video-gallery/trunk
Files:
5 added
69 edited

Legend:

Unmodified
Added
Removed
  • contus-video-gallery/trunk/ContusFeatureVideos.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Wordpress video gallery Featured videos widget.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    6666<?php
    6767        $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'");
    7069?>
    7170        <!-- For Featured Videos -->
     
    7372        echo $before_widget;
    7473        $fetched            = '';
     74        $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1");
    7575        $viewslang          = __('Views', 'video_gallery');
    7676        $viewlang           = __('View', 'video_gallery');
     
    9494        $div                .='<ul class="ulwidget">';
    9595
    96 ## were there any posts found?
     96        ## were there any posts found?
    9797        if (!empty($features)) {
    98 ## posts were found, loop through them
    99             $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);
    100100            $_imagePath     = APPTHA_VGALLERY_BASEURL . 'images' . DS;
    101101
     
    107107                    $imageFea = $_imagePath . 'nothumbimage.jpg';
    108108                } else {
    109                     if ($file_type == 2) {          ##For uploaded image
     109                    if ($file_type == 2 || $file_type == 5 ) {          ##For uploaded image
    110110                        $imageFea = $image_path . $imageFea;
    111111                    }
     
    113113                $vidF       = $feature->vid;
    114114                $name       = strlen($feature->name);
    115 ##output to screen
     115                ##output to screen
    116116                $div        .='<li class="clearfix sideThumb">';
    117117                $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>';
     
    120120                }
    121121                $div        .='</div>';
    122                 $div        .='<div class="side_video_info"><h6><a href="' . $guid . '">';
     122                $div        .='<div class="side_video_info"><a class="videoHname" href="' . $guid . '">';
    123123                if ($name > 25) {
    124                     $div    .= substr($feature->name, 0, 25) . '';
     124                    $div    .= substr($feature->name, 0, 25) . '..';
    125125                } else {
    126126                    $div    .= $feature->name;
    127127                }
    128                 $div        .='</a></h6>';
     128                $div        .='</a>';
    129129                $div        .='<div class="clear"></div>';
    130130                if ($feature->hitcount > 1)
     
    133133                    $viewlanguage = $viewlang;
    134134                $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                           
    136147                $div        .='<div class="clear"></div>';
    137148                $div        .='<div class="clear"></div>';
  • contus-video-gallery/trunk/ContusPopularVideos.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Wordpress video gallery popular videos widget.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    6565<?php
    6666        $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'");
    6968?>
    7069
     
    7473        echo $before_widget;
    7574        $fetched            = '';
     75        $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1");
    7676        $viewslang          = __('Views', 'video_gallery');
    7777        $viewlang           = __('View', 'video_gallery');
     
    9898        if (!empty($populars)) {
    9999            ## 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);
    101101            $_imagePath     = APPTHA_VGALLERY_BASEURL . 'images' . DS;
    102102            foreach ($populars as $popular) {
     
    107107                        $imagePop = $_imagePath . 'nothumbimage.jpg';
    108108                    } else {
    109                         if ($file_type == 2) {          ##For uploaded image
     109                        if ($file_type == 2 || $file_type == 5 ) {          ##For uploaded image
    110110                            $imagePop = $image_path . $imagePop;
    111111                        }
     
    120120                        }
    121121                        $div .='</div>';
    122                     $div     .='<div class="side_video_info"><h6><a href="' . $guid . '">';
     122                    $div     .='<div class="side_video_info"><a class="videoHname" href="' . $guid . '">';
    123123                    if ($name > 25) {
    124                         $div .= substr($popular->name, 0, 25) . '';
     124                        $div .= substr($popular->name, 0, 25) . '..';
    125125                    } else {
    126126                        $div .= $popular->name;
    127127                    }
    128                     $div .='</a></h6><div class="clear"></div>';
     128                    $div .='</a><div class="clear"></div>';
    129129                    if($popular->hitcount>1)
    130130                                $viewlanguage = $viewslang;
     
    133133                        $div .='<span class="views">'.$popular->hitcount . ' '. $viewlanguage;
    134134                        $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
    135145                    $div .='<div class="clear"></div>';
    136146                    $div .='</div>';
  • contus-video-gallery/trunk/ContusRecentVideos.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Wordpress video gallery Recent videos widget.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    6767<?php
    6868        $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'");
    7170?>
    7271
     
    7675        echo $before_widget;
    7776        $fetched                = '';
     77        $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1");
    7878        $viewslang              = __('Views', 'video_gallery');
    7979        $viewlang               = __('View', 'video_gallery');
     
    9898        if (!empty($posts)) {
    9999        ## 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);
    101101            $_imagePath         = APPTHA_VGALLERY_BASEURL . 'images' . DS;
    102102            foreach ($posts as $post) {
     
    107107                    $image      = $_imagePath . 'nothumbimage.jpg';
    108108                } else {
    109                     if ($file_type == 2) {          ##For uploaded image
     109                    if ($file_type == 2 || $file_type == 5 ) {          ##For uploaded image
    110110                        $image  = $image_path . $image;
    111111                    }
     
    121121                $div            .= '</div>';
    122122
    123                 $div            .= '<div class="side_video_info"><h6><a href="' . $guid . '">';
     123                $div            .= '<div class="side_video_info"><a class="videoHname" href="' . $guid . '">';
    124124                if ($name > 25) {
    125                     $div        .= substr($post->name, 0, 25) . '';
     125                    $div        .= substr($post->name, 0, 25) . '..';
    126126                } else {
    127127                    $div        .= $post->name;
    128128                }
    129                 $div            .= '</a></h6><div class="clear"></div>';
     129                $div            .= '</a><div class="clear"></div>';
    130130                if ($post->hitcount > 1)
    131131                    $viewlanguage = $viewslang;
     
    134134                $div             .= '<span class="views">' . $post->hitcount . ' ' . $viewlanguage;
    135135                $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
    136146                $div             .= '<div class="clear"></div>';
    137147                $div             .= '</div>';
  • contus-video-gallery/trunk/ContusRelatedVideos.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Wordpress video gallery Related videos widget.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    7272            $videoID            = intval($_GET['p']);
    7373        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");
    7775        if (!empty($videoID)) {
    7876            $videoID            = $wpdb->get_var("SELECT vid FROM " . $wpdb->prefix . "hdflvvideoshare WHERE slug='$videoID'");
    7977            if (!empty($videoID)) {
    8078            $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'");
    8380            $site_url           = get_bloginfo('url');
     81            $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1");
    8482
    8583            $viewslang          = __('Views', 'video_gallery');
     
    102100                $countF         = $moreF[0]->relatedcontus;
    103101            }
     102            }
     103        }
     104        if(!empty($video_playlist_id)){
     105            $link = '<a href="' . $site_url . '/?page_id=' . $moreName . '&amp;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)) {
    104113            ## were there any posts found?
    105114            if (!empty($relatedVideos)) {
    106115            ## 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);
    108117                $_imagePath     = APPTHA_VGALLERY_BASEURL . 'images' . DS;
    109118                foreach ($relatedVideos as $feature) {
     
    114123                        $imageFea = $_imagePath . 'nothumbimage.jpg';
    115124                    } else {
    116                         if ($file_type == 2) {          ##For uploaded image
     125                        if ($file_type == 2 || $file_type == 5 ) {          ##For uploaded image
    117126                            $imageFea = $image_path . $imageFea;
    118127                        }
     
    127136                    }
    128137                    $div        .= '</div>';
    129                     $div        .= '<div class="side_video_info"><h6><a href="' . $guid . '">';
     138                    $div        .= '<div class="side_video_info"><a class="videoHname" href="' . $guid . '">';
    130139                    if ($name > 25) {
    131                         $div    .= substr($feature->name, 0, 25) . '';
     140                        $div    .= substr($feature->name, 0, 25) . '..';
    132141                    } else {
    133142                        $div    .= $feature->name;
    134143                    }
    135                     $div        .= '</a></h6><div class="clear"></div>';
     144                    $div        .= '</a><div class="clear"></div>';
    136145                    if ($feature->hitcount > 1)
    137146                        $viewlanguage = $viewslang;
     
    140149                    $div        .= '<span class="views">' . $feature->hitcount . ' ' . $viewlanguage;
    141150                    $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
    142161                    $div        .= '</span>';
    143162                    $div        .= '<div class="clear"></div>';
     
    147166                }
    148167            }
    149         }
    150         else {
     168             else {
    151169            $div                .= "<li>" . __('No Related videos', 'video_gallery') . "</li>";
    152170        }
  • contus-video-gallery/trunk/ContusVideoCategory.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Wordpress Video Gallery Video Category Widget.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    8787                $playlist_id    = $feature->pid;
    8888                $div            .= '<li>';
    89                 $div            .= '<div class="clear"></div><a class="playlistName"  href="' . $site_url . '?page_id=' . $moreName . '&amp;playid=' . $playlist_id . '">' . $fetched . '</a>';
     89                $div            .= '<div class="clear"></div><a class="videoHname "  href="' . $site_url . '?page_id=' . $moreName . '&amp;playid=' . $playlist_id . '">' . $fetched . '</a>';
    9090                $div            .= '</li>';
    9191            }
     
    9595        ## end list
    9696        if (($show < $countCategories)) {
    97             $div                .= '<li  class="right"><a href="' . $site_url . '/?page_id=' . $moreName . '&amp;more=categories">' . __('More Categories', 'video_gallery') . '</a></li>';
     97            $div                .= '<li><div class="right video-more"><a href="' . $site_url . '/?page_id=' . $moreName . '&amp;more=categories">' . __('More Categories', 'video_gallery') . ' &#187;</a></div></li>';
    9898        }
    9999        $div                    .= '</ul></div>';
  • contus-video-gallery/trunk/ContusVideoSearch.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Wordpress Video Gallery Video Search Widget.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/ajax/videoupload.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Ajax Video Upload.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/controllers/ajaxplaylistController.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Ajax Playlist Controller.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/controllers/playlistController.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Playlist Controller.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/controllers/videoadsController.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Video Ad Controller.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    6969                    $adtype = filter_input(INPUT_POST, 'adtype');
    7070                    $videoadFilepath = filter_input(INPUT_POST, 'normalvideoform-value');
     71                    $dir                    = dirname(plugin_basename(__FILE__));
     72                    $dirExp                 = explode('/', $dir);
     73                    $dirPage                = $dirExp[0];
    7174                    if(empty($videoadFilepath))
    7275                    $videoadFilepath = filter_input(INPUT_POST, 'videoadfilepath');
    7376                    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);
    7578                        $videoadFilepath=$image_path.$videoadFilepath;
    7679                    }
  • contus-video-gallery/trunk/admin/controllers/videosController.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Video Controller.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    1919        public $_search;
    2020        public $_videosearchQuery;
     21        public $_settingsData;
    2122        public $_addnewVideo;
    2223        public $_searchBtn;
     
    6566                $slug = sanitize_title($videoName);
    6667                $videoDescription = filter_input(INPUT_POST, 'description');
     68                $embedcode = filter_input(INPUT_POST, 'embed_code');
    6769                $tags_name = filter_input(INPUT_POST, 'tags_name');
    6870                $seo_tags_name=stripslashes($tags_name);
     
    122124                } else {
    123125                    $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);
    125130                    $act_filepath1=$video_path.$act_filepath1;
    126131                    $act_filepath = addslashes(trim($_POST['customurl']));
     
    189194                    $act_opimage = $pre_image;
    190195                    }
     196                if(!empty($embedcode)){
     197                    $file_type = '5';
     198                    }
    191199
    192200                $videoData = array(
    193201                    'name' => $videoName,
    194202                    'description' => $videoDescription,
     203                    'embedcode' => $embedcode,
    195204                    'file' => $act_filepath,
    196205                    'file_type' => $file_type,
     
    243252                                    if ($sorder[$new_list1] == '')
    244253                                        $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')");
    246255                                }
    247256                            }
    248257                            $i = 0;
    249258                            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'");
    251260                                $i++;
    252261                            }
     
    603612$displayMsg = $videoOBJ->get_message();
    604613$searchMsg = $videoOBJ->_videosearchQuery;
    605 
     614$settingsGrid = $videoOBJ->_settingsData;
    606615$adminPage = filter_input(INPUT_GET, 'page');
    607616if ($adminPage == 'video') {//including video form if starts
  • contus-video-gallery/trunk/admin/controllers/videosettingsController.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Video Settings Controller.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    3535                $keydisqusApps = filter_input(INPUT_POST, 'keydisqusApps');
    3636                $embedVisible = filter_input(INPUT_POST, 'embed_visible');
     37                $ratingscontrol = filter_input(INPUT_POST, 'ratingscontrol');
    3738                $downLoad = filter_input(INPUT_POST, 'download');
    3839                $playerTimer = filter_input(INPUT_POST, 'timer');
     
    108109                $progressControl = filter_input(INPUT_POST, 'progressControl');
    109110                $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               
    111132                $settingsData = array(
    112133                    'default_player' => $default_player,
     
    118139                    'keydisqusApps' => $keydisqusApps,
    119140                    'embed_visible' => $embedVisible,
     141                    'ratingscontrol' => $ratingscontrol,
    120142                    'download' => $downLoad,
    121143                    'timer' => $playerTimer,
     
    155177                    'playlist' => $playList,
    156178                    '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),
    175180                    'playlist_open' => $playlist_open,
    176181                    'showPlaylist' => $showPlaylist,
     
    188193                    'imageDefault' => $imageDefault,
    189194                );
    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__));
    191199                if($_FILES['logopath']["name"] != ''){
    192200                $allowedExtensions = array('jpg','jpeg','png','gif');
     
    202210                                    $settingsData['logopath'] = $logopath;
    203211                                }
    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');
    212219                $updateflag = $this->update_settings($settingsData, $settingsDataformat);
    213220                if ($updateflag) {
  • contus-video-gallery/trunk/admin/css/adminsettings.css

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: Admin Settings css file
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/css/jquery.ui.all.css

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery ui css file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/css/jquery.ui.base.css

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery ui base css file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/css/jquery.ui.core.css

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery ui core css file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/css/jquery.ui.theme.css

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquey ui theme css file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/js/admin.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: Admin action javacript file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
     
    6161    }
    6262
    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";
     63function Videoadtype(adtype)
     64{
     65    if(adtype=="prepostroll")
     66    {
    6967       document.getElementById('admethod').value = "prepost";
    7068       document.getElementById('videoadmethod').style.display = "block";
    7169       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";
    7275       document.getElementById('videoimaaddetails').style.display = "none";
    7376    }
    7477
    75     if(document.getElementById('midroll').checked==true)
     78    if(adtype=="midroll")
    7679    {
    7780        document.getElementById('upload2').style.display = "none";
     
    8083        document.getElementById('videoadurl').style.display = "none";
    8184        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";
    8290        document.getElementById('videoimaaddetails').style.display = "none";
    8391    }
    84     if(document.getElementById('imaad').checked==true)
     92   else if(adtype=="imaad")
    8593    {
    8694        document.getElementById('upload2').style.display = "none";
     
    8896        document.getElementById('admethod').value = "imaad";
    8997        document.getElementById('videoadurl').style.display = "none";
    90         document.getElementById('videoaddetails').style.display = "none";
     98        document.getElementById('videoaddetails').style.display = "block";
    9199        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 = "";
    92105        document.getElementById('imaadTypevideo').checked=true;
    93         changeimaadtype();
    94     }
    95 
    96 
    97 }
    98 function Videoadmethod()
    99 {
    100     if(document.getElementById('filebtn').checked==true)
    101     {
     106        changeimaadtype('videoad');
     107    }
     108
     109
     110}
     111function Videoadtypemethod(adtype)
     112{ 
     113     if(adtype=="fileuplo")
     114    { 
    102115        document.getElementById('upload2').style.display = "block";
    103116        document.getElementById('videoadurl').style.display = "none";
     
    105118    }
    106119
    107     if(document.getElementById('urlbtn').checked==true)
    108     {
     120    else if(adtype=="urlad")
     121    { 
    109122        document.getElementById('upload2').style.display = "none";
    110123        document.getElementById('videoadurl').style.display = "block";
     
    114127
    115128}
    116 function changeimaadtype()
    117 {
    118     if(document.getElementById('imaadTypetext').checked==true)
     129function changeimaadtype(adtype)
     130{
     131     if(adtype=="textad")
    119132    {
    120133        document.getElementById('adimapath').style.display = "none";
     
    124137        document.getElementById('adimacontentid').style.display = "";
    125138        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")
    130143    {
    131144        document.getElementById('adimapath').style.display = "";
     
    135148        document.getElementById('adimacontentid').style.display = "none";
    136149        document.getElementById('adimachannels').style.display = "none";
    137 
     150         document.getElementById('imaadTypevideo').checked=true;
    138151    }
    139152}
     
    197210        return false;
    198211    }
    199     } else if(document.getElementById('midroll').checked==true && document.getElementById('name').value == ''){
     212    } else if(document.getElementById('name').value == ''){
    200213        document.getElementById('nameerrormessage').innerHTML = 'Enter Ad Name';
    201214        document.getElementById('name').focus();
    202215        return false;
    203216
    204     } else if(document.getElementById('imaad').checked==true){
     217    }
     218    if(document.getElementById('imaad').checked==true){
    205219    if(document.getElementById('imaadTypetext').checked==true && document.getElementById('publisherId').value == '')
    206220    {
     
    221235        return false;
    222236
    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 == ''){
    225241        document.getElementById('imaadpatherrormessage').innerHTML = 'Enter IMA Ad Path';
    226242        document.getElementById('imaadpath').focus();
    227243        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    }
    229256    }
    230257   
     
    392419{
    393420    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";
    395422    document.forms[form_handle].submit();
    396423}
     
    420447            document.getElementById(divprefix + "-upload-message").style.display = "none";
    421448            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';
    423450            document.getElementById(divprefix + "-upload-cancel").innerHTML = '<a style="float:right;padding-right:10px;" href=javascript:cancelUpload("'+form_handle+'") name="submitcancel">Cancel</a>';
    424451            break;
     
    430457            document.getElementById(divprefix + "-upload-message").style.display = "none";
    431458            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';
    433460            document.getElementById(divprefix + "-upload-cancel").innerHTML = '<a style="float:right;padding-right:10px;" href=javascript:cancelUpload("'+form_handle+'") name="submitcancel">Cancel</a>';
    434461            break;
     
    442469            break;
    443470        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';
    445472            document.getElementById(divprefix + "-upload-status").innerHTML = "";
    446473            document.getElementById(divprefix + "-upload-message").style.display = "";
     
    452479
    453480        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';
    455482            document.getElementById(divprefix + "-upload-status").innerHTML = " ";
    456483            document.getElementById(divprefix + "-upload-message").style.display = "";
     
    645672        }
    646673    }
    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 === ''){
    648690        document.getElementById('titlemessage').innerHTML = 'Enter Title';
    649691        return false;
     
    652694    for (var i = 0; i < check_box.length; i++)
    653695    {
    654         if (check_box[i].type == 'checkbox')
     696        if (check_box[i].type === 'checkbox')
    655697        {
    656698            if (check_box[i].checked) {
  • contus-video-gallery/trunk/admin/js/jquery-1.4.4.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery core file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/js/jquery-ui-1.7.1.custom.min.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery ui custom file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/js/jquery.ui.core.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery ui core file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/js/jquery.ui.mouse.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery ui mouse file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/js/jquery.ui.sortable.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery ui sortable file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/js/jquery.ui.widget.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery ui widget file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/models/ajaxplaylist.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: ajax playlist model file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/models/playlist.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: playlist model file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/models/video.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: video model file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/models/videoad.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: video ad model file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/models/videosetting.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: video setting model file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/views/ajaxplaylist/ajaxplaylist.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Ajax playlist view file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/views/playlist/addplaylist.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: add playlist model file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    1010*/
    1111?>
     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>
    1220<div class="apptha_gallery">
    1321<?php       if(isset($playListId)){ ?>
     
    5361                        <input type="hidden" name="ordering" id="ordering" value="<?php echo $Playlistorder+1; ?>">
    5462                    <?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" />
    5766                    </form>
    5867                </div>
  • contus-video-gallery/trunk/admin/views/playlist/playlist.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: playlist model file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/views/video/addvideo.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Add video view file.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    1111?>
    1212<!-- 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>
    1321<?php
    1422$act_vid = 0;
    1523$site_url = get_option('siteurl');
    16 $contus = dirname(plugin_basename(__FILE__));
    1724if (isset($_GET['videoId']))
    1825    $act_vid = (int) $_GET['videoId'];
     
    2734<div class="apptha_gallery">
    2835<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>
    3138
    3239    <script type="text/javascript">
     
    3542            if(t2.value == "y" || t2 == "y")
    3643            {
    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 = "";
    3849                document.getElementById('youtube').style.display = "none";
     50                document.getElementById('embedvideo').style.display = "none";
    3951                document.getElementById('customurl').style.display = "none";
    4052            } else if(t2.value == "c" || t2 == "c"){
    4153                document.getElementById('youtube').style.display = "block";
    4254                document.getElementById('upload2').style.display = "none";
     55                document.getElementById('embedvideo').style.display = "none";
    4356                document.getElementById('customurl').style.display = "none";
    4457            } else if(t2.value == "url" || t2 == "url"){
    4558                document.getElementById('customurl').style.display = "block";
     59                document.getElementById('embedvideo').style.display = "none";
    4660                document.getElementById('islive_visible').style.display = "none";
    4761                document.getElementById('stream1').style.display = "none";
     
    5367                document.getElementById('islive_visible').style.display = "";
    5468                document.getElementById('stream1').style.display = "";
     69                document.getElementById('embedvideo').style.display = "none";
    5570                document.getElementById('hdvideourl').style.display = "none";
    5671                document.getElementById('youtube').style.display = "none";
    5772                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";
    5886            }
    5987        }
     
    89117                <span><input type="radio" name="agree" id="btn3" value="url" onClick="t1(this)" /> <?php _e('Custom URL', 'video_gallery'); ?></span>
    90118                <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 } ?>
    91122            </h3>
    92123                   
     
    106137                                <p><?php _e('Here you need to enter the video URL', 'video_gallery') ?></p>
    107138                                <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>
    108151                            </td>
    109152                        </tr>
     
    189232                                                    </form>
    190233                                                    <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>
    192235                                                                               <table class="form-table">
    193236                                                                                   <tr id="ffmpeg_disable_new1" name="ffmpeg_disable_new1"><td style="vertical-align: middle;"><?php _e('Upload Video', 'video_gallery') ?></td>
     
    204247                                                                                           <span id="uploadmessage" style="display: block; margin-top:10px;color:red;font-size:12px;font-weight:bold;"></span>
    205248                                                                                           <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"/>
    207250                                                                                                   <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>
    208251                                                                                               <div style="float:right"> <span id="f1-upload-cancel">
     
    231274
    232275                                                                                           <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" />
    234277                                                                                                   <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>
    235278                                                                                               <div style="float:right"><span id="f2-upload-cancel">
     
    254297                                                                                                   <input type="button" class="button" name="uploadBtn" value="Upload Image"  disabled="disabled" onclick="return addQueue(this.form.name,this.form.myfile.value);" />
    255298                                                                                                   <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))
    257300                                                                                   echo $videoEdit->image; ?></label>
    258301                                                                                               </form>
     
    260303                                                                                           <span id="uploadthumbmessage" style="display: block; margin-top:10px;color:red;font-size:12px;font-weight:bold;"></span>
    261304                                                                                           <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" />
    263306                                                                                                   <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>
    264307                                                                                               <div style="float:right"> <span id="f3-upload-cancel">
     
    285328                                                                                           </div>
    286329                                                                                           <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" />
    288331                                                                                                   <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>
    289332                                                                                               <div style="float:right"><span id="f4-upload-cancel">
     
    311354                                                                           <input type="hidden" name="hdvideoform-value" id="hdvideoform-value" value="<?php if (isset($videoEdit->file_type) && $videoEdit->file_type == 2)
    312355                                                                                   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))
    314357                                                                                   echo $videoEdit->image; ?>" />
    315358                                                                           <input type="hidden" name="previewimageform-value" id="previewimageform-value"  value="<?php if (isset($videoEdit->file_type) && $videoEdit->file_type == 2)
     
    317360                                                                           <input type="hidden" name="youtube-value" id="youtube-value"  value="" />
    318361                                                                           <input type="hidden" name="streamerpath-value" id="streamerpath-value" value="" />
     362                                                                           <input type="hidden" name="embed_code" id="embed_code" value="" />
    319363                                                                           <input type="hidden" name="islive-value" id="islive-value" value="0" />
    320364                                                                           <input type="hidden" name="customurl" id="customurl1"  value="" />
     
    401445                                                                               }
    402446                ?> 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') ?>
    404448                                                                           </td>
    405449                                                                       </tr>
     
    434478                    ?>
    435479
    436                                                                            <div class="stuffbox">
     480                                                                           <div class="stuffbox" id="adstypebox">
    437481                                                                               <h3 class="hndle"><span><?php _e('Select Ads', 'video_gallery'); ?></span></h3>
    438482                                                                               <div class="inside" style="margin:15px;">
     
    639683                                                                                           document.getElementById("btn4").checked = true;
    640684<?php
     685                                                                                       } elseif (isset($videoEdit->file_type) && $videoEdit->file_type == 5) {
     686?>
     687                                                                                           t1("embed");
     688                                                                                           document.getElementById("btn5").checked = true;
     689<?php
    641690                                                                                       }else{
    642691                                                                                           ?>
  • contus-video-gallery/trunk/admin/views/video/video.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Video view file.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    7070            <br><br>
    7171
    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>
    7373
    7474            <?php _e("id - The Video ID, you can find the video id on 'All Videos' admin page.", "video_gallery"); ?><br><br>
    7575            <?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>
    7677
    7778            <?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>
     
    7980            <?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>
    8081
    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'); ?>
    8288        </div>
    8389
  • contus-video-gallery/trunk/admin/views/videoads/addvideoads.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Add video ads view file.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    1010 */
    1111?>
     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>
    1221<div class="apptha_gallery">
    1322    <?php if (isset($videoadId)) {
     
    4655                                                   echo 'checked="checked" ';
    4756                                               }
    48                                                ?> onClick="Videoadtype()"/> Preroll/Postroll Ad
     57                                               ?> onClick="Videoadtype('prepostroll')"/> Preroll/Postroll Ad
    4958                            </span>
    5059                            <span>
     
    5362                                                   echo 'checked="checked" ';
    5463                                               }
    55                                                ?> onClick="Videoadtype()" />  Midroll Ad
     64                                               ?> onClick="Videoadtype('midroll')" />  Midroll Ad
    5665                            </span>
    5766                            <span>
     
    6069                                                   echo 'checked="checked" ';
    6170                                               }
    62                                                ?> onClick="Videoadtype()" />  IMA Ad
     71                                               ?> onClick="Videoadtype('imaad')" />  IMA Ad
    6372                            </span>
    6473                        </h3>
     
    6776                                <td  width="150"><?php _e('Select File Path', 'video_gallery') ?></td>
    6877                                <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
    7980                                </td>
    8081                        </tr>
     
    9293                                        <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);" />
    9394                                        <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>
    9596                                    </form>
    9697                                    <?php _e('<b>Supported video formats:</b>( MP4, M4V, M4A, MOV, Mp4v or F4V)', 'video_gallery') ?>
     
    9899                                <span id="uploadmessage" style="display: block; margin-top:10px;margin-left:300px;color:red;font-size:12px;font-weight:bold;"></span>
    99100                                <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"/>
    101102                                        <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>
    102103                                    <div style="float:right"> <span id="f1-upload-cancel">
     
    116117                </div>
    117118                <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                   
    152120                    <table id="videoimaaddetails" style="display: none;" class="form-table">
    153121                        <tr>
    154122                <td scope="row"  width="150"><?php _e('IMA Ad Type', 'video_gallery') ?></td>
    155123                <td>
    156                                     <input type="radio" name="imaadType" id="imaadTypetext" onclick="changeimaadtype();" value="1" <?php
     124                                    <input type="radio" name="imaadType" id="imaadTypetext" onclick="changeimaadtype('textad');" value="1" <?php
    157125                                if (isset($videoadEdit->imaadType) && $videoadEdit->imaadType == 1) {
    158126                                    echo "checked";
     
    161129
    162130
    163                                 <input type="radio" name="imaadType" id="imaadTypevideo" onclick="changeimaadtype();" value="0"  <?php
     131                                <input type="radio" name="imaadType" id="imaadTypevideo" onclick="changeimaadtype('videoad');" value="0"  <?php
    164132                                if (isset($videoadEdit->imaadType) && $videoadEdit->imaadType == 0) {
    165133                                    echo "checked";
     
    170138                <td scope="row"  width="150"><?php _e('IMA Ad Path', 'video_gallery') ?></td>
    171139                <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 '';} ?>" />
    173141                                <span id="imaadpatherrormessage" style="display: block;color:red; "></span>
    174142                </td>
     
    177145                            <td scope="row"  width="150"><?php _e('Ad Slot Width', 'video_gallery') ?></td>
    178146                            <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 : ""; ?>"  />
    180148                            </td>
    181149                        </tr>
     
    183151                            <td scope="row"  width="150"><?php _e('Ad Slot Height', 'video_gallery') ?></td>
    184152                            <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 : ""; ?>"  />
    186154                            </td>
    187155                        </tr>
     
    203171                <td><input type="text" size="50" name="channels" id="channels" value="<?php echo (isset($videoadEdit->channels)) ? $videoadEdit->channels : ''; ?>" />
    204172                                <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>
    205207                                </td>
    206208            </tr>
     
    246248<?php if (isset($videoadId)) { ?>
    247249                                    <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 ""; } ?>"  />
    249252                    <input type="hidden" name="admethod" id="admethod" value="<?php echo (isset($videoadEdit->admethod)) ? $videoadEdit->admethod : ""; ?>"  />
    250253                    <input type="hidden" name="adtype" id="adtype" value="<?php echo (isset($videoadEdit->adtype)) ? $videoadEdit->adtype : ""; ?>"  />
     
    260263?>
    261264document.getElementById("filebtn").checked = true;
    262 Videoadmethod();
     265Videoadtypemethod('fileuplo');
    263266<?php
    264267} else {
    265268?>
    266269document.getElementById("urlbtn").checked = true;
    267 Videoadmethod();
     270Videoadtypemethod('urlad');
    268271<?php
    269272}
     
    271274?>
    272275document.getElementById("midroll").checked = true;
    273 Videoadtype();
     276Videoadtype('midroll');
    274277<?php
    275278}else if (isset($videoadEdit->admethod) && $videoadEdit->admethod == 'imaad') {
    276279?>
    277280document.getElementById("imaad").checked = true;
    278 document.getElementById('imaadTypevideo').checked=true;
    279 Videoadtype();
     281Videoadtype('imaad');
    280282<?php
    281283}else {
    282284?>
    283285document.getElementById("prepostroll").checked = true;
    284 Videoadtype();
     286Videoadtype('prepostroll');
    285287<?php
    286288}
     289 if(!empty($videoadEdit->imaadpath)){
     290       ?> changeimaadtype('videoad');<?php
     291    } else {
     292        ?> changeimaadtype('textad'); <?php
     293    }
    287294?>
    288295</script>
  • contus-video-gallery/trunk/admin/views/videoads/videoads.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Video ad view file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/admin/views/videosetting.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: video settings view file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    1111?>
    1212<!--   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>
    1322<div class="apptha_gallery">
    1423<h2 class="nav-tab-wrapper">
     
    209218                                <td><input type='checkbox' class='check' <?php if ($settingsGrid->embed_visible == 1) { ?> checked <?php } ?> name="embed_visible" value="1" size=45  /></td>
    210219                                    </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>
    211224                                </table>
    212225                            </div>
     
    219232                                    <tr>
    220233                                        <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  />
    222235                                        </td>
    223236                                    </tr>
     
    225238                                    <tr>
    226239                                        <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  />
    228241                                        </td>
    229242                                    </tr>
     
    231244                                    <tr>
    232245                                        <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  />
    234247                                        </td>
    235248                                    </tr>
     
    237250                                    <tr>
    238251                                        <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  />
    240253                                        </td>
    241254                                    </tr>
     
    243256                                    <tr>
    244257                                        <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  />
    246259                                        </td>
    247260                                    </tr>
     
    249262                                    <tr>
    250263                                        <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  />
    252265                                        </td>
    253266                                    </tr>
     
    255268                                    <tr>
    256269                                        <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  />
    258271                                        </td>
    259272                                    </tr>
     
    261274                                    <tr>
    262275                                        <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  />
    264277                                        </td>
    265278                                    </tr>
     
    267280                                    <tr>
    268281                                        <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  />
    270283                                        </td>
    271284                                    </tr>
     
    273286                                    <tr>
    274287                                        <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  />
    276289                                        </td>
    277290                                    </tr>
     
    279292                                    <tr>
    280293                                        <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  />
    282295                                        </td>
    283296                                    </tr>
     
    285298                                    <tr>
    286299                                        <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  />
    288301                                        </td>
    289302                                    </tr>
     
    291304                                    <tr>
    292305                                        <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  />
    294307                                        </td>
    295308                                    </tr>
     
    297310                                    <tr>
    298311                                        <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  />
    300313                                        </td>
    301314                                    </tr>
     
    303316                                    <tr>
    304317                                        <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  />
    306319                                        </td>
    307320                                    </tr>
     
    309322                                    <tr id="related_bgColor" style="display:none;">
    310323                                        <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  />
    312325                                        </td>
    313326                                    </tr>
     
    315328                                    <tr id="related_scroll_barColor" style="display:none;">
    316329                                        <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  />
    318331                                        </td>
    319332                                    </tr>
     
    321334                                    <tr id="related_scroll_barbgColor" style="display:none;">
    322335                                        <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  />
    324337                                        </td>
    325338                                    </tr>
     
    445458                        </div>
    446459                  <div class="portlet">
    447                             <div class="portlet-header"><b><?php _e("Facebook Settings", "video_gallery"); ?></b></div>
     460                            <div class="portlet-header"><b><?php _e("Comment Settings", "video_gallery"); ?></b></div>
    448461                    <div class="portlet-content">
    449462                        <table class="form-table">
  • contus-video-gallery/trunk/configXML.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: ConfigXML file for player.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    2020global $site_url;
    2121
     22$dir                    = dirname(plugin_basename(__FILE__));
     23$dirExp                 = explode('/', $dir);
     24$dirPage                = $dirExp[0];
     25
    2226$contusOBJ              = new ContusVideoView();
    2327$settingsData           = $contusOBJ->_settingsData;
    2428$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);
    2630
    2731$playXml                = APPTHA_VGALLERY_BASEURL . 'myextractXML.php';
     
    5862$postrollAds            = ($settingsData->postroll == 0) ? 'true' : 'false';
    5963$midroll_ads            = ($settingsData->midroll_ads == 0) ? 'true' : 'false';
    60 $youtube_hide_logo      = ($settingsData->hideLogo == 1) ? 'true' : 'false';
    6164$trackCode              = ($settingsData->trackCode == 0) ? '' : $settingsData->trackCode;
     65$player_colors          = unserialize($settingsData->player_colors);
    6266
     67$logotarget             = $settingsData->logo_target;
     68if (!preg_match("~^(?:f|ht)tps?://~i", $logotarget)) {
     69        $logotarget = "http://" . $logotarget;
     70    }
     71   
    6372/* Configuration Start */
    6473echo '<?xml version="1.0" encoding="utf-8"?>';
     
    7483        <logoalpha>' . $settingsData->logoalpha . '</logoalpha>
    7584        <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>
    95104        <skin>' . $skinPath . '</skin>
    96105        <skin_autohide>' . $skinAutohide . '</skin_autohide>
  • contus-video-gallery/trunk/css/jquery.jcarousel.css

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jcarousel css file
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
     
    2828left: 0;
    2929margin: 0;
    30 padding: 0 !important;
     30padding: 5px 0 !important;
    3131}
    3232.jcarousel-list li,
  • contus-video-gallery/trunk/css/rtl.css

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: Plugin css file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/css/skins.css

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: Skins css file
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
     
    99*/
    1010
    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;
     15padding: 5px;
     16
     17-moz-box-shadow: 0px 0px 3px #999;
     18-webkit-box-shadow: 0px 0px 3px #999;
     19box-shadow: 0px 0px 3px #999;}
     20.jcarousel-skin-tango .vid_info{float: left;clear: both;}
    1321.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;
     23height: auto;
     24margin: 2px 0;}
     25.jcarousel-skin-tango .jcarousel-item-horizontal {    margin: 0 11px 0 6px;list-style: none;}
    1626.jcarousel-skin-tango .jcarousel-item-vertical {    margin-bottom: 10px;}
    1727.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;
     29top: 37%;
     30right: -1px;
     31width: 6px;
     32height: 10px;
     33cursor: pointer;
     34float: right;
     35background: url('../images/arrow_right-rel.png') no-repeat center;
     36padding: 17px 7px;
     37-webkit-border-radius: 2px 0 0 2px;
     38-moz-border-radius: 2px 0 0 2px;
     39border-radius: 2px 0 0 2px;
    3140}
    3241.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;
     42position: absolute;
     43top: 37%;
     44left: -1px;
     45width: 6px;
     46height: 10px;
     47cursor: pointer;
     48background: url('../images/arrow_left-rel.png') no-repeat center;
     49padding: 17px 7px;
    4450}
    4551.jcarousel-skin-tango .jcarousel-next-disabled-horizontal,
    4652.jcarousel-skin-tango .jcarousel-prev-disabled-horizontal{
    47     opacity: 0.5;
     53    opacity: 0.7;
    4854    filter: alpha(opacity = 50);
    4955    cursor: default;
  • contus-video-gallery/trunk/css/style.css

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: Plugin css file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
    88License: GPL2
    99*/
    10 
     10 
    1111h1 .videoHname a, h2 .videoHname a, h3 .videoHname a, h4 .videoHname a, h5 .videoHname a, h6 .videoHname a { }
    1212.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;}
     
    1414.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;}
    1515.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;}
    1718.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: 12px !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); }
    2021
    2122.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;}
     
    2728overflow: hidden;
    2829float: left;
    29 width: 110px;
     30width: 43%;
     31max-width: 120px;
     32margin-right: 4%;
    3033position: relative;
    3134}
     
    4750 }
    4851.paddBotm{margin-bottom:10px;}
    49 .side_video_info{float: left;width: 125px;margin-left: 10px;}
     52.side_video_info{float: left;width: 50%;}
    5053.side_video_info h6{line-height: 15px;}
    5154
     
    7881
    7982.more_title{  margin: 0px 0; }
    80 .videoHname {float: left;clear: both;}
     83.videoHname {clear: both;}
    8184#mycarousel .videoHname {float: none;}
    8285.tags
     
    8689text-align: left;
    8790}
    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;}
    8993.fb_iframe_widget iframe, .fb_iframe_widget{width:100% !important;}
    9094.fb_iframe_widget span:first-child{width:100% !important;}
     
    101105.video-pagination a{margin: 0 5px; text-align: right;}
    102106.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;}
    108120.ulwidget .imgBorder img{width:100%;max-height: 100px;}
    109121.jcarousel-skin-tango{}
     
    117129.video-page-container .video-page-date{width: auto; float: left;width: 50%; }
    118130.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; }
    123149.embed .embed_text{ float: left;  }
    124150.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;}
    126152#embedcode{ padding: 2%; width: 95.5%; font-size: 13px; float: left; height: 90px; margin-top: 5px; }
    127153.video_wrapper h3,
     
    132158.video-block:first-child{ padding-left: 0px !important; margin-left: 0px !important; width: 140px; }
    133159.video-block i{display: none !important}
     160.video-block .vid_info{}
    134161.video-block
    135162{   line-height: 17px;
    136     float:left;
     163    float: none;
    137164    padding-bottom: 25px;
    138165    width:140px;
    139166    min-height: 145px;
    140     display: block;
     167    display: inline-block !important;
     168    vertical-align: top;
    141169    list-style-type: none;
    142170    margin: 0 !important;
     
    145173.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;}
    146174.tablenav-pages{float: right; margin: 1em 0;}
     175.tablenav-pages a,
     176.tablenav-pages span{padding: 0 2px}
    147177
    148178h2.related-videos{ text-align: left !important; margin: 20px 0 0 !important;  }
     
    154184bottom: 10px;}
    155185.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;}
    159194.widget #featured-videos ul li,
    160195.widget #recent-videos ul li,
    161196.widget #related-videos ul li,
     197.widget #videos-category ul,
    162198.widget #popular-videos ul li {background: transparent;padding: 0;}
    163199
    164200.flike{width: 85px;}
    165201.ttweet{width: 66px}
    166 .gplusshare{}
    167 
     202.video-socialshare .gplusshare{margin-left: 3px;}
    168203.fbshare {
    169204background: url(../images/fb_share_button.png) no-repeat;
     
    172207height: 20px;
    173208}
    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;}
    177212
    178213/***************************** Banner   **/
     
    240275}
    241276
     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;
     288padding: 0px !important;
     289         /*margin-right: 10px;*/
     290}
     291.callout-header-home h2{margin-bottom:5px;font-size:15px;}
     292h2.hoverable a{font-size:18px;}
     293h2.hoverable a:hover{background:none;}
     294/*.gr h2 {border-bottom:1px solid #C3C3C3;padding-bottom:5px;}*/
     295ul.ratethis li a { position:absolute;left:0;top:0;width:20px;height:20px;text-decoration:none;z-index: 200;}
     296ul.ratethis li.one a {left:0}
     297ul.ratethis li.two a {left:20px;}
     298ul.ratethis li.three a {left:40px;}
     299ul.ratethis li.four a {left:60px;}
     300ul.ratethis li.five a {left:80px;}
     301ul.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;}
     302ul.ratethis li.one a:hover {background-position:0 -120px;}
     303ul.ratethis li.two a:hover {background-position:0 -140px;}
     304ul.ratethis li.three a:hover {background-position:0 -160px;}
     305ul.ratethis li.four a:hover {background-position:0 -180px;}
     306ul.ratethis li.five a:hover {background-position:0 -200px;}
     307
     308.player_related_video {
     309clear: 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;}
     314ul.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  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Video home page controller file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/front/controllers/videomoreController.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Video More page controller file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/front/controllers/videoshortcodeController.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Video detail and short tags controller file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/front/models/videohome.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: video home page model file
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    7575                       INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p ON p.pid=m.playlist_id
    7676                       INNER JOIN " . $wpdb->prefix  . "posts s ON s.ID=w.slug
    77                        WHERE w.vid='$vid' and w.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";
    7878
    7979        $themediafiles = $wpdb->get_results($select);
     
    9393                            INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p
    9494                            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";
    9696        $fetched           = $wpdb->get_results($fetch_video);
    9797           ## Array rotation to autoplay the videos correctly
     
    106106                            INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p
    107107                            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";
    109109
    110110                    $arrGreat   = $wpdb->get_row($query);
     
    115115                                INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p
    116116                                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";
    118118
    119119                    $arrLess    = $wpdb->get_row($query);
     
    137137    if ($playlist)
    138138    {
    139         $select         = " SELECT *,s.guid FROM " . $wpdb->prefix . "hdflvvideoshare w";
     139        $select         = " SELECT w.*,s.guid,m.playlist_id FROM " . $wpdb->prefix . "hdflvvideoshare w";
    140140        $select        .= " INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play m";
     141        $select        .= " INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_playlist p";
    141142        $select        .= " INNER JOIN " . $wpdb->prefix . "posts s ON s.ID=w.slug";
    142143        $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 ";
    144145        $select        .= " ORDER BY m.sorder ASC , m.porder ASC ,w.vid ASC";
    145146        $themediafiles  = $wpdb->get_results($select);
     
    160161                          INNER JOIN " . $this->_wpdb->prefix . "hdflvvideoshare_playlist p ON p.pid=m.playlist_id
    161162                          INNER JOIN " . $this->_wpdb->prefix . "posts s ON s.ID=w.slug
    162                           WHERE featured='1' and publish='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";
    163164          return  $this->_wpdb->get_results($query);
    164165        }   ##function for getting settings data ends
  • contus-video-gallery/trunk/front/models/videomore.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: video more page model file
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    6363            $pagenum = isset($pagenum ) ? absint($pagenum ) : 1;
    6464            $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 t1
     65            $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
    6666                        LEFT JOIN " . $this->_wpdb->prefix . "hdflvvideoshare_med2play AS t2 ON t2.media_id = t1.vid
    6767                        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  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Video detail and short tag page model file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    2929        {//function for getting Tag name starts
    3030            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,t2.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"
    3232                . " FROM " . $this->_videoinfotable . " AS t1"
    3333                . " LEFT JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play AS t2"
  • contus-video-gallery/trunk/front/views/videohome.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Video home page view file
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    2121        public $_vId;
    2222
    23         public function __construct() {                         ##contructor starts
     23        public function __construct() {                                             ##contructor starts
    2424            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
    3333            $this->_showF                   = 5;
    3434            $this->_colCat                  = $this->_settingsData->colCat;
    3535            $this->_site_url                = get_bloginfo('url');
    3636            $this->_singlevideoData         = $this->home_playerdata();
    37             $this->_featuredvideodata       = $this->home_featuredvideodata();
     37            $this->_featuredvideodata       = $this->home_featuredvideodata();      ## Get featured videos data
    3838            $this->_viewslang               = __('Views', 'video_gallery');
    3939            $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
    4346        }
    4447        ##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
    4949            $settingsData                   = $this->_settingsData;
    5050            $videoUrl = $videoId = $thumb_image = $homeplayerData = $file_type = '';
    51             if (!empty($this->_featuredvideodata[0]))
     51            if (!empty($this->_featuredvideodata[0])){
    5252                $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);
    5455            $_imagePath                     = APPTHA_VGALLERY_BASEURL . 'images' . DS;
    5556            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 video
     57                $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
    6162                    $thumb_image            = $_imagePath . 'nothumbimage.jpg';
    6263                } else {
    63                     if ($file_type == 2) {      ##For uploaded image
     64                    if ($file_type == 2) {      ## For uploaded image
    6465                        $thumb_image        = $image_path . $thumb_image;
    6566                    }
     
    6869
    6970            $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>';
    7174            $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>';
    7280            if (!empty($this->_vId)) {
    7381                $baseref                    = '&amp;vid=' . $this->_vId;
     
    7785            $div                            .='<div id="mediaspace" class="mediaspace" style="color: #666;">';
    7886            $div                            .='<h3 id="video_title" style="width:' . $settingsData->width . ';text-align: left;"  class="more_title"></h3>';
    79             ##FLASH PLAYER STARTS HERE
     87            ## FLASH PLAYER STARTS HERE
    8088            $div                            .='<div id="flashplayer">';
    8189            if ($settingsData->default_player == 1) {
     
    8694                $showplaylist               = '';
    8795            }
    88             ##IF VIDEO IS Vimeo
     96            ## IF VIDEO IS Vimeo
    8997            if ((preg_match('/vimeo/', $videoUrl)) && ($videoUrl != '')) {
    9098                $vresult                    = explode("/", $videoUrl);
    9199                $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 . '&amp;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 . '&amp;mtype=' . $moduleName . '" width="' . $settingsData->width . '" height="' . $settingsData->height . '"   allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" wmode="transparent" />';
    94108            }
    95109            $div                            .='</div>';
    96             ##FLASH PLAYER ENDS AND HTML5 PLAYER STARTS HERE
     110            ## FLASH PLAYER ENDS AND HTML5 PLAYER STARTS HERE
    97111            $htmlvideo = '';
    98112            $div                            .='<div id="htmlplayer">';
     
    105119                $videoId1                   = $imgval[0];
    106120                $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);
    107123            } else {    ##IF VIDEO IS UPLOAD OR DIRECT PATH
    108124                if ($file_type == 2) {          ##For uploaded image
     
    141157                                            }
    142158                                            </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
    146161            $div                        .= '<div id="video_tag" class="views"></div>';
    147162            $div                        .= '</div>';
     
    157172                switch ($type) {
    158173                    case 'pop':         ##GETTING POPULAR VIDEOS STARTS
    159                         $TypeSet        = $this->_settingsData->popular;       ##Popular Videos
    160                         $rowF           = $this->_settingsData->rowsPop;          ##row field of popular videos
    161                         $colF           = $this->_settingsData->colPop;           ##column field of popular videos
     174                        $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
    162177                        $dataLimit      = $rowF * $colF;
    163178                        $thumImageorder = 'w.hitcount DESC';
     
    170185
    171186                    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
    175190                        $dataLimit      = $rowF * $colF;
    176191                        $thumImageorder = 'w.vid DESC';
     
    185200                        $thumImageorder = 'w.ordering ASC';
    186201                        $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
    190205                        $dataLimit      = $rowF * $colF;
    191206                        $TypeOFvideos   = $this->home_thumbdata($thumImageorder, $where, $dataLimit);
     
    197212                    case 'cat':
    198213                        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
    202217                            $dataLimit  = $rowF * $colF;
    203218                            $TypeOFvideos = $this->home_categoriesthumbdata($this->_pagenum, $category_page);
     
    210225
    211226                $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);
    214229                if ($TypeSet) {                                             ## CHECKING FAETURED VIDEOS ENABLE STARTS
    215230                    $div                = '<div class="video_wrapper" id="' . $type_name . '_video">';
     
    219234                        $div           .= '<h2 class="video_header">' . $typename . ' ' . __('Videos', 'video_gallery') . '</h2>';
    220235                        $j              = 0;
    221                         $clearwidth     = 0;
    222                         $clear          = '';
    223236                        foreach ($TypeOFvideos as $video) {
    224237                            $duration[$j]       = $video->duration;         ## VIDEO DURATION
     
    231244                                $imageFea[$j] = $this->_imagePath . 'nothumbimage.jpg';
    232245                            } else {
    233                                 if ($file_type == 2) {          ##For uploaded image
     246                                if ($file_type == 2 || $file_type == 5) {          ##For uploaded image
    234247                                    $imageFea[$j] = $image_path . $imageFea[$j];
    235248                                }
     
    238251                            $nameF[$j]          = $video->name;             ## VIDEI NAME
    239252                            $hitcount[$j]       = $video->hitcount;         ## VIDEO HITCOUNT
     253                            $ratecount[$j]      = $video->ratecount;        ## VIDEO RATECOUNT
     254                            $rate[$j]           = $video->rate;             ## VIDEO RATE
    240255                            $j++;
    241256                        }
     
    255270                            }
    256271                            $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>';
    258273                            if (strlen($nameF[$j]) > 30) {
    259                                 $div            .= substr($nameF[$j], 0, 30) . '';
     274                                $div            .= substr($nameF[$j], 0, 30) . '..';
    260275                            } else {
    261276                                $div            .= $nameF[$j];
    262277                            }
    263                             $div                .= '</a></h5>';
     278                            $div                .= '</span></a>';
    264279                            $div                .= '';
     280                            if ($fetched[$j] != '') {
     281                                $div            .= '<a class="playlistName" href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&amp;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                            }
    265291                            if ($hitcount[$j] > 1)
    266292                                $viewlang       = $this->_viewslang;
     
    269295                            $div                .= '<span class="video_views">' . $hitcount[$j] . ' ' . $viewlang;
    270296                            $div                .= '</span>';
    271 
    272                             if ($fetched[$j] != '') {
    273                                 $div            .= ' <a class="playlistName" href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&amp;playid=' . $playlist_id[$j] . '">' . $fetched[$j] . '</a>';
    274                             }
    275297                            $div                .= '</div>';
    276298                            $div                .= '</li>';
     
    282304
    283305                        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 . '&amp;more=' . $morePage . '">' . __('More Videos', 'video_gallery') . ' &#187;</a></h5>';
     306                            $div                .= '<span class="more_title" ><a class="video-more" href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&amp;more=' . $morePage . '">' . __('More Videos', 'video_gallery') . ' &#187;</a></span>';
    285307                        } else if (($this->_showF == $this->_feaMore)) {
    286                             $div                .= '<div style="float:right"> </div>';
     308                            $div                .= '<div style="float:right"></div>';
    287309                        }       ##PAGINATION ENDS
    288310                    }
     
    298320            global $wpdb;
    299321            $div                = '';
    300             $pagenum            = isset($pagenum) ? absint($pagenum) : 1; ## Calculating page number
    301             $start              = ( $pagenum - 1 ) * $dataLimit;     ## Video starting from
     322            $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1");
     323            $pagenum            = isset($pagenum) ? absint($pagenum) : 1;               ## Calculating page number
    302324            $div                .= '<style scoped> .video-block { margin-left:' . $this->_settingsData->gutterspace . 'px !important;} </style>';
    303325            foreach ($TypeOFvideos as $catList) {
    304 ## Fetch videos for every category
     326            ## Fetch videos for every category
    305327                $sql            = "SELECT s.guid,w.* FROM " . $wpdb->prefix . "hdflvvideoshare as w
    306328                                INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play as m ON m.media_id = w.vid
     
    314336                if (!empty($playlistCount)) {
    315337                    $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);
    317339                    $div        .= '<ul class="video-block-container">';
    318340                    foreach ($playLists as $playList) {
    319341
    320342                        $duration   = $playList->duration;
    321                         $imageFea   = $playList->image;         ##VIDEO IMAGE
     343                        $imageFea   = $playList->image;         ## VIDEO IMAGE
    322344                        $file_type  = $playList->file_type;     ## Video Type
    323                         $guid       = $playList->guid;          ##guid
    324                         if ($imageFea == '') {                  ##If there is no thumb image for video
     345                        $guid       = $playList->guid;          ## guid - url for video detail page
     346                        if ($imageFea == '') {                  ## If there is no thumb image for video
    325347                            $imageFea = $this->_imagePath . 'nothumbimage.jpg';
    326348                        } else {
    327                             if ($file_type == 2) {              ##For uploaded image
     349                            if ($file_type == 2 || $file_type == 5) {              ##For uploaded image
    328350                                $imageFea = $image_path . $imageFea;
    329351                            }
    330352                        }
    331353                        if (strlen($playList->name) > 30) {
    332                             $playListName = substr($playList->name, 0, 30) . "";
     354                            $playListName = substr($playList->name, 0, 30) . "..";
    333355                        } else {
    334356                            $playListName = $playList->name;
     
    339361                            $div    .= '<span class="video_duration">' . $duration . '</span>';
    340362                        }
    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
    342374                        if ($playList->hitcount > 1)
    343375                            $viewlang = $this->_viewslang;
     
    346378
    347379                        $div         .= '<span class="video_views">' . $playList->hitcount . ' ' . $viewlang . '</span>';
    348 
     380                       
     381                           
    349382                        $div         .= '</div></li>';
    350383
     
    368401            $div                     .='<div class="clear"></div>';
    369402
     403            if($category_page!=0){
    370404            ##PAGINATION STARTS
    371405            $total          = $CountOFVideos;
     
    383417                $div        .='<div class="tablenav"><div class="tablenav-pages" >' . $page_links . '</div></div>';
    384418            }
    385 ##PAGINATION ENDS
     419            ##PAGINATION ENDS
     420        }
    386421            return $div;
    387422        }
  • contus-video-gallery/trunk/front/views/videomore.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: Video more page view file.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
     
    1919        public $_pagenum;
    2020
    21         public function __construct() {//contructor starts
     21        public function __construct() {                                             ## contructor starts
    2222            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
    2929            $this->_viewslang = __('Views', 'video_gallery');
    3030            $this->_viewlang = __('View', 'video_gallery');
     31            ## Get search keyword
    3132            $video_search    = filter_var(filter_input(INPUT_POST, 'video_search'), FILTER_SANITIZE_STRING);
    3233            $video_search1    = filter_var(filter_input(INPUT_GET, 'video_search'), FILTER_SANITIZE_STRING);
    33             if(empty($video_search))
     34            if(empty($video_search)){
    3435               $this->_video_search= $video_search1;
    35             else
     36            } else {
    3637                $this->_video_search= $video_search;
     38            }
    3739            $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
    4449        } //contructor ends
    4550
    46         function video_more_pages($type) {// More PAGE FEATURED VIDEOS STARTS
     51        function video_more_pages($type) {                                          ## More PAGE FEATURED VIDEOS STARTS
    4752            if (function_exists('homeVideo') != true) {
    48 $type_name='';
     53            $type_name='';
    4954                switch ($type) {
    50                     case 'pop'://GETTING POPULAR VIDEOS STARTS
    51                         $rowF           = $this->_settingsData->rowMore; //row field of popular videos
    52                         $colF           = $this->_settingsData->colMore; //column field of popular videos
     55                    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
    5358                        $dataLimit      = $rowF * $colF;
    5459                        $where = '';
     
    5964                        $type_name      = 'popular';
    6065                        $morePage       = '&more=pop';
    61                         break; //GETTING POPULAR VIDEOS ENDS
     66                        break;                                                      ## GETTING POPULAR VIDEOS ENDS
    6267
    6368                    case 'rec':
     
    96101                        $morePage       = '&playid=' . $thumImageorder;
    97102                        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;
    107103                    case 'search':
    108104                        $thumImageorder = "( t4.tags_name LIKE '%" . $this->_video_search . "%' || t1.description LIKE '%" . $this->_video_search . "%' || t1.name LIKE '%" . $this->_video_search . "%')";
     
    115111                        return $this->searchList($this->_video_search,$CountOFVideos, $TypeOFvideos, $this->_pagenum, $dataLimit);
    116112                        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                   
    117124                }
    118125
    119126                $class = $div = '';
     127                $ratearray = array("nopos1", "onepos1", "twopos1", "threepos1", "fourpos1", "fivepos1");
    120128?>
    121129
     
    134142                    $clearwidth         = 0;
    135143                    $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);
    137145                    foreach ($TypeOFvideos as $video) {
    138                         $duration[$j]   = $video->duration; //VIDEO DURATION
    139                         $imageFea[$j]   = $video->image; //VIDEO IMAGE
    140                         $file_type      = $video->file_type; // Video Type
    141                        $guid[$j]        = $video->guid; //guid
    142                         if ($imageFea[$j] == '') {  //If there is no thumb image for video
     146                        $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
    143151                            $imageFea[$j] = $this->_imagePath . 'nothumbimage.jpg';
    144152                        } else {
    145                             if ($file_type == 2) {          //For uploaded image
     153                            if ($file_type == 2 || $file_type == 5 ) {          //For uploaded image
    146154                                $imageFea[$j] = $image_path . $imageFea[$j];
    147155                            }
    148156                        }
    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
    152162                        if (!empty($this->_playid)) {
    153163                            $fetched[$j] = $video->playlist_name;
     
    156166                            $getPlaylist     = $this->_wpdb->get_row("SELECT playlist_id FROM " . $this->_wpdb->prefix . "hdflvvideoshare_med2play WHERE media_id='".intval($vidF[$j])."'");
    157167                            if (isset($getPlaylist->playlist_id)) {
    158                                 $playlist_id = $getPlaylist->playlist_id; //VIDEO CATEGORY ID
     168                                $playlist_id = $getPlaylist->playlist_id;       ## VIDEO CATEGORY ID
    159169                                $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 NAME
     170                                $fetched[$j] = $fetPlay[$j]->playlist_name;     ## CATEOGORY NAME
    161171                            }
    162172                        }
     
    166176                    $div .= '<ul class="video-block-container">';
    167177                    for ($j = 0; $j < count($TypeOFvideos); $j++) {
    168                         if (strlen($nameF[$j]) > 30) { // Displaying Video Title
    169                                 $videoname = substr($nameF[$j], 0, 30) . '';
     178                        if (strlen($nameF[$j]) > 30) { ## Displaying Video Title
     179                                $videoname = substr($nameF[$j], 0, 30) . '..';
    170180                            }
    171181                            else {
    172182                                $videoname = $nameF[$j];
    173183                            }
    174                         if (($j % $colF) == 0 && $j!=0) {//COLUMN COUNT
    175                                 $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">';
    176186                            }
    177187                            $div            .= '<li class="video-block">';
     
    181191                            }
    182192                            $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>';
    184194                            $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 . '&amp;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
    186209                            $div            .= '
    187210                                    <span class="video_views">';
     
    192215                            $div            .= $hitcount[$j] . ' '.$viewlang;
    193216                            $div            .= '</span>';
    194 
    195 
    196 
    197                             if (!empty($fetched[$j])) {
    198                                 $div        .= '<span class="playlistName"><a href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&amp;playid=' . $playlist_id . '">' . $fetched[$j] . '</a></span>';
    199                             }
    200217                            $div            .= '</div>';
    201218                            $div            .= '</li>';
    202                         //ELSE ENDS
    203                     }//FOR EACH ENDS
     219                        ## ELSE ENDS
     220                    } ## FOR EACH ENDS
    204221                    $div                    .= '</ul>';
    205222                    $div                    .= '</div>';
     
    215232                $div                        .= '</div>';
    216233
    217                 //PAGINATION STARTS
     234                ## PAGINATION STARTS
    218235                $total          = $CountOFVideos;
    219236                $num_of_pages   = ceil($total / $dataLimit);
     
    230247                    $div .='<div class="tablenav"><div class="tablenav-pages" >' . $page_links . '</div></div>';
    231248                }
    232                 //PAGINATION ENDS
     249                ## PAGINATION ENDS
    233250                return $div;
    234251            }
     
    239256            global $wpdb;
    240257            $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");
    243261?>
    244262
    245263<?php
    246             $div .='<div><h1 class="entry-title">'.__('Video Categories', 'video_gallery').'</h1></div>';
     264
    247265            $div .= '<style> .video-block { margin-left:' . $this->_settingsData->gutterspace . 'px !important; } </style>';
    248266            foreach ($TypeOFvideos as $catList) {
    249 // Fetch videos for every category
     267            ## Fetch videos for every category
    250268               $sql            = "SELECT s.guid,w.* FROM " . $wpdb->prefix . "hdflvvideoshare AS w
    251269                                INNER JOIN " . $wpdb->prefix . "hdflvvideoshare_med2play AS m ON m.media_id = w.vid
     
    260278                    $i          = 0;
    261279                    $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);
    263281                    $div        .= '<ul class="video-block-container">';
    264282                    foreach ($playLists as $playList) {
    265283
    266284                        $duration   = $playList->duration;
    267                         $imageFea   = $playList->image; //VIDEO IMAGE
    268                         $file_type  = $playList->file_type; // Video Type
    269                         $guid       = $playList->guid; //guid
    270                         if ($imageFea == '') {  //If there is no thumb image for video
     285                        $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
    271289                            $imageFea = $this->_imagePath . 'nothumbimage.jpg';
    272290                        } else {
    273                             if ($file_type == 2) {          //For uploaded image
     291                            if ($file_type == 2 || $file_type == 5 ) {                  ## For uploaded image
    274292                                $imageFea = $image_path . $imageFea;
    275293                            }
    276294                        }
    277295                        if (strlen($playList->name) > 30) {
    278                             $playListName = substr($playList->name, 0, 30) . "";
     296                            $playListName = substr($playList->name, 0, 30) . "..";
    279297                        } else {
    280298                            $playListName = $playList->name;
     
    286304                        }
    287305                        $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
    289316                        if($playList->hitcount>1)
    290317                                $viewlang = $this->_viewslang;
     
    293320
    294321                            $div    .= '<span class="video_views">' . $playList->hitcount . ' '.$viewlang . '</span>';
    295 
     322                       
    296323                        $div        .= '</div></li>';
    297324
     
    301328                            $i = $i + 1;
    302329                        }
    303                     if (($inc % $this->_colCat ) == 0 && $inc!=0) {//COLUMN COUNT
    304                                 $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">';
    305332                            }
    306333                        $inc++;
     
    313340                        $div        .= '<div align="right"> </div>';
    314341                    }
    315                 } else { // If there is no video for category
     342                } else {                                                        ## If there is no video for category
    316343                    $div            .= '<div>'.__('No Videos For this Category', 'video_gallery').'</div>';
    317344                }
     
    320347            $div                    .= '<div class="clear"></div>';
    321348
    322             //PAGINATION STARTS
     349            ## PAGINATION STARTS
    323350            $total          = $CountOFVideos;
    324351            $num_of_pages   = ceil($total / $dataLimit);
     
    336363            }
    337364
    338             //PAGINATION ENDS
     365            ## PAGINATION ENDS
    339366            return $div;
    340367        }
     
    344371            global $wpdb;
    345372            $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");
    349377?>
    350378
     
    354382            $div .= '<style> .video-block { margin-left:' . $this->_settingsData->gutterspace . 'px !important; } </style>';
    355383
    356 // Fetch videos for every category
     384                ## Fetch videos for every category
    357385                if (!empty($TypeOFvideos)) {
    358386                    $i          = 0;
    359387                    $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);
    361389                    $div        .= '<ul class="video-block-container">';
    362390
     
    364392
    365393                        $duration   = $playList->duration;
    366                         $imageFea   = $playList->image; //VIDEO IMAGE
    367                         $file_type  = $playList->file_type; // Video Type
    368                         $guid       = $playList->guid; //guid
    369                         if ($imageFea == '') {  //If there is no thumb image for video
     394                        $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
    370398                            $imageFea = $this->_imagePath . 'nothumbimage.jpg';
    371399                        } else {
    372                             if ($file_type == 2) {          //For uploaded image
     400                            if ($file_type == 2 || $file_type == 5 ) {              ## For uploaded image
    373401                                $imageFea = $image_path . $imageFea;
    374402                            }
    375403                        }
    376404                        if (strlen($playList->name) > 30) {
    377                             $playListName = substr($playList->name, 0, 30) . "";
     405                            $playListName = substr($playList->name, 0, 30) . "..";
    378406                        } else {
    379407                            $playListName = $playList->name;
    380408                        }
    381                     if (($inc % $this->_colF ) == 0 && $inc!=0) {//COLUMN COUNT
    382                                 $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">';
    383411                            }
    384412                        $div        .= '<li class="video-block"><div class="video-thumbimg"><a href="' . $guid . '"><img src="' . $imageFea . '" alt="" class="imgHome" title="" /></a>';
     
    387415                        }
    388416                        $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 . '&amp;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
    389430                        if($playList->hitcount>1)
    390431                                $viewlang = $this->_viewslang;
     
    392433                                   $viewlang = $this->_viewlang;
    393434                        $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 . '&amp;playid=' . $playList->pid . '">' . $playList->playlist_name . '</a></span>';
    397                             }
    398 
     435 
    399436                        $div        .= '</div></li>';
    400437
     
    403440                    $div            .= '</ul>';
    404441
    405                 } else { // If there is no video for category
     442                } else { ## If there is no video for category
    406443                    $div            .= '<div>'.__('No Videos Found', 'video_gallery').'</div>';
    407444                }
     
    410447            $div                    .= '<div class="clear"></div>';
    411448
    412             //PAGINATION STARTS
     449            ## PAGINATION STARTS
    413450            $total          = $CountOFVideos;
    414451            $num_of_pages   = ceil($total / $dataLimit);
     
    427464            }
    428465
    429             //PAGINATION ENDS
     466            ## PAGINATION ENDS
    430467            return $div;
    431468        }
    432         //CATEGORY FUNCTION ENDS
     469        ## CATEGORY FUNCTION ENDS
    433470    }
    434     //class over
     471    ## class over
    435472} else {
    436473    echo 'class contusMore already exists';
  • contus-video-gallery/trunk/front/views/videoshortcode.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Video detail and short tag page view file.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    2121        public $_vId;
    2222
    23         public function __construct() { ##contructor starts
     23        public function __construct() {                                                     ##contructor starts
    2424            parent::__construct();
    2525
    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
    2828            $this->_page_post_type  = $this->url_to_custompostid(get_permalink());
    2929            $this->_showF           = 5;
    3030            $this->_contOBJ         = new ContusVideoController();
    31             $this->_mPageid         = $this->More_pageid();
     31            $this->_mPageid         = $this->More_pageid();                                 ## Get more page id
    3232            $dir                    = dirname(plugin_basename(__FILE__));
    3333            $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
    3838        }
    3939        ## contructor ends
     
    138138            return 0;
    139139        }
     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
    140196        ## to display player
    141197        function HDFLV_shareRender($arguments= array()) {
    142198            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);
    146201            $_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 here
     202            $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
    149204
    150205            if (isset($arguments['width'])) {
     
    160215            if (isset($arguments['id'])) {
    161216                $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;
    164221            }
    165222            ## store video details in variables
     
    168225                $videoId            = $homeplayerData->vid;
    169226                $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                }
    172231                $video_playlist_id  = $homeplayerData->playlist_id;
    173232                $description        = $homeplayerData->description;
    174233                $tag_name           = $homeplayerData->tags_name;
    175234                $hitcount           = $homeplayerData->hitcount;
     235                $ratecount          = $homeplayerData->ratecount;
     236                $rate               = $homeplayerData->rate;
    176237                $post_date          = $homeplayerData->post_date;
    177238            }
     
    193254            } elseif (!empty($playlistid)) {
    194255                $flashvars          .="&amp;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];
    195263            } else if ($this->_post_type != 'videogallery' && $this->_page_post_type != 'videogallery') {
    196264                $flashvars          .="&amp;vid=" . $vid . "&showPlaylist=false";
     
    206274            ## generate flashvars detail for player ends here
    207275
    208             $player_not_supprot      = __('Player doesnot support this video.', 'video_gallery');
     276            $player_not_support      = __('Player doesnot support this video.', 'video_gallery');
    209277            $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          .="&amp;videodata=current_video_".$videodivId;
     290            }
    212291            $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
    213299            $output                 .= '<embed src="' . $this->_swfPath . '" flashvars="' . $flashvars . '" width="' . $width . '" height="' . $height . '" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" wmode="transparent">';
     300            }
     301           
    214302            $output                 .= '</div>';
    215             ## Flash player ends here
    216 
     303           
    217304            $useragent               = $_SERVER['HTTP_USER_AGENT'];
    218305            if (strpos($useragent, 'Windows Phone') > 0)            ## check for windows phone
     
    222309            $output                  .='<div id="htmlplayer' . $videodivId . '" class="player" >';
    223310            ## 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
    231312            foreach ($fetched as $media) {          ## Load video details
    232313                $videourl            = $media->file;
     
    236317                $imgurl              = $_imagePath . 'nothumbimage.jpg';
    237318                } else {
    238                     if ($file_type == 2) {          ## For uploaded image
     319                    if ($file_type == 2 || $file_type == 5 ) {          ## For uploaded image
    239320                        $imgurl      = $image_path . $imgurl;
    240321                    }
     
    242323            }
    243324            ## 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)) {
    248326                $urlArray           = explode("=", $vresult[0]);
    249327                $video_id           = trim($urlArray[1]);
     
    251329                ## Generate youtube embed code for html5 player
    252330                $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);
    253333            } else {        ## Check for upload, URL and RTMP videos
    254334                if ($file_type == 2) {                  ## For uploaded image
     
    264344            ## Check platform
    265345            $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                                    }
    266355                                    var txt =  navigator.platform ;
    267356                                    var windo = "' . $windo . '";
     
    277366                                    if(txt =="iPod"|| txt =="iPad" || txt == "iPhone" || windo=="Windows Phone" || txt == "Linux armv7l" || txt == "Linux armv6l")
    278367                                    {
    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                                    }   
    280378                                    </script>';
    281379            ## HTML5 player ends here
    282 
    283             if ($this->_post_type == 'videogallery' || $this->_page_post_type == 'videogallery') {
    284380            ## 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>: ';
    291405                foreach ($playlistData as $playlist) {
    292 
    293406                    if ($incre > 0) {
    294407                        $playlistname.=', ' . '<a href="' . $this->_site_url . '/?page_id=' . $this->_mPageid . '&amp;playid=' . $playlist->pid . '">' . $playlist->playlist_name . '</a>';
     
    298411                    $incre++;
    299412                }
    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                    }
    307586                ## Display Social icons start here
    308                 if (strpos($videoUrl, 'youtube') > 0) { ##IF VIDEO IS YOUTUBE
     587                if (strpos($videoUrl, 'youtube') > 0) { ## IF VIDEO IS YOUTUBE
    309588                    $imgstr             = explode("v=", $videoUrl);
    310589                    $imgval             = explode("&", $imgstr[1]);
     
    312591                    $video_thumb        = "http://img.youtube.com/vi/" . $videoId1 . "/mqdefault.jpg";
    313592                }
    314                 $video_title            = str_replace(" ", "%20", $video_title);
     593                $video_title_share      = str_replace(" ", "%20", $video_title);
    315594                $videodescription       = str_replace(" ", "%20", $description);
    316595                $blog_title             = get_bloginfo('name');
    317596                $current_url            = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] . '?random=' . rand(0, 100);
    318                 $sd                     = "medium%5D=103&amp;p%5Bvideo%5D%5Bwidth%5D=640&amp;p%5Bvideo%5D%5Bheight%5D=360&amp;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&amp;p%5B";
    319                 $url_fb                 = "http://www.facebook.com/sharer/sharer.php?s=100&amp;p%5Btitle%5D=" . $video_title . "&amp;p%5Bsummary%5D=" . strip_tags($videodescription) . "&amp;p%5B" . $sd . "url%5D=" . $current_url . "&amp;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&amp;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&amp;p";
     601                }
     602                $url_fb                 = "http://www.facebook.com/sharer/sharer.php?s=100&amp;p%5Btitle%5D=" . $video_title_share . "&amp;p%5Bsummary%5D=" . strip_tags($videodescription) . "&amp;p%5Bmedium%5D=103&amp;p%5Bvideo%5D%5Bwidth%5D=640&amp;p" . $sd . "%5Burl%5D=" . urlencode($current_url) . "&amp;p%5Bimages%5D%5B0%5D=" . urlencode($video_thumb);
    320603                $output                 .= '
    321604                                        <!-- Facebook share Start -->
     
    323606                                        <div class="floatleft" style=" margin-right: 5px; "><a href="' . $url_fb . '" class="fbshare" id="fbshare" target="_blank" ></a></div>
    324607                                        <!-- 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>
    326609                                        <!-- Twitter like End and Google plus one Start -->
    327610                                        <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>
    328611                                        <!-- Google plus one End -->
    329612                                        </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">';
    385616
    386617                if ($configXML->embed_visible == 1) {
    387618                    ## embed code
    388619
    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&amp;byline=0&amp;portrait=0&amp;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);
    392622                    } else {
    393                         $embed_code         = '<embed src="' . $this->_swfPath . '" flashvars="' . $flashvars . '&amp;shareIcon=false&amp;email=false&amp;showPlaylist=false&amp;zoomIcon=false&amp;copylink=' . get_permalink() . '&amp;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 . '&amp;shareIcon=false&amp;email=false&amp;showPlaylist=false&amp;zoomIcon=false&amp;copylink=' . get_permalink() . '&amp;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>
    396626                                                <textarea onclick="this.select()" id="embedcode" name="embedcode" style="display:none;" rows="7" >' . $embed_code . '</textarea>
    397627                                                <input type="hidden" name="flagembed" id="flagembed" />
     
    411641                }
    412642
    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;
    433675                        }
    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 . '&amp;mtype=playerModule&amp;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>';
    481768                }
    482769            }
  • contus-video-gallery/trunk/hdflv-config.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Wordpress Video Gallery plugin config file.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/hdflvplayer/email.php

    r756214 r778159  
    44Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55Description: email file for player.
    6 Version: 2.2
     6Version: 2.3
    77Author: Apptha
    88Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/hdflvvideoshare.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Simplifies the process of adding video to a WordPress blog. Powered by Apptha.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    2222$frontViewPath          = APPTHA_VGALLERY_BASEDIR . '/front/views/';
    2323$widgetPath             = get_template_directory() . '/html/widgets';
     24
     25global $dirPage;
     26$dir                    = dirname(plugin_basename(__FILE__));
     27$dirExp                 = explode('/', $dir);
     28$dirPage                = $dirExp[0];
    2429
    2530## Load widgets
     
    118123register_activation_hook(__FILE__, 'videogallery_install');
    119124
    120 if (isset($_GET['action']) && $_GET['action'] == "activate-plugin" && $_GET['plugin'] == "contus-video-gallery/hdflvvideoshare.php") {
     125$plugin_main_file = $dirPage."/hdflvvideoshare.php";
     126if (isset($_GET['action']) && $_GET['action'] == "activate-plugin" && $_GET['plugin'] == $plugin_main_file) {
    121127
    122128    ## declare table names and global variable to access WP query
     
    137143
    138144    ## 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 =
    144148    $updateaddescription = $updateimaadType = $updateadtargeturl = $updateadclickurl = $updateadimpressionurl = $updateadmethod = $updateadtype = $updateispublish =
    145149    $shareIcon = $updateimaad = $updatechannels = $updatemidrollads = $volumecontrol = $playlist_auto = $progressControl = $imageDefault = $updatepublish = $updateadpublish = '';
     
    153157    $updateislive           = AddColumnIfNotExists($errorMsg, "$table_name", "islive", "INT( 11 ) NOT NULL");
    154158    $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");
    155162
    156163    ## AD table update
     
    179186    $updatecolMore          = AddColumnIfNotExists($errorMsg, "$table_settings", "colMore", "varchar(25) $charset_collate NOT NULL DEFAULT 4");
    180187    $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");
    199189    $playlist_open          = AddColumnIfNotExists($errorMsg, "$table_settings", "playlist_open", "INT( 3 ) NOT NULL");
    200190    $showPlaylist           = AddColumnIfNotExists($errorMsg, "$table_settings", "showPlaylist", "INT( 3 ) NOT NULL");
     
    206196    $trackCode              = AddColumnIfNotExists($errorMsg, "$table_settings", "trackCode", "TEXT $charset_collate NOT NULL");
    207197    $showTag                = AddColumnIfNotExists($errorMsg, "$table_settings", "showTag", "INT( 3 ) NOT NULL");
     198    $ratingscontrol         = AddColumnIfNotExists($errorMsg, "$table_settings", "ratingscontrol", "INT( 3 ) NOT NULL");
    208199    $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");
    210201    $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");
    212203    $imageDefault           = AddColumnIfNotExists($errorMsg, "$table_settings", "imageDefault", "INT( 3 ) NOT NULL");
    213204
     
    266257    wp_enqueue_style('videogallery_css1');
    267258}
     259## function to add css and javascript files for admin
     260function 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}
    268272add_action('wp_enqueue_scripts', 'videogallery_cssJs');
    269 
    270273## Function to add og detail for facebook
    271274add_action('wp_head', 'add_meta_details');
     
    299302function add_meta_details() {
    300303    global $wpdb;
     304    global $dirPage;
    301305    ## Get current video id from url, if permalink on
    302306    $videoID            = url_to_custompostid(get_permalink());
     
    317321                        . " WHERE t1.publish='1' AND t3.is_publish='1' AND t1.vid='" . intval($videoID) . "' LIMIT 1");
    318322        ## 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);
    320324        $_imagePath     = APPTHA_VGALLERY_BASEURL . 'images' . DS;
    321325        if(!empty($video_count)){
     
    464468function video_shortcodeplace($arguments= array()) {
    465469    global $frontControllerPath, $frontModelPath, $frontViewPath;
     470    videogallery_jcar_js_css();
    466471    include_once ($frontControllerPath . 'videoshortcodeController.php');
    467472    $pageOBJ            = new ContusVideoShortcodeView();
     
    477482    include_once ($frontControllerPath . 'videomoreController.php');
    478483    $more               = filter_input(INPUT_GET, 'more');
    479     $playid             = '';
    480484    $playid             = filter_input(INPUT_GET, 'playid');
    481485    if (!empty($playid))
     
    513517    $wpdb->query(" DROP TABLE " . $wpdb->prefix . "hdflvvideoshare_playlist");
    514518    $wpdb->query(" DROP TABLE " . $wpdb->prefix . "hdflvvideoshare_med2play");
    515     $langfound          = false;
    516519    $table_language     = $wpdb->prefix . 'hdflvvideoshare_language';
    517520    foreach ($wpdb->get_results("SHOW TABLES;", ARRAY_N) as $row) {
  • contus-video-gallery/trunk/hitCount.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Video hitcount file.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/install.php

    r756214 r778159  
    44  URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Wordpress Video Gallery Installation file.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    7474    global $wpdb;
    7575    $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");
    7779    for ($i = 0; $i < count($videoID); $i++) {
    7880        $slug               = sanitize_title($videoID[$i]->name);
     
    9395        $vid                = $featuredID[$i]->vid;
    9496        $wpdb->query("UPDATE " . $wpdb->prefix . "hdflvvideoshare SET featured = 1 WHERE vid = $vid");
     97    }
    9598    }
    9699}
     
    150153                    name MEDIUMTEXT NULL,
    151154                    description MEDIUMTEXT NOT NULL,
     155                    embedcode LONGTEXT NOT NULL,
    152156                    file MEDIUMTEXT NULL,
    153157                    streamer_path MEDIUMTEXT NULL,
     
    162166                    featured varchar(25) NOT NULL,
    163167                    hitcount int(25) NOT NULL DEFAULT '0',
     168                    ratecount int(25) NOT NULL DEFAULT '0',
     169                    rate int(25) NOT NULL DEFAULT '0',
    164170                    post_date datetime NOT NULL,
    165171                    postrollads VARCHAR(25) NOT NULL,
     
    218224                    stagecolor VARCHAR(45) NOT NULL,
    219225                    embed_visible INT(3) NOT NULL DEFAULT '0',
     226                    ratingscontrol INT(3) NOT NULL DEFAULT '0',
    220227                    shareURL VARCHAR(200) NOT NULL,
    221228                    playlistXML VARCHAR(200) NOT NULL,
     
    265272                    gutterspace INT(3) NOT NULL,
    266273                    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,
    285275                    playlist_open INT(3) NOT NULL,
    286276                    showPlaylist INT(3) NOT NULL,
     
    343333        $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`)
    344334                        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',
    346336                        '2011-01-10 10:42:23', '',0, '$site_url/?page_id=',0, 'page', '', 0)";
    347337
     
    383373    if (empty($videoCategories)) {
    384374
    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`) VALUES
    386                                 ($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')
    403393                                ");
    404394        ## video title array
     
    452442                                `buffer`, `normalscale`, `fullscreenscale`, `logopath`, `logo_target`,
    453443                                `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`)
    471458                                VALUES
    472459                                (0,1, 1, 1, 1,
    473460                                3, 2, 2, 'platoon.jpg', '' ,
    474461                                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')");
    492476    }
    493477
     
    515499                            (23, 11, 4, 0, 0)");
    516500    }
     501    flush_rewrite_rules();
    517502}
    518503?>
  • contus-video-gallery/trunk/js/jquery-1.2.3.pack.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jquery core file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/js/jquery.jcarousel.pack.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: jcarousel file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/js/script.js

    r756214 r778159  
    33Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    44Description: VIdeo Gallery plugin script file.
    5 Version: 2.2
     5Version: 2.3
    66Author: Apptha
    77Author URI: http://www.apptha.com
     
    99*/
    1010
    11 function currentvideo(title,vid){
     11function current_video(vid,title){
    1212
    1313if (window.XMLHttpRequest)
     
    2424    if (xmlhttp.readyState==4)
    2525    {
    26         //alert('i am ready');
    2726    }
    2827  }
     
    3029xmlhttp.open("GET",baseurl+"/wp-content/plugins/"+folder+"/hitCount.php?vid="+vid,true);
    3130xmlhttp.send();
    32 document.getElementById('video_title').innerHTML=title;
    33  }
     31}
    3432 
  • contus-video-gallery/trunk/languageXML.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: LanguageXML file for player.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/myadsXML.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: AdsXML file for player.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    2424header ("content-type: text/xml");
    2525echo '<?xml version="1.0" encoding="utf-8"?>';
    26 echo '<ads >';
     26echo '<ads random="false">';
    2727if (count($themediafiles) > 0) {
    2828    foreach ($themediafiles as $rows) {
     
    3030        if ($admethod == 'prepost') {       ## Allow only for preroll or post roll ads
    3131        $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>';
    3535        }
    3636    }
  • contus-video-gallery/trunk/myextractXML.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: playlistxml file for player.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    4949}
    5050
    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);
    5255## playlist XML starts here
    5356header("content-type:text/xml;charset = utf-8");
  • contus-video-gallery/trunk/myimaadsXML.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: AdsXML file for player.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
  • contus-video-gallery/trunk/mymidrollXML.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: AdsXML file for player.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
     
    2929            $impressionurl  = $rows->impressionurl;
    3030            $description    = $rows->description;
     31            $title          = $rows->title;
    3132
    3233            echo '
    3334                <midroll targeturl="' . $targeturl . '" clickurl="' . $clickurl . '" impressionurl="' . $impressionurl . '">
    34                 <![CDATA[' . $description . ']]>
     35                <![CDATA[' . $title . '<br>'.$description.'<br>'.$targeturl.']]>
    3536                </midroll>
    3637                ';
  • contus-video-gallery/trunk/readme.txt

    r758958 r778159  
    33Tags: 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
    44Requires at least: 2.8
    5 Tested up to: 3.5.2
    6 Stable tag: 2.2
     5Tested up to: 3.5.1
     6Stable tag: 2.3
    77Get 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.
    88
     
    2727* Supports RTL feature
    2828* Admin option to enable/disable Recent Videos, Popular Videos and Featured Videos
     29* Admin option to enable/disable Rating
    2930* Easy to manage widgets like popular, featured, recent, related, video search, video categories.
    3031* Flexible player size
     
    4445* Option to include a well-suited meta information
    4546* Option to add RTMP based videos
     47* Option to add Embed code based videos
     48* Rating option for the videos
    4649* Language pack can be set on any preferred language
    4750* Provides FFMPEG path in backend and generates timer for upload video.
     
    6669
    6770== Screenshots ==
     71Manage Video: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/video-uploadlist.JPG
    6872
    69 1. **Video gallery(Front-end)**
     73Upload video file: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/upload-file.JPG
    7074
    71 2. **Manage Video** - Displays Uploaded videos and details about the plugin.
     75Upload youtube URL: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/video-upload-file.JPG
    7276
    73 3. **Upload video file** - Here you can upload video using Upload Method
     77Upload custom URL: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/custom-url.JPG
    7478
    75 4. **Upload youtube URL** - Here you can upload video from YouTube
     79Manage video widgets: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/widgets.JPG
    7680
    77 5. **Upload custom URL** - Here you can upload video via URL eg: http://www.domainname.com/foldername/video.mp4
     81Video gallery(Front-end): http://www.hdflvplayer.net/wordpress-video-gallery/gallery/front-video-page.JPG
    7882
    79 6. **Upload RTMP Video** - You can add RTMP Streaming video
     83Videos(recent,popular,feature): http://www.hdflvplayer.net/wordpress-video-gallery/gallery/recent-popular.JPG
    8084
    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.
     85Gallery settings: http://www.hdflvplayer.net/wordpress-video-gallery/gallery/gallery-settings.JPG .
    8686
    8787== Other Notes ==
  • contus-video-gallery/trunk/sortorder.php

    r756214 r778159  
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    55  Description: Video hitcount file.
    6   Version: 2.2
     6  Version: 2.3
    77  Author: Apptha
    88  Author URI: http://www.apptha.com
Note: See TracChangeset for help on using the changeset viewer.