Plugin Directory

Changeset 1306821


Ignore:
Timestamp:
12/12/2015 10:47:36 AM (10 years ago)
Author:
hdflvplayer
Message:

Commit to update WordPress Video Gallery version 3.0 in Trunk

Location:
contus-video-gallery/trunk
Files:
75 added
52 edited

Legend:

Unmodified
Added
Removed
  • contus-video-gallery/trunk/admin/ajax/videoupload.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     
    211211      switch ( $extension ) {
    212212        case 'srt':
    213           $file_name = $row1 . '_subtitle' . rand () . $extension;
     213          $file_name = $row1 . '_subtitle' . rand () .'.'. $extension;
    214214          break;
    215215        case 'jpg':
  • contus-video-gallery/trunk/admin/controllers/ajaxplaylistController.php

    r1251095 r1306821  
    44 * @category   Apptha
    55 * @package    Contus video Gallery
    6  * @version    2.9
     6 * @version    3.0
    77 * @author     Apptha Team <[email protected]>
    8  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     8 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    99 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010 */
  • contus-video-gallery/trunk/admin/controllers/playlistController.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     
    247247                    $this->redirectPlaylistPage ( $publishflag, 'status', '1' );
    248248              } else { 
    249                   /** Check playlist publish action is done
    250                    * Call function to publish data */
    251                   if ($playlistActionup == "playlistunpublish" || $playlistActiondown == "playlistunpublish") {
    252                     $unpublishflag = $this->playlist_multiunpublish ( $playListId );
    253                     $this->redirectPlaylistPage ( $unpublishflag, 'status', '0' );
    254                   }
     249                  $checkResult = true;
    255250              }
    256251          /** Checking apply action ends */
    257252          }
    258       }
     253          if($checkResult == true && ($playlistActionup == "playlistunpublish" || $playlistActiondown == "playlistunpublish")) {
     254            /** Check playlist publish action is done
     255             * Call function to publish data */
     256                $unpublishflag = $this->playlist_multiunpublish ( $playListId );
     257                $this->redirectPlaylistPage ( $unpublishflag, 'status', '0' );
     258          }
     259      }
     260      /**
     261       * Function getUserDetailsController is used to get user details
     262       * @return array
     263       */
     264      public function getUserDetailsController() {
     265        global $wpdb;
     266        return $wpdb->get_results($wpdb->prepare("SELECT ID,user_nicename FROM ".$wpdb->prefix."users ORDER BY ID desc",''));
     267      }
     268      /**
     269       * Function getPlaylistDetails is used to get user playlist details
     270       * @return array
     271       */
     272      public function getPlaylistDetails($userId) {
     273        global $wpdb;
     274        return $wpdb->get_results($wpdb->prepare("SELECT id,playlist_name FROM ".$wpdb->prefix."hdflvvideoshare_user_playlist WHERE userid=%d ORDER BY ID desc",$userId));
     275      }
     276      /**
     277       * Function getSearchPlaylistDetails is used to get searched playlist details
     278       * @return array
     279       */
     280      public function getSearchPlaylistDetails($userId,$playlistName) {
     281        global $wpdb;
     282        return $wpdb->get_results($wpdb->prepare("SELECT id,playlist_name FROM ".$wpdb->prefix."hdflvvideoshare_user_playlist WHERE userid=%d AND playlist_name=%sORDER BY ID desc",$userId,$playlistName));
     283      }
     284     
    259285  /** PlaylistController class ends */
    260286  }
     
    264290/** Creating object for PlaylistController class */
    265291$playlistOBJ    = new PlaylistController ();
     292
     293if($adminPage == 'userplaylist') {
     294    $userDetails = $playlistOBJ->getUserDetailsController();
     295    $userId = (isset($_POST['uid']) && $_POST['uid'] != '') ? intval($_POST['uid']) : '';
     296    $searchMsg = (isset($_POST['PlaylistssearchQuery']) && $_POST['PlaylistssearchQuery'] != '') ? strip_tags($_POST['PlaylistssearchQuery']) : '';
     297    if(!empty($userId) && !empty($searchMsg)) {
     298        $playlistDetails = $playlistOBJ->getSearchPlaylistDetails($userId,$searchMsg);
     299    }
     300    elseif(!empty($userId)) {
     301        $playlistDetails = $playlistOBJ->getPlaylistDetails($userId);
     302    }
     303    else {
     304        $playlistDetails = '';
     305    }
     306    require_once (APPTHA_VGALLERY_BASEDIR . DS . 'admin/views/playlist/userplaylist.php');
     307    exitAction('');
     308}
     309
    266310/** Assign class variables into local variables */
    267311$playListId     = $playlistOBJ->_playListId;
     
    293337$displayMsg = $playlistOBJ->get_message ();
    294338/** Include playlist view page */
     339
    295340require_once (APPTHA_VGALLERY_BASEDIR . DS . 'admin/views/playlist/playlist.php');
     341
    296342?>
  • contus-video-gallery/trunk/admin/controllers/videoadsController.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/controllers/videogoogleadsenseController.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/controllers/videosController.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/controllers/videosSubController.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     
    8282       else {
    8383        /** Check the playlist array */
    84         if ($video_aid && is_array ( $act_playlist )) {
    85           $add_list       = array_diff ( $act_playlist, array () );
    86           $currentVideoID = $video_aid;
    87         }
     84        $checkResult = true;
     85      }
     86      if( $checkResult == true && ($video_aid && is_array ( $act_playlist ))) {
     87            $add_list       = array_diff ( $act_playlist, array () );
     88            $currentVideoID = $video_aid;
    8889      }   
    8990      /** Create new playlist */
     
    204205            /** Rename subtitle1 file */
    205206           
    206             $new_subtitle1  = $insertflag . '_' . $subtitle_lang1 . '(1).srt';
     207            $new_subtitle1  = $insertflag . '_' . $subtitle_lang1 . '.srt';
    207208            $sub_title1     = rename ( $this->_srt_path . $subtitle1, $this->_srt_path . $new_subtitle1);
    208209            if(!$sub_title1) {
     
    212213          if (! empty ( $subtitle2 )) {
    213214            /** Rename subtitle2 file */
    214             $new_subtitle2 = $insertflag . '_' . $subtitle_lang2 . '(2).srt';
     215            $new_subtitle2 = $insertflag . '_' . $subtitle_lang2 . '.srt';
    215216            $sub_title2 = rename ( $this->_srt_path . $subtitle2, $this->_srt_path . $new_subtitle2 );
    216217            if(!$sub_title2) {
     
    279280         *  Rename the file with curernt video id */
    280281        if (file_exists ( $sub_title_path ) && ( $subtitle != $new_subtitle )) {
    281           $new_subtitle   = $this->_videoId . '_' . $subtitle_lang . '('. $val .').srt';
     282          $new_subtitle   = $this->_videoId . '_' . $subtitle_lang . '.srt';
    282283          rename ( $sub_title_path, $this->_srt_path . $new_subtitle );
    283284        } else {
  • contus-video-gallery/trunk/admin/controllers/videosettingsController.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     
    8686          $recent_video_order     = filter_input ( INPUT_POST, 'recent_video_order' );
    8787          $related_video_count    = filter_input ( INPUT_POST, 'related_video_count' );
     88          $playlist_count    = filter_input ( INPUT_POST, 'playlist_count' );
    8889          $report_visible = filter_input ( INPUT_POST, 'report_visible' );
    8990          $iframe_visible = filter_input ( INPUT_POST, 'iframe_visible' );
     
    120121              'subTitleBgColor' => $subTitleBgColor, 'subTitleFontFamily'  => $subTitleFontFamily,'subTitleFontSize' => $subTitleFontSize, 'show_social_icon' => $showSocialIcon,
    121122              'show_rss_icon'  => $show_rss_icon, 'show_posted_by' => $showPostedBy,'show_related_video' => $show_related_video, 'recentvideo_order' => $recent_video_order,
    122               'related_video_count' => $related_video_count,'report_visible' => $report_visible, 'iframe_visible'  => $iframe_visible,'show_added_on' => $show_added_on,'showTitle' => $show_title,
     123              'related_video_count' => $related_video_count,'playlist_count' => $playlist_count,'report_visible' => $report_visible, 'iframe_visible'  => $iframe_visible,'show_added_on' => $show_added_on,'showTitle' => $show_title,
    123124              'youtube_key' => $youtube_key, 'user_allowed_method' => $user_allowed_method, 'member_upload_enable' => $member_upload_enable, 'member_publish_enable' => $member_publish_enable,
    124125              'googleadsense_visible' => $googleadsense_visible, 'amazon_bucket_access_secretkey'  => $amazon_bucket_access_secretkey, 'amazon_bucket_access_key'=> $amazon_bucket_access_key,
  • contus-video-gallery/trunk/admin/css/adminsettings.min.css

    r1251095 r1306821  
    1111    .apptha_gallery .column{padding-bottom:0px}
    1212    .apptha_gallery .admin_settings .column .portlet,.apptha_gallery .admin_settings .column .ui-sortable-handle{margin-right:14px;}
     13    .apptha_gallery .wp-list-table {margin-top: 10px;overflow: auto; width: 100%; display: block;}
     14    .wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){    display: table-cell;}
     15    .apptha_gallery .column-admethod, .apptha_gallery .column-createddate, .apptha_gallery .column-id, .apptha_gallery .column-image, .apptha_gallery .column-order, .apptha_gallery .column-ordering, .apptha_gallery .column-path, .apptha_gallery .column-playlistname, .apptha_gallery .column-sortorder{display:none !important;}
    1316}
    1417@media screen and (max-width: 1025px) and (min-width: 900px){
    1518td.column-name {padding-left: 40px;}
    1619.form-table input[type=text] {width: 100%;}
     20
    1721}
     22@media screen and (max-width: 782px)
     23{
     24.wp-list-table tr:not(.inline-edit-row):not(.no-items) td:not(.check-column){    display: table-cell;} 
     25    .apptha_gallery .column-admethod, .apptha_gallery .column-createddate, .apptha_gallery .column-id, .apptha_gallery .column-image, .apptha_gallery .column-order, .apptha_gallery .column-ordering, .apptha_gallery .column-path, .apptha_gallery .column-playlistname, .apptha_gallery .column-sortorder{display:none !important;}
     26
     27}
  • contus-video-gallery/trunk/admin/js/admin.js

    r1251095 r1306821  
    44 * @category   Apptha
    55 * @package    Contus video Gallery
    6  * @version    2.9
     6 * @version    3.0
    77 * @author     Apptha Team <[email protected]>
    8  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     8 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    99 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010 */
  • contus-video-gallery/trunk/admin/js/admin.min.js

    r1251095 r1306821  
    44 * @category   Apptha
    55 * @package    Contus video Gallery
    6  * @version    2.9
     6 * @version    3.0
    77 * @author     Apptha Team <[email protected]>
    8  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     8 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    99 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010 */
     
    1414 * @category   Apptha
    1515 * @package    Contus video Gallery
    16  * @version    2.9
     16 * @version    3.0
    1717 * @author     Apptha Team <[email protected]>
    18  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     18 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1919 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    2020 */
  • contus-video-gallery/trunk/admin/js/vg_sortorder.js

    r1251095 r1306821  
    44 * @category   Apptha
    55 * @package    Contus video Gallery
    6  * @version    2.9
     6 * @version    3.0
    77 * @author     Apptha Team <[email protected]>
    8  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     8 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    99 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010 */
  • contus-video-gallery/trunk/admin/models/ajaxplaylist.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/models/playlist.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/models/video.php

    r1251095 r1306821  
    66 * @category   Apptha
    77 * @package    Contus video Gallery
    8  * @version    2.9
     8 * @version    3.0
    99 * @author     Apptha Team <[email protected]>
    10  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     10 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1111 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1212 */
  • contus-video-gallery/trunk/admin/models/videoad.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/models/videogoogleadsense.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/views/ajaxplaylist/ajaxplaylist.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/views/playlist/playlist.php

    r1251095 r1306821  
    33  Name: Wordpress Video Gallery
    44  Plugin URI: http://www.apptha.com/category/extension/Wordpress/Video-Gallery
    5   Description: playlist model file.
     5  Description: category model file.
    66  Version: 2.9
    77  Author: Apptha
  • contus-video-gallery/trunk/admin/views/video/addvideo.php

    r1251095 r1306821  
    66 * @category   Apptha
    77 * @package    Contus video Gallery
    8  * @version    2.9
     8 * @version    3.0
    99 * @author     Apptha Team <[email protected]>
    10  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     10 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1111 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1212 */
     
    1515$video_description  = '';
    1616$user_admin = 'administrator';
     17global $current_user;
    1718$checked = 'checked="checked"';
    1819/** Get empty image URL */
     
    614615<?php /** Enable/disbale download option ends */
    615616/** Enable/disbale publish option starts */ ?>
    616 <?php  if ($user_role == 'subscriber') {
    617     if($player_colors ['member_publish_enable']==1){ ?>
    618                                     <tr><?php /** Display Publish field */  ?>
    619                                         <th scope="row"><?php esc_attr_e( 'Publish', APPTHA_VGALLERY ) ?></th>
    620                                         <td><input type="radio" name="publish" id="" <?php if ( !isset( $videoEdit->publish ) ){
    621                                               echo $checked;
    622                                             } if ( isset( $videoEdit->publish ) && $videoEdit->publish == '1' ) {
    623 echo $checked;
    624 } ?> value="1"> <label>Yes</label>
    625 <input type="radio" name="publish" id="" <?php  if ( isset( $videoEdit->publish ) && $videoEdit->publish == '0' ) {
    626                                               echo $checked;
    627                                             } ?> value="0"> <label>No</label></td>
    628                                     </tr>
    629                                     <?php }
    630 else{ ?>
    631 <tr>
    632                                         <th scope="row"><?php esc_attr_e( 'Publish', APPTHA_VGALLERY ) ?></th>
    633                                         <td><input type="radio" id="" disabled name="publish" value="1"> <label>Yes</label>
    634                                         <input type="radio" id="" checked="checked" name="publish" value="0"> <label>No</label></td>
    635                                     </tr>
    636  <?php  }
    637  }
    638         if ($user_admin) { ?>
     617
    639618<tr><?php /** Display Publish field */  ?>
    640619                                        <th scope="row"><?php esc_attr_e( 'Publish', APPTHA_VGALLERY ) ?></th>
     
    648627                                            } ?> value="0"> <label>No</label></td>
    649628                                    </tr>
    650 <?php  } ?>
     629
    651630                                </table>
    652631                            </div>
  • contus-video-gallery/trunk/admin/views/video/video.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     
    184184                        <p> To display recent videos thumb images in any post/page you can use the shortcode <strong>[recentvideo]</strong> </p>
    185185                        <p> To display featured videos thumb images in any post/page you can use the shortcode <strong>[featuredvideo]</strong> </p>
     186                        <p> To display watch history videos in any post/page you can use the shortcode <strong>[watch_history]</strong> </p>
     187                        <p> To display watch later videos in any post/page you can use the shortcode <strong>[watch_later]</strong> </p>
     188                        <p> To display playlist videos in any post/page you can use the shortcode <strong>[showplaylist]</strong> </p>
     189                        <p> To display channel in any post/page you can use the shortcode <strong>[videochannel]</strong> </p>                       
    186190                    </div>
    187191                </div>
  • contus-video-gallery/trunk/admin/views/videoads/addvideoads.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/views/videoads/videoads.php

    r1251095 r1306821  
    55 *  @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/views/videogoogleadsense/videoaddgoogleadsense.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/views/videogoogleadsense/videogoogleadsense.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/admin/views/videosetting.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     
    654654                              <input name="related_video_count" type="text" id="related_video_count" size="20" value="<?php echo $player_colors['related_video_count']; ?>"></td>
    655655                              </tr>
     656                              <?php /** Playlist Count */ ?>
     657                              <?php echo $gallerySeparatorDiv; ?> <th>
     658                              <?php esc_attr_e( 'Limit Playlist count', APPTHA_VGALLERY ); ?></th> <td>
     659                              <input name="playlist_count" type="text" id="related_video_count" size="20" value="<?php echo $player_colors['playlist_count']; ?>"></td>
     660                              </tr>
    656661                              <?php /** No Of Categories in Home page setting */ ?>
    657662                              <?php echo $gallerySeparatorDiv; ?> <th>
  • contus-video-gallery/trunk/css/jquery.jcarousel.css

    r1251095 r1306821  
    55 * @version    2.8
    66 * @author     Apptha Team <[email protected]>
    7  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     7 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    88 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    99 */
  • contus-video-gallery/trunk/css/rtl.css

    r1251095 r1306821  
    33 * @category   Apptha
    44 * @package    Contus video Gallery
    5  * @version    2.9
     5 * @version    3.0
    66 * @author     Apptha Team <[email protected]>
    7  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     7 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    88 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    99 */
  • contus-video-gallery/trunk/css/skins.css

    r1251095 r1306821  
    33 * @category   Apptha
    44 * @package    Contus video Gallery
    5  * @version    2.9
     5 * @version    3.0
    66 * @author     Apptha Team <[email protected]>
    7  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     7 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    88 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    99 */
  • contus-video-gallery/trunk/css/style.css

    r1251095 r1306821  
    88License: GPL2
    99*/
    10  
    11 h1 .videoHname a, h2 .videoHname a, h3 .videoHname a, h4 .videoHname a, h5 .videoHname a, h6 .videoHname a { }
    12 .home-category h5, .home-category h1, .home-category h2, .home-category h3, .home-category h5, .home-category h6{margin: 0 !important; padding: 0 !important;  text-decoration: none !important;}
    13 .paddBotm h5, .paddBotm h1, .paddBotm h2, .paddBotm h3, .paddBotm h5, .paddBotm h6{margin: 0 !important; padding: 0 !important;  text-decoration: none !important;}
    14 .video-cat-thumb h1 a, .video-cat-thumb h2 a, .video-cat-thumb h3 a, .video-cat-thumb h4 a, .video-cat-thumb h5 a, .video-cat-thumb h6 a{text-decoration: none !important;}
    15 .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;  margin-bottom: 3px !important; float: left;}
    17 .vid_info h6{ overflow: hidden;}
    18 .video-block h5 a{width: 100%;}
    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); }
    21 .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;}
    22 .video-cat-thumb h5 a, .video-cat-thumb h6 a{margin: 0 !important; padding: 0 !important; text-decoration: none !important;}
    23 .mediaspace  {margin-bottom: 10px; margin-top: 10px; clear: both;}
    24 .home-category{  margin: 0px 0}
    25 .imgBorder{
    26 display: inline-block;
    27 overflow: hidden;
    28 float: left;
    29 width: 43%;
    30 max-width: 120px;
    31 margin-right: 4%;
    32 position: relative;
    33 max-height: 80px;
    34 }
    35 .imgSidethumb{
    36 display: inline-block;
    37 overflow: hidden;
    38 padding: 2.5% 2.5% 0px;
    39 float: left;
    40 width: 94%;
    41 }
    42 .sideThumb{
     10
     11.video-thumbimg,
     12label .help {
     13    display: inline-block
     14}
     15.video-more,
     16.video-more:hover,
     17.videoHname {
     18    color: #9f9f9f
     19}
     20.home-category h1,
     21.home-category h2,
     22.home-category h3,
     23.home-category h5,
     24.home-category h6,
     25.paddBotm h1,
     26.paddBotm h2,
     27.paddBotm h3,
     28.paddBotm h5,
     29.paddBotm h6 {
     30    margin: 0!important;
     31    padding: 0!important;
     32    text-decoration: none!important
     33}
     34.paddBotm h1 a,
     35.paddBotm h2 a,
     36.paddBotm h3 a,
     37.paddBotm h4 a,
     38.paddBotm h5 a,
     39.paddBotm h6 a,
     40.video-cat-thumb h1 a,
     41.video-cat-thumb h2 a,
     42.video-cat-thumb h3 a,
     43.video-cat-thumb h4 a,
     44.video-cat-thumb h5 a,
     45.video-cat-thumb h6 a {
     46    text-decoration: none!important
     47}
     48.video-block h1 a,
     49.video-block h2 a,
     50.video-block h3 a,
     51.video-block h4 a,
     52.video-block h5 a,
     53.video-block h6 a {
     54    text-decoration: none!important;
     55    margin-bottom: 3px!important;
     56    float: left
     57}
     58.vid_info h6 {
     59    overflow: hidden
     60}
     61.video-block h5 a {
     62    width: 100%
     63}
     64.video-block h5 {
     65    margin-top: 5px!important
     66}
     67.video-block .vid_info .video_views {
     68    font-size: 11px!important;
     69    float: right;
     70    opacity: .8;
     71    filter: alpha(opacity=80)
     72}
     73.imgBorder,
     74.imgSidethumb {
     75    float: left;
     76    display: inline-block;
     77    overflow: hidden
     78}
     79.home-category h1 a,
     80.home-category h2 a,
     81.home-category h3 a,
     82.home-category h4 a,
     83.home-category h5 a,
     84.home-category h6 a,
     85.video-cat-thumb h5 a,
     86.video-cat-thumb h6 a {
     87    margin: 0!important;
     88    padding: 0!important;
     89    text-decoration: none!important
     90}
     91.embed,
     92.playlistName,
     93.playlistVideoLinkElement:hover,
     94.sidebar-wrap .widget-title a,
     95.video-more,
     96.videoHname,
     97.widget .side_video_info h6 a,
     98ul.ratethis li a {
     99    text-decoration: none
     100}
     101.mediaspace {
    43102    margin-bottom: 10px;
    44 }
    45 .imgHome
    46 {
    47     width:128px !important;
    48     height:72px !important;
     103    margin-top: 10px;
     104    clear: both
     105}
     106.home-category {
     107    margin: 0
     108}
     109.paddBotm,
     110.sideThumb {
     111    margin-bottom: 10px
     112}
     113.imgBorder {
     114    width: 43%;
     115    max-width: 120px;
     116    margin-right: 4%;
     117    position: relative;
     118    max-height: 80px
     119}
     120.imgSidethumb {
     121    padding: 2.5% 2.5% 0;
     122    width: 94%
     123}
     124.imgHome {
     125    width: 128px!important;
     126    height: 72px!important;
     127    cursor: pointer
     128}
     129label.reportvideotype {
     130    height: 25px;
     131    width: 25px;
     132    clear: both;
     133    background: url(../images/help-icon.png) no-repeat;
     134    float: none;
     135    vertical-align: bottom;
     136    line-height: 20px;
     137    background-postion: center 20px
     138}
     139.side_video_info {
     140    float: left;
     141    width: 50%
     142}
     143.side_video_info h6 {
     144    line-height: 15px
     145}
     146.sideThumb {
     147    padding: 5px 0;
     148    width: 100%!important;
     149    height: 100%!important;
     150    list-style: none
     151}
     152.video-thumbimg {
     153    font-size: 16px;
     154    position: relative;
     155    width: 140px;
     156    float: left;
     157    height: 90px
     158}
     159.catmain .video-block:first-child,
     160.feature-video-list .video-block:first-child {
     161    padding-left: 0
     162}
     163.videoName {
     164    text-align: left;
    49165    cursor: pointer;
    50  }
    51  label.reportvideotype{height:25px; clear:both; width:25px; clear:both;background:url('../images/help-icon.png') no-repeat;float:none;vertical-align: bottom;line-height:20px; background-postion:center 20px; }
    52  label .help { display: inline-block;}
    53 .paddBotm{margin-bottom:10px;}
    54 .side_video_info{float: left;width: 50%;}
    55 .side_video_info h6{line-height: 15px;}
    56 .sideThumb
    57 {
    58 padding:5px 0;
    59 width:100% !important;
    60 height: 100% !important;
    61 list-style: none;
    62 }
    63 .video-thumbimg
    64 {
    65 display: inline-block;
    66 font-size: 16px;
    67 position: relative;width: 140px;
    68 float: left;
    69 height:90px;
    70 }
    71 .catmain .video-block:first-child, .feature-video-list .video-block:first-child{padding-left:0;}
    72 .videoName
    73 {
    74 text-align: left;
    75 cursor: pointer;
    76 line-height: 1.2;
    77 float:left;
    78 }
    79 .clear {clear:both;}
    80 .clearfix:after {clear:both;display:block;content:" ";height:0;visibility:hidden;}
    81 .clearfix {display:block;}
    82 * html .clearfix {height:1%;}
    83 
    84 .more_title{  margin: 15px 0; }
    85 .videoHname {clear: both;}
    86 #mycarousel .videoHname {float: none;}
    87 .tags
    88 {
    89 float:left;
    90 padding: 1px 0px 1px 0px;
    91 text-align: left;
    92 }
    93 .video-more {float:right;clear:both; width: auto;text-decoration: none;font-size: 12px;font-weight: bold; color:#9f9f9f;}
    94 .video-more:hover{
    95     color:#9f9f9f;
    96 }
    97 .sidebar-wrap .video-more {font-size: 11px;}
    98 /*.fb_iframe_widget iframe, .fb_iframe_widget{width:100% !important;}*/
    99 /*.fb_iframe_widget span:first-child{width:100% !important;}*/
    100 
    101 .video-socialshare{float:right; height: 22px;}
    102 .video-socialshare li{float:left;margin-left:5px;list-style-image:none !important;list-style:none !important;}
    103 input[type="button"],input[type="submit"]{cursor:pointer}
    104 h4.playlistName {float:left; }                         
    105 .floatleft{float:left}
    106 .fbcomments{padding:10px;background: white}
    107 .duration, .most-duration, .home-duration{line-height: normal !important;}
    108 .right{float: right}
    109 .left{float: left;}
    110 .video-pagination a{margin: 0 5px; text-align: right;}
     166    line-height: 1.2;
     167    float: left
     168}
     169.clear {
     170    clear: both
     171}
     172.clearfix:after {
     173    clear: both;
     174    display: block;
     175    content: " ";
     176    height: 0;
     177    visibility: hidden
     178}
     179.clearfix {
     180    display: block
     181}
     182* html .clearfix {
     183    height: 1%
     184}
     185.more_title {
     186    margin: 15px 0
     187}
     188#mycarousel .videoHname {
     189    float: none
     190}
     191.tags {
     192    float: left;
     193    padding: 1px 0;
     194    text-align: left
     195}
     196.video-more {
     197    float: right;
     198    clear: both;
     199    width: auto;
     200    font-size: 12px;
     201    font-weight: 700
     202}
     203.sidebar-wrap .video-more {
     204    font-size: 11px
     205}
     206.video-socialshare {
     207    float: right;
     208    height: 22px
     209}
     210.video-socialshare li {
     211    float: left;
     212    margin-left: 5px;
     213    list-style: none!important
     214}
     215input[type=button],
     216input[type=submit] {
     217    cursor: pointer
     218}
     219.floatleft,
     220h4.playlistName {
     221    float: left
     222}
     223.fbcomments {
     224    padding: 10px;
     225    background: #fff
     226}
     227.duration,
     228.home-duration,
     229.most-duration {
     230    line-height: normal!important
     231}
     232.right {
     233    float: right
     234}
     235.left {
     236    float: left
     237}
     238.video-pagination a {
     239    margin: 0 5px;
     240    text-align: right
     241}
     242.sidebar-wrap ul,
    111243.video-block a img,
    112 .video-block img {padding: 0 !important; margin: 0 !important; width: 140px !important; max-width: none;height: 90px !important; border:none}
    113 .videoHname, .playlistName{display: block;clear: both;text-decoration: none}
    114 .videoHname {font-size: 12px;font-weight: bold;border-width: 0px !important; color:#9f9f9f;}
    115 .side_video_info .videoHname {line-height: 15px;}
    116 .video-block a{border-width: 0px !important;}
    117 #videos-category.sidebar-wrap .videoHname {height: auto;}
    118 .sidebar-wrap .views {font-size: 11px;clear: both;display: block;}
    119 .sidebar-wrap { width: 100%;}
    120 .sidebar-wrap ul{margin: 0 !important;padding: 0 !important;}
    121 .sidebar-wrap ul,
    122 .sidebar-wrap li{list-style: none; background:  transparent !important;}
    123 .sidebar-wrap .widget-title a{text-decoration: none;}
    124 .playlistName {font-size: 11px;border-width: 0px !important;}
    125 .video-block a.playlistName:visited,.video-block a.playlistName:active,.video-block a.playlistName{color:#21759b; text-decoration:none;}
    126 .ulwidget .imgBorder img{width:100%;max-height: 80px;margin: 0;}
    127 .jcarousel-skin-tango{}
    128 
    129 .entry-content #mediaspace object{margin-bottom: 0;}
    130 h3.related-videos{margin: 0 !important; padding: 0 !important; text-align: left;}
    131 .related-videos h3{text-align: left; margin: 0; padding: 0;}
    132 .video-page-container{ font-family: helvetica, arial, sans-serif; font-size: 12px; }
    133 .video-page-container .video-page-info strong, .video-page-container .video-page-info span{/*width: auto;*/float:left;text-align:left; display: inline-block;  }
    134 .video-page-container strong{/*width: auto; */display: inline-block;}
    135 .video-page-container .video-page-date{width: 48%; float: left;text-align: left;}
    136 .video-page-container .video-page-views{ float: right; text-align: right;}
    137 .video-page-container .video-page-username{ width: 48%; float: left; text-align: left;}
    138 .video-page-container.shortcode .video-page-info{float: right;text-align: right;width: 100%;}
    139 .video-page-container.shortcode .video-page-info.noviews{width: 100%;}
    140 .video-page-container.shortcode .video-page-views {width:100%;float: right;text-align: right;}
    141 .video-page-container.shortcode .video-page-rating{width: auto;float: right;}
    142 .video-page-container.shortcode .noviews .video-page-rating{width: auto;}
    143 
    144 .video-page-container.shortcode .video-page-rating .floatleft {float: right;}
    145 .video-page-container.shortcode .video-page-rating .floatleft .rateimgleft{ float: right;}
    146 
    147 .video-page-container .video-page-tag{ padding-bottom: 10px; margin-bottom: 5px; clear: both;}
    148 .video-page-container .video-page-category {}
    149 .video-page-info{clear: both; overflow: hidden; padding-bottom: 5px; }
    150 .video-page-info .video-page-rating{float: right; *width:30%;}
    151 .video-page-info .video-page-rating .rateimgleft{float: right; }
    152 .video-page-info .video-page-rating .rateright-views{margin-right: 5px;padding-top: 2px;/*width: 120px;*/text-align: right;}
    153 .video-page-info .video-page-category{float: right;text-align: right;}
    154 .player embed{margin: 0 0 10px 0 !important; }
    155 .embed{ padding: 0 10px; border: 1px solid #ccc; text-decoration: none; float: left; }
    156 .embed .embed_text{ float: left;  }
    157 .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;}
    158 .video-page-desc{ width: 100%; overflow: hidden; text-align: justify; padding-top: 10px; clear: both;border-top: 1px solid #CCC;margin-top: 10px;}
    159 #embedcode{ padding: 2%; width: 95.5%; font-size: 13px; float: left; height: 90px; margin-top: 5px; }
    160 
    161 #reportform{ width:80%; font-size: 13px; float: left; background-color: #ffffff; box-shadow: 0 1px 0 #ffffff, inset 0 1px 1px rgba(0, 0, 0, 0.2);box-sizing: border-box;border: 1px solid #aaaaaa;border-bottom-color: #cccccc;border-radius: 2px; min-height:150px; margin:1% 0%; padding:0% 5%;clear: both;}
    162 #reportform input[type="button"]{ margin:2% 0%;}
    163 #reportform_ajax_loader{ position: absolute;clear: both;display: none;margin-top:25px; box-shadow:none;border:none;}
    164 .report-video-title{font-size:16px;font-weight:bold; padding:1px 0; margin:5px 0px; clear:both;}
    165 #report_video_response{clear:both; color:#f00; padding:5px 0px; font-size:13px;}
    166 #reportform img{
    167     position:absolute;
    168     clear:both;
    169 }
    170 #iframe-content{ padding: 2%; width: 95.5%; font-size: 13px; float: left; height: 90px; margin-top: 5px;}
     244.video-block img {
     245    margin: 0!important;
     246    padding: 0!important
     247}
     248.video-block a img,
     249.video-block img {
     250    width: 140px!important;
     251    max-width: none;
     252    height: 90px!important;
     253    border: none
     254}
     255.playlistName,
     256.video-block a,
     257.videoHname {
     258    border-width: 0!important
     259}
     260.playlistName,
     261.videoHname {
     262    display: block;
     263    clear: both
     264}
     265.videoHname {
     266    font-size: 12px;
     267    font-weight: 700
     268}
     269.side_video_info .videoHname {
     270    line-height: 15px
     271}
     272#videos-category.sidebar-wrap .videoHname {
     273    height: auto
     274}
     275.sidebar-wrap .views {
     276    font-size: 11px;
     277    clear: both;
     278    display: block
     279}
     280.sidebar-wrap {
     281    width: 100%
     282}
     283.sidebar-wrap li,
     284.sidebar-wrap ul {
     285    list-style: none;
     286    background: 0 0!important
     287}
     288.playlistName {
     289    font-size: 11px
     290}
     291.video-block a.playlistName,
     292.video-block a.playlistName:active,
     293.video-block a.playlistName:visited {
     294    color: #21759b;
     295    text-decoration: none
     296}
     297.ulwidget .imgBorder img {
     298    width: 100%;
     299    max-height: 80px;
     300    margin: 0
     301}
     302.entry-content #mediaspace object {
     303    margin-bottom: 0
     304}
     305h3.related-videos {
     306    margin: 0!important;
     307    padding: 0!important;
     308    text-align: left
     309}
     310.related-videos h3 {
     311    text-align: left;
     312    margin: 0;
     313    padding: 0
     314}
     315.video-page-container {
     316    font-family: helvetica, arial, sans-serif;
     317    font-size: 12px
     318}
     319.video-page-container .video-page-info span,
     320.video-page-container .video-page-info strong {
     321    float: left;
     322    text-align: left;
     323    display: inline-block
     324}
     325.video-page-container strong {
     326    display: inline-block
     327}
     328.video-page-container .video-page-date {
     329    width: 48%;
     330    float: left;
     331    text-align: left
     332}
     333.video-page-container .video-page-views {
     334    float: right;
     335    text-align: right
     336}
     337.video-page-container .video-page-username {
     338    width: 48%;
     339    float: left;
     340    text-align: left
     341}
     342.video-page-container.shortcode .video-page-info {
     343    float: right;
     344    text-align: right;
     345    width: 100%
     346}
     347.video-page-container.shortcode .video-page-info.noviews {
     348    width: 100%
     349}
     350.video-page-container.shortcode .video-page-views {
     351    width: 100%;
     352    float: right;
     353    text-align: right
     354}
     355.video-page-container.shortcode .video-page-rating {
     356    width: auto;
     357    float: right
     358}
     359.video-page-container.shortcode .noviews .video-page-rating {
     360    width: auto
     361}
     362.video-page-container.shortcode .video-page-rating .floatleft,
     363.video-page-container.shortcode .video-page-rating .floatleft .rateimgleft {
     364    float: right
     365}
     366.video-page-container .video-page-tag {
     367    padding-bottom: 10px;
     368    margin-bottom: 5px;
     369    clear: both
     370}
     371.video-page-info {
     372    clear: both;
     373    overflow: hidden;
     374    padding-bottom: 5px
     375}
     376.video-page-info .video-page-rating,
     377.video-page-info .video-page-rating .rateimgleft {
     378    float: right
     379}
     380.video-page-info .video-page-rating .rateright-views {
     381    margin-right: 5px;
     382    padding-top: 2px;
     383    text-align: right
     384}
     385.video-page-info .video-page-category {
     386    float: right;
     387    text-align: right
     388}
     389.embed,
     390.embed .embed_text {
     391    float: left
     392}
     393.player embed {
     394    margin: 0 0 10px!important
     395}
     396.embed {
     397    padding: 0 10px;
     398    border: 1px solid #ccc
     399}
     400.embed .embed_arrow {
     401    width: 0;
     402    height: 0;
     403    border-left: 5px solid transparent;
     404    border-right: 5px solid transparent;
     405    border-top: 5px solid #666;
     406    margin-top: 7px;
     407    display: block;
     408    float: left;
     409    margin-left: 5px
     410}
     411.video-page-desc {
     412    width: 100%;
     413    overflow: hidden;
     414    text-align: justify;
     415    padding-top: 10px;
     416    clear: both;
     417    border-top: 1px solid #CCC;
     418    margin-top: 10px
     419}
     420#embedcode,
     421#iframe-content {
     422    width: 95.5%;
     423    float: left;
     424    height: 90px
     425}
     426#embedcode {
     427    padding: 2%;
     428    font-size: 13px;
     429    margin-top: 5px
     430}
     431#reportform {
     432    width: 80%;
     433    font-size: 13px;
     434    float: left;
     435    background-color: #fff;
     436    box-shadow: 0 1px 0 #fff, inset 0 1px 1px rgba(0, 0, 0, .2);
     437    box-sizing: border-box;
     438    border: 1px solid #aaa;
     439    border-bottom-color: #ccc;
     440    border-radius: 2px;
     441    min-height: 150px;
     442    margin: 1% 0;
     443    padding: 0 5%;
     444    clear: both
     445}
     446#reportform input[type=button] {
     447    margin: 2% 0
     448}
     449#reportform_ajax_loader {
     450    position: absolute;
     451    clear: both;
     452    display: none;
     453    margin-top: 25px;
     454    box-shadow: none;
     455    border: none
     456}
     457.report-video-title {
     458    font-size: 16px;
     459    font-weight: 700;
     460    padding: 1px 0;
     461    margin: 5px 0;
     462    clear: both
     463}
     464#report_video_response {
     465    clear: both;
     466    color: red;
     467    padding: 5px 0;
     468    font-size: 13px
     469}
     470#reportform img {
     471    position: absolute;
     472    clear: both
     473}
     474#iframe-content {
     475    padding: 2%;
     476    font-size: 13px;
     477    margin-top: 5px
     478}
    171479.video_wrapper h3,
    172 .video_wrapper h5{overflow: hidden;clear: both;}
    173 .video_wrapper h3{margin: 5px 0 !important; }
    174 .video_wrapper h5{margin: 5px 0 !important; }
    175 .video-block-container{ margin: 0 !important; padding: 0 !important;}
    176 .video-block:first-child{ padding-left: 0px !important; margin-left: 0px !important; width: 140px; }
    177 .video-block i{display: none !important}
    178 .video-block .vid_info{}
    179  input.reportbutton{width: 85px!important; padding:10px 0px 10px!important;}
    180 .video-block{line-height: 17px;    float: none;    padding-bottom: 25px;    width:140px;    min-height: 145px;    display: inline-block !important;vertical-align: top;list-style-type: none;padding-top: 10px;}
    181 .video_thumb_content{display: table;}
    182 .video_duration{ position: absolute; right: 0; bottom: 0px; font-size: 10px; background: #000; padding: 0 3px; color: #fff; line-height: 11px; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px;}
    183 .contus_tablenav-pages{float: right; margin: 1em 0;}
    184 .contus_tablenav-pages a,
    185 .contus_tablenav-pages span{padding: 0 2px;color:#9f9f9f;}
    186 
    187 h2.related-videos{ text-align: left !important; margin: 20px 0 0 !important;  }
    188 #disqus_thread{ margin-top: 20px;}
    189 
    190 #featured-videos .sidebar-wrap li{background: transparent;padding: 0;}
    191 .widget .video_duration {clear: both; float: none; display: block; float: right; position: absolute;
    192 right: 0px;
    193 bottom:0px;}
    194 .widget .side_video_info h6{ padding-bottom: 5px; margin: 0;}
    195 .widget .side_video_info h6 a{ text-decoration: none;}
    196 .widget .side_video_info .video_views{ float: left;   font-size: 11px;}
    197 
    198 .widget #featured-videos ul,
     480.video_wrapper h5 {
     481    overflow: hidden;
     482    clear: both;
     483    margin: 5px 0!important
     484}
     485.video-block-container {
     486    margin: 0!important;
     487    padding: 0!important
     488}
     489.video-block:first-child {
     490    padding-left: 0!important;
     491    margin-left: 0!important;
     492    width: 140px
     493}
     494.video-block i {
     495    display: none!important
     496}
     497input.reportbutton {
     498    width: 85px!important;
     499    padding: 10px 0!important
     500}
     501.video-block {
     502    line-height: 17px;
     503    float: none;
     504    padding-bottom: 25px;
     505    width: 140px;
     506    min-height: 145px;
     507    display: inline-block!important;
     508    vertical-align: top;
     509    list-style-type: none;
     510    padding-top: 10px
     511}
     512.video_thumb_content {
     513    display: table
     514}
     515.video_duration {
     516    position: absolute;
     517    right: 0;
     518    bottom: 0;
     519    font-size: 10px;
     520    background: #000;
     521    padding: 0 3px;
     522    color: #fff;
     523    line-height: 11px;
     524    -webkit-border-radius: 2px;
     525    -moz-border-radius: 2px;
     526    border-radius: 2px
     527}
     528.contus_tablenav-pages {
     529    float: right;
     530    margin: 1em 0
     531}
     532.contus_tablenav-pages a,
     533.contus_tablenav-pages span {
     534    padding: 0 2px;
     535    color: #9f9f9f
     536}
     537h2.related-videos {
     538    text-align: left!important;
     539    margin: 20px 0 0!important
     540}
     541#disqus_thread {
     542    margin-top: 20px
     543}
     544#featured-videos .sidebar-wrap li {
     545    background: 0 0;
     546    padding: 0
     547}
     548.widget .video_duration {
     549    clear: both;
     550    display: block;
     551    float: right;
     552    position: absolute;
     553    right: 0;
     554    bottom: 0
     555}
     556.widget .side_video_info h6 {
     557    padding-bottom: 5px;
     558    margin: 0
     559}
     560.widget .side_video_info .video_views {
     561    float: left;
     562    font-size: 11px
     563}
     564.widget #featured-videos ul,
     565.widget #popular-videos ul,
    199566.widget #recent-videos ul,
    200567.widget #related-videos ul,
    201 .widget #videos-category ul,
    202 .widget #popular-videos ul {list-style: none !important; padding: 0 !important; margin: 0 !important; background: transparent;}
    203 .widget #featured-videos ul li,
     568.widget #videos-category ul {
     569    list-style: none!important;
     570    padding: 0!important;
     571    margin: 0!important;
     572    background: 0 0
     573}
     574.widget #featured-videos ul li,
     575.widget #popular-videos ul li,
    204576.widget #recent-videos ul li,
    205577.widget #related-videos ul li,
    206 .widget #videos-category ul,
    207 .widget #popular-videos ul li {background: transparent;padding: 1;}
    208 
    209 .flike{width: 85px;}
    210 .ttweet{width: 60px;}
    211 .video-socialshare .gplusshare{margin-left: 3px;}
     578.widget #videos-category ul {
     579    background: 0 0;
     580    padding: 1
     581}
     582.flike {
     583    width: 85px
     584}
     585.ttweet {
     586    width: 60px
     587}
     588.video-socialshare .gplusshare {
     589    margin-left: 3px
     590}
    212591.fbshare {
    213 background: url(../images/fb_share_button.png) no-repeat;
    214 display: block;
    215 width: 57px;
    216 height: 20px;
    217 }
    218 .videoplayer_title{clear:both;}
    219 
    220 .jcarousel-skin-tango #mycarousel li .imgSidethumb img{width: 120px; height: 90px;cursor: pointer;}
    221 
    222 /***************************** Banner   **/
    223 
    224 #featured{height: 330px;
    225 /*overflow: hidden;*/
    226 }
    227 #gallery_banner_video{float: right; width:70%;}
    228 #gallery_banner_list{float: left; width: 30%;}
    229 #gallery_banner_list ul{padding: 0; margin: 0; list-style: none; background: transparent !important;}
    230 #gallery_banner_list ul li{list-style: none; margin: 0;
    231 /*background: transparent !important;*/
    232 clear: both;
    233 background: #eeeeee; /* Old browsers */
    234 background: -moz-linear-gradient(top,  #eeeeee 0%, #cccccc 100%); /* FF3.6+ */
    235 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */
    236 background: -webkit-linear-gradient(top,  #eeeeee 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */
    237 background: -o-linear-gradient(top,  #eeeeee 0%,#cccccc 100%); /* Opera 11.10+ */
    238 background: -ms-linear-gradient(top,  #eeeeee 0%,#cccccc 100%); /* IE10+ */
    239 background: linear-gradient(to bottom,  #eeeeee 0%,#cccccc 100%); /* W3C */
    240 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */
    241 
    242 overflow: hidden;
    243 padding: 5px 5px 6px;
    244 }
    245 #gallery_banner_list ul li{margin-bottom: 1px;}
    246 #gallery_banner_list ul li.ui-tabs-selected{background: #f2f0f0; border: 1px solid #ccc; border-right-width: 0px; }
    247 #gallery_banner_list ul li{border: 1px solid #dfdfdf;border-right-width: 0px;}
    248 #gallery_banner_list ul li:hover{background: #dfdfdf;}
    249 #gallery_banner_list ul li .nav_container{}
    250 #gallery_banner_list ul li .nav_container .page-thumb-img{float: left;
    251 width: 80px;
    252 margin-right: 5px;}
    253 #gallery_banner_list ul li .nav_container .slide_video_info .category{color:#000;}
    254 #gallery_banner_list ul li .nav_container .slide_video_info{float: left;
    255 line-height: 16px;
    256 font-size: 12px;
    257 width: 99px;
     592    background: url(../images/fb_share_button.png) no-repeat;
     593    display: block;
     594    width: 57px;
     595    height: 20px
     596}
     597#lightm,
     598.playlistIcon,
     599.watchlaterIcon {
     600    display: none
     601}
     602.videoplayer_title {
     603    clear: both
     604}
     605.jcarousel-skin-tango #mycarousel li .imgSidethumb img {
     606    width: 120px;
     607    height: 90px;
     608    cursor: pointer
     609}
     610#featured {
     611    height: 330px
     612}
     613#gallery_banner_video {
     614    float: right;
     615    width: 70%
     616}
     617#gallery_banner_list {
     618    float: left;
     619    width: 30%
     620}
     621#gallery_banner_list ul {
     622    padding: 0;
     623    margin: 0;
     624    list-style: none;
     625    background: 0 0!important
     626}
     627#gallery_banner_list ul li {
     628    list-style: none;
     629    margin: 0 0 1px;
     630    clear: both;
     631    background: #eee;
     632    background: -moz-linear-gradient(top, #eee 0, #ccc 100%);
     633    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #eee), color-stop(100%, #ccc));
     634    background: -webkit-linear-gradient(top, #eee 0, #ccc 100%);
     635    background: -o-linear-gradient(top, #eee 0, #ccc 100%);
     636    background: -ms-linear-gradient(top, #eee 0, #ccc 100%);
     637    background: linear-gradient(to bottom, #eee 0, #ccc 100%);
     638    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc', GradientType=0);
     639    overflow: hidden;
     640    padding: 5px 5px 6px
     641}
     642#gallery_banner_list ul li.ui-tabs-selected {
     643    background: #f2f0f0;
     644    border: 1px solid #ccc;
     645    border-right-width: 0
     646}
     647#gallery_banner_list ul li {
     648    border: 1px solid #dfdfdf;
     649    border-right-width: 0
     650}
     651#gallery_banner_list ul li:hover {
     652    background: #dfdfdf
     653}
     654#gallery_banner_list ul li .nav_container .page-thumb-img {
     655    float: left;
     656    width: 80px;
     657    margin-right: 5px
     658}
     659#gallery_banner_list ul li .nav_container .slide_video_info .category {
     660    color: #000
     661}
     662#gallery_banner_list ul li .nav_container .slide_video_info {
     663    float: left;
     664    line-height: 16px;
     665    font-size: 12px;
     666    width: 99px
    258667}
    259668.videoplayer {
     669    position: relative
     670}
     671@media screen and (max-width: 600px) {
     672    .videoplayer {
     673        position: relative;
     674        padding-bottom: 56.25%;
     675        padding-top: 30px;
     676        height: 0;
     677        overflow: hidden
     678    }
     679    .videoplayer embed,
     680    .videoplayer iframe,
     681    .videoplayer object,
     682    .videoplayer video {
     683        position: absolute;
     684        top: 0;
     685        left: 0;
     686        width: 100%;
     687        height: 100%
     688    }
     689    #htmlplayer #video,
     690    #player,
     691    #player #video,
     692    #player iframe,
     693    .player,
     694    .player embed,
     695    .player iframe,
     696    .player object {
     697        width: 100%!important;
     698        height: auto
     699    }
     700    #container .video-block {
     701        margin: 0 15px 10px!important;
     702        min-height: 145px
     703    }
     704    .video-block-container .video-block {
     705        margin: 0 15px!important;
     706        min-height: 145px
     707    }
     708    .video-block:first-child {
     709        margin: 0 15px!important
     710    }
     711    .sidebar-wrap .imgBorder {
     712        width: 120px
     713    }
     714}
     715.ratethis {
     716    background: url(../images/stars831-thump.png) no-repeat;
     717    width: 100px;
     718    height: 20px;
     719    margin: 5px;
     720    clear: both;
    260721    position: relative;
    261 }
    262 @media screen and (max-width: 600px){
    263 /*    .videogallery,
    264     .type-videogallery{width: 100% !important;}*/
     722    list-style: none
     723}
     724#rateid ul.ratethis {
     725    list-style: none
     726}
     727.nopos {
     728    background-position: 0 0
     729}
     730.onepos {
     731    background-position: 0 -20px
     732}
     733.twopos {
     734    background-position: 0 -40px
     735}
     736.threepos {
     737    background-position: 0 -60px
     738}
     739.fourpos {
     740    background-position: 0 -80px
     741}
     742.fivepos {
     743    background-position: 0 -100px
     744}
     745#rateimg ul.ratethis li {
     746    text-indent: -999em;
     747    cursor: pointer;
     748    float: left;
     749    list-style: none
     750}
     751#rateimg .ratethis {
     752    margin: 0;
     753    padding: 0!important
     754}
     755.callout-header-home h2 {
     756    margin-bottom: 5px;
     757    font-size: 15px
     758}
     759h2.hoverable a {
     760    font-size: 18px
     761}
     762h2.hoverable a:hover {
     763    background: 0 0
     764}
     765ul.ratethis li a {
     766    text-indent: 9999px;
     767    position: absolute;
     768    left: 0;
     769    top: 0;
     770    width: 20px;
     771    height: 20px;
     772    z-index: 200
     773}
     774ul.ratethis li.one a {
     775    left: 0
     776}
     777ul.ratethis li.two a {
     778    left: 20px
     779}
     780ul.ratethis li.three a {
     781    left: 40px
     782}
     783ul.ratethis li.four a {
     784    left: 60px
     785}
     786ul.ratethis li.five a {
     787    left: 80px
     788}
     789ul.ratethis li a:hover {
     790    background: url(../images/stars831-thump.png) no-repeat;
     791    z-index: 2;
     792    width: 100px;
     793    height: 20px;
     794    overflow: hidden;
     795    left: 0
     796}
     797ul.ratethis li.one a:hover {
     798    background-position: 0 -120px
     799}
     800ul.ratethis li.two a:hover {
     801    background-position: 0 -140px
     802}
     803ul.ratethis li.three a:hover {
     804    background-position: 0 -160px
     805}
     806ul.ratethis li.four a:hover {
     807    background-position: 0 -180px
     808}
     809ul.ratethis li.five a:hover {
     810    background-position: 0 -200px
     811}
     812.player_related_video {
     813    clear: both
     814}
     815.video-socialshare iframe {
     816    margin: 0!important
     817}
     818.ratethis1 {
     819    background: url(../images/stars831.png) no-repeat!important;
     820    width: 60px;
     821    height: 12px;
     822    clear: both;
     823    position: relative;
     824    list-style: none;
     825    float: left;
     826    margin: 4px 0
     827}
     828ul.ratethis1 li {
     829    cursor: pointer;
     830    float: left
     831}
     832.nopos1 {
     833    background-position: 0 0!important
     834}
     835.onepos1 {
     836    background-position: 0 -12px!important
     837}
     838.twopos1 {
     839    background-position: 0 -24px!important
     840}
     841.threepos1 {
     842    background-position: 0 -36px!important
     843}
     844.fourpos1 {
     845    background-position: 0 -48px!important
     846}
     847.fivepos1 {
     848    background-position: 0 -60px!important
     849}
     850.playlistOuterBox,
     851.watchlaterIcon {
     852    background: #fff;
     853    position: absolute
     854}
     855.playlistContainer,
     856.playlistSearchBox {
     857    background-color: #F3F3F3;
     858    width: 99%
     859}
     860#videos-category .videoHname {
     861    min-height: initial
     862}
     863#videosearchform #video_search {
     864    padding: 6px 0
     865}
     866#lightm {
     867    width: 468px;
     868    position: absolute
     869}
     870.googlead_img {
     871    float: right;
     872    cursor: pointer
     873}
     874.titleouter {
     875    float: left;
     876    width: 100%
     877}
     878@media screen and (max-width: 600px) {
    265879    .videoplayer {
    266     position: relative;
    267     padding-bottom: 56.25%;
    268     padding-top: 30px; height: 0; overflow: hidden;
    269     }
    270     .videoplayer iframe,
    271     .videoplayer object,
    272     .videoplayer video,
    273     .videoplayer embed {
    274         position: absolute;
    275         top: 0;
    276         left: 0;
    277         width: 100%;
    278         height: 100%;
    279     }
    280     .player embed{width: 100% !important; height: auto;}
    281     .player object{width: 100% !important; height: auto;}
    282     #player, .player{width: 100% !important; height: auto;}
    283     .player iframe{width: 100% !important;  height: auto;}
    284     #player iframe{width: 100% !important;  height: auto;}
    285     #player #video{width: 100% !important;  height: auto;}
    286     #htmlplayer #video{width: 100% !important; height: auto; }
    287  
    288     #container .video-block {margin: 0 15px 10px !important; min-height: 145px;}
    289     .video-block-container .video-block {margin: 0 15px 0px !important; min-height: 145px;}
    290     .video-block:first-child {margin: 0 15px 0px !important; }
    291     .sidebar-wrap .imgBorder {width: 120px;}
    292 }
    293 
    294 /*Rating css*/
    295 .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;}
    296 #rateid ul.ratethis{list-style:none;}
    297 .nopos {background-position:0 0}
    298 .onepos {background-position:0 -20px}
    299 .twopos {background-position:0 -40px}
    300 .threepos {background-position:0 -60px}
    301 .fourpos {background-position:0 -80px}
    302 .fivepos {background-position:0 -100px}
    303 #rateimg ul.ratethis li { text-indent:-999em;cursor: pointer;float:left;list-style:none;}
    304 #rateimg .ratethis{margin: 0px;
    305 padding: 0px !important;
    306          /*margin-right: 10px;*/
    307 }
    308 .callout-header-home h2{margin-bottom:5px;font-size:15px;}
    309 h2.hoverable a{font-size:18px;}
    310 h2.hoverable a:hover{background:none;}
    311 /*.gr h2 {border-bottom:1px solid #C3C3C3;padding-bottom:5px;}*/
    312 ul.ratethis li a {text-indent: 9999px; position:absolute;left:0;top:0;width:20px;height:20px;text-decoration:none;z-index: 200;}
    313 ul.ratethis li.one a {left:0}
    314 ul.ratethis li.two a {left:20px;}
    315 ul.ratethis li.three a {left:40px;}
    316 ul.ratethis li.four a {left:60px;}
    317 ul.ratethis li.five a {left:80px;}
    318 ul.ratethis li a:hover { background: url(../images/stars831-thump.png) no-repeat 0 0;z-index:2;width:100px;height:20px;overflow:hidden;left:0;}
    319 ul.ratethis li.one a:hover {background-position:0 -120px;}
    320 ul.ratethis li.two a:hover {background-position:0 -140px;}
    321 ul.ratethis li.three a:hover {background-position:0 -160px;}
    322 ul.ratethis li.four a:hover {background-position:0 -180px;}
    323 ul.ratethis li.five a:hover {background-position:0 -200px;}
    324 
    325 .player_related_video {
    326 clear: both;
    327 }
    328 .video-socialshare iframe{margin: 0 !important;}
    329 
    330 .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;}
    331 ul.ratethis1 li {cursor: pointer;float:left;}
    332 .nopos1 {background-position:0 0 !important;}
    333 .onepos1 {background-position:0 -12px !important;}
    334 .twopos1 {background-position:0 -24px !important;}
    335 .threepos1 {background-position:0 -36px !important;}
    336 .fourpos1 {background-position:0 -48px !important;}
    337 .fivepos1 {background-position:0 -60px !important;}
    338 
    339 #videos-category .videoHname {
    340 min-height: initial;
    341 }
    342 
    343 #videosearchform #video_search { padding: 6px 0px }
    344 /* Google Adsense css */
    345 #lightm{width:468px;position:absolute;display:none;}
    346 .googlead_img{float:right;cursor: pointer;}
    347 
    348 /** Category title alignment issue in custom themes **/
    349 .titleouter{
    350     float: left;
    351     width: 100%;
    352 }
    353 /** report  button  issue  for custom theme **/
    354 
    355 @media screen and (max-width: 600px){   
    356     .videoplayer {
    357     position: relative;
    358     padding-bottom: 56.25%;
    359     padding-top: 30px; height: 0; overflow: hidden;
    360     }
    361     .videoplayer iframe,
    362     .videoplayer object,
    363     .videoplayer video,
    364     .videoplayer embed {
    365         position: absolute;
    366         top: 0;
    367         left: 0;
    368         width: 100%;
    369         height: 100%;
    370     }
    371     .video-cat-thumb{width: 100%;float: left;margin-top:8px;}
    372 }
    373 
    374 .tablenav-pages{float: right;}
    375 .videoplayer embed,.videoplayer  iframe,.videoplayer object,.videoplayer video{margin-bottom:0}
    376 div#content .entry-content #lightm iframe {margin-bottom: 0 !important;}
     880        position: relative;
     881        padding-bottom: 56.25%;
     882        padding-top: 30px;
     883        height: 0;
     884        overflow: hidden
     885    }
     886    .videoplayer embed,
     887    .videoplayer iframe,
     888    .videoplayer object,
     889    .videoplayer video {
     890        position: absolute;
     891        top: 0;
     892        left: 0;
     893        width: 100%;
     894        height: 100%
     895    }
     896    .video-cat-thumb {
     897        width: 100%;
     898        float: left;
     899        margin-top: 8px
     900    }
     901}
     902.playlistIcon,
     903.watchlaterIcon,
     904.watchlaterImg {
     905    width: 24px!important;
     906    height: 24px!important
     907}
     908.tablenav-pages {
     909    float: right
     910}
     911.videoplayer embed,
     912.videoplayer iframe,
     913.videoplayer object,
     914.videoplayer video {
     915    margin-bottom: 0
     916}
     917div#content .entry-content #lightm iframe {
     918    margin-bottom: 0!important
     919}
     920.watchlaterIcon {
     921    bottom: 0;
     922    right: 0;
     923    cursor: pointer;
     924    margin-right: 1px;
     925    margin-bottom: 1px
     926}
     927.playlistIcon {
     928    position: absolute;
     929    bottom: 1px;
     930    left: 1px;
     931    cursor: pointer
     932}
     933.imgBorder:hover .playlistIcon,
     934.imgBorder:hover .watchlaterIcon,
     935.video-thumbimg:hover .playlistIcon,
     936.video-thumbimg:hover .watchlaterIcon {
     937    display: block
     938}
     939.playlistOuterBox {
     940    width: 210px;
     941    border: 1px solid #E6E6E6;
     942    z-index: 3000!important;
     943    box-shadow: 0 0 10px 0 #505050;
     944    padding: 3px;
     945    border-radius: 5px
     946}
     947p.playlistButtonContainer {
     948    width: 100%;
     949    text-align: right;
     950    margin-bottom: 5px;
     951    margin-top: 2px
     952}
     953.playlistInnerBox {
     954    width: 100%
     955}
     956.playlistSearchBox {
     957    border: 1px solid #E6E2E2;
     958    margin-top: 5px;
     959    background-color: #F3F3F3;
     960    border-radius: 6px
     961}
     962span.playlistSearchImage img {
     963    width: 32px!important;
     964    height: 32px!important;
     965    cursor: pointer
     966}
     967.playlistTextField {
     968   width: 95%!important;
     969   margin-top: 5px;
     970   display: none;
     971   border: 1px solid #ccc;
     972   margin: 3px auto;
     973}
     974button.playlistButton {
     975    text-align: right;
     976    padding: 5px 15px;
     977    border: none
     978}
     979.playlistContainer {
     980    background-color: #F3F3F3;
     981    border: 1px solid #E6E2E2;
     982    margin-top: 5px;
     983    border-radius: 6px;
     984    margin-bottom: 5px
     985}
     986p.noPlaylistText {
     987    margin-bottom: 7px;
     988    padding: 5px;
     989    text-align: center;
     990    margin-top: 5px;
     991    border-radius: 10px
     992}
     993.playlistBox {
     994    padding: 5px
     995}
     996.playlistCheckbox {
     997    display: inline-block;
     998    margin-bottom: 5px;
     999    border: 1px solid #847B7B;
     1000    width: 15px;
     1001    height: 15px;
     1002    vertical-align: top;
     1003    margin-right: 4px;
     1004    background-position: -1px -1px;
     1005    cursor: pointer
     1006}
     1007.playlistAlertMsg {
     1008    margin: 4px 0 0;
     1009    text-align: center;
     1010    color: #4682b4
     1011}
     1012.playlistTemplateOuterBox {
     1013    width: 100%
     1014}
     1015.playlistTemplateContainer {
     1016    width: 100%;
     1017    padding: 5px
     1018}
     1019.playlistTemplateBox {
     1020    width: 181px;
     1021    border: 1px solid #E2E2E6;
     1022    float: left;
     1023    margin-right: 9px;
     1024    margin-bottom: 10px;
     1025    box-shadow: 0 0 2px 0 grey
     1026}
     1027p.playlistNameBox,
     1028p.playlistVideoCountBox {
     1029    margin: 0;
     1030    background-color: #F7F7F7
     1031}
     1032.playlistImgBox {
     1033    width: 180px;
     1034    overflow: hidden;
     1035    cursor: pointer;
     1036    height: 130px
     1037}
     1038.plalylistThumbImage {
     1039    width: 180px;
     1040    transition: transform 2s;
     1041    -webkit-transition: transform 1s;
     1042    height: 130px!important
     1043}
     1044.plalylistThumbImage:hover {
     1045    transform: scale(2, 2);
     1046    -webkit-transform: scale(1.5, 1.5)
     1047}
     1048p.playlistVideoCountBox {
     1049    text-align: right;
     1050    padding-right: 0 2px 0 0
     1051}
     1052.playlistTemplateContainer:after {
     1053    content: '';
     1054    display: block;
     1055    clear: both
     1056}
     1057.playlistContainerBox {
     1058    width: 100%;
     1059    background-color: #F6F6F6;
     1060    padding: 2px;
     1061    border: 1px solid rgba(213, 213, 214, 1);
     1062    margin-bottom: 10px;
     1063    position: relative
     1064}
     1065.playlistContainerBox:after {
     1066    content: '';
     1067    display: block;
     1068    clear: both
     1069}
     1070.playlistContainerThumbBox img {
     1071    width: 100%
     1072}
     1073.playlistDetailElement {
     1074    width: 91%;
     1075    float: left;
     1076    margin-left: 3px
     1077}
     1078p.playlistNameElement {
     1079    padding-top: 3px;
     1080    color: #bc360a;
     1081    font-size: 18px;
     1082    width: 100%
     1083}
     1084span.spanForEditName {
     1085    position: absolute;
     1086    top: 8px;
     1087    right: 10px
     1088}
     1089p.playlistNotFound {
     1090    width: 100%;
     1091    text-align: center;
     1092    color: #707071;
     1093    padding: 5px;
     1094    background: rgba(202,202,202,.1)!important;
     1095    border: 1px solid rgba(213,213,214,1)!important;
     1096}
     1097.editPlaylistName {
     1098    display: block;
     1099    color: #bc360a; //border:none;background:0 0;width:100%}span.clearPlaylistButton,span.deletePlaylistButton{background-color:#8f8f98;color:#fff;cursor:pointer}
     1100    .noWatchVideoFound{width:initial;text-align:center;color:#707071;margin:0;padding:5px;
     1101    background: rgba(202,202,202,.1)!important;
     1102    border: 1px solid rgba(213,213,214,1)!important;
     1103    }
     1104    p.playlistLoadinElement{margin:5px 0 0;width:100%;text-align:center}span.clearPlaylistButton,span.deletePlaylistButton{margin-bottom:5px!important;background:#666;border-radius:3px;display:inline-block;padding:2px 10px}span.clearPlaylistButton:hover,span.deletePlaylistButton:hover{background:#999}p.playlistVideoCountBox{padding:0 5px;width:auto}p.playlistNameBox{font-size:13px;padding:0 0 0 5px;width:auto;color:#0073aa}.playlistContainerThumbBox{float:left;width:30%;margin-bottom:0;height:auto}input:focus,textarea:focus{border:1px solid #ccc!important}@media screen and (max-width:650px) and (min-width:320px){span.clearPlaylistButton,span.deletePlaylistButton{width:100%;text-align:center}}.editPlaylistName{margin-bottom:5px}.playlistSearchBox{padding:3px 0}.playlistContainerThumbBox img{height:80px!important}
  • contus-video-gallery/trunk/css/style.min.css

    r1251095 r1306821  
    1 .home-category h1,.home-category h2,.home-category h3,.home-category h5,.home-category h6,.paddBotm h1,.paddBotm h2,.paddBotm h3,.paddBotm h5,.paddBotm h6
    2     {
    3     margin: 0 !important;
    4     padding: 0 !important;
    5     text-decoration: none !important
    6 }
    7 
    8 .paddBotm h1 a,.paddBotm h2 a,.paddBotm h3 a,.paddBotm h4 a,.paddBotm h5 a,.paddBotm h6 a,.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
    9     {
    10     text-decoration: none !important
    11 }
    12 
    13 .video-block h1 a,.video-block h2 a,.video-block h3 a,.video-block h4 a,.video-block h5 a,.video-block h6 a
    14     {
    15     text-decoration: none !important;
    16     margin-bottom: 3px !important;
    17     float: left
    18 }
    19 
    20 .vid_info h6 {
    21     overflow: hidden
    22 }
    23 
    24 .video-block h5 a {
    25     width: 100%
    26 }
    27 
    28 .video-block h5 {
    29     margin-top: 5px !important
    30 }
    31 
    32 .video-block .vid_info .video_views {
    33     font-size: 11px !important;
    34     float: right;
    35     opacity: .8;
    36     filter: alpha(opacity = 80)
    37 }
    38 
    39 .home-category h1 a,.home-category h2 a,.home-category h3 a,.home-category h4 a,.home-category h5 a,.home-category h6 a,.video-cat-thumb h5 a,.video-cat-thumb h6 a
    40     {
    41     margin: 0 !important;
    42     padding: 0 !important;
    43     text-decoration: none !important
    44 }
    45 
    46 .mediaspace {
    47     margin-bottom: 10px;
    48     margin-top: 10px;
    49     clear: both
    50 }
    51 
    52 .home-category {
    53     margin: 0
    54 }
    55 
    56 .imgBorder {
    57     display: inline-block;
    58     overflow: hidden;
    59     float: left;
    60     width: 43%;
    61     max-width: 120px;
    62     margin-right: 4%;
    63     position: relative;
    64     max-height: 80px
    65 }
    66 
    67 .imgSidethumb {
    68     display: inline-block;
    69     overflow: hidden;
    70     padding: 2.5% 2.5% 0;
    71     float: left;
    72     width: 94%
    73 }
    74 
    75 .sideThumb {
    76     margin-bottom: 10px
    77 }
    78 
    79 .imgHome {
    80     width: 128px !important;
    81     height: 72px !important;
    82     cursor: pointer
    83 }
    84 
    85 label.reportvideotype {
    86     height: 25px;
    87     width: 25px;
    88     clear: both;
    89     background: url(../images/help-icon.png) no-repeat;
    90     float: none;
    91     vertical-align: bottom;
    92     line-height: 20px;
    93     background-postion: center 20px
    94 }
    95 
    96 label .help {
    97     display: inline-block
    98 }
    99 
    100 .paddBotm {
    101     margin-bottom: 10px
    102 }
    103 
    104 .side_video_info {
    105     float: left;
    106     width: 50%
    107 }
    108 
    109 .side_video_info h6 {
    110     line-height: 15px
    111 }
    112 
    113 .sideThumb {
    114     padding: 5px 0;
    115     width: 100% !important;
    116     height: 100% !important;
    117     list-style: none
    118 }
    119 
    120 .video-thumbimg {
    121     display: inline-block;
    122     font-size: 16px;
    123     position: relative;
    124     width: 140px;
    125     float: left;
    126     height: 90px
    127 }
    128 
    129 .catmain .video-block:first-child,.feature-video-list .video-block:first-child
    130     {
    131     padding-left: 0
    132 }
    133 
    134 .videoName {
    135     text-align: left;
    136     cursor: pointer;
    137     line-height: 1.2;
    138     float: left
    139 }
    140 
    141 .clear {
    142     clear: both
    143 }
    144 
    145 .clearfix:after {
    146     clear: both;
    147     display: block;
    148     content: " ";
    149     height: 0;
    150     visibility: hidden
    151 }
    152 
    153 .clearfix {
    154     display: block
    155 }
    156 
    157 * html .clearfix {
    158     height: 1%
    159 }
    160 
    161 .more_title {
    162     margin: 15px 0
    163 }
    164 
    165 #mycarousel .videoHname {
    166     float: none
    167 }
    168 
    169 .tags {
    170     float: left;
    171     padding: 1px 0;
    172     text-align: left
    173 }
    174 
    175 .video-more {
    176     float: right;
    177     clear: both;
    178     width: auto;
    179     text-decoration: none;
    180     font-size: 12px;
    181     font-weight: 700;
    182     color: #9f9f9f
    183 }
    184 
    185 .video-more:hover {
    186     color: #9f9f9f
    187 }
    188 
    189 .sidebar-wrap .video-more {
    190     font-size: 11px
    191 }
    192 
    193 .video-socialshare {
    194     float: right;
    195     height: 22px
    196 }
    197 
    198 .video-socialshare li {
    199     float: left;
    200     margin-left: 5px;
    201     list-style: none !important
    202 }
    203 
    204 input[type=button],input[type=submit] {
    205     cursor: pointer
    206 }
    207 
    208 .floatleft,h4.playlistName {
    209     float: left
    210 }
    211 
    212 .fbcomments {
    213     padding: 10px;
    214     background: #fff
    215 }
    216 
    217 .duration,.home-duration,.most-duration {
    218     line-height: normal !important
    219 }
    220 
    221 .right {
    222     float: right
    223 }
    224 
    225 .left {
    226     float: left
    227 }
    228 
    229 .video-pagination a {
    230     margin: 0 5px;
    231     text-align: right
    232 }
    233 
    234 .video-block a img,.video-block img {
    235     padding: 0 !important;
    236     margin: 0 !important;
    237     width: 140px !important;
    238     max-width: none;
    239     height: 90px !important;
    240     border: none
    241 }
    242 
    243 .playlistName,.videoHname {
    244     display: block;
    245     clear: both;
    246     text-decoration: none
    247 }
    248 
    249 .videoHname {
    250     font-size: 12px;
    251     font-weight: 700;
    252     border-width: 0 !important;
    253     color: #9f9f9f
    254 }
    255 
    256 .side_video_info .videoHname {
    257     line-height: 15px
    258 }
    259 
    260 .video-block a {
    261     border-width: 0 !important
    262 }
    263 
    264 #videos-category.sidebar-wrap .videoHname {
    265     height: auto
    266 }
    267 
    268 .sidebar-wrap .views {
    269     font-size: 11px;
    270     clear: both;
    271     display: block
    272 }
    273 
    274 .sidebar-wrap {
    275     width: 100%
    276 }
    277 
    278 .sidebar-wrap ul {
    279     margin: 0 !important;
    280     padding: 0 !important
    281 }
    282 
    283 .sidebar-wrap li,.sidebar-wrap ul {
    284     list-style: none;
    285     background: 0 0 !important
    286 }
    287 
    288 .sidebar-wrap .widget-title a {
    289     text-decoration: none
    290 }
    291 
    292 .playlistName {
    293     font-size: 11px;
    294     border-width: 0 !important
    295 }
    296 
    297 .video-block a.playlistName,.video-block a.playlistName:active,.video-block a.playlistName:visited
    298     {
    299     color: #21759b;
    300     text-decoration: none
    301 }
    302 
    303 .ulwidget .imgBorder img {
    304     width: 100%;
    305     max-height: 80px;
    306     margin: 0
    307 }
    308 
    309 .entry-content #mediaspace object {
    310     margin-bottom: 0
    311 }
    312 
    313 h3.related-videos {
    314     margin: 0 !important;
    315     padding: 0 !important;
    316     text-align: left
    317 }
    318 
    319 .related-videos h3 {
    320     text-align: left;
    321     margin: 0;
    322     padding: 0
    323 }
    324 
    325 .video-page-container {
    326     font-family: helvetica, arial, sans-serif;
    327     font-size: 12px
    328 }
    329 
    330 .video-page-container .video-page-info span,.video-page-container .video-page-info strong
    331     {
    332     float: left;
    333     text-align: left;
    334     display: inline-block
    335 }
    336 
    337 .video-page-container strong {
    338     display: inline-block
    339 }
    340 
    341 .video-page-container .video-page-date {
    342     width: 48%;
    343     float: left;
    344     text-align: left
    345 }
    346 
    347 .video-page-container .video-page-views {
    348     float: right;
    349     text-align: right
    350 }
    351 
    352 .video-page-container .video-page-username {
    353     width: 48%;
    354     float: left;
    355     text-align: left
    356 }
    357 
    358 .video-page-container.shortcode .video-page-info {
    359     float: right;
    360     text-align: right;
    361     width: 100%
    362 }
    363 
    364 .video-page-container.shortcode .video-page-info.noviews {
    365     width: 100%
    366 }
    367 
    368 .video-page-container.shortcode .video-page-views {
    369     width: 100%;
    370     float: right;
    371     text-align: right
    372 }
    373 
    374 .video-page-container.shortcode .video-page-rating {
    375     width: auto;
    376     float: right
    377 }
    378 
    379 .video-page-container.shortcode .noviews .video-page-rating {
    380     width: auto
    381 }
    382 
    383 .video-page-container.shortcode .video-page-rating .floatleft,.video-page-container.shortcode .video-page-rating .floatleft .rateimgleft
    384     {
    385     float: right
    386 }
    387 
    388 .video-page-container .video-page-tag {
    389     padding-bottom: 10px;
    390     margin-bottom: 5px;
    391     clear: both
    392 }
    393 
    394 .video-page-info {
    395     clear: both;
    396     overflow: hidden;
    397     padding-bottom: 5px
    398 }
    399 
    400 .entry-content .video-socialshare .rssfeed a img {
    401     display: inline-block
    402 }
    403 
    404 .video-page-info .video-page-rating,.video-page-info .video-page-rating .rateimgleft
    405     {
    406     float: right
    407 }
    408 
    409 .video-page-info .video-page-rating .rateright-views {
    410     margin-right: 5px;
    411     padding-top: 2px;
    412     text-align: right
    413 }
    414 
    415 .video-page-info .video-page-category {
    416     float: right;
    417     text-align: right
    418 }
    419 
    420 .player embed {
    421     margin: 0 0 10px !important
    422 }
    423 
    424 .embed {
    425     padding: 0 10px;
    426     border: 1px solid #ccc;
    427     text-decoration: none;
    428     float: left
    429 }
    430 
    431 .embed .embed_text {
    432     float: left
    433 }
    434 
    435 .embed .embed_arrow {
    436     width: 0;
    437     height: 0;
    438     border-left: 5px solid transparent;
    439     border-right: 5px solid transparent;
    440     border-top: 5px solid #666;
    441     margin-top: 7px;
    442     display: block;
    443     float: left;
    444     margin-left: 5px
    445 }
    446 
    447 .video-page-desc {
    448     width: 100%;
    449     overflow: hidden;
    450     text-align: justify;
    451     padding-top: 10px;
    452     clear: both;
    453     border-top: 1px solid #CCC;
    454     margin-top: 10px
    455 }
    456 
    457 #embedcode {
    458     padding: 2%;
    459     width: 95.5%;
    460     font-size: 13px;
    461     float: left;
    462     height: 90px;
    463     margin-top: 5px
    464 }
    465 
    466 #reportform {
    467     width: 50%;
    468     font-size: 13px;
    469     float: left;
    470     background-color: #fff;
    471     box-shadow: 0 1px 0 #fff, inset 0 1px 1px rgba(0, 0, 0, .2);
    472     box-sizing: border-box;
    473     border: 1px solid #aaa;
    474     border-bottom-color: #ccc;
    475     border-radius: 2px;
    476     min-height: 150px;
    477     margin: 1% 0;
    478     padding: 0 5%;
    479     clear: both
    480 }
    481 
    482 #reportform input[type=button] {
    483     margin: 2% 0
    484 }
    485 
    486 #reportform_ajax_loader {
    487     position: absolute;
    488     clear: both;
    489     display: none;
    490     margin-top: 25px;
    491     box-shadow: none;
    492     border: none
    493 }
    494 
    495 .report-video-title {
    496     font-size: 16px;
    497     font-weight: 700;
    498     padding: 1px 0;
    499     margin: 5px 0;
    500     clear: both
    501 }
    502 
    503 #report_video_response {
    504     clear: both;
    505     color: red;
    506     padding: 5px 0;
    507     font-size: 13px
    508 }
    509 
    510 #reportform img {
    511     position: absolute;
    512     clear: both
    513 }
    514 
    515 #iframe-content {
    516     padding: 2%;
    517     width: 95.5%;
    518     font-size: 13px;
    519     float: left;
    520     height: 90px;
    521     margin-top: 5px
    522 }
    523 
    524 .video_wrapper h3,.video_wrapper h5 {
    525     overflow: hidden;
    526     clear: both;
    527     margin: 5px 0 !important
    528 }
    529 
    530 .video-block-container {
    531     margin: 0 !important;
    532     padding: 0 !important
    533 }
    534 
    535 .video-block:first-child {
    536     padding-left: 0 !important;
    537     margin-left: 0 !important;
    538     width: 140px
    539 }
    540 
    541 .video-block i {
    542     display: none !important
    543 }
    544 
    545 input.reportbutton {
    546     width: 85px !important;
    547     padding: 10px 0 !important
    548 }
    549 
    550 .video-block {
    551     line-height: 17px;
    552     float: none;
    553     padding-bottom: 25px;
    554     width: 140px;
    555     min-height: 145px;
    556     display: inline-block !important;
    557     vertical-align: top;
    558     list-style-type: none;
    559     padding-top: 10px
    560 }
    561 
    562 .video_thumb_content {
    563     display: table
    564 }
    565 
    566 .video_duration {
    567     position: absolute;
    568     right: 0;
    569     bottom: 0;
    570     font-size: 10px;
    571     background: #000;
    572     padding: 0 3px;
    573     color: #fff;
    574     line-height: 11px;
    575     -webkit-border-radius: 2px;
    576     -moz-border-radius: 2px;
    577     border-radius: 2px
    578 }
    579 
    580 .contus_tablenav-pages {
    581     float: right;
    582     margin: 1em 0
    583 }
    584 
    585 .contus_tablenav-pages a,.contus_tablenav-pages span {
    586     padding: 0 2px;
    587     color: #9f9f9f
    588 }
    589 
    590 h2.related-videos {
    591     text-align: left !important;
    592     margin: 20px 0 0 !important
    593 }
    594 
    595 #disqus_thread {
    596     margin-top: 20px
    597 }
    598 
    599 #featured-videos .sidebar-wrap li {
    600     background: 0 0;
    601     padding: 0
    602 }
    603 
    604 .widget .video_duration {
    605     clear: both;
    606     display: block;
    607     float: right;
    608     position: absolute;
    609     right: 0;
    610     bottom: 0
    611 }
    612 
    613 .widget .side_video_info h6 {
    614     padding-bottom: 5px;
    615     margin: 0
    616 }
    617 
    618 .widget .side_video_info h6 a {
    619     text-decoration: none
    620 }
    621 
    622 .widget .side_video_info .video_views {
    623     float: left;
    624     font-size: 11px
    625 }
    626 
    627 .widget #featured-videos ul,.widget #popular-videos ul,.widget #recent-videos ul,.widget #related-videos ul,.widget #videos-category ul
    628     {
    629     list-style: none !important;
    630     padding: 0 !important;
    631     margin: 0 !important;
    632     background: 0 0
    633 }
    634 
    635 .widget #featured-videos ul li,.widget #popular-videos ul li,.widget #recent-videos ul li,.widget #related-videos ul li,.widget #videos-category ul
    636     {
    637     background: 0 0;
    638     padding: 1
    639 }
    640 
    641 .flike {
    642     width: 85px
    643 }
    644 
    645 .ttweet {
    646     width: 60px
    647 }
    648 
    649 .video-socialshare .gplusshare {
    650     margin-left: 3px
    651 }
    652 
    653 .fbshare {
    654     background: url(../images/fb_share_button.png) no-repeat;
    655     display: block;
    656     width: 57px;
    657     height: 20px
    658 }
    659 
    660 .videoplayer_title {
    661     clear: both
    662 }
    663 
    664 .jcarousel-skin-tango #mycarousel li .imgSidethumb img {
    665     width: 120px;
    666     height: 90px;
    667     cursor: pointer
    668 }
    669 
    670 #featured {
    671     height: 330px
    672 }
    673 
    674 #gallery_banner_video {
    675     float: right;
    676     width: 70%
    677 }
    678 
    679 #gallery_banner_list {
    680     float: left;
    681     width: 30%
    682 }
    683 
    684 #gallery_banner_list ul {
    685     padding: 0;
    686     margin: 0;
    687     list-style: none;
    688     background: 0 0 !important
    689 }
    690 
    691 #gallery_banner_list ul li {
    692     list-style: none;
    693     margin: 0 0 1px;
    694     clear: both;
    695     background: #eee;
    696     background: -moz-linear-gradient(top, #eee 0, #ccc 100%);
    697     background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #eee),
    698         color-stop(100%, #ccc));
    699     background: -webkit-linear-gradient(top, #eee 0, #ccc 100%);
    700     background: -o-linear-gradient(top, #eee 0, #ccc 100%);
    701     background: -ms-linear-gradient(top, #eee 0, #ccc 100%);
    702     background: linear-gradient(to bottom, #eee 0, #ccc 100%);
    703     filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee',
    704         endColorstr='#cccccc', GradientType=0);
    705     overflow: hidden;
    706     padding: 5px 5px 6px
    707 }
    708 
    709 #gallery_banner_list ul li.ui-tabs-selected {
    710     background: #f2f0f0;
    711     border: 1px solid #ccc;
    712     border-right-width: 0
    713 }
    714 
    715 #gallery_banner_list ul li {
    716     border: 1px solid #dfdfdf;
    717     border-right-width: 0
    718 }
    719 
    720 #gallery_banner_list ul li:hover {
    721     background: #dfdfdf
    722 }
    723 
    724 #gallery_banner_list ul li .nav_container .page-thumb-img {
    725     float: left;
    726     width: 80px;
    727     margin-right: 5px
    728 }
    729 
    730 #gallery_banner_list ul li .nav_container .slide_video_info .category {
    731     color: #000
    732 }
    733 
    734 #gallery_banner_list ul li .nav_container .slide_video_info {
    735     float: left;
    736     line-height: 16px;
    737     font-size: 12px;
    738     width: 99px
    739 }
    740 
    741 @media screen and (max-width:600px) {
    742     .videoplayer {
    743         position: relative;
    744         padding-bottom: 56.25%;
    745         padding-top: 30px;
    746         height: 0;
    747         overflow: hidden
    748     }
    749     .videoplayer embed,.videoplayer iframe,.videoplayer object,.videoplayer video
    750         {
    751         position: absolute;
    752         top: 0;
    753         left: 0;
    754         width: 100%;
    755         height: 100%
    756     }
    757     #htmlplayer #video,#player,#player #video,#player iframe,.player,.player embed,.player iframe,.player object
    758         {
    759         width: 100% !important;
    760         height: auto
    761     }
    762     #container .video-block {
    763         margin: 0 15px 10px !important;
    764         min-height: 145px
    765     }
    766     .video-block-container .video-block {
    767         margin: 0 15px !important;
    768         min-height: 180px
    769     }
    770     .video-block:first-child {
    771         margin: 0 15px !important
    772     }
    773     .sidebar-wrap .imgBorder {
    774         width: 120px
    775     }
    776 }
    777 
    778 .ratethis {
    779     background: url(../images/stars831-thump.png) no-repeat;
    780     width: 100px;
    781     height: 20px;
    782     margin: 5px;
    783     clear: both;
    784     position: relative;
    785     list-style: none
    786 }
    787 
    788 #rateid ul.ratethis {
    789     list-style: none
    790 }
    791 
    792 .nopos {
    793     background-position: 0 0
    794 }
    795 
    796 .onepos {
    797     background-position: 0 -20px
    798 }
    799 
    800 .twopos {
    801     background-position: 0 -40px
    802 }
    803 
    804 .threepos {
    805     background-position: 0 -60px
    806 }
    807 
    808 .fourpos {
    809     background-position: 0 -80px
    810 }
    811 
    812 .fivepos {
    813     background-position: 0 -100px
    814 }
    815 
    816 #rateimg ul.ratethis li {
    817     text-indent: -999em;
    818     cursor: pointer;
    819     float: left;
    820     list-style: none
    821 }
    822 
    823 #rateimg .ratethis {
    824     margin: 0;
    825     padding: 0 !important
    826 }
    827 
    828 .callout-header-home h2 {
    829     margin-bottom: 5px;
    830     font-size: 15px
    831 }
    832 
    833 h2.hoverable a {
    834     font-size: 18px
    835 }
    836 
    837 h2.hoverable a:hover {
    838     background: 0 0
    839 }
    840 
    841 ul.ratethis li a {
    842     text-indent: 9999px;
    843     position: absolute;
    844     left: 0;
    845     top: 0;
    846     width: 20px;
    847     height: 20px;
    848     text-decoration: none;
    849     z-index: 200
    850 }
    851 
    852 ul.ratethis li.one a {
    853     left: 0
    854 }
    855 
    856 ul.ratethis li.two a {
    857     left: 20px
    858 }
    859 
    860 ul.ratethis li.three a {
    861     left: 40px
    862 }
    863 
    864 ul.ratethis li.four a {
    865     left: 60px
    866 }
    867 
    868 ul.ratethis li.five a {
    869     left: 80px
    870 }
    871 
    872 ul.ratethis li a:hover {
    873     background: url(../images/stars831-thump.png) no-repeat;
    874     z-index: 2;
    875     width: 100px;
    876     height: 20px;
    877     overflow: hidden;
    878     left: 0
    879 }
    880 
    881 ul.ratethis li.one a:hover {
    882     background-position: 0 -120px
    883 }
    884 
    885 ul.ratethis li.two a:hover {
    886     background-position: 0 -140px
    887 }
    888 
    889 ul.ratethis li.three a:hover {
    890     background-position: 0 -160px
    891 }
    892 
    893 ul.ratethis li.four a:hover {
    894     background-position: 0 -180px
    895 }
    896 
    897 ul.ratethis li.five a:hover {
    898     background-position: 0 -200px
    899 }
    900 
    901 .player_related_video {
    902     clear: both
    903 }
    904 
    905 .video-socialshare iframe {
    906     margin: 0 !important
    907 }
    908 
    909 .ratethis1 {
    910     background: url(../images/stars831.png) no-repeat !important;
    911     width: 60px;
    912     height: 12px;
    913     clear: both;
    914     position: relative;
    915     list-style: none;
    916     float: left;
    917     margin: 4px 0
    918 }
    919 
    920 ul.ratethis1 li {
    921     cursor: pointer;
    922     float: left
    923 }
    924 
    925 .nopos1 {
    926     background-position: 0 0 !important
    927 }
    928 
    929 .onepos1 {
    930     background-position: 0 -12px !important
    931 }
    932 
    933 .twopos1 {
    934     background-position: 0 -24px !important
    935 }
    936 
    937 .threepos1 {
    938     background-position: 0 -36px !important
    939 }
    940 
    941 .fourpos1 {
    942     background-position: 0 -48px !important
    943 }
    944 
    945 .fivepos1 {
    946     background-position: 0 -60px !important
    947 }
    948 
    949 #videos-category .videoHname {
    950     min-height: initial
    951 }
    952 
    953 #videosearchform #video_search {
    954     padding: 6px 0
    955 }
    956 
    957 #lightm {
    958     width: 468px;
    959     position: absolute;
    960     display: none
    961 }
    962 
    963 .googlead_img {
    964     float: right;
    965     cursor: pointer
    966 }
    967 
    968 .titleouter {
    969     float: left;
    970     width: 100%
    971 }
    972 
    973 @media screen and (max-width:600px) {
    974     .videoplayer {
    975         position: relative;
    976         padding-bottom: 56.25%;
    977         padding-top: 30px;
    978         height: 0;
    979         overflow: hidden
    980     }
    981     .videoplayer embed,.videoplayer iframe,.videoplayer object,.videoplayer video
    982         {
    983         position: absolute;
    984         top: 0;
    985         left: 0;
    986         width: 100%;
    987         height: 100%
    988     }
    989     .video-cat-thumb {
    990         width: 100%;
    991         float: left;
    992         margin-top: 8px
    993     }
    994 }
    995 
    996 .tablenav-pages {
    997     float: right
    998 }
    999 
    1000 .videoplayer embed,.videoplayer iframe,.videoplayer object,.videoplayer video
    1001     {
    1002     margin-bottom: 0
    1003 }
    1004 
    1005 div#content .entry-content #lightm iframe {
    1006     margin-bottom: 0 !important
    1007 }
    1008 
    1009 .videoplayer {
    1010     position: relative
    1011 }
    1012 
    1013 .entry-content .video-page-container .vido_info_container a {
    1014     border-bottom: 0;
    1015     text-decoration: none
    1016 }
    1017 
    1018 .entry-content .video-page-container .vido_info_container .video-cat-thumb a
    1019     {
    1020     border-bottom: 1px solid
    1021 }
    1022 
    1023 @media screen (min-width:601px) and (max-width:767px) {
    1024     .video-block-container .video-block {
    1025         margin: 0 15px !important
    1026     }
    1027 }
    1028 
    1029 .search-form input[type="submit"],.widget .search-form input[type="submit"]
    1030     {
    1031     padding: 5px !important;
    1032     margin-top: 10px;
    1033 }
    1034 
    1035 #videosearchsubmit.search-submit {
    1036     display: block;
    1037 }
    1038 
    1039 .video-block {
    1040     min-height: 165px;
    1041 }
    1042 
    1043 .video-block .videoHname {
    1044     overflow: hidden;
    1045 }
    1046 
    1047 @media screen and (min-width:280px) and (max-width:479px) {
    1048     .video-page-container .video-page-date {
    1049         width: 58%
    1050     }
    1051     .video-page-info .video-page-rating,.video-socialshare {
    1052         float: left;
    1053         display: block
    1054     }
    1055     .video-page-info .video-page-rating,.video-page-info .video-page-rating .rateimgleft
    1056         {
    1057         float: left;
    1058     }
    1059 
    1060 }
     1.video-thumbimg,label .help{display:inline-block}.video-more,.video-more:hover,.videoHname{color:#9f9f9f}.home-category h1,.home-category h2,.home-category h3,.home-category h5,.home-category h6,.paddBotm h1,.paddBotm h2,.paddBotm h3,.paddBotm h5,.paddBotm h6{margin:0!important;padding:0!important;text-decoration:none!important}.paddBotm h1 a,.paddBotm h2 a,.paddBotm h3 a,.paddBotm h4 a,.paddBotm h5 a,.paddBotm h6 a,.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}.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}.vid_info h6{overflow:hidden}.video-block h5 a{width:100%}.video-block h5{margin-top:5px!important}.video-block .vid_info .video_views{font-size:11px!important;float:right;opacity:.8;filter:alpha(opacity=80)}.imgBorder,.imgSidethumb{float:left;display:inline-block;overflow:hidden}.home-category h1 a,.home-category h2 a,.home-category h3 a,.home-category h4 a,.home-category h5 a,.home-category h6 a,.video-cat-thumb h5 a,.video-cat-thumb h6 a{margin:0!important;padding:0!important;text-decoration:none!important}.embed,.playlistName,.playlistVideoLinkElement:hover,.sidebar-wrap .widget-title a,.video-more,.videoHname,.widget .side_video_info h6 a,ul.ratethis li a{text-decoration:none}.mediaspace{margin-bottom:10px;margin-top:10px;clear:both}.home-category{margin:0}.paddBotm,.sideThumb{margin-bottom:10px}.imgBorder{width:43%;max-width:120px;margin-right:4%;position:relative;max-height:80px}.imgSidethumb{padding:2.5% 2.5% 0;width:94%}.imgHome{width:128px!important;height:72px!important;cursor:pointer}label.reportvideotype{height:25px;width:25px;clear:both;background:url(../images/help-icon.png) no-repeat;float:none;vertical-align:bottom;line-height:20px;background-postion:center 20px}.side_video_info{float:left;width:50%}.side_video_info h6{line-height:15px}.sideThumb{padding:5px 0;width:100%!important;height:100%!important;list-style:none}.video-thumbimg{font-size:16px;position:relative;width:140px;float:left;height:90px}.catmain .video-block:first-child,.feature-video-list .video-block:first-child{padding-left:0}.videoName{text-align:left;cursor:pointer;line-height:1.2;float:left}.clear{clear:both}.clearfix:after{clear:both;display:block;content:" ";height:0;visibility:hidden}.clearfix{display:block}* html .clearfix{height:1%}.more_title{margin:15px 0}#mycarousel .videoHname{float:none}.tags{float:left;padding:1px 0;text-align:left}.video-more{float:right;clear:both;width:auto;font-size:12px;font-weight:700}.sidebar-wrap .video-more{font-size:11px}.video-socialshare{float:right;height:22px}.video-socialshare li{float:left;margin-left:5px;list-style:none!important}input[type=button],input[type=submit]{cursor:pointer}.floatleft,h4.playlistName{float:left}.fbcomments{padding:10px;background:#fff}.duration,.home-duration,.most-duration{line-height:normal!important}.right{float:right}.left{float:left}.video-pagination a{margin:0 5px;text-align:right}.sidebar-wrap ul,.video-block a img,.video-block img{margin:0!important;padding:0!important}.video-block a img,.video-block img{width:140px!important;max-width:none;height:90px!important;border:none}.playlistName,.video-block a,.videoHname{border-width:0!important}.playlistName,.videoHname{display:block;clear:both}.videoHname{font-size:12px;font-weight:700}.side_video_info .videoHname{line-height:15px}#videos-category.sidebar-wrap .videoHname{height:auto}.sidebar-wrap .views{font-size:11px;clear:both;display:block}.sidebar-wrap{width:100%}.sidebar-wrap li,.sidebar-wrap ul{list-style:none;background:0 0!important}.playlistName{font-size:11px}.video-block a.playlistName,.video-block a.playlistName:active,.video-block a.playlistName:visited{color:#21759b;text-decoration:none}.ulwidget .imgBorder img{width:100%;max-height:80px;margin:0}.entry-content #mediaspace object{margin-bottom:0}h3.related-videos{margin:0!important;padding:0!important;text-align:left}.related-videos h3{text-align:left;margin:0;padding:0}.video-page-container{font-family:helvetica,arial,sans-serif;font-size:12px}.video-page-container .video-page-info span,.video-page-container .video-page-info strong{float:left;text-align:left;display:inline-block}.video-page-container strong{display:inline-block}.video-page-container .video-page-date{width:48%;float:left;text-align:left}.video-page-container .video-page-views{float:right;text-align:right}.video-page-container .video-page-username{width:48%;float:left;text-align:left}.video-page-container.shortcode .video-page-info{float:right;text-align:right;width:100%}.video-page-container.shortcode .video-page-info.noviews{width:100%}.video-page-container.shortcode .video-page-views{width:100%;float:right;text-align:right}.video-page-container.shortcode .video-page-rating{width:auto;float:right}.video-page-container.shortcode .noviews .video-page-rating{width:auto}.video-page-container.shortcode .video-page-rating .floatleft,.video-page-container.shortcode .video-page-rating .floatleft .rateimgleft{float:right}.video-page-container .video-page-tag{padding-bottom:10px;margin-bottom:5px;clear:both}.video-page-info{clear:both;overflow:hidden;padding-bottom:5px}.video-page-info .video-page-rating,.video-page-info .video-page-rating .rateimgleft{float:right}.video-page-info .video-page-rating .rateright-views{margin-right:5px;padding-top:2px;text-align:right}.video-page-info .video-page-category{float:right;text-align:right}.embed,.embed .embed_text{float:left}.player embed{margin:0 0 10px!important}.embed{padding:0 10px;border:1px solid #ccc}.embed .embed_arrow{width:0;height:0;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}.video-page-desc{width:100%;overflow:hidden;text-align:justify;padding-top:10px;clear:both;border-top:1px solid #CCC;margin-top:10px}#embedcode,#iframe-content{width:95.5%;float:left;height:90px}#embedcode{padding:2%;font-size:13px;margin-top:5px}#reportform{width:80%;font-size:13px;float:left;background-color:#fff;box-shadow:0 1px 0 #fff,inset 0 1px 1px rgba(0,0,0,.2);box-sizing:border-box;border:1px solid #aaa;border-bottom-color:#ccc;border-radius:2px;min-height:150px;margin:1% 0;padding:0 5%;clear:both}#reportform input[type=button]{margin:2% 0}#reportform_ajax_loader{position:absolute;clear:both;display:none;margin-top:25px;box-shadow:none;border:none}.report-video-title{font-size:16px;font-weight:700;padding:1px 0;margin:5px 0;clear:both}#report_video_response{clear:both;color:red;padding:5px 0;font-size:13px}#reportform img{position:absolute;clear:both}#iframe-content{padding:2%;font-size:13px;margin-top:5px}.video_wrapper h3,.video_wrapper h5{overflow:hidden;clear:both;margin:5px 0!important}.video-block-container{margin:0!important;padding:0!important}.video-block:first-child{padding-left:0!important;margin-left:0!important;width:140px}.video-block i{display:none!important}input.reportbutton{width:85px!important;padding:10px 0!important}.video-block{line-height:17px;float:none;padding-bottom:25px;width:140px;min-height:145px;display:inline-block!important;vertical-align:top;list-style-type:none;padding-top:10px}.video_thumb_content{display:table}.video_duration{position:absolute;right:0;bottom:0;font-size:10px;background:#000;padding:0 3px;color:#fff;line-height:11px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.contus_tablenav-pages{float:right;margin:1em 0}.contus_tablenav-pages a,.contus_tablenav-pages span{padding:0 2px;color:#9f9f9f}h2.related-videos{text-align:left!important;margin:20px 0 0!important}#disqus_thread{margin-top:20px}#featured-videos .sidebar-wrap li{background:0 0;padding:0}.widget .video_duration{clear:both;display:block;float:right;position:absolute;right:0;bottom:0}.widget .side_video_info h6{padding-bottom:5px;margin:0}.widget .side_video_info .video_views{float:left;font-size:11px}.widget #featured-videos ul,.widget #popular-videos ul,.widget #recent-videos ul,.widget #related-videos ul,.widget #videos-category ul{list-style:none!important;padding:0!important;margin:0!important;background:0 0}.widget #featured-videos ul li,.widget #popular-videos ul li,.widget #recent-videos ul li,.widget #related-videos ul li,.widget #videos-category ul{background:0 0;padding:1}.flike{width:85px}.ttweet{width:60px}.video-socialshare .gplusshare{margin-left:3px}.fbshare{background:url(../images/fb_share_button.png) no-repeat;display:block;width:57px;height:20px}#lightm,.playlistIcon,.watchlaterIcon{display:none}.videoplayer_title{clear:both}.jcarousel-skin-tango #mycarousel li .imgSidethumb img{width:120px;height:90px;cursor:pointer}#featured{height:330px}#gallery_banner_video{float:right;width:70%}#gallery_banner_list{float:left;width:30%}#gallery_banner_list ul{padding:0;margin:0;list-style:none;background:0 0!important}#gallery_banner_list ul li{list-style:none;margin:0 0 1px;clear:both;background:#eee;background:-moz-linear-gradient(top,#eee 0,#ccc 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#eee),color-stop(100%,#ccc));background:-webkit-linear-gradient(top,#eee 0,#ccc 100%);background:-o-linear-gradient(top,#eee 0,#ccc 100%);background:-ms-linear-gradient(top,#eee 0,#ccc 100%);background:linear-gradient(to bottom,#eee 0,#ccc 100%);filter:progid: DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc', GradientType=0);overflow:hidden;padding:5px 5px 6px}#gallery_banner_list ul li.ui-tabs-selected{background:#f2f0f0;border:1px solid #ccc;border-right-width:0}#gallery_banner_list ul li{border:1px solid #dfdfdf;border-right-width:0}#gallery_banner_list ul li:hover{background:#dfdfdf}#gallery_banner_list ul li .nav_container .page-thumb-img{float:left;width:80px;margin-right:5px}#gallery_banner_list ul li .nav_container .slide_video_info .category{color:#000}#gallery_banner_list ul li .nav_container .slide_video_info{float:left;line-height:16px;font-size:12px;width:99px}.videoplayer{position:relative}@media screen and (max-width:600px){.videoplayer{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.videoplayer embed,.videoplayer iframe,.videoplayer object,.videoplayer video{position:absolute;top:0;left:0;width:100%;height:100%}#htmlplayer #video,#player,#player #video,#player iframe,.player,.player embed,.player iframe,.player object{width:100%!important;height:auto}#container .video-block{margin:0 15px 10px!important;min-height:145px}.video-block-container .video-block{margin:0 15px!important;min-height:145px}.video-block:first-child{margin:0 15px!important}.sidebar-wrap .imgBorder{width:120px}}.ratethis{background:url(../images/stars831-thump.png) no-repeat;width:100px;height:20px;margin:5px;clear:both;position:relative;list-style:none}#rateid ul.ratethis{list-style:none}.nopos{background-position:0 0}.onepos{background-position:0 -20px}.twopos{background-position:0 -40px}.threepos{background-position:0 -60px}.fourpos{background-position:0 -80px}.fivepos{background-position:0 -100px}#rateimg ul.ratethis li{text-indent:-999em;cursor:pointer;float:left;list-style:none}#rateimg .ratethis{margin:0;padding:0!important}.callout-header-home h2{margin-bottom:5px;font-size:15px}h2.hoverable a{font-size:18px}h2.hoverable a:hover{background:0 0}ul.ratethis li a{text-indent:9999px;position:absolute;left:0;top:0;width:20px;height:20px;z-index:200}ul.ratethis li.one a{left:0}ul.ratethis li.two a{left:20px}ul.ratethis li.three a{left:40px}ul.ratethis li.four a{left:60px}ul.ratethis li.five a{left:80px}ul.ratethis li a:hover{background:url(../images/stars831-thump.png) no-repeat;z-index:2;width:100px;height:20px;overflow:hidden;left:0}ul.ratethis li.one a:hover{background-position:0 -120px}ul.ratethis li.two a:hover{background-position:0 -140px}ul.ratethis li.three a:hover{background-position:0 -160px}ul.ratethis li.four a:hover{background-position:0 -180px}ul.ratethis li.five a:hover{background-position:0 -200px}.player_related_video{clear:both}.video-socialshare iframe{margin:0!important}.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}ul.ratethis1 li{cursor:pointer;float:left}.nopos1{background-position:0 0!important}.onepos1{background-position:0 -12px!important}.twopos1{background-position:0 -24px!important}.threepos1{background-position:0 -36px!important}.fourpos1{background-position:0 -48px!important}.fivepos1{background-position:0 -60px!important}.playlistOuterBox,.watchlaterIcon{background:#fff;position:absolute}.playlistContainer,.playlistSearchBox{width:99%}#videos-category .videoHname{min-height:initial}#videosearchform #video_search{padding:6px 0}#lightm{width:468px;position:absolute}.googlead_img{float:right;cursor:pointer}.titleouter{float:left;width:100%}@media screen and (max-width:600px){.videoplayer{position:relative;padding-bottom:56.25%;padding-top:30px;height:0;overflow:hidden}.videoplayer embed,.videoplayer iframe,.videoplayer object,.videoplayer video{position:absolute;top:0;left:0;width:100%;height:100%}.video-cat-thumb{width:100%;float:left;margin-top:8px}}.playlistIcon,.watchlaterIcon,.watchlaterImg{width:24px!important;height:24px!important}.tablenav-pages{float:right}.videoplayer embed,.videoplayer iframe,.videoplayer object,.videoplayer video{margin-bottom:0}div#content .entry-content #lightm iframe{margin-bottom:0!important}.watchlaterIcon{bottom:0;right:0;cursor:pointer;margin-right:1px;margin-bottom:1px}.playlistIcon{position:absolute;bottom:1px;left:1px;cursor:pointer}.imgBorder:hover .playlistIcon,.imgBorder:hover .watchlaterIcon,.video-thumbimg:hover .playlistIcon,.video-thumbimg:hover .watchlaterIcon{display:block}.playlistOuterBox{width:210px;border:1px solid #E6E6E6;z-index:3000!important;box-shadow:0 0 10px 0 #505050;padding:3px;border-radius:5px}p.playlistButtonContainer{width:100%;text-align:right;margin-bottom:5px;margin-top:2px}.playlistInnerBox{width:100%}.playlistSearchBox{border:1px solid #E6E2E2;margin-top:5px;background-color:#F3F3F3;border-radius:6px}span.playlistSearchImage img{width:32px!important;height:32px!important;cursor:pointer}.playlistTextField{width:95%!important;display:none;border:1px solid #ccc;margin:3px auto}button.playlistButton{text-align:right;padding:5px 15px;border:none}.playlistContainer{background-color:#F3F3F3;border:1px solid #E6E2E2;margin-top:5px;border-radius:6px;margin-bottom:5px}p.noPlaylistText{margin-bottom:7px;padding:5px;text-align:center;margin-top:5px;border-radius:10px}.playlistBox{padding:5px}.playlistCheckbox{display:inline-block;margin-bottom:5px;border:1px solid #847B7B;width:15px;height:15px;vertical-align:top;margin-right:4px;background-position:-1px -1px;cursor:pointer}.playlistAlertMsg{margin:4px 0 0;text-align:center;color:#4682b4}.playlistTemplateOuterBox{width:100%}.playlistTemplateContainer{width:100%;padding:5px}.playlistTemplateBox{width:181px;border:1px solid #E2E2E6;float:left;margin-right:9px;margin-bottom:10px;box-shadow:0 0 2px 0 grey}p.playlistNameBox,p.playlistVideoCountBox{margin:0;background-color:#F7F7F7}.playlistImgBox{width:180px;overflow:hidden;cursor:pointer;height:130px}.plalylistThumbImage{width:180px;transition:transform 2s;-webkit-transition:transform 1s;height:130px!important}.plalylistThumbImage:hover{transform:scale(2,2);-webkit-transform:scale(1.5,1.5)}p.playlistVideoCountBox{text-align:right;padding-right:0 2px 0 0}.playlistTemplateContainer:after{content:'';display:block;clear:both}.playlistContainerBox{width:100%;background-color:#F6F6F6;padding:2px;border:1px solid rgba(213,213,214,1);margin-bottom:10px;position:relative}.playlistContainerBox:after{content:'';display:block;clear:both}.playlistContainerThumbBox img{width:100%}.playlistDetailElement{width:91%;float:left;margin-left:3px}p.playlistNameElement{padding-top:3px;color:#bc360a;font-size:18px;width:100%}span.spanForEditName{position:absolute;top:8px;right:10px}p.playlistNotFound{width:100%;text-align:center;color:#707071;padding:5px;background:rgba(202,202,202,.1)!important;border:1px solid rgba(213,213,214,1)!important}.editPlaylistName{display:block;color:#bc360a;//border:none;background:0 0;width:100%}span.clearPlaylistButton,span.deletePlaylistButton{background-color:#8f8f98;color:#fff;cursor:pointer}.noWatchVideoFound{width:initial;text-align:center;color:#707071;margin:0;padding:5px;background:rgba(202,202,202,.1)!important;border:1px solid rgba(213,213,214,1)!important}p.playlistLoadinElement{margin:5px 0 0;width:100%;text-align:center}span.clearPlaylistButton,span.deletePlaylistButton{margin-bottom:5px!important;background:#666;border-radius:3px;display:inline-block;padding:2px 10px}span.clearPlaylistButton:hover,span.deletePlaylistButton:hover{background:#999}p.playlistVideoCountBox{padding:0 5px;width:auto}p.playlistNameBox{font-size:13px;padding:0 0 0 5px;width:auto;color:#0073aa}.playlistContainerThumbBox{float:left;width:30%;margin-bottom:0;height:auto}input:focus,textarea:focus{border:1px solid #ccc!important}@media screen and (max-width:650px) and (min-width:320px){span.clearPlaylistButton,span.deletePlaylistButton{width:100%;text-align:center}}.editPlaylistName{margin-bottom:5px}.playlistSearchBox{padding:3px 0}.playlistContainerThumbBox img{height:80px!important}
  • contus-video-gallery/trunk/front/controllers/videohomeController.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus Video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/front/controllers/videomoreController.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/front/controllers/videoshortcodeController.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/front/models/videohome.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
    12 
     12include_once(APPTHA_VGALLERY_BASEDIR.'/helper/watchhelper.php');
    1313/** Checks the ContusVideo class has been defined if starts */
    1414if ( !class_exists ( 'ContusVideo' ) ) {
     
    1919   */
    2020  class ContusVideo {
     21    /**
     22     * WatchHelper trait is used to include commonly used functions on ContusVideo class
     23     */
     24    use WatchHelper;
    2125    /**
    2226     * ContusVideo constructor  is used to initalize
     
    2832        /** Set Videoshare table prefix */
    2933        $this->_videoinfotable  = $this->_wpdb->prefix . 'hdflvvideoshare';
     34        $this->watchDetailsTable = WVG_WATCH_LATER;
    3035    }
    3136     
     
    319324      }
    320325    }
     326   
    321327  /** ContusVideo class ends */
    322328  }
  • contus-video-gallery/trunk/front/models/videomore.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
    12 
     12include_once(APPTHA_VGALLERY_BASEDIR.'/helper/watchhelper.php');
    1313/** Checks the ContusMore class has been defined if starts */
    1414if ( !class_exists ( 'ContusMore' ) ) {
     
    1919     */
    2020    class ContusMore {
     21        /**
     22         * WatchHelper trait is used to include commonly used functions on ContusMore class
     23         */
     24        use WatchHelper;
    2125        /**
    2226         * ContusMore constructor is used to initalize
     
    3034            /** Set prefix videos table*/
    3135            $this->_videoinfotable      = $this->_wpdb->prefix . 'hdflvvideoshare';
     36            $this->watchDetailsTable = WVG_WATCH_LATER;
     37            $this->userPlaylistDetailsTable = WVG_USER_PLAYLIST_DETAILS;
    3238        }
    3339       
     
    173179       
    174180        /**
     181         * Function to get category thumb data
     182         *
     183         * @global type $wpdb
     184         * @param type $thumImageorder
     185         * @param type $pagenum
     186         * @param type $dataLimit
     187         * @return type
     188         */
     189        public function home_playlistthumbdata($thumImageorder, $pagenum, $dataLimit, $default_order) {
     190            global $wpdb;
     191            /** Set limit for category videos */
     192            $pagenum  = ! empty ( $pagenum ) ? absint ( $pagenum ) : 1;
     193            $offset   = ($pagenum - 1) * $dataLimit;
     194            $videoIdArray = $wpdb->get_col($wpdb->prepare("SELECT vid FROM ".$this->userPlaylistDetailsTable." WHERE pid=%d ORDER BY id desc",$thumImageorder));
     195            if(!empty($videoIdArray)) {
     196                $videoDetails = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix ."hdflvvideoshare WHERE vid IN (".implode(',',$videoIdArray).") ORDER BY field(vid,".implode(',',$videoIdArray).") LIMIT " . $offset . "," . $dataLimit);
     197                return $videoDetails;
     198            }
     199        }
     200       
     201        public function home_countplaylistthumbdata($thumImageorder) {
     202            global $wpdb;
     203            $videoIdArray = $wpdb->get_col($wpdb->prepare("SELECT vid FROM ".$this->userPlaylistDetailsTable." WHERE pid=%d ORDER BY id desc",$thumImageorder));
     204            return count($videoIdArray);
     205        }
     206       
     207        /**
    175208         * Get thumb data for similar user created
    176209         *
  • contus-video-gallery/trunk/front/models/videoshortcode.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     
    8888              ON g.id = v.google_adsense_value");   
    8989        }
    90        
    9190        /**
    9291         * Fucntion to get realted videos for the given video id
  • contus-video-gallery/trunk/front/views/videodetailpage.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     
    319319            }       
    320320            if (! empty ( $vid )) {
     321                $wp_user    =  wp_get_current_user();
     322                $wp_user_id = $wp_user->ID;
    321323                /** Call function to get video details  */
    322324                $homeplayerData   = $this->short_video_detail ( $vid, $number_related_video );
     
    397399            $mobile = vgallery_detect_mobile ();
    398400            /** Embed player code */
    399             if (! isset ( $fetched ) && $fetched [0]->file_type == 5 && ! empty ( $fetched [0]->embedcode )) {
     401            if ( isset ( $fetched ) && $fetched [0]->file_type == 5 && ! empty ( $fetched [0]->embedcode )) {
    400402                $playerembedcode    = stripslashes ( $fetched [0]->embedcode );
    401403                $playeriframewidth  = str_replace ( 'width=', 'width="' . $width . '"', $playerembedcode );
     
    404406                } else {
    405407                    $output .= str_replace ( 'height=', 'height="' . $height . '"', $playeriframewidth );
    406                 }
    407                 $output .= '<script> current_video( ' . $fetched [0]->vid . ',"' . $fetched [0]->name . '" ); </script>';
     408                    watchedVideoHitCount($fetched [0]->vid,false);
     409                }
    408410            } else if ($mobile) {
    409411              /** Check mobile device is detected */
    410                 $output .= '<script> current_video( ' . $fetched [0]->vid . ',"' . $fetched [0]->name . '" ); </script>';
    411412                /** Get video detail for HTML5 player
    412413                 * Load video details */
     
    419420               if ($file_type == 3 || $file_type == 1) {
    420421                    if (strpos ( $videourl, 'youtube' ) > 0) {
    421                         $videourl   = $this->_protocolURL . 'www.youtube.com/embed/' . getYoutubeVideoID ( $videourl );
     422                        $videoid = getYoutubeVideoID ( $videourl );
     423                    $output='<div id="player"></div><script>var tag = document.createElement("script");tag.src = "https://www.youtube.com/iframe_api";var firstScriptTag = document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);var player;function onYouTubeIframeAPIReady() {player = new YT.Player("player", {width: "100%",videoId: "'.$videoid.'",playerVars: {"rel": 0,"showinfo":0,"modestbranding":0},events: {"onStateChange": onPlayerStateChange}});}var done = false;function onPlayerStateChange(event) {if (event.data == YT.PlayerState.PLAYING && !done) {currentVideoP('.$videoId.');done = true;}}</script>';
     424                    echo $output;
    422425                        /** Generate youtube embed code for html5 player */
    423                         $output     .= '<iframe  type="text/html" width="100%" height="' . $height . '" src="' . $videourl . '" frameborder="0"></iframe>';
    424426                    } else if (strpos ( $videourl, 'viddler' ) > 0) {
    425427                        /** For viddler videos in URL method */
    426428                        $imgstr       = explode ( '/', $videourl );
    427429                        $viddler_id   = $imgstr [4];
    428                         $output       .= '<iframe id="viddler-' . $viddler_id . '" width="100%" height="' . $height . '" src="' . $this->_protocolURL . 'www.viddler.com/embed/' . $viddler_id . '/?f=1&autoplay=0&player=full&secret=26392356&loop=false&nologo=false&hd=false" frameborder="0" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>';
     430                        $output='<script type="text/javascript" src="//static.cdn-ec.viddler.com/js/arpeggio/v3/build/main-built.js"></script><div id="my-player"></div><script>var embed = new ViddlerEmbed({videoId: "'.$viddler_id.'",width: "100%",target: "#my-player"});var done = false;embed.manager.events.on("videoPlayer:play", function() {if (!done) {currentVideoP('.$videoId.');done = true;}});</script>';
    429431                    } elseif (strpos ( $videourl, 'dailymotion' ) > 0) {
    430432                        /** For dailymotion videos in URL method */
    431433                        $split_id     = getDailymotionVideoID ( $videourl );
    432434                        $video        = $videourl =  $this->_protocolURL . 'www.dailymotion.com/embed/video/' . $split_id [0];
    433                         $output       .= '<iframe src="' . $video . '?allowed_in_playlists=0" width="' . $width . '" height="' . $height . '"  class="iframe_frameborder" ></iframe>';
     435                        $output='<script src="http://api.dmcdn.net/all.js"></script><div id="player"></div><script>var player = DM.player(document.getElementById("player"),{video: "'.$split_id[0].'",width: "100%",params: {html: 0,wmode: "opaque"},events: {playing: function(){onPlayerStateChange();}}});var done = false;function onPlayerStateChange(){if (!done) {currentVideoP('.$videoId.');done = true;}}</script>';
     436                        echo $output;
    434437                    } else {
    435438                        $output       .= '<video width="100%" height="' . $height . '" id="video" poster="' . $imgurl . '"   src="' . $videourl . '" autobuffer controls onerror="failed( event )">' . $htmlplayer_not_support . '</video>';
     
    448451            } else {
    449452                $output .= '<div id="flashplayer"><embed src="' . $this->_swfPath . '" flashvars="' . $flashvars . '" width="' . $width . '" height="' . $height . '" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" wmode="transparent"></div>';
    450                 /** Google adsense code Start */
     453                /** Google adsense code Start */ 
    451454                if ($player_color ['googleadsense_visible'] == 1 && !( $mobile) && ($this->_post_type === APPTHAVIDEOGALLERY || $this->_page_post_type === APPTHAVIDEOGALLERY)) {
    452455                  if($homeplayerData->google_adsense && $homeplayerData->google_adsense_value) {
  • contus-video-gallery/trunk/front/views/videohome.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     12global $playlistElement;
     13$playlistElement = 1;
    1214/**
    1315 * ContusHomeVideoView class is exist
     
    2022   */
    2123  class ContusHomeVideoView extends ContusVideoController {
     24    /**
     25     * Include videoHelper trait to include commonly used function for watch later functinality
     26     */
     27    use VideoHelper;
    2228    /**
    2329     * ContusHomeVideoView constructor starts
     
    7480    function categorylist($CountOFVideos, $TypeOFvideos, $pagenum, $dataLimit, $category_page, $thumImageorder) {
    7581      global $wpdb;
     82      $userId = get_current_user_id();
     83      $watchLaterVideoIds = $this->getWatchLaterVideoIds($userId);
    7684      $div       = '';
    7785      /** Calculating page number for home page category videos */
     
    96104          /** Dsplay videos for category */
    97105          foreach ( $playLists as $playList ) {
    98             /** Get home category videos duration */
    99             $duration   = $playList->duration;
    100             /** Get home category videos file type  */
    101             $file_type  = $playList->file_type;
    102             /** Get home category videos slug */
    103             $guid       = get_video_permalink ( $playList->slug );
    104             /** Get home category videos thumb image  */
    105             $imageFea   = $playList->image;
    106             $imageFea   = getImagesValue ($playList->image, $file_type, $playList->amazon_buckets, '');
    107             /** Display home cat thumb image */   
    108             $div .= '<li class="video-block"><div class="video-thumbimg"><a href="' . $guid . '"><img src="' . $imageFea . '" alt="" class="imgHome" title=""></a>';
     106            $this->watchLaterHelper($playList,$watchLaterVideoIds);
     107            /** Display home cat thumb image */   
     108            $div .= '<li class="video-block"><div class="video-thumbimg"><a href="' . $guid . '"><img src="' . $this->imageFea . '" alt="" class="imgHome" title=""></a>';
    109109            /** Display video duration */
    110             if ($duration) {
    111               $div  .= '<span class="video_duration">' . $duration . '</span>';
    112             }   
     110            if ($this->duration) {
     111              $div  .= '<span class="video_duration">' . $this->duration . '</span>';
     112            }
     113            $div   .= '<span class="watchlaterIcon" '.$this->clickEvent.' ><img class="watchlaterImg" style="width:24px !important;height:24px !important;" src="'.$this->watchLaterImg.'" title="'.$this->watchLaterTitle.'"></span>
     114                    <span class="playlistIcon" data-vid = '.$this->videoId.'><img class="playlistIconImg" style="width:24px !important;height:24px !important;" src="'.$this->playlistImg.'" title="Add to playlist"></span>';
     115           
    113116            /** Display home cat video name */
    114             $div  .= '</div><div class="vid_info"><a href="' . $guid . '" title="' . $playList->name . '" class="videoHname"><span>' .  limitTitle ( $playList->name ) . '</span></a>';
     117            $div  .= '</div><div class="vid_info"><a href="' . $this->guid . '" title="' . $playList->name . '" class="videoHname"><span>' .  limitTitle ( $playList->name ) . '</span></a>';
    115118            /** Rating for home category video */
    116119            if ($this->_settingsData->ratingscontrol == 1) {
     
    233236                    /** Iframe code for youtube videos */
    234237                    $videoId1   = getYoutubeVideoID ( $videoUrl );
    235                     $div        .= '<iframe width="100%" height="' . $settingsData->height . '" type="text/html" src="' . $this->_pluginProtocol . 'www.youtube.com/embed/' . $videoId1 . '" frameborder="0"></iframe>';
     238                    $div='<div id="player"></div><script>var tag = document.createElement("script");tag.src = "https://www.youtube.com/iframe_api";var firstScriptTag = document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);var player;function onYouTubeIframeAPIReady() {player = new YT.Player("player", {width: "100%",videoId: "'.$videoId1.'",playerVars: {"rel": 0,"showinfo":0,"modestbranding":0},events: {"onStateChange": onPlayerStateChange}});}var done = false;function onPlayerStateChange(event) {if (event.data == YT.PlayerState.PLAYING && !done) {currentVideoP('.$videoId.');done = true;}}</script>';
    236239                } elseif (strpos ( $videoUrl, 'dailymotion' ) > 0) {
    237240                    /** Iframe code for dailymotion videos */
    238241                    $split_id = getDailymotionVideoID ( $videoUrl );
    239242                    $video    = $this->_pluginProtocol . 'www.dailymotion.com/embed/video/' . $split_id [0];
    240                     $div      .= '<iframe src="' . $video . '" width="100%" height="' . $settingsData->height . '" class="iframe_frameborder" ></iframe>';
     243                    $div ='<script src="http://api.dmcdn.net/all.js"></script><div id="player"></div><script>var player = DM.player(document.getElementById("player"),{video: "'.$split_id[0].'",width: "100%",params: {html: 0,wmode: "opaque"},events: {playing: function(){onPlayerStateChange();}}});var done = false;function onPlayerStateChange(){if (!done) {currentVideoP('.$videoId.');done = true;}}</script>';
    241244                } else if (strpos ( $videoUrl, 'viddler' ) > 0) {
    242245                    /** Iframe code for viddler videos */
    243246                    $imgstr     = explode ( '/', $videoUrl );
    244                     $div        .= '<iframe id="viddler-' . $imgstr [4] . '" width="100%" height="' . $settingsData->height . '" src="' . $this->_pluginProtocol . 'www.viddler.com/embed/' . $imgstr [4] . '/?f=1&autoplay=0&player=full&secret=26392356&loop=false&nologo=false&hd=false" frameborder="0" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>';
     247                    $div='<script type="text/javascript" src="//static.cdn-ec.viddler.com/js/arpeggio/v3/build/main-built.js"></script><div id="my-player"></div><script>var embed = new ViddlerEmbed({videoId: "'.$imgstr [4].'",width: "100%",target: "#my-player"});var done = false;embed.manager.events.on("videoPlayer:play", function() {if (!done) {currentVideoP('.$videoId.');done = true;}});</script>';
    245248                } else {
    246249                    if ($file_type == 4) {
     
    276279       */     
    277280       function home_thumb($type) {
     281        global $playlistElement;
     282
    278283        /** Check homeVideo function is exists */
    279284        if (!function_exists ( 'homeVideo' )) {
     
    343348              $divOutput      = '<div class="video_wrapper" id="' . $type_name . '_video">';
    344349              $divOutput      .= '<style type="text/css" scoped> .video-block {margin-left:' . $this->_settingsData->gutterspace . 'px !important;float:left;}  </style>';
     350             
    345351              if (! empty ( $TypeOFvideos )) {
     352                $userId = get_current_user_id();
     353                $watchLaterVideoIds = $this->getWatchLaterVideoIds($userId);
    346354                  /** Display videos title in home page */
    347355                  $divOutput .= '<h2 class="video_header">' . $typename . ' ' . __ ( 'Videos', APPTHA_VGALLERY ) . '</h2>';
     
    350358                      /** Get video duration, image, filetype, slug, video id,
    351359                       * video name, view and rate count */
     360                      $videoId                    = $video->vid;
    352361                      $duration [$videolist]      = $video->duration;
    353362                      $file_type                  = $video->file_type;
     
    363372                      $fetched_pslug [$videolist] = $video->playlist_slugname;                     
    364373                      $videolist ++;
    365                   }                 
     374                  }       
     375       
    366376                  /** Code to display thumbs for popular / recent and featured videos */
    367377                  $divOutput    .= '<div class="video_thumb_content">';
    368378                  $divOutput    .= '<ul class="video-block-container">';
     379                  $playlistImg = APPTHA_VGALLERY_BASEURL.'images/playlist.png';
     380                  $playlistCreateImg = APPTHA_VGALLERY_BASEURL.'images/playlist_create.png';
     381                  $playlistSearchImg = APPTHA_VGALLERY_BASEURL.'images/playlist_search.png';
    369382                  /** Display video list container */
    370                   for($videolist = 0; $videolist < count ( $TypeOFvideos ); $videolist ++) {                   
    371                       $class = '<div class="clear"></div>';                     
     383                  for($videolist = 0; $videolist < count ( $TypeOFvideos ); $videolist ++) { 
     384                    $videoId =  $TypeOFvideos[$videolist]->vid;
     385                    if(in_array($videoId,$watchLaterVideoIds)) {
     386                        $watchLaterImg = APPTHA_VGALLERY_BASEURL.'images/accepted.png';
     387                        $watchLaterTitle = 'Added to Watch Later';
     388                    }
     389                    else {
     390                        $watchLaterImg = APPTHA_VGALLERY_BASEURL.'images/watchlater2.png';
     391                        $watchLaterTitle = 'Add to Watch Later';
     392                        $clickEvent = 'onclick="watchLater('.$videoId.',this)"';
     393                    }
     394                    $class = '<div class="clear"></div>';                     
    372395                      if (($videolist % $colF) == 0 && $videolist != 0) {
    373396                        $divOutput  .= '</ul><div class="clear"></div><ul class="video-block-container">';
     
    377400                      $divOutput    .= '<div  class="video-thumbimg"><a href="' . $guid [$videolist] . '"><img src="' . $imageFea [$videolist] . '" alt="' . $nameF [$videolist] . '" class="imgHome" title="' . $nameF [$videolist] . '" /></a>';
    378401                      if ($duration [$videolist]) {
    379                         $divOutput  .= '<span class="video_duration">' . $duration [$videolist] . '</span>';
     402                        $divOutput  .= '<span class="video_duration" >' . $duration [$videolist] . '</span>';
    380403                      }
    381                       $divOutput    .= '</div>';                     
     404                      $divOutput    .= '
     405                            <span class="watchlaterIcon" '.$clickEvent.' ><img class="watchlaterImg" style="width:24px !important;height:24px !important;" src="'.$watchLaterImg.'" title="'.$watchLaterTitle.'"></span>
     406                            <span class="playlistIcon" data-vid = '.$videoId.'><img class="playlistIconImg" style="width:24px !important;height:24px !important;" src="'.$playlistImg.'" title="Add to playlist"></span>';     
     407 
    382408                      /** Display video details block starts */
    383                       $divOutput    .= '<div class="vid_info"><a title="' . $nameF [$videolist] . '" href="' . $guid [$videolist] . '" class="videoHname"><span>' . limitTitle ( $nameF [$videolist] ) . '</span></a>';
     409                      $divOutput    .= '</div><div class="vid_info"><a title="' . $nameF [$videolist] . '" href="' . $guid [$videolist] . '" class="videoHname"><span>' . limitTitle ( $nameF [$videolist] ) . '</span></a>';
    384410                      $divOutput    .= '';
    385411                      if ($fetched [$videolist] != '' && ($this->_settingsData->categorydisplay == 1)) {
     
    416442              $divOutput    .= '</div>';
    417443          }         
     444 
    418445          return $divOutput;
    419446        }
  • contus-video-gallery/trunk/front/views/videomore.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
     
    144144                $CountOFVideos  = $this->countof_videos ( absint ( $this->_playid ), '', $thumImageorder, $where );
    145145                break;
     146            case 'playlist' :
     147                $thumImageorder = absint ( $this->_playid );
     148                $typename       = __ ('Playlist', APPTHA_VGALLERY );
     149                $type_name      = 'Playlist';
     150                $morePage       = '&playid=' . $thumImageorder;
     151                $TypeOFvideos   = $this->home_playlistthumbdata( $thumImageorder, $this->_pagenum, $dataLimit, $default_order );
     152                $CountOFVideos  = $this->home_countplaylistthumbdata ( $thumImageorder );
     153                break;
    146154            case 'user' :
    147155                $thumImageorder = $this->_userid;           
     
    167175 * Display the category page results
    168176 */
    169 class MoreCategoryView extends ContusMoreView {
     177class MoreCategoryView extends ContusMoreView {
     178    /**
     179     * Include videoHelper trait to include commonly used function for watch later functinality
     180     */
     181    use VideoHelper;
    170182    /**
    171183     * Function to get videos for search
     
    223235    function categorylist($CountOfCatVideos, $TypeOfCatvideos, $pagenum, $dataLimit, $default_order) {
    224236        global $wpdb;
     237        $userId = get_current_user_id();
     238        $watchLaterVideoIds = $this->getWatchLaterVideoIds($userId);
    225239        $div        = '';
    226240        /** Calculating page number for category videos */
     
    239253                $div    .= '<ul class="video-block-container">';
    240254                foreach ( $playLists as $playList ) {
    241                     $duration     = $playList->duration;
    242                     $file_type    = $playList->file_type;
    243                     $guid         = get_video_permalink ( $playList->slug );             
    244                     $imageFea     = getImagesValue ($playList->image, $file_type, $playList->amazon_buckets, '');
    245                     $playlist_more_link = get_playlist_permalink ( $moreName, $catList->pid, $catList->playlist_slugname );
     255                    $this->watchLaterHelper($playList,$watchLaterVideoIds);
    246256                    /** To display the category videos thumb image and video duration  */
    247                     $div    .= '<li class="video-block"><div class="video-thumbimg"><a href="' . $guid . '" title="' . $playList->name . '" ><img src="' . $imageFea . '" alt="" class="imgHome" title="" /></a>';
     257                    $div    .= '<li class="video-block"><div class="video-thumbimg"><a href="' . $this->guid . '" title="' . $playList->name . '" ><img src="' . $this->imageFea . '" alt="" class="imgHome" title="" /></a>';
    248258
    249                  if (!empty($duration) && $duration != '0:00') {
    250                         $div  .= '<span class="video_duration">' . $duration . '</span>';
     259                 if (!empty($this->duration) && $this->duration != '0:00') {
     260                        $div  .= '<span class="video_duration">' . $this->duration . '</span>';
    251261                    }
     262                    $div     .= '<span class="watchlaterIcon" '.$this->clickEvent.' ><img class="watchlaterImg" style="width:24px !important;height:24px !important;" src="'.$this->watchLaterImg.'" title="'.$this->watchLaterTitle.'"></span>
     263                                <span class="playlistIcon" data-vid = '.$this->videoId.'><img class="playlistIconImg" style="width:24px !important;height:24px !important;" src="'.$this->playlistImg.'" title="Add to playlist"></span>';
    252264                    /** To display playlist name as linkable */
    253                     $div    .= '</div><div class="vid_info"><h5><a href="' . $guid . '" class="videoHname" title="' . $playList->name . '">' . limitTitle ( $playList->name ) . '</a></h5>';                 
     265                    $div    .= '</div><div class="vid_info"><h5><a href="' . $this->guid . '" class="videoHname" title="' . $playList->name . '">' . limitTitle ( $playList->name ) . '</a></h5>';                 
    254266                    if ($this->_settingsData->categorydisplay == 1) {
    255267                        $div  .= '<a class="playlistName" href="' . $playlist_more_link . '"><span>' . $catList->playlist_name . '</span></a>';
     
    313325class MoreSearchView extends MoreCategoryView {
    314326  /**
     327   * Include videoHelper trait to include commonly used function for watch later functinality
     328   */
     329   use VideoHelper;
     330  /**
    315331   * Function to display search results
    316332   *
     
    324340  function searchlist($video_search, $CountOfSearchVideos, $TypeOfSearchvideos, $pagenum, $dataLimit) {
    325341    $div        = '';
     342    $userId = get_current_user_id();
     343    $watchLaterVideoIds = $this->getWatchLaterVideoIds($userId);
    326344    /**
    327345     * Calculating page number
     
    336354      $div    .= '<ul class="video-block-container">';
    337355      foreach ( $TypeOfSearchvideos as $playList ) {
    338         $duration     = $playList->duration;
    339         $file_type    = $playList->file_type;
    340         $guid         = get_video_permalink ( $playList->slug );
    341         $imageFea     = getImagesValue ($playList->image, $file_type, $playList->amazon_buckets, '');
    342          
     356        $this->watchLaterHelper($playList,$watchLaterVideoIds);         
    343357        if (($inc % $this->_colF) == 0 && $inc != 0) {
    344358          /** Column count for search page */
     
    347361        /** Display search videos
    348362         * thumb and duration */
    349         $div    .= '<li class="video-block"><div class="video-thumbimg"><a href="' . $guid . '" title="' . $playList->name . '"><img src="' . $imageFea . '" alt="" class="imgHome" title="" /></a>';
    350         if (!empty($duration) && $duration != '0:00') {
    351           $div .= '<span class="video_duration">' . $duration . '</span>';
    352         }
     363        $div    .= '<li class="video-block"><div class="video-thumbimg"><a href="' . $this->guid . '" title="' . $playList->name . '"><img src="' . $this->imageFea . '" alt="" class="imgHome" title="" /></a>';
     364        if (!empty($this->duration) && $this->duration != '0:00') {
     365          $div .= '<span class="video_duration">' . $this->duration . '</span>';
     366        }
     367        $div   .= '<span class="watchlaterIcon" '.$this->clickEvent.' ><img class="watchlaterImg" style="width:24px !important;height:24px !important;" src="'.$this->watchLaterImg.'" title="'.$this->watchLaterTitle.'"></span>
     368                   <span class="playlistIcon" data-vid = '.$this->videoId.'><img class="playlistIconImg" style="width:24px !important;height:24px !important;" src="'.$this->playlistImg.'" title="Add to playlist"></span>';
    353369 
    354370        /** Display video title, playlist name and link  */
    355         $div    .= '</div><div class="vid_info"><a href="' . $guid . '" class="videoHname" title="' . $playList->name . '" >' . limitTitle ( $playList->name ) . '</a>';
     371        $div    .= '</div><div class="vid_info"><a href="' . $this->guid . '" class="videoHname" title="' . $playList->name . '" >' . limitTitle ( $playList->name ) . '</a>';
    356372        if (! empty ( $playList->playlist_name )) {
    357373          $playlist_url = get_playlist_permalink ( $this->_mPageid, $playList->pid, $playList->playlist_slugname );
  • contus-video-gallery/trunk/front/views/videomorepage.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
    12 
    1312/** Check ContusMorePageView class is exist */
    1413if ( !class_exists ( 'ContusMorePageView' )) {
     
    6766          /** Get details for serach and videomore page */
    6867          $this->getSearchCategoryVideos ( $type ) ;
     68
    6969        } else{
    7070          /** Get details for other more pages */
     
    8383        $div        .= $this->morePageTitle ( $type_name, $typename );
    8484        if (! empty ( $TypeOFvideos )) {
     85          $userId = get_current_user_id();
     86          $watchLaterVideoIds = $this->getWatchLaterVideoIds($userId);
    8587          $pagenum    = absint ( $this->_pagenum ) ? absint ( $this->_pagenum ) : 1;
    8688          $videolist              = 0;
     
    113115          /** Display thumbnails starts */
    114116          for($videolist = 0; $videolist < count ( $TypeOFvideos ); $videolist ++) {
     117            $videoId =  $TypeOFvideos[$videolist]->vid;
     118            $playlistImg = APPTHA_VGALLERY_BASEURL.'images/playlist.png';
     119            if(in_array($videoId,$watchLaterVideoIds)) {
     120                $watchLaterImg = APPTHA_VGALLERY_BASEURL.'images/accepted.png';
     121                $watchLaterTitle = 'Added to Watch Later';
     122                $clickEvent='';
     123            }
     124            else {
     125                $watchLaterImg = APPTHA_VGALLERY_BASEURL.'images/watchlater2.png';
     126                $watchLaterTitle = 'Add to Watch Later';
     127                $clickEvent = 'onclick="watchLater('.$videoId.',this)"';
     128            }
    115129            if (($videolist % $this->_colF) == 0 && $videolist != 0) {
    116130              $div    .= '</ul><div class="clear"></div><ul class="video-block-container">';
     
    121135              $div    .= '<span class="video_duration">' . $duration [$videolist] . '</span>';
    122136            }
     137            $div    .= '<span class="watchlaterIcon" '.$clickEvent.' ><img class="watchlaterImg" style="width:24px !important;height:24px !important;" src="'.$watchLaterImg.'" title="'.$watchLaterTitle.'"></span>
     138                        <span class="playlistIcon" data-vid = '.$videoId.'><img class="playlistIconImg" style="width:24px !important;height:24px !important;" src="'.$playlistImg.'" title="Add to playlist"></span>';
    123139            /** Display duration ends and video title starts */
    124140            $div      .= '</div> <div class="vid_info"><a href="' . $guid [$videolist] . '" title="' . $nameF [$videolist] . '" class="videoHname"><span>' . limitTitle ( $nameF [$videolist] ) . '</span></a>';
     
    130146            /** Rating starts here */
    131147            if ($this->_settingsData->ratingscontrol == 1) {
    132               $div  .= getRatingValue ($ratecount [$videolist],$rate [$videolist],'');
     148              $div  .= getRatingValue ($rate [$videolist],$ratecount [$videolist],'');
    133149            }
    134150            /** Views starts here */
  • contus-video-gallery/trunk/front/views/videoshortcode.php

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111 */
  • contus-video-gallery/trunk/helper/pluginAdminHelper.php

    r1251095 r1306821  
    1919  /** Check whether the tab is playlist / ads / gads / settings and videos and set styles */
    2020  switch( $section ) {
     21      case 'userplaylist' :
     22          /** Set playlist tab is active */
     23          $userplaylist = 'nav-tab-active';
     24          $video = $ads = $settings = $gads = $playlist = '';
     25          break;
    2126      case 'playlist' :
    22           /** Set playlist tab is active */
     27          /** Set playlist tab is active */
    2328          $playlist = 'nav-tab-active';
    2429          $video = $ads = $settings = $gads = '';
     
    5055    <a href="?page=video" class="nav-tab ' . $video . ' "> '. __( 'All Videos', APPTHA_VGALLERY ) . '</a>
    5156    <a href="?page=playlist" class="nav-tab ' . $playlist .'">' .__( 'Categories', APPTHA_VGALLERY ) . '</a>
     57            <a href="?page=userplaylist" class="nav-tab ' . $userplaylist .'">' .__( 'Playlist', APPTHA_VGALLERY ) . '</a>
    5258    <a href="?page=videoads" class="nav-tab ' . $ads . '">' . __( 'Video Ads', APPTHA_VGALLERY ) . '</a>
    5359    <a href="?page=hdflvvideosharesettings" class="nav-tab ' . $settings . ' ">'. __( 'Settings', APPTHA_VGALLERY ) .'</a>
  • contus-video-gallery/trunk/helper/pluginHelper.php

    r1251095 r1306821  
    66* @version    2.9
    77* @author     Apptha Team <[email protected]>
    8 * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     8 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    99* @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010*/
     
    344344    return true;
    345345  }
     346  else {
     347    return false;
     348  }
    346349}
    347350/**
  • contus-video-gallery/trunk/helper/query.php

    r1251095 r1306821  
    44 * @category   Apptha
    55 * @package    Contus video Gallery
    6  * @version    2.9
     6 * @version    3.0
    77 * @author     Apptha Team <[email protected]>
    8  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     8 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    99 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010 */
     
    234234    } else {
    235235      /** Return Non SEO video URL if permalink disabled  */
    236       return $postDetails->guid;
     236      return htmlspecialchars_decode($postDetails->guid);
    237237    }
    238238}
  • contus-video-gallery/trunk/helper/s3_config.php

    r1251095 r1306821  
    66 * @version    2.7
    77 * @author     Apptha Team <[email protected]>
    8  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     8 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    99 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010 */
  • contus-video-gallery/trunk/helper/widgetHelper.php

    r1251095 r1306821  
    44 * @category   Apptha
    55 * @package    Contus video Gallery
    6  * @version    2.9
     6 * @version    3.0
    77 * @author     Apptha Team <[email protected]>
    8  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     8 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    99 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010 */
     
    108108 * @return string
    109109 */
    110 function displayWidgetVideos ($title, $type, $videosData, $show , $pID, $playlist_slugname ) {
     110function displayWidgetVideos ($title, $type, $videosData, $show , $pID, $playlist_slugname,$watchLaterVideoIds ) {
     111      global $wpdb;
    111112      /** Get more page id , videos link for featured videos and plugin settings value */
    112113      $moreName         = morePageID();
    113114      $more_videos_link = get_morepage_permalink ( $moreName, $type );
    114115      $settings_result  = getPluginSettings();
    115      
     116      if($type == 'watch history') {
     117        $postShortcodeContent = '[watch_history]';
     118      }
     119      if($type == 'watch later') {
     120        $postShortcodeContent = '[watch_later]';
     121      }
     122      $watch_history_page = $wpdb->get_results($wpdb->prepare("SELECT * FROM ".$wpdb->prefix."posts WHERE post_content=%s AND post_status=%s","[watch_history]","publish"));
     123      if ( get_option('permalink_structure') ) {
     124        $watchlink = get_site_url() . '/' .$watch_history_page[0]->post_name;
     125      }
     126      else {
     127        $watchlink = $watch_history_page[0]->guid;
     128      }
     129      if($type == 'watch history' || $type == 'watch later') {
     130        $more_videos_link = $watchlink;
     131      }
    116132      /** Display widget tilte */
    117133      $div        = '<div id="' . $type . '-videos"  class="sidebar-wrap "> <h3 class="widget-title">';     
     
    138154        /** Looping widget video detials */
    139155        foreach ( $videosData as $videodata ) {
     156            $videoId =  $videodata->vid;
     157            if(in_array($videoId,$watchLaterVideoIds)) {
     158                $watchLaterImg = APPTHA_VGALLERY_BASEURL.'images/accepted.png';
     159                $watchLaterTitle = 'Added to Watch Later';
     160                $clickEvent = '';
     161            }
     162            else {
     163                $watchLaterImg = APPTHA_VGALLERY_BASEURL.'images/watchlater2.png';
     164                $watchLaterTitle = 'Add to Watch Later';
     165                $clickEvent = 'onclick="watchLater('.$videoId.',this)"';
     166            }
    140167          /** Get video file type */
    141168          $file_type  = $videodata->file_type;
     
    155182            $div  .= '<span class="video_duration">' . $videodata->duration . '</span>';
    156183          }
     184          if($type != 'watch history' && $type != 'watch later') {
     185            $div   .= '<span class="watchlaterIcon" '.$clickEvent.' ><img class="watchlaterImg" style="width:24px !important;height:24px !important;" src="'.$watchLaterImg.'" title="'.$watchLaterTitle.'"></span>';
     186          }
    157187          $div    .= '</div>';
    158188          /** Display video title */         
     
    177207       * Check number of videos to be shown count is less than or equal to total count
    178208       */
     209
     210      $totalVideoCount = count($videosData);
    179211      if (($show < $videosCount) || ($show == $videosCount)) {
    180212          /** If type is realted video, then display playlist URL as a link */
  • contus-video-gallery/trunk/js/googlead.js

    r1251095 r1306821  
    55 * @category   Apptha
    66 * @package    Contus video Gallery
    7  * @version    2.9
     7 * @version    3.0
    88 * @author     Apptha Team <[email protected]>
    9  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     9 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    1010 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1111*/
  • contus-video-gallery/trunk/js/mycarousel.js

    r1251095 r1306821  
    66 * @version    2.8
    77 * @author     Apptha Team <[email protected]>
    8  * @copyright  Copyright (C) 2014 Apptha. All rights reserved.
     8 * @copyright  Copyright (C) 2015 Apptha. All rights reserved.
    99 * @license    GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010 */
  • contus-video-gallery/trunk/js/script.js

    r1251095 r1306821  
    99 * @license GNU General Public License http://www.gnu.org/copyleft/gpl.html
    1010 */
    11 function createObject() {
    12     var request_type;
    13     var browser = navigator.appName;
    14     if( browser == "Microsoft Internet Explorer" ) {
    15         request_type = new ActiveXObject( "Microsoft.XMLHTTP" );
    16     } else {
    17         request_type = new XMLHttpRequest();
    18     }
    19     return request_type;
    20 }
    21 function rateCalc(rating,ratecount){
    22     var name = videodiv + videoid;
    23     var ratecal = new Function(
    24          'return function ratecal' + name + '(rating,ratecount){if( rating==1 ) {document.getElementById( "rate" + name).className="ratethis onepos";}  else if( rating==2 ) {document.getElementById( "rate" + name).className="ratethis twopos";} else if( rating==3 ) {document.getElementById( "rate" + name ).className="ratethis threepos";} else if( rating==4 ) {document.getElementById( "rate" + name).className="ratethis fourpos";} else if( rating==5 ) {document.getElementById( "rate" + name ).className="ratethis fivepos";} else {document.getElementById( "rate" + name).className="ratethis nopos";}document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+ratecount;}'
    25          )();
    26     ratecal(rating,ratecount);
    27 }
    28 function generateRating( value ) {
    29     var name = videodiv + videoid;
    30     document.getElementById( "rate" + name).className="ratethis "+ value +"pos";
    31     document.getElementById( "a" + name).className="ratethis "+ value +"pos";
    32 }
    33 function getRating(t){
    34     var http = createObject();
    35     var name = videodiv + videoid;
    36     var getrate = new Function(
    37             'return function getrate' + name + '(t){switch (t){ case 1: generateRating( "one" ); break; case 2 : generateRating( "two" ); break; case 3: generateRating( "three" ); break; case 4: generateRating( "four" ); break; case 5: generateRating( "five" ); break; default: break;}' 
    38          )();
    39     getrate(t);
    40     document.getElementById( "rate" + name).style.display="none";
    41     document.getElementById( "ratemsg" + name ).innerHTML="Thanks for rating!";
    42     var vid     = document.getElementById( "videoid" + name ).value;
    43     nocache     = Math.random();
    44     http.open( "get", baseurl+"/wp-admin/admin-ajax.php?action=ratecount&vid="+vid+"&rate="+t,true );
    45     http.onreadystatechange = "insertReply" + name;
    46     http.send( null );
    47     document.getElementById( "rate" + name ).style.visibility="disable";
    48    
    49     var insertReply = new Function(
    50             'return function insertReply' + name + '(){if( http.readyState == 4 ) { document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+http.responseText; document.getElementById( "rate" + name).className=""; document.getElementById( "storeratemsg" + name ).value=http.responseText; } }'
    51          )();
    52     insertReply(); 
    53 }
    54 function resetValue(ratecount){
    55     var name = videodiv + videoid;
    56     var resetval = new Function(
    57          'return function resetvalue' + name + '(ratecount){document.getElementById( "ratemsg1" + name).style.display="none"; document.getElementById( "ratemsg" + name ).style.display="block"; if( document.getElementById( "storeratemsg" + name).value == "" ) { document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+ratecount; } else { document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+document.getElementById( "storeratemsg" + name).value; }'
    58          )();
    59     resetval(ratecount);
    60 }
    61 function displayRating(t){
    62     var name = videodiv + videoid;
    63     var displayrate = new Function(
    64          'return function displayrating' + name + '(t){if( t==1 ) { document.getElementById( "ratemsg" + name).innerHTML="Poor"; } else if( t==2 ) { document.getElementById( "ratemsg" + name).innerHTML="Nothing&nbsp;Special"; } else if( t==3 ) { document.getElementById( "ratemsg" + name).innerHTML="Worth&nbsp;Watching"; } else if( t==4 ) { document.getElementById( "ratemsg" + name).innerHTML="Pretty&nbsp;Cool"; } else if( t==5 ) { document.getElementById( "ratemsg" + name).innerHTML="Awesome"; } else { document.getElementById( "ratemsg1" + name).style.display="none"; document.getElementById( "ratemsg" + name).style.display="block"; } }'
    65          )();
    66     displayrate(t);
    67 }
    68 function current_video(vid, title) {
     11function currentVideoP(vid,w) {
    6912    if (window.XMLHttpRequest)
    7013        xmlhttp = new XMLHttpRequest;
     
    7922    xmlhttp.send();
    8023}
     24function createObject() {
     25    var request_type;
     26    var browser = navigator.appName;
     27    if( browser == "Microsoft Internet Explorer" ) {
     28        request_type = new ActiveXObject( "Microsoft.XMLHTTP" );
     29    } else {
     30        request_type = new XMLHttpRequest();
     31    }
     32    return request_type;
     33}
     34function curVideo(video_id,d_title){
     35    var name = videodiv ;
     36    var curvideo = new Function(
     37         'return function curVideo' + name + '(name){if( d_title == undefined ) { document.getElementById( "video_title"+ videodiv ).innerHTML=""; } else { document.getElementById( "video_title"+ videodiv ).innerHTML=""; document.getElementById( "video_title"+ videodiv ).innerHTML=d_title; }}'
     38         )();
     39    curvideo(name);
     40}
     41function rateCalc(rating,ratecount){
     42    var name = videodiv + videoid;
     43    var ratecal = new Function(
     44         'return function ratecal' + name + '(rating,ratecount,name){if( rating==1 ) {document.getElementById( "rate" + name).className="ratethis onepos";}  else if( rating==2 ) {document.getElementById( "rate" + name).className="ratethis twopos";} else if( rating==3 ) {document.getElementById( "rate" + name ).className="ratethis threepos";} else if( rating==4 ) {document.getElementById( "rate" + name).className="ratethis fourpos";} else if( rating==5 ) {document.getElementById( "rate" + name ).className="ratethis fivepos";} else {document.getElementById( "rate" + name).className="ratethis nopos";}document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+ratecount;}'
     45         )();
     46    ratecal(rating,ratecount,name);
     47}
     48function generateRating( value ) {
     49    var name = videodiv + videoid;
     50    document.getElementById( "rate" + name).className="ratethis "+ value +"pos";
     51    document.getElementById( "a" + name).className="ratethis "+ value +"pos";
     52}
     53function getRating(t){
     54    var name = videodiv + videoid;
     55    var getrate = new Function(
     56            'return function getrate' + name + '(t){switch (t){ case 1: generateRating( "one" ); break; case 2 : generateRating( "two" ); break; case 3: generateRating( "three" ); break; case 4: generateRating( "four" ); break; case 5: generateRating( "five" ); break; default: break;}}'
     57         )();
     58    getrate(t);
     59    document.getElementById( "rate" + name).style.display="none";
     60    document.getElementById( "ratemsg" + name ).innerHTML="Thanks for rating!";
     61    var vid     = document.getElementById( "videoid" + name ).value;
     62    //var playlistajax = jQuery.noConflict();
     63    jQuery.ajax( {
     64            type: "GET",
     65            url: adminurl +"admin-ajax.php?action=ratecount",
     66            data: "vid="+vid+"&rate="+t,
     67            success: function( msg ) {
     68                document.getElementById( "ratemsg" + name ).innerHTML = "Ratings&nbsp;:&nbsp;"+msg;
     69                document.getElementById( "storeratemsg" + name ).value=msg;
     70                document.getElementById( "rate" + name).className="";
     71            }
     72        } );
     73    document.getElementById( "rate" + name ).style.visibility="disable";
     74}
     75function resetValue(ratecount){
     76    var name = videodiv + videoid;
     77    var resetval = new Function(
     78         'return function resetvalue' + name + '(ratecount,name){document.getElementById( "ratemsg1" + name).style.display="none"; document.getElementById( "ratemsg" + name ).style.display="block"; if( document.getElementById( "storeratemsg" + name).value == "" ) { document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+ratecount; } else { document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+document.getElementById( "storeratemsg" + name).value; }}'
     79         )();
     80    resetval(ratecount,name);
     81}
     82function displayRating(t){
     83    var name = videodiv + videoid;
     84    var displayrate = new Function(
     85         'return function displayrating' + name + '(t,name){if( t==1 ) { document.getElementById( "ratemsg" + name).innerHTML="Poor"; } else if( t==2 ) { document.getElementById( "ratemsg" + name).innerHTML="Nothing&nbsp;Special"; } else if( t==3 ) { document.getElementById( "ratemsg" + name).innerHTML="Worth&nbsp;Watching"; } else if( t==4 ) { document.getElementById( "ratemsg" + name).innerHTML="Pretty&nbsp;Cool"; } else if( t==5 ) { document.getElementById( "ratemsg" + name).innerHTML="Awesome"; } else { document.getElementById( "ratemsg1" + name).style.display="none"; document.getElementById( "ratemsg" + name).style.display="block"; } }'
     86         )();
     87    displayrate(t,name);
     88}
     89function current_video(vid, title) {
     90    /*if (window.XMLHttpRequest)
     91        xmlhttp = new XMLHttpRequest;
     92    else
     93        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
     94    xmlhttp.onreadystatechange = function() {
     95        if (xmlhttp.readyState == 4)
     96            ;
     97    };
     98    xmlhttp.open("GET", baseurl
     99            + "/wp-admin/admin-ajax.php?action=videohitcount&vid=" + vid, true);
     100    xmlhttp.send();*/
     101}
    81102function enableEmbed() {
    82103    embedFlag = document.getElementById("flagembed").value;
     
    85106        document.getElementById("embedcode").style.display = "block";
    86107        document.getElementById("reportform").style.display = "none";
    87         document.getElementById("iframe-content").style.display = "none";
     108        document.getElementById("iframe-content").style.display = "non";
    88109        document.getElementById("flagembed").value = "1";
    89110        document.getElementById("reportvideo").value = "0";
     
    127148        title) {
    128149    if (file_type === 5)
    129         current_video(vid, "");
     150        //current_video(vid, "");
    130151    document.getElementById("mediaspace" + id).innerHTML = "";
    131152    document.getElementById(player_div + id).innerHTML = embedcode;
     
    179200    document.getElementById("reportform_ajax_loader").style.display = "none";
    180201    document.getElementById("report_video_response").style.display = "none";
    181 };
     202}
     203function watchLater(vid,parentElement) {
     204    url = baseurl + "/wp-admin/admin-ajax.php";
     205    var imgElement = parentElement.querySelector('.watchlaterImg');
     206    var originalImage = imgElement.src;
     207    var imgElementArray = imgElement.src.split('/');
     208    imgElementArray[imgElementArray.length - 1 ] = "loader.gif";
     209    imgElement.src = imgElementArray.join('/');
     210    if(vid) {
     211        jQuery.ajax({
     212            url: url,
     213            type: "POST",
     214            data: "&action=watchlater&vid="+vid,
     215            success: function (msg) {
     216                var obj = jQuery.parseJSON( msg );
     217                checkResult    = obj.checkResult;
     218                if((obj.redirectURL) && obj.redirectURL !='') {
     219                    window.location = obj.redirectURL;
     220                    return false;
     221                }
     222                if(checkResult == true) {
     223                    var imgElementArray = imgElement.src.split('/');
     224                    imgElementArray[imgElementArray.length - 1 ] = "accepted.png";
     225                    imgElement.src = imgElementArray.join('/');
     226                    imgElement.title = 'Added to watch later';
     227                    parentElement.style.backgroundColor = 'transparent';
     228                    parentElement.removeAttribute('onclick');
     229                }
     230                else {
     231                    imgElement.src = originalImage;
     232                }
     233return false;
     234                }
     235        });
     236    }
     237
     238}
     239
     240function changeWatchLaterVideoStatus(videoId,watchElement) {
     241    console.log(watchElement);
     242    url = baseurl + "/wp-admin/admin-ajax.php";
     243    if(typeof videoId != 'undefined' && videoId !='') {
     244        jQuery.ajax({
     245            url: url,
     246            type: "POST",
     247            data: "&action=changewatchlaterstatus&vid="+videoId,
     248            success: function (msg) {
     249                var obj = jQuery.parseJSON( msg );
     250                checkResult    = obj.checkResult;
     251                if(checkResult == true) {
     252                    currentNode = watchElement.parentNode;
     253                    while(currentNode) {
     254                        if(currentNode.className == 'watchVideo') {
     255                            watchParentElement = currentNode;
     256                            break;
     257                        }
     258                        else {
     259                            currentNode = currentNode.parentNode;
     260                        }
     261                    }
     262                    var newSpanElement = document.createElement('span');
     263                    newSpanElement.className = 'videoWatchedBox';
     264                    newSpanElement.innerHTML = 'Watched';
     265                    currentNode.querySelector('.watchLinkElement').appendChild(newSpanElement);
     266                    currentNode.querySelector('a').removeAttribute('onclick');
     267                }
     268return false;
     269                }
     270        });
     271    }
     272}
  • contus-video-gallery/trunk/js/script.min.js

    r1251095 r1306821  
    1 /**
    2  * Video Gallery plugin script file..
    3  *
    4  * @category Apptha
    5  * @package Contus video Gallery
    6  * @version 2.9
    7  * @author Apptha Team <[email protected]>
    8  * @copyright Copyright (C) 2014 Apptha. All rights reserved.
    9  * @license GNU General Public License http://www.gnu.org/copyleft/gpl.html
    10  */
    11 function createObject() {
    12     var request_type;
    13     var browser = navigator.appName;
    14     if( browser == "Microsoft Internet Explorer" ) {
    15         request_type = new ActiveXObject( "Microsoft.XMLHTTP" );
    16     } else {
    17         request_type = new XMLHttpRequest();
    18     }
    19     return request_type;
    20 }
    21 function curVideo(video_id,d_title){
    22     var name = videodiv ;
    23     var curvideo = new Function(
    24          'return function curVideo' + name + '(name){if( d_title == undefined ) { document.getElementById( "video_title"+ videodiv ).innerHTML=""; } else { document.getElementById( "video_title"+ videodiv ).innerHTML=""; document.getElementById( "video_title"+ videodiv ).innerHTML=d_title; }}'
    25          )();
    26     curvideo(name);
    27 }
    28 function rateCalc(rating,ratecount){
    29     var name = videodiv + videoid;
    30     var ratecal = new Function(
    31          'return function ratecal' + name + '(rating,ratecount,name){if( rating==1 ) {document.getElementById( "rate" + name).className="ratethis onepos";}  else if( rating==2 ) {document.getElementById( "rate" + name).className="ratethis twopos";} else if( rating==3 ) {document.getElementById( "rate" + name ).className="ratethis threepos";} else if( rating==4 ) {document.getElementById( "rate" + name).className="ratethis fourpos";} else if( rating==5 ) {document.getElementById( "rate" + name ).className="ratethis fivepos";} else {document.getElementById( "rate" + name).className="ratethis nopos";}document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+ratecount;}'
    32          )();
    33     ratecal(rating,ratecount,name);
    34 }
    35 function generateRating( value ) {
    36     var name = videodiv + videoid;
    37     document.getElementById( "rate" + name).className="ratethis "+ value +"pos";
    38     document.getElementById( "a" + name).className="ratethis "+ value +"pos";
    39 }
    40 function getRating(t){
    41     var name = videodiv + videoid;
    42     var getrate = new Function(
    43             'return function getrate' + name + '(t){switch (t){ case 1: generateRating( "one" ); break; case 2 : generateRating( "two" ); break; case 3: generateRating( "three" ); break; case 4: generateRating( "four" ); break; case 5: generateRating( "five" ); break; default: break;}}'
    44          )();
    45     getrate(t);
    46     document.getElementById( "rate" + name).style.display="none";
    47     document.getElementById( "ratemsg" + name ).innerHTML="Thanks for rating!";
    48     var vid     = document.getElementById( "videoid" + name ).value;
    49     var playlistajax = jQuery.noConflict();
    50     playlistajax.ajax( {
    51             type: "GET",
    52             url: adminurl +"admin-ajax.php?action=ratecount",
    53             data: "vid="+vid+"&rate="+t,
    54             success: function( msg ) {
    55                 document.getElementById( "ratemsg" + name ).innerHTML = "Ratings&nbsp;:&nbsp;"+msg;
    56                 document.getElementById( "storeratemsg" + name ).value=msg;
    57                 document.getElementById( "rate" + name).className="";
    58             }
    59         } );
    60     document.getElementById( "rate" + name ).style.visibility="disable";
    61 }
    62 function resetValue(ratecount){
    63     var name = videodiv + videoid;
    64     var resetval = new Function(
    65          'return function resetvalue' + name + '(ratecount,name){document.getElementById( "ratemsg1" + name).style.display="none"; document.getElementById( "ratemsg" + name ).style.display="block"; if( document.getElementById( "storeratemsg" + name).value == "" ) { document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+ratecount; } else { document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+document.getElementById( "storeratemsg" + name).value; }}'
    66          )();
    67     resetval(ratecount,name);
    68 }
    69 function displayRating(t){
    70     var name = videodiv + videoid;
    71     var displayrate = new Function(
    72          'return function displayrating' + name + '(t,name){if( t==1 ) { document.getElementById( "ratemsg" + name).innerHTML="Poor"; } else if( t==2 ) { document.getElementById( "ratemsg" + name).innerHTML="Nothing&nbsp;Special"; } else if( t==3 ) { document.getElementById( "ratemsg" + name).innerHTML="Worth&nbsp;Watching"; } else if( t==4 ) { document.getElementById( "ratemsg" + name).innerHTML="Pretty&nbsp;Cool"; } else if( t==5 ) { document.getElementById( "ratemsg" + name).innerHTML="Awesome"; } else { document.getElementById( "ratemsg1" + name).style.display="none"; document.getElementById( "ratemsg" + name).style.display="block"; } }'
    73          )();
    74     displayrate(t,name);
    75 }
    76 function current_video(vid, title) {
    77     if (window.XMLHttpRequest)
    78         xmlhttp = new XMLHttpRequest;
    79     else
    80         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    81     xmlhttp.onreadystatechange = function() {
    82         if (xmlhttp.readyState == 4)
    83             ;
    84     };
    85     xmlhttp.open("GET", baseurl
    86             + "/wp-admin/admin-ajax.php?action=videohitcount&vid=" + vid, true);
    87     xmlhttp.send();
    88 }
    89 function enableEmbed() {
    90     embedFlag = document.getElementById("flagembed").value;
    91     document.getElementById("report_video_response").style.display = "none";
    92     if (embedFlag != 1) {
    93         document.getElementById("embedcode").style.display = "block";
    94         document.getElementById("reportform").style.display = "none";
    95         document.getElementById("iframe-content").style.display = "non";
    96         document.getElementById("flagembed").value = "1";
    97         document.getElementById("reportvideo").value = "0";
    98         document.getElementById("iframeflag").value = "0";
    99     } else {
    100         document.getElementById("embedcode").style.display = "none";
    101         document.getElementById("flagembed").value = "0";
    102     }
    103 }
    104 function reportVideo() {
    105     var reportVideoFlag = document.getElementById("reportvideo").value;
    106     document.getElementById("report_video_response").style.display = "none";
    107     if (reportVideoFlag != 1) {
    108         document.getElementById("reportform").style.display = "block";
    109         document.getElementById("embedcode").style.display = "none";
    110         document.getElementById("iframe-content").style.display = "none";
    111         document.getElementById("reportvideo").value = "1";
    112         document.getElementById("flagembed").value = "0";
    113         document.getElementById("iframeflag").value = "0";
    114     } else {
    115         document.getElementById("reportform").style.display = "none";
    116         document.getElementById("reportvideo").value = "0";
    117     }
    118 }
    119 function view_iframe_code() {
    120     var iframeFlag = document.getElementById("iframeflag").value;
    121     document.getElementById("report_video_response").style.display = "none";
    122     if (iframeFlag != 1) {
    123         document.getElementById("iframe-content").style.display = "block";
    124         document.getElementById("reportform").style.display = "none";
    125         document.getElementById("embedcode").style.display = "none";
    126         document.getElementById("flagembed").value = "0";
    127         document.getElementById("reportvideo").value = "0";
    128         document.getElementById("iframeflag").value = "1";
    129     } else {
    130         document.getElementById("iframe-content").style.display = "none";
    131         document.getElementById("iframeflag").value = "0";
    132     }
    133 }
    134 function videogallery_change_player(embedcode, id, player_div, file_type, vid,
    135         title) {
    136     if (file_type === 5)
    137         current_video(vid, "");
    138     document.getElementById("mediaspace" + id).innerHTML = "";
    139     document.getElementById(player_div + id).innerHTML = embedcode;
    140     document.getElementById(player_div + id).focus();
    141     document.getElementById("video_title" + id).innerHTML = title;
    142 }
    143 function reportVideoSend() {
    144     var xmlhttp;
    145     var reporttype = document.forms["reportform"]["reportvideotype"].value;
    146     var reporter_email = document.forms["reportform"]["reporter_email"].value;
    147     var redirect_url = document.forms["reportform"]["redirect_url"].value;
    148     if (reporttype == "") {
    149         document.getElementById("report_video_response").style.display = "block";
    150         document.getElementById("reportform_ajax_loader").style.display = "none";
    151         document.getElementById("report_video_response").innerHTML = "Choose report type.";
    152         return false;
    153     }
    154     if (reporter_email == "") {
    155         document.getElementById("report_video_response").style.display = "block";
    156         document.getElementById("reportform_ajax_loader").style.display = "none";
    157         document.getElementById("report_video_response").innerHTML = "Login to Report the Video.";
    158         return false;
    159     }
    160     document.getElementById("reportform_ajax_loader").style.display = "block";
    161     var ajaxURL = baseurl
    162             + "/wp-admin/admin-ajax.php?action=reportvideo&reporttype="
    163             + reporttype + "&redirect_url="
    164             + redirect_url;
    165     if (window.XMLHttpRequest)
    166         xmlhttp = new XMLHttpRequest;
    167     else
    168         xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    169     xmlhttp.onreadystatechange = function() {
    170         if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
    171             document.getElementById("reportform").style.display = "none";
    172             document.getElementById("reportform_ajax_loader").style.display = "none";
    173             document.getElementById("report_video_response").style.display = "block";
    174             document.getElementById("report_video_response").style.padding = "5px";
    175             if (xmlhttp.responseText == "fail")
    176                 document.getElementById("report_video_response").innerHTML = "Login to Report the Video";
    177             else
    178                 document.getElementById("report_video_response").innerHTML = "Thank you for submitting your report.";
    179         }
    180     };
    181     xmlhttp.open("GET", ajaxURL, true);
    182     xmlhttp.send();
    183 }
    184 function hideReportForm() {
    185     document.getElementById("reportform").style.display = "none";
    186     document.getElementById("reportvideo").value = "0";
    187     document.getElementById("reportform_ajax_loader").style.display = "none";
    188     document.getElementById("report_video_response").style.display = "none";
    189 }
     1function currentVideoP(e,t){window.XMLHttpRequest?xmlhttp=new XMLHttpRequest:xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"),xmlhttp.onreadystatechange=function(){4==xmlhttp.readyState},xmlhttp.open("GET",baseurl+"/wp-admin/admin-ajax.php?action=videohitcount&vid="+e,!0),xmlhttp.send()}function createObject(){var e,t=navigator.appName;return e="Microsoft Internet Explorer"==t?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}function curVideo(e,t){var n=videodiv,o=new Function("return function curVideo"+n+'(name){if( d_title == undefined ) { document.getElementById( "video_title"+ videodiv ).innerHTML=""; } else { document.getElementById( "video_title"+ videodiv ).innerHTML=""; document.getElementById( "video_title"+ videodiv ).innerHTML=d_title; }}')();o(n)}function rateCalc(e,t){var n=videodiv+videoid,o=new Function("return function ratecal"+n+'(rating,ratecount,name){if( rating==1 ) {document.getElementById( "rate" + name).className="ratethis onepos";}  else if( rating==2 ) {document.getElementById( "rate" + name).className="ratethis twopos";} else if( rating==3 ) {document.getElementById( "rate" + name ).className="ratethis threepos";} else if( rating==4 ) {document.getElementById( "rate" + name).className="ratethis fourpos";} else if( rating==5 ) {document.getElementById( "rate" + name ).className="ratethis fivepos";} else {document.getElementById( "rate" + name).className="ratethis nopos";}document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+ratecount;}')();o(e,t,n)}function generateRating(e){var t=videodiv+videoid;document.getElementById("rate"+t).className="ratethis "+e+"pos",document.getElementById("a"+t).className="ratethis "+e+"pos"}function getRating(e){var t=videodiv+videoid,n=new Function("return function getrate"+t+'(t){switch (t){ case 1: generateRating( "one" ); break; case 2 : generateRating( "two" ); break; case 3: generateRating( "three" ); break; case 4: generateRating( "four" ); break; case 5: generateRating( "five" ); break; default: break;}}')();n(e),document.getElementById("rate"+t).style.display="none",document.getElementById("ratemsg"+t).innerHTML="Thanks for rating!";var o=document.getElementById("videoid"+t).value;jQuery.ajax({type:"GET",url:adminurl+"admin-ajax.php?action=ratecount",data:"vid="+o+"&rate="+e,success:function(e){document.getElementById("ratemsg"+t).innerHTML="Ratings&nbsp;:&nbsp;"+e,document.getElementById("storeratemsg"+t).value=e,document.getElementById("rate"+t).className=""}}),document.getElementById("rate"+t).style.visibility="disable"}function resetValue(e){var t=videodiv+videoid,n=new Function("return function resetvalue"+t+'(ratecount,name){document.getElementById( "ratemsg1" + name).style.display="none"; document.getElementById( "ratemsg" + name ).style.display="block"; if( document.getElementById( "storeratemsg" + name).value == "" ) { document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+ratecount; } else { document.getElementById( "ratemsg" + name).innerHTML="Ratings&nbsp;:&nbsp;"+document.getElementById( "storeratemsg" + name).value; }}')();n(e,t)}function displayRating(e){var t=videodiv+videoid,n=new Function("return function displayrating"+t+'(t,name){if( t==1 ) { document.getElementById( "ratemsg" + name).innerHTML="Poor"; } else if( t==2 ) { document.getElementById( "ratemsg" + name).innerHTML="Nothing&nbsp;Special"; } else if( t==3 ) { document.getElementById( "ratemsg" + name).innerHTML="Worth&nbsp;Watching"; } else if( t==4 ) { document.getElementById( "ratemsg" + name).innerHTML="Pretty&nbsp;Cool"; } else if( t==5 ) { document.getElementById( "ratemsg" + name).innerHTML="Awesome"; } else { document.getElementById( "ratemsg1" + name).style.display="none"; document.getElementById( "ratemsg" + name).style.display="block"; } }')();n(e,t)}function current_video(e,t){}function enableEmbed(){embedFlag=document.getElementById("flagembed").value,document.getElementById("report_video_response").style.display="none",1!=embedFlag?(document.getElementById("embedcode").style.display="block",document.getElementById("reportform").style.display="none",document.getElementById("iframe-content").style.display="non",document.getElementById("flagembed").value="1",document.getElementById("reportvideo").value="0",document.getElementById("iframeflag").value="0"):(document.getElementById("embedcode").style.display="none",document.getElementById("flagembed").value="0")}function reportVideo(){var e=document.getElementById("reportvideo").value;document.getElementById("report_video_response").style.display="none",1!=e?(document.getElementById("reportform").style.display="block",document.getElementById("embedcode").style.display="none",document.getElementById("iframe-content").style.display="none",document.getElementById("reportvideo").value="1",document.getElementById("flagembed").value="0",document.getElementById("iframeflag").value="0"):(document.getElementById("reportform").style.display="none",document.getElementById("reportvideo").value="0")}function view_iframe_code(){var e=document.getElementById("iframeflag").value;document.getElementById("report_video_response").style.display="none",1!=e?(document.getElementById("iframe-content").style.display="block",document.getElementById("reportform").style.display="none",document.getElementById("embedcode").style.display="none",document.getElementById("flagembed").value="0",document.getElementById("reportvideo").value="0",document.getElementById("iframeflag").value="1"):(document.getElementById("iframe-content").style.display="none",document.getElementById("iframeflag").value="0")}function videogallery_change_player(e,t,n,o,r,d){5===o&&(document.getElementById("mediaspace"+t).innerHTML=""),document.getElementById(n+t).innerHTML=e,document.getElementById(n+t).focus(),document.getElementById("video_title"+t).innerHTML=d}function reportVideoSend(){var e,t=document.forms.reportform.reportvideotype.value,n=document.forms.reportform.reporter_email.value,o=document.forms.reportform.redirect_url.value;if(""==t)return document.getElementById("report_video_response").style.display="block",document.getElementById("reportform_ajax_loader").style.display="none",document.getElementById("report_video_response").innerHTML="Choose report type.",!1;if(""==n)return document.getElementById("report_video_response").style.display="block",document.getElementById("reportform_ajax_loader").style.display="none",document.getElementById("report_video_response").innerHTML="Login to Report the Video.",!1;document.getElementById("reportform_ajax_loader").style.display="block";var r=baseurl+"/wp-admin/admin-ajax.php?action=reportvideo&reporttype="+t+"&redirect_url="+o;e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),e.onreadystatechange=function(){4==e.readyState&&200==e.status&&(document.getElementById("reportform").style.display="none",document.getElementById("reportform_ajax_loader").style.display="none",document.getElementById("report_video_response").style.display="block",document.getElementById("report_video_response").style.padding="5px","fail"==e.responseText?document.getElementById("report_video_response").innerHTML="Login to Report the Video":document.getElementById("report_video_response").innerHTML="Thank you for submitting your report.")},e.open("GET",r,!0),e.send()}function hideReportForm(){document.getElementById("reportform").style.display="none",document.getElementById("reportvideo").value="0",document.getElementById("reportform_ajax_loader").style.display="none",document.getElementById("report_video_response").style.display="none"}function watchLater(e,t){url=baseurl+"/wp-admin/admin-ajax.php";var n=t.querySelector(".watchlaterImg"),o=n.src,r=n.src.split("/");r[r.length-1]="loader.gif",n.src=r.join("/"),e&&jQuery.ajax({url:url,type:"POST",data:"&action=watchlater&vid="+e,success:function(e){var r=jQuery.parseJSON(e);if(checkResult=r.checkResult,r.redirectURL&&""!=r.redirectURL)return window.location=r.redirectURL,!1;if(1==checkResult){var d=n.src.split("/");d[d.length-1]="accepted.png",n.src=d.join("/"),n.title="Added to watch later",t.style.backgroundColor="transparent",t.removeAttribute("onclick")}else n.src=o;return!1}})}function changeWatchLaterVideoStatus(e,t){console.log(t),url=baseurl+"/wp-admin/admin-ajax.php","undefined"!=typeof e&&""!=e&&jQuery.ajax({url:url,type:"POST",data:"&action=changewatchlaterstatus&vid="+e,success:function(e){var n=jQuery.parseJSON(e);if(checkResult=n.checkResult,1==checkResult){for(currentNode=t.parentNode;currentNode;){if("watchVideo"==currentNode.className){watchParentElement=currentNode;break}currentNode=currentNode.parentNode}var o=document.createElement("span");o.className="videoWatchedBox",o.innerHTML="Watched",currentNode.querySelector(".watchLinkElement").appendChild(o),currentNode.querySelector("a").removeAttribute("onclick")}return!1}})}
Note: See TracChangeset for help on using the changeset viewer.