Tarea #1054 -> Mejorar el rendimiento de la web

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@161 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-08-31 13:56:31 +00:00
parent 05640be620
commit ab145ccae0
23 changed files with 1002 additions and 542 deletions

View File

@ -99,7 +99,7 @@ function bp_dedication_new_dedication() {
if ( bp_is_dedication_component() && bp_is_current_action( 'new-dedication' ) && bp_is_action_variable( 'create', 0 ) ) { if ( bp_is_dedication_component() && bp_is_current_action( 'new-dedication' ) && bp_is_action_variable( 'create', 0 ) ) {
if (bp_dedication_create_new_dedication()) { if (bp_dedication_create_new_dedication()) {
bp_core_add_message( __( 'Your dedication was created!', 'bp-dedication' ) ); bp_core_add_message( __( 'Your dedication has been sent successfully', 'bp-dedication' ) );
bp_core_redirect( bp_loggedin_user_domain() . bp_get_dedication_slug()); bp_core_redirect( bp_loggedin_user_domain() . bp_get_dedication_slug());
} else { } else {
bp_core_add_message( __( 'Error. Your dedication not was created!', 'bp-dedication' ) ); bp_core_add_message( __( 'Error. Your dedication not was created!', 'bp-dedication' ) );

View File

@ -292,7 +292,7 @@ function invite_anyone_setup_nav() {
) ); ) );
bp_core_new_subnav_item( array( bp_core_new_subnav_item( array(
'name' => __( 'Sent Invites', 'bp-invite-anyone' ), 'name' => __( 'Sent invitations', 'bp-invite-anyone' ),
'slug' => 'sent-invites', 'slug' => 'sent-invites',
'parent_slug' => $bp->invite_anyone->slug, 'parent_slug' => $bp->invite_anyone->slug,
'parent_url' => $invite_anyone_link, 'parent_url' => $invite_anyone_link,
@ -689,7 +689,7 @@ function invite_anyone_screen_two() {
?> ?>
<h4><?php _e( 'Sent Invites', 'bp-invite-anyone' ); ?></h4> <h4><?php _e( 'Sent invitatios', 'bp-invite-anyone' ); ?></h4>
<?php $invites = invite_anyone_get_invitations_by_inviter_id( bp_loggedin_user_id(), $sort_by, $order, $pagination->get_per_page, $pagination->get_paged ) ?> <?php $invites = invite_anyone_get_invitations_by_inviter_id( bp_loggedin_user_id(), $sort_by, $order, $pagination->get_per_page, $pagination->get_paged ) ?>
@ -709,9 +709,9 @@ function invite_anyone_screen_two() {
</div> </div>
<table class="invite-anyone-sent-invites zebra" <table class="invite-anyone-sent-invites zebra"
summary="<?php _e( 'This table displays a list of all your sent invites. summary="<?php _e( 'This table displays a list of all your sent invitations.
Invites that have been accepted are highlighted in the listings. Invitations that have been accepted are highlighted in the listings.
You may clear any individual invites, all accepted invites or all of the invites from the list.', 'bp-invite-anyone' ) ?>"> You may clear any individual invitation, all accepted invitations or all of the invitations from the list.', 'bp-invite-anyone' ) ?>">
<thead> <thead>
<tr> <tr>
<th scope="col"></th> <th scope="col"></th>
@ -726,8 +726,8 @@ function invite_anyone_screen_two() {
<tr id="batch-clear"> <tr id="batch-clear">
<td colspan="5" > <td colspan="5" >
<ul id="invite-anyone-clear-links"> <ul id="invite-anyone-clear-links">
<li> <a title="<?php _e( 'Clear all accepted invites from the list', 'bp-invite-anyone' ) ?>" class="confirm" href="<?php echo wp_nonce_url( $base_url . '?clear=accepted', 'invite_anyone_clear' ) ?>"><?php _e( 'Clear all accepted invitations', 'bp-invite-anyone' ) ?></a></li> <li> <a title="<?php _e( 'Clear all accepted invitations from the list', 'bp-invite-anyone' ) ?>" class="confirm" href="<?php echo wp_nonce_url( $base_url . '?clear=accepted', 'invite_anyone_clear' ) ?>"><?php _e( 'Clear all accepted invitations', 'bp-invite-anyone' ) ?></a></li>
<li class="last"><a title="<?php _e( 'Clear all your listed invites', 'bp-invite-anyone' ) ?>" class="confirm" href="<?php echo wp_nonce_url( $base_url . '?clear=all', 'invite_anyone_clear' ) ?>"><?php _e( 'Clear all invitations', 'bp-invite-anyone' ) ?></a></li> <li class="last"><a title="<?php _e( 'Clear all your listed invitations', 'bp-invite-anyone' ) ?>" class="confirm" href="<?php echo wp_nonce_url( $base_url . '?clear=all', 'invite_anyone_clear' ) ?>"><?php _e( 'Clear all invitations', 'bp-invite-anyone' ) ?></a></li>
</ul> </ul>
</td> </td>
</tr> </tr>

View File

@ -7,8 +7,8 @@
| Description : This file contains the default global | Description : This file contains the default global
| enviroment values | enviroment values
| Author : Luca Grandicelli | Author : Luca Grandicelli
| Author URL : http://www.lucagrandicelli.com | Author URL :
| Plugin URL : http://www.lucagrandicelli.com/special-recent-posts-plugin-for-wordpress/ | Plugin URL :
| -------------------------------------------------------- | --------------------------------------------------------
*/ */

View File

@ -10,6 +10,7 @@ $dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) .
$count++; $count++;
if ($count > 10) {?> if ($count > 10) {?>
<a href="<?php echo $dedication_link; ?>" class="read-more" title="<?php _e('See More', 'gp_lang'); ?>"><?php _e('See More', 'gp_lang'); ?> &raquo;</a> <a href="<?php echo $dedication_link; ?>" class="read-more" title="<?php _e('See More', 'gp_lang'); ?>"><?php _e('See More', 'gp_lang'); ?> &raquo;</a>
<img class='read-more-loader' src='<?php echo get_template_directory_uri(); ?>/lib/images/loader.gif' style='display:none;'/>
<?php break; } ?> <?php break; } ?>
<?php setup_postdata($post); ?> <?php setup_postdata($post); ?>
@ -21,7 +22,7 @@ $dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) .
<?php include(dirname(__FILE__).'/../../loop-dedication-data.php'); ?> <?php include(dirname(__FILE__).'/../../loop-dedication-data.php'); ?>
<div class="home-dedicated-2-me post-loop"<?php // post_class('post-loop'); ?>> <div class="post-<?php the_ID(); ?> home-dedicated-2-me post-loop"<?php // post_class('post-loop'); ?>>
<!--Begin Image--> <!--Begin Image-->
<?php if (has_post_thumbnail()) { ?> <?php if (has_post_thumbnail()) { ?>
<div class="post-thumbnail<?php if ($gp_settings['image_wrap'] == "Disable") { ?> thumbnail-no-wrap<?php } ?>"> <div class="post-thumbnail<?php if ($gp_settings['image_wrap'] == "Disable") { ?> thumbnail-no-wrap<?php } ?>">

View File

@ -10,6 +10,7 @@ $dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) .
$count++; $count++;
if ($count > 10) {?> if ($count > 10) {?>
<a href="<?php echo $dedication_link; ?>" class="read-more" title="<?php _e('See More', 'gp_lang'); ?>"><?php _e('See More', 'gp_lang'); ?> &raquo;</a> <a href="<?php echo $dedication_link; ?>" class="read-more" title="<?php _e('See More', 'gp_lang'); ?>"><?php _e('See More', 'gp_lang'); ?> &raquo;</a>
<img class='read-more-loader' src='<?php echo get_template_directory_uri(); ?>/lib/images/loader.gif' style='display:none;'/>
<?php break; } ?> <?php break; } ?>
<?php setup_postdata($post); ?> <?php setup_postdata($post); ?>
@ -21,7 +22,7 @@ $dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) .
<?php include(dirname(__FILE__).'/../../loop-dedication-data.php'); ?> <?php include(dirname(__FILE__).'/../../loop-dedication-data.php'); ?>
<div class="home-my-dedications post-loop" <?php // post_class('post-loop'); ?>> <div class="post-<?php the_ID(); ?> home-my-dedications post-loop" <?php //post_class('post-loop'); ?>>
<!--Begin Image--> <!--Begin Image-->
<?php if (has_post_thumbnail()) { ?> <?php if (has_post_thumbnail()) { ?>
<div class="post-thumbnail<?php if ($gp_settings['image_wrap'] == "Disable") { ?> thumbnail-no-wrap<?php } ?>"> <div class="post-thumbnail<?php if ($gp_settings['image_wrap'] == "Disable") { ?> thumbnail-no-wrap<?php } ?>">

View File

@ -52,6 +52,7 @@ add_action( 'wp_footer', 'wp_print_head_scripts', 5 );
// Main Theme Options // Main Theme Options
require_once(ghostpool_admin . 'theme-options.php'); require_once(ghostpool_admin . 'theme-options.php');
require(ghostpool_inc . 'options.php'); require(ghostpool_inc . 'options.php');
require(ghostpool_inc . 'fetch-video-data.php');
// Meta Options // Meta Options
require_once(ghostpool_admin . 'theme-meta-options.php'); require_once(ghostpool_admin . 'theme-meta-options.php');
@ -524,9 +525,7 @@ function gp_ajax_pagination($pages = '', $range = 2) {
if ($paged + 1 <= $pages) { if ($paged + 1 <= $pages) {
echo "<a href='" . get_pagenum_link($paged + 1) . "' class='read-more' title='". __('See More', 'gp_lang') . "'>" . __('See More', 'gp_lang') . "</a>"; echo "<a href='" . get_pagenum_link($paged + 1) . "' class='read-more' title='". __('See More', 'gp_lang') . "'>" . __('See More', 'gp_lang') . "</a>";
echo "<img class='read-more-loader' src='" . get_template_directory_uri() . "/lib/images/loader.gif' style='display:none;'/>"; echo "<img class='read-more-loader' src='" . get_template_directory_uri() . "/lib/images/loader.gif' style='display:none;'/>";
} }
echo "</div>\n"; echo "</div>\n";
} }
} }

View File

@ -9,6 +9,7 @@ get_currentuserinfo();
<?php <?php
//$args = "cat=".$gp_settings['cats']."&caller_get_posts=1&orderby=$orderby&order=$order&gdsr_sort=$gdsr_sort&gdsr_order=$gdsr_order&paged=$paged&posts_per_page=-1"; //$args = "cat=".$gp_settings['cats']."&caller_get_posts=1&orderby=$orderby&order=$order&gdsr_sort=$gdsr_sort&gdsr_order=$gdsr_order&paged=$paged&posts_per_page=-1";
/*
$args = array( $args = array(
"cat" => $gp_settings['cats'], "cat" => $gp_settings['cats'],
"ignore_sticky_posts" => 1, "ignore_sticky_posts" => 1,
@ -43,7 +44,7 @@ if (have_posts()) :
$urls_video[] = $gp_settings['video']; $urls_video[] = $gp_settings['video'];
endwhile; endwhile;
endif; endif;*/
$args = array( $args = array(
"cat" => $gp_settings['cats'], "cat" => $gp_settings['cats'],
@ -52,7 +53,7 @@ $args = array(
"order" => $order, "order" => $order,
"paged" => $paged, "paged" => $paged,
"posts_per_page" => $gp_settings['posts_per_page'], "posts_per_page" => $gp_settings['posts_per_page'],
"post__not_in" => $ids_descartados //"post__not_in" => $ids_descartados
); );
query_posts($args); query_posts($args);

View File

@ -0,0 +1,124 @@
<?php
require_once( ABSPATH . "wp-config.php" );
function gp_enqueue_ajax_scripts() {
if (!is_admin()) {
// embed the javascript file that makes the AJAX request
wp_enqueue_script( 'gp_ajax_video_data_request', get_template_directory_uri() . '/lib/scripts/custom-ajax.min.js', array( 'jquery' ) );
//wp_enqueue_script( 'gp_ajax_video_data_request', get_template_directory_uri() . '/lib/scripts/custom-ajax.js', array( 'jquery' ) );
// declare the URL to the file that handles the AJAX request (wp-admin/admin-ajax.php)
wp_localize_script( 'gp_ajax_video_data_request', 'MyAjax', array(
//'ajaxurl' => admin_url( 'admin-ajax.php' ),
'postCommentNonce' => wp_create_nonce( 'myajax-post-comment-nonce' )
));
}
}
add_action('wp_print_scripts', 'gp_enqueue_ajax_scripts');
function gp_ajax_video_data() {
global $gp_settings, $post, $current_user, $bp;
$nonce = $_POST['postCommentNonce'];
if ( ! wp_verify_nonce( $nonce, 'myajax-post-comment-nonce' ) )
die ( 'Busted!');
// get the submitted parameters
if (isset($_POST['id']))
$postID = $_POST['id'];
header('Cache-Control: no-cache, must-revalidate');
header('Content-type: application/json');
$displayed_id = bp_displayed_user_id();
$dedication_orderby = "rand"; //date";
$category_name = 'dedication';
$post_status = array('publish', 'private');
if ($postID > 0) {
$args = array(
'p' => $postID
);
} else {
$args = array(
'post_type' => array('post'),
'orderby' => $dedication_orderby,
'posts_per_page' => -1,
'post_status' => $post_status,
'category_name' => $category_name,
);
}
$array = array();
$i = 0;
$video = new WP_Query($args);
while ($video->have_posts()) {
$video->the_post();
require(dirname(__FILE__).'/../../loop-dedication-data.php');
// Perfil del usuario: sólo mostrar las dedicadas por él y para él. El resto se descartan.
if ( $bp->current_component == BP_DEDICATION_SLUG ) {
if (($displayed_id != $gp_settings['from_user_id']) && ($displayed_id != $gp_settings['to_user_id'])) {
continue; // me salto esta dedicatoria
}
}
// Página de inicio / página del video: Usuario actual puede ver la dedicatoria?
if ($post->post_status == 'private') {
if (($current_user->ID != $gp_settings['from_user_id']) && ($current_user->ID != $gp_settings['to_user_id'])) {
continue; // me salto esta dedicatoria
}
}
$array[$i] = array();
$array[$i]['id'] = $post->ID;
$array[$i]['title'] = $post->post_title;
$array[$i]['video'] = $gp_settings['video'];
$array[$i]['video_id'] = $gp_settings['video_id'];
$array[$i]['video_path'] = $gp_settings['video_path'];
$array[$i]['video_type'] = $gp_settings['video_type'];
$array[$i]['permalink'] = $post->guid;
$array[$i]['extlink'] = $gp_settings['enc_link'];
$array[$i]['artist'] = $gp_settings['artist_short'];
$array[$i]['song'] = $gp_settings['song_short'];
$array[$i]['unreaded'] = $gp_settings['unreaded'];
$array[$i]['from_to_text'] = $gp_settings['from_flag'];
$array[$i]['from_to_text'] .= '<span>FROM: ' . $gp_settings['from_user_link'] . '</span>&nbsp;';
$array[$i]['from_to_text'] .= $gp_settings['to_flag'];
$array[$i]['from_to_text'] .= '<span>TO: ' . $gp_settings['to_user_link'] . '</span>';
$i++;
break;
}
wp_reset_postdata();
$salida = '';
foreach($array as $video) {
$salida .= '<li id="playlist-element-' . $video['id'] . '" data-path="' . $video['video_path'] . '" data-type="' . $video['video_type']. '">';
$salida .= '<span id="postdata-id-' . $video['id'] . '">' . $video['id'] . '</span>';
$salida .= '<span id="postdata-title-' . $video['id'] . '"><a href="' . $video['permalink']. '" title="' . $video['title']. '">' . $video['title']. '</a></span>';
$salida .= '<span id="postdata-artist-' . $video['id'] . '">' . $video['artist']. '</span>';
$salida .= '<span id="postdata-song-' . $video['id'] . '">' . $video['song']. '</span>';
$salida .= '<span id="postdata-link-' . $video['id'] . '">' . $video['permalink']. '</span>';
$salida .= '<span id="postdata-extlink-' . $video['id'] . '">' . $video['extlink']. '</span>';
$salida .= '<span id="postdata-comments-' . $video['id'] . '"></span>';
if (($theme_show_new_label) && ($video['unreadedid'])) {
$salida .= '<span id="postdata-mark-read-' . $video['id'] . '">' . mar_read_unread_links('', '', false) . '</span>';
}
$salida .= '<span id="postdata-from-to-' . $video['id'] . '">';
$salida .= $video['from_to_text'];
$salida .= '</span>';
$salida .= '</li>';
}
echo json_encode($salida);
die();
}
add_action('wp_ajax_gp_video_data', 'gp_ajax_video_data');
//add_action('wp_ajax_nopriv_gp_video_data', 'gp_ajax_video_data');
?>

View File

@ -24,7 +24,6 @@ jQuery(document).ready(function(){
} else { } else {
jQuery('#the_slider').addClass('fullscreen_div'); jQuery('#the_slider').addClass('fullscreen_div');
_fullscreen.attr('src', _srcimg.replace('fullscreen.png', 'fullscreen_exit.png')); _fullscreen.attr('src', _srcimg.replace('fullscreen.png', 'fullscreen_exit.png'));
//_fullscreen.parent().appendTo(jQuery('.slideshow_controls'));
_fullscreen.parent().appendTo(jQuery('#componentWrapper')); _fullscreen.parent().appendTo(jQuery('#componentWrapper'));
} }
calc_video_height(); calc_video_height();
@ -62,36 +61,43 @@ jQuery(document).ready(function(){
}); });
jQuery('.dedication-profile .home_column_my_dedications a.read-more').live('click', function(e){ jQuery('.dedication-profile .home_column_my_dedications a.read-more').live('click', function(e){
jQuery('.dedication-profile .home_column_my_dedications img.read-more-loader').css('display', 'inline');
e.preventDefault(); e.preventDefault();
link = jQuery(this).attr('href'); link = jQuery(this).attr('href');
jQuery('.dedication-profile .home_column_my_dedications a.read-more').remove();
jQuery.get(link, function(data) { jQuery.get(link, function(data) {
var kids = jQuery(data).find('#content').children(); var kids = jQuery(data).find('#content').children();
jQuery.each(kids, function(){ jQuery.each(kids, function(){
if (jQuery(this).hasClass('post-loop')) { if (jQuery(this).hasClass('post-loop')) {
jQuery(this).removeClass(); jQuery(this).removeClass('post type-post status-publish format-standard hentry category-dedication');
jQuery(this).addClass('home-my-dedications post-loop'); jQuery(this).addClass('home-my-dedications');
} }
jQuery('.dedication-profile .home_column_my_dedications img.read-more-loader').remove();
jQuery('.dedication-profile .home_column_my_dedications a.read-more').remove();
jQuery('.dedication-profile .home_column_my_dedications').append(jQuery(this)); jQuery('.dedication-profile .home_column_my_dedications').append(jQuery(this));
}); });
}); });
}); });
jQuery('.dedication-profile .home_column_dedicated_2_me a.read-more').live('click', function(e){ jQuery('.dedication-profile .home_column_dedicated_2_me a.read-more').live('click', function(e){
jQuery('.dedication-profile .home_column_dedicated_2_me img.read-more-loader').css('display', 'inline');
e.preventDefault(); e.preventDefault();
link = jQuery(this).attr('href'); link = jQuery(this).attr('href');
jQuery('.dedication-profile .home_column_dedicated_2_me a.read-more').remove();
jQuery.get(link, function(data) { jQuery.get(link, function(data) {
var kids = jQuery(data).find('#content').children(); var kids = jQuery(data).find('#content').children();
jQuery.each(kids, function(){ jQuery.each(kids, function(){
if (jQuery(this).hasClass('post-loop')) { if (jQuery(this).hasClass('post-loop')) {
jQuery(this).removeClass(); jQuery(this).removeClass('post type-post status-publish format-standard hentry category-dedication');
jQuery(this).addClass('home-dedicated-2-me post-loop'); jQuery(this).addClass('home-my-dedications');
jQuery(this).addClass('home-dedicated-2-me');
} }
jQuery('.dedication-profile .home_column_dedicated_2_me img.read-more-loader').remove();
jQuery('.dedication-profile .home_column_dedicated_2_me a.read-more').remove();
jQuery('.dedication-profile .home_column_dedicated_2_me').append(jQuery(this)); jQuery('.dedication-profile .home_column_dedicated_2_me').append(jQuery(this));
}); });
}); });
}); });
@ -103,6 +109,9 @@ var oUrl='';
function updateInfo() { function updateInfo() {
var id = jQuery.fn.videoGallery.getMediaID(); var id = jQuery.fn.videoGallery.getMediaID();
var li_element = jQuery((jQuery('#playlist li').get(id))).attr('id');
id = li_element.replace('playlist-element-','');
if ((aIndex != id) && (id >= 0)) { if ((aIndex != id) && (id >= 0)) {
aIndex = id; aIndex = id;
@ -120,6 +129,7 @@ function updateInfo() {
var enc_link = jQuery('#postdata-extlink-' + id).html(); var enc_link = jQuery('#postdata-extlink-' + id).html();
var nUrl = oUrl + 'id/' + the_id; var nUrl = oUrl + 'id/' + the_id;
jQuery('#dedicate_this_song_button').attr("href", nUrl); jQuery('#dedicate_this_song_button').attr("href", nUrl);
// Social networks // Social networks
@ -200,23 +210,21 @@ function shrinkTitle()
textH1.style.fontSize -= 10+"px"; textH1.style.fontSize -= 10+"px";
} }
jQuery(window).ready(function() { jQuery(window).ready(function() {
jQuery('#content-wrapper .post-loop .post-thumbnail a').live('click', function(e) {
if (jQuery('#slider-wrapper').length > 0 ) { e.preventDefault();
jQuery('#content-wrapper .post-loop .post-thumbnail a').click(function(e) { var nParent = (jQuery(this).parent().parent());
e.preventDefault(); var classList = jQuery(nParent).attr('class').split(' ');
var oUrl = jQuery(this).attr('href'); jQuery(classList).each(function(index, item) {
jQuery('#playlist li [id^=postdata-link-]').each(function(indice, valor){ var id = item.replace('post-','');
var nUrl = jQuery(this).html(); if (jQuery.isNumeric(id)) {
if (nUrl == oUrl) { loadVideo(id);
jQuery('#componentWrapper').videoGallery.loadMedia(indice); jQuery('html, body').animate({ scrollTop: 0 }, 600);
jQuery('html, body').animate({ scrollTop: 0 }, 600); return false;
return false; }
}
});
return false;
}); });
} return false;
});
}); });
jQuery(document).ready(function(){ jQuery(document).ready(function(){

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,42 @@
jQuery(window).ready(function() {
jQuery('.controls_prev').bind('click', function(){
jQuery.fn.videoGallery.previousMedia();
return false;
});
jQuery('.controls_next').bind('click', function(){
if (jQuery.fn.videoGallery.isLastMedia()) {
loadVideo(0);
} else {
jQuery.fn.videoGallery.nextMedia();
}
return false;
});
return false;
});
function loadVideo(videoid) {
jQuery.ajax({
type:'POST',
data:{
postCommentNonce : MyAjax.postCommentNonce,
action:'gp_video_data',
id: videoid
},
url: ajaxurl,
success: function(value) {
jQuery('#playlist').append(value);
jQuery.fn.videoGallery.inputPlaylist('playlist');
}
});
return false;
}
function activePlaylist(playlist) {
jQuery.fn.videoGallery.destroyMedia();
jQuery.fn.videoGallery.inputPlaylist(playlist);
return false;
}

View File

@ -0,0 +1 @@
jQuery(window).ready(function(){jQuery(".controls_prev").bind("click",function(){jQuery.fn.videoGallery.previousMedia();return!1});jQuery(".controls_next").bind("click",function(){jQuery.fn.videoGallery.isLastMedia()?loadVideo(0):jQuery.fn.videoGallery.nextMedia();return!1});return!1}); function loadVideo(a){jQuery.ajax({type:"POST",data:{postCommentNonce:MyAjax.postCommentNonce,action:"gp_video_data",id:a},url:ajaxurl,success:function(a){jQuery("#playlist").append(a);jQuery.fn.videoGallery.inputPlaylist("playlist")}});return!1}function activePlaylist(a){jQuery.fn.videoGallery.destroyMedia();jQuery.fn.videoGallery.inputPlaylist(a);return!1};

View File

@ -1,50 +1,53 @@
<script> <script>
jQuery(window).ready(function() { jQuery(window).ready(function() {
if (jQuery('#slider-wrapper')) { createVideoGallery();
jQuery('#componentWrapper').videoGallery({
componentFixedSize: true,
animateVideoSizeOnPlaylistClose: true,
thumbOrientation: 'vertical',
activePlaylist:'playlist',
activeVideo:0,
autoPlay:true,
loopingOn:false,
randomPlay:false,
autoAdvanceToNextVideo:true,
youtubeChromeless:false,
thumbWidth: 120,
thumbHeight: 90,
thumbsScrollValue: 150,
autoOpenPlaylist: false,
closePlaylistOnVideoSelect: false,
thumbBackgroundColor: '#fff',
iconLoader: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/loader.gif',
iconClose: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/close.png',
iconCloseOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/close_on.png',
iconOpen: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/open.png',
iconOpenOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/open_on.png',
iconBackwardOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/backward_on.png',
iconBackward: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/backward.png',
iconForwardOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/forward_on.png',
iconForward: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/forward.png',
iconShare: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/share.png',
iconShareOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/share_on.png',
iconThumbForward: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_forward.png',
iconThumbForwardV: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_forward_v.png',
iconThumbForwardOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_forward_on.png',
iconThumbForwardVOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_forward_v_on.png',
iconThumbBackward: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_backward.png',
iconThumbBackwardV: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_backward_v.png',
iconThumbBackwardOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_backward_on.png',
iconThumbBackwardVOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_backward_v_on.png',
videoGallerySetupDone: function(){setInterval("updateInfo()", 750);},
videoGalleryPlaylistEnd: function(){
redirect();
}
});
}
}); });
function createVideoGallery() {
jQuery('#componentWrapper').videoGallery({
componentFixedSize: true,
animateVideoSizeOnPlaylistClose: true,
thumbOrientation: 'vertical',
activePlaylist:'playlist',
activeVideo:99999,
autoPlay:true,
loopingOn:false,
randomPlay:false,
autoAdvanceToNextVideo:true,
youtubeChromeless:false,
thumbWidth: 120,
thumbHeight: 90,
thumbsScrollValue: 150,
autoOpenPlaylist: false,
closePlaylistOnVideoSelect: false,
thumbBackgroundColor: '#fff',
iconLoader: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/loader.gif',
iconClose: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/close.png',
iconCloseOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/close_on.png',
iconOpen: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/open.png',
iconOpenOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/open_on.png',
iconBackwardOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/backward_on.png',
iconBackward: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/backward.png',
iconForwardOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/forward_on.png',
iconForward: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/forward.png',
iconShare: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/share.png',
iconShareOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/share_on.png',
iconThumbForward: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_forward.png',
iconThumbForwardV: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_forward_v.png',
iconThumbForwardOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_forward_on.png',
iconThumbForwardVOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_forward_v_on.png',
iconThumbBackward: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_backward.png',
iconThumbBackwardV: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_backward_v.png',
iconThumbBackwardOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_backward_on.png',
iconThumbBackwardVOn: '<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_backward_v_on.png',
videoGalleryPlayMedia: function(){ updateInfo(); },
videoGalleryPlaylistEnd: function(){
loadVideo(0);
}
});
};
</script> </script>

View File

@ -28,7 +28,7 @@
// Resizer() resizes items based on the object width divided by the compressor * 10 // Resizer() resizes items based on the object width divided by the compressor * 10
var resizer = function () { var resizer = function () {
$this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize))); $this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize)));
console.log(Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize))); //console.log(Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize)));
}; };
// Call once to set. // Call once to set.

View File

@ -1,13 +1,7 @@
(function($) { (function($) {
function VideoGallery(element, options) { function VideoGallery(element, options) {
var self=this; var self=this;
this.settings = $.extend({}, $.fn.videoGallery.defaults, options); this.settings = $.extend({}, $.fn.videoGallery.defaults, options);
this.isMobile = jQuery.browser.mobile; this.isMobile = jQuery.browser.mobile;
//console.log(this.isMobile); //console.log(this.isMobile);
@ -331,6 +325,10 @@
VideoGallery.prototype = { VideoGallery.prototype = {
// PUBLIC // PUBLIC
isLastMedia:function() {
return this._playlistManager.getLastInOrder();
},
getMediaID:function() { getMediaID:function() {
if(!this._componentInited || this._playlistTransitionOn) return; if(!this._componentInited || this._playlistTransitionOn) return;
if(this._playlistManager.getCounter() == -1){ if(this._playlistManager.getCounter() == -1){
@ -404,6 +402,10 @@
inputPlaylist:function(id) { inputPlaylist:function(id) {
if(!this._componentInited || this._playlistTransitionOn) return; if(!this._componentInited || this._playlistTransitionOn) return;
this._activePlaylist=id; this._activePlaylist=id;
this.refreshPlaylist(); //this._setPlaylist();
},
refreshPlaylist:function() {
if(!this._componentInited || this._playlistTransitionOn) return;
this._setPlaylist(); this._setPlaylist();
}, },
@ -698,15 +700,15 @@
} }
}, },
_processYotubeSingleSuccess:function (response) { _processYotubeSingleSuccess:function (response) {
//console.log(response); /*console.log(response);
/*
console.log(response.data); console.log(response.data);
console.log(response.data.title); console.log(response.data.title);
console.log(response.data.description); console.log(response.data.description);
console.log(response.data.id); console.log(response.data.id);
console.log(response.data.thumbnail.sqDefault); console.log(response.data.thumbnail.sqDefault);
console.log(response.data.thumbnail.hqDefault); console.log(response.data.thumbnail.hqDefault);*/
*/
var obj = {}, _item; var obj = {}, _item;
_item = response.data; _item = response.data;
@ -1399,12 +1401,16 @@
if(self._autoAdvanceToNextVideo){ if(self._autoAdvanceToNextVideo){
self._mediaAdvance(); self._mediaAdvance();
}else{ }else{
if(self.autoPlay) self._vimeoPlayer.api('play'); if(self.autoPlay) {
self._vimeoPlayer.api('play');
}
} }
}); });
this._vimeoInited=true; this._vimeoInited=true;
this.settings.videoGalleryPlayMedia.call(this);
}else{ }else{
this._vimeoPlayer.initVideo(this._mediaPath); this._vimeoPlayer.initVideo(this._mediaPath);
this.settings.videoGalleryPlayMedia.call(this);
} }
}, },
@ -1423,14 +1429,16 @@
self._mediaAdvance(); self._mediaAdvance();
}else{ }else{
if(self.autoPlay){ if(self.autoPlay){
self._youtubePlayer.play(); self._youtubePlayer.play();
} }
} }
}); });
this.settings.videoGalleryPlayMedia.call(this);
this._youtubeInited=true; this._youtubeInited=true;
}else{ }else{
this.youtubeHolder.css('left', 0+'px'); this.youtubeHolder.css('left', 0+'px');
this._youtubePlayer.initVideo(this._mediaPath); this._youtubePlayer.initVideo(this._mediaPath);
this.settings.videoGalleryPlayMedia.call(this);
} }
}, },
@ -1625,6 +1633,13 @@
$.fn.videoGallery.inputPlaylist = function(id) { $.fn.videoGallery.inputPlaylist = function(id) {
videoGallery.inputPlaylist(id); videoGallery.inputPlaylist(id);
} }
$.fn.videoGallery.refreshPlayList = function() {
videoGallery.refreshPlaylist();
}
$.fn.videoGallery.isLastMedia = function() {
return videoGallery.isLastMedia();
}
}); });
}; };
@ -1695,6 +1710,7 @@
iconThumbBackwardOn: 'data/icons/thumb_backward_on.png', iconThumbBackwardOn: 'data/icons/thumb_backward_on.png',
iconThumbBackwardVOn: 'data/icons/thumb_backward_v_on.png', iconThumbBackwardVOn: 'data/icons/thumb_backward_v_on.png',
videoGalleryPlayMedia: function(){},
videoGallerySetupDone: function(){}, //Callback, triggers when component is ready to receive public function calls videoGallerySetupDone: function(){}, //Callback, triggers when component is ready to receive public function calls
videoGalleryPlaylistEnd: function(){} // Callback, triggers when playlist comes to an end (looping or not) videoGalleryPlaylistEnd: function(){} // Callback, triggers when playlist comes to an end (looping or not)
//http://stackoverflow.com/questions/2534436/jquery-plugin-adding-callback-functionality //http://stackoverflow.com/questions/2534436/jquery-plugin-adding-callback-functionality

File diff suppressed because one or more lines are too long

View File

@ -21,6 +21,25 @@ $gp_settings['enc_link'] = add_query_arg('refid', bp_dedication_encode(get_perma
// Song data // Song data
$gp_settings['video'] = get_post_meta($post->ID, 'ghostpool_dedication_url', true); $gp_settings['video'] = get_post_meta($post->ID, 'ghostpool_dedication_url', true);
if (isYoutubeVideo($gp_settings['video'])) {
$gp_settings['video_type'] = 'youtube_single';
if (strpos($gp_settings['video'], "youtube.com")) {
$video = parse_str(parse_url($gp_settings['video'], PHP_URL_QUERY), $my_array_of_vars);
$gp_settings['video_id'] = $my_array_of_vars['v'];
$gp_settings['video_path'] = 'http://gdata.youtube.com/feeds/api/videos/' . $gp_settings['video_id'] . '?v=2&amp;alt=jsonc';
}
if (strpos($gp_settings['video'], "youtu.be")) {
$gp_settings['video_id'] = substr(parse_url($gp_settings['video'], PHP_URL_PATH), 1);
$gp_settings['video_path'] = 'http://gdata.youtube.com/feeds/api/videos/' . $gp_settings['video_id'] . '?v=2&amp;alt=jsonc';
}
}
if (isVimeoVideo($gp_settings['video'])) {
$gp_settings['video_type'] = 'vimeo_single';
$gp_settings['video_id'] = substr(parse_url($gp_settings['video'], PHP_URL_PATH), 1);
$gp_settings['video_path'] = 'http://vimeo.com/api/v2/video/' . $gp_settings['video_id'] . '.json';
}
$gp_settings['artist'] = get_post_meta($post->ID, 'ghostpool_dedication_artist', true); $gp_settings['artist'] = get_post_meta($post->ID, 'ghostpool_dedication_artist', true);
$gp_settings['artist_short'] = cutstr($gp_settings['artist'], 47, '...'); $gp_settings['artist_short'] = cutstr($gp_settings['artist'], 47, '...');
$gp_settings['song'] = get_post_meta($post->ID, 'ghostpool_dedication_song', true); $gp_settings['song'] = get_post_meta($post->ID, 'ghostpool_dedication_song', true);
@ -32,8 +51,6 @@ if ($gp_settings['artist_song_span_short'] != $gp_settings['artist_song_span'])
$gp_settings['artist_song_span_short'] .= '...'; $gp_settings['artist_song_span_short'] .= '...';
} }
// from user // from user
$gp_settings['from_user_id'] = get_the_author_meta('ID'); $gp_settings['from_user_id'] = get_the_author_meta('ID');
$gp_settings['from_user_link'] = '<a href="'.bp_core_get_userlink($gp_settings['from_user_id'], false, true).'" title="'.bp_core_get_username($gp_settings['from_user_id']).'">'.bp_core_get_username($gp_settings['from_user_id']).'</a>'; $gp_settings['from_user_link'] = '<a href="'.bp_core_get_userlink($gp_settings['from_user_id'], false, true).'" title="'.bp_core_get_username($gp_settings['from_user_id']).'">'.bp_core_get_username($gp_settings['from_user_id']).'</a>';

View File

@ -1200,8 +1200,12 @@ h3.comments {
} }
.home-page #respond textarea { .home-page #respond textarea {
/*cambiamos ancho y alto del css por razones esteticas
height: 90px !important; height: 90px !important;
width: 100%; max-width: none;
width: 100%;*/
height: 30px !important;
width: 669px;
max-width: none; max-width: none;
} }
@ -1475,4 +1479,15 @@ color: #325670;
#invite-anyone-group-list li { #invite-anyone-group-list li {
height: 100px !important; height: 100px !important;
list-style: none !important; list-style: none !important;
}
/************** CAMBIOS DE ESTILO POR NANDO Y JORGE ***************/
div#comments div div#respond form#commentform.commentform input#submit {
margin-left: 536px;
}
.home-page div#page-wrapper div#content-wrapper div#content div#precontent-wrapper div#dedicationComments_container.columns div#comments div div#respond form#commentform.commentform input#submit {
margin-left: 536px;
} }

File diff suppressed because one or more lines are too long

View File

@ -2282,9 +2282,9 @@ padding: 10px 0 30px 0;
margin-left: 10px; margin-left: 10px;
} }
#respond textarea { #respond textarea {
width: 544px; height:30px;
max-width: 544px; max-width:627px;
height: 150px; width:627px
} }
#cancel-comment-reply-link { #cancel-comment-reply-link {
float: right; float: right;

View File

@ -1,353 +1,353 @@
/* /*
Theme Name: ASong2U Theme Name: ASong2U
Version: 1.0 Version: 1.0
Description: Author: Author URI: Theme URI: License: Description: Author: Author URI: Theme URI: License:
License URI: License URI:
Tags: buddypress Tags: buddypress
*/ */
/*************************** General Styling ***************************/ /*************************** General Styling ***************************/
/* Page Styling */ /* Page Styling */
body{color:#666;font-family:Arial, Tahoma, "Lucida Sans Unicode", "Lucida Grande";font-size:14px;font-weight:400;margin:0 auto;padding:0;position:relative;text-align:center} body{color:#666;font-family:Arial, Tahoma, "Lucida Sans Unicode", "Lucida Grande";font-size:14px;font-weight:400;margin:0 auto;padding:0;position:relative;text-align:center}
h1,h2,h3,h4,h5,h6,h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:#333;font-weight:700;line-height:1;margin:0 0 20px;padding:0} h1,h2,h3,h4,h5,h6,h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:#333;font-weight:700;line-height:1;margin:0 0 20px;padding:0}
h1{font-size:26px} h1{font-size:26px}
h2{font-size:24px} h2{font-size:24px}
h3{font-size:20px} h3{font-size:20px}
h5{font-size:16px} h5{font-size:16px}
h6{font-size:13px} h6{font-size:13px}
p{line-height:19px;margin-bottom:12px} p{line-height:19px;margin-bottom:12px}
em{font-style:italic} em{font-style:italic}
.text-left{text-align:left} .text-left{text-align:left}
.text-right{text-align:right} .text-right{text-align:right}
.text-justify{text-align:justify} .text-justify{text-align:justify}
ol{margin:0;padding:0} ol{margin:0;padding:0}
ol li{line-height:19px;list-style:decimal;margin:0 0 0 20px;padding:0 0 10px} ol li{line-height:19px;list-style:decimal;margin:0 0 0 20px;padding:0 0 10px}
ul{list-style-type:none;margin:0;padding:0} ul{list-style-type:none;margin:0;padding:0}
.gp-list,.widget ul{list-style-type:square;margin:0 0 12px} .gp-list,.widget ul{list-style-type:square;margin:0 0 12px}
.gp-list li,.widget li{line-height:19px;margin:0 0 0 20px;padding:10px 0 0} .gp-list li,.widget li{line-height:19px;margin:0 0 0 20px;padding:10px 0 0}
.gp-list li:first-child,.widget li:first-child{padding:0} .gp-list li:first-child,.widget li:first-child{padding:0}
input[type=text],body input[type=password],textarea,select{-moz-box-shadow:none;-webkit-box-shadow:none;background:#fff;border:1px solid #e5e5e5;box-shadow:none;font-family:Arial;font-size:12px;margin:0 0 5px;padding:7px} input[type=text],body input[type=password],textarea,select{-moz-box-shadow:none;-webkit-box-shadow:none;background:#fff;border:1px solid #e5e5e5;box-shadow:none;font-family:Arial;font-size:12px;margin:0 0 5px;padding:7px}
input[type=text]:focus,body input[type=password]:focus,textarea:focus{background:#fff;border:1px solid #999} input[type=text]:focus,body input[type=password]:focus,textarea:focus{background:#fff;border:1px solid #999}
textarea{resize:none} textarea{resize:none}
select{padding:3px} select{padding:3px}
input[type=submit],input[type=reset],input[type=button],button{border:0;color:#fff;cursor:pointer;font-family:Arial;font-size:12px;font-weight:700;padding:7px 10px;text-align:center} input[type=submit],input[type=reset],input[type=button],button{border:0;color:#fff;cursor:pointer;font-family:Arial;font-size:12px;font-weight:700;padding:7px 10px;text-align:center}
input[type=radio],input[type=checkbox]{background:transparent;border:0} input[type=radio],input[type=checkbox]{background:transparent;border:0}
fieldset{margin:0;padding:20px} fieldset{margin:0;padding:20px}
.gp-table th{border-bottom:1px solid #e5e5e5;font-weight:700;padding:10px} .gp-table th{border-bottom:1px solid #e5e5e5;font-weight:700;padding:10px}
.gp-table td{border-bottom:1px solid #e5e5e5;font-size:12px;padding:10px} .gp-table td{border-bottom:1px solid #e5e5e5;font-size:12px;padding:10px}
cite{float:right;padding:0 0 5px} cite{float:right;padding:0 0 5px}
hr{background:#e5e5e5;border:0;clear:both;height:1px;margin:20px 0;padding:0;position:relative;width:100%} hr{background:#e5e5e5;border:0;clear:both;height:1px;margin:20px 0;padding:0;position:relative;width:100%}
pre{background:#f5f5f5;border-color:#e5e5e5;border-style:solid;border-width:0 0 0 3px;font-family:"Courier New";font-size:12px;line-height:19px;margin:12px 0 0;overflow:auto;padding:15px} pre{background:#f5f5f5;border-color:#e5e5e5;border-style:solid;border-width:0 0 0 3px;font-family:"Courier New";font-size:12px;line-height:19px;margin:12px 0 0;overflow:auto;padding:15px}
code{background:#f5f5f5;border-color:#e5e5e5;border-style:solid;border-width:0 0 0 3px;clear:both;display:block;font-family:"Courier New";font-size:12px;line-height:19px;margin:12px 0 0;padding:5px 15px} code{background:#f5f5f5;border-color:#e5e5e5;border-style:solid;border-width:0 0 0 3px;clear:both;display:block;font-family:"Courier New";font-size:12px;line-height:19px;margin:12px 0 0;padding:5px 15px}
.clear{clear:both;content:"";display:block;font-size:0;height:0;line-height:0;margin:0;padding:0;width:100%} .clear{clear:both;content:"";display:block;font-size:0;height:0;line-height:0;margin:0;padding:0;width:100%}
.align-center,.aligncenter{clear:both;display:block;margin:20px auto;position:relative} .align-center,.aligncenter{clear:both;display:block;margin:20px auto;position:relative}
.align-left,.alignleft{float:left;margin:4px 20px 5px 0;position:relative} .align-left,.alignleft{float:left;margin:4px 20px 5px 0;position:relative}
.align-right,.alignright{float:right;margin:4px 0 5px 20px;position:relative} .align-right,.alignright{float:right;margin:4px 0 5px 20px;position:relative}
#page-wrapper{margin:0 auto;padding:30px 10px;position:relative;width:980px} #page-wrapper{margin:0 auto;padding:30px 10px;position:relative;width:980px}
#page-shadow{-moz-border-radius:5px;-moz-box-shadow:0 0 10px rgba(0,0,0,0.5);-webkit-border-radius:5px;-webkit-box-shadow:0 0 10px rgba(0,0,0,0.5);border-radius:5px;box-shadow:0 0 10px rgba(0,0,0,0.5);position:relative;text-align:left;width:100%} #page-shadow{-moz-border-radius:5px;-moz-box-shadow:0 0 10px rgba(0,0,0,0.5);-webkit-border-radius:5px;-webkit-box-shadow:0 0 10px rgba(0,0,0,0.5);border-radius:5px;box-shadow:0 0 10px rgba(0,0,0,0.5);position:relative;text-align:left;width:100%}
#content-wrapper{-ms-filter:"progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#ffffff, endColorstr=#fafafa)";background:#fff;background-image:0 to(#fafafa));filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#ffffff,endColorstr=#fafafa);float:left;padding:30px;width:920px} #content-wrapper{-ms-filter:"progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#ffffff, endColorstr=#fafafa)";background:#fff;background-image:0 to(#fafafa));filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#ffffff,endColorstr=#fafafa);float:left;padding:30px;width:920px}
#content{position:relative;width:590px} #content{position:relative;width:590px}
.fullwidth #content{float:left;width:920px} .fullwidth #content{float:left;width:920px}
#sidebar{width:300px} #sidebar{width:300px}
.sb-right #sidebar{float:right;margin-left:30px} .sb-right #sidebar{float:right;margin-left:30px}
.sb-left #sidebar{float:left;margin-right:30px} .sb-left #sidebar{float:left;margin-right:30px}
#header{float:left;position:relative;width:100%} #header{float:left;position:relative;width:100%}
#header-bottom{background:url(lib/images/stripes-bg.png) no-repeat center top;float:left;padding:30px 30px 0;position:relative;width:920px} #header-bottom{background:url(lib/images/stripes-bg.png) no-repeat center top;float:left;padding:30px 30px 0;position:relative;width:920px}
#logo{display:block;float:left;line-height:0;margin:0;position:relative} #logo{display:block;float:left;line-height:0;margin:0;position:relative}
#logo a{line-height:0} #logo a{line-height:0}
#logo span{display:block;height:135px;left:0;position:relative;top:-15px;width:280px} #logo span{display:block;height:135px;left:0;position:relative;top:-15px;width:280px}
#logo img{position:relative} #logo img{position:relative}
#logo div{height:1px;text-indent:-9999px;width:1px} #logo div{height:1px;text-indent:-9999px;width:1px}
#header-content{float:right;text-align:center} #header-content{float:right;text-align:center}
#nav{-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0;float:left;padding:0 25px 0 15px;position:relative;width:940px;z-index:100} #nav{-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px 5px 0 0;border-radius:5px 5px 0 0;float:left;padding:0 25px 0 15px;position:relative;width:940px;z-index:100}
#nav ul,#nav ul ul{float:left;list-style-position:outside;list-style-type:none;position:relative} #nav ul,#nav ul ul{float:left;list-style-position:outside;list-style-type:none;position:relative}
#nav ul:after{clear:both;content:".";display:block;height:0;visibility:hidden} #nav ul:after{clear:both;content:".";display:block;height:0;visibility:hidden}
#nav ul li{border-style:solid;border-width:1px;display:block;float:left;margin:0;padding:0;position:relative} #nav ul li{border-style:solid;border-width:1px;display:block;float:left;margin:0;padding:0;position:relative}
#nav ul a{color:#fff;display:block;font-size:12px;font-weight:700;line-height:12px;padding:15px;text-shadow:1px 1px 0 #000} #nav ul a{color:#fff;display:block;font-size:12px;font-weight:700;line-height:12px;padding:15px;text-shadow:1px 1px 0 #000}
#nav .sub-menu{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;border-style:solid;border-width:0 1px 1px;display:none;left:-1px;margin:0;padding:5px 5px 10px;position:absolute;top:43px;width:200px;z-index:100} #nav .sub-menu{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;border-style:solid;border-width:0 1px 1px;display:none;left:-1px;margin:0;padding:5px 5px 10px;position:absolute;top:43px;width:200px;z-index:100}
#nav .sub-menu li{background:none;border:0;height:auto;margin:0;padding:0;position:static} #nav .sub-menu li{background:none;border:0;height:auto;margin:0;padding:0;position:static}
#nav .sub-menu a{display:block;float:left;height:auto;line-height:19px;margin:0;padding:5px 10px;width:170px} #nav .sub-menu a{display:block;float:left;height:auto;line-height:19px;margin:0;padding:5px 10px;width:170px}
#nav ul .sub-menu li ul{left:180px;top:auto} #nav ul .sub-menu li ul{left:180px;top:auto}
#nav ul .sub-menu.align-right li ul{left:-200px;top:auto} #nav ul .sub-menu.align-right li ul{left:-200px;top:auto}
#user-details{float:right;margin:15px 0 0} #user-details{float:right;margin:15px 0 0}
#user-details .login-name{color:#e5e5e5;float:left;font-weight:700;margin:1px 0 0;text-shadow:1px 1px 0 #000} #user-details .login-name{color:#e5e5e5;float:left;font-weight:700;margin:1px 0 0;text-shadow:1px 1px 0 #000}
#user-details a{color:#8bafce;float:left;font-weight:700;line-height:12px;margin:1px 0 0 15px;text-shadow:1px 1px 0 #000} #user-details a{color:#8bafce;float:left;font-weight:700;line-height:12px;margin:1px 0 0 15px;text-shadow:1px 1px 0 #000}
#search-icon{background-image:url(lib/images/sprite.png);background-position:10px -108px;background-repeat:no-repeat;border-style:solid;border-width:1px;cursor:pointer;display:block;float:left;height:22px;margin:-15px 0 0 15px;padding:10px;width:13px} #search-icon{background-image:url(lib/images/sprite.png);background-position:10px -108px;background-repeat:no-repeat;border-style:solid;border-width:1px;cursor:pointer;display:block;float:left;height:22px;margin:-15px 0 0 15px;padding:10px;width:13px}
#search-box{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;border-style:solid;border-width:0 1px 1px;display:none;padding:20px;position:absolute;right:25px;top:44px;width:245px} #search-box{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;border-radius:0 0 5px 5px;border-style:solid;border-width:0 1px 1px;display:none;padding:20px;position:absolute;right:25px;top:44px;width:245px}
#search-panel input{border:0} #search-panel input{border:0}
#social-wrapper{float:left;height:32px;position:relative;width:100%} #social-wrapper{float:left;height:32px;position:relative;width:100%}
#scroller{color:#fff;float:left;height:16px;line-height:16px;margin:6px 0 0 30px;overflow:hidden;text-shadow:1px 1px 0 #000} #scroller{color:#fff;float:left;height:16px;line-height:16px;margin:6px 0 0 30px;overflow:hidden;text-shadow:1px 1px 0 #000}
#scroller-title{color:#fff;float:left;font-weight:700} #scroller-title{color:#fff;float:left;font-weight:700}
#scroller-marquee{display:none;float:left} #scroller-marquee{display:none;float:left}
.scroller-bullet{font-size:14px;margin:0 10px} .scroller-bullet{font-size:14px;margin:0 10px}
#social-icons{background:url(lib/images/diag-right.png) left top no-repeat;float:right;padding:5px 30px 10px 50px} #social-icons{background:url(lib/images/diag-right.png) left top no-repeat;float:right;padding:5px 30px 10px 50px}
#social-icons a{display:block;float:left;height:17px;margin-left:15px;width:20px} #social-icons a{display:block;float:left;height:17px;margin-left:15px;width:20px}
.youtube-icon{background:url(lib/images/sprite.png) no-repeat 0 -57px} .youtube-icon{background:url(lib/images/sprite.png) no-repeat 0 -57px}
.youtube-icon:hover{background:url(lib/images/sprite.png) no-repeat 0 -87px} .youtube-icon:hover{background:url(lib/images/sprite.png) no-repeat 0 -87px}
.facebook-icon{background:url(lib/images/sprite.png) no-repeat -36px -57px} .facebook-icon{background:url(lib/images/sprite.png) no-repeat -36px -57px}
.facebook-icon:hover{background:url(lib/images/sprite.png) no-repeat -36px -87px} .facebook-icon:hover{background:url(lib/images/sprite.png) no-repeat -36px -87px}
.twitter-icon{background:url(lib/images/sprite.png) no-repeat -72px -57px} .twitter-icon{background:url(lib/images/sprite.png) no-repeat -72px -57px}
.twitter-icon:hover{background:url(lib/images/sprite.png) no-repeat -72px -87px} .twitter-icon:hover{background:url(lib/images/sprite.png) no-repeat -72px -87px}
.dribbble-icon{background:url(lib/images/sprite.png) no-repeat -112px -57px} .dribbble-icon{background:url(lib/images/sprite.png) no-repeat -112px -57px}
.dribbble-icon:hover{background:url(lib/images/sprite.png) no-repeat -112px -87px} .dribbble-icon:hover{background:url(lib/images/sprite.png) no-repeat -112px -87px}
.digg-icon{background:url(lib/images/sprite.png) no-repeat -141px -57px} .digg-icon{background:url(lib/images/sprite.png) no-repeat -141px -57px}
.digg-icon:hover{background:url(lib/images/sprite.png) no-repeat -141px -87px} .digg-icon:hover{background:url(lib/images/sprite.png) no-repeat -141px -87px}
.vimeo-icon{background:url(lib/images/sprite.png) no-repeat -180px -57px} .vimeo-icon{background:url(lib/images/sprite.png) no-repeat -180px -57px}
.vimeo-icon:hover{background:url(lib/images/sprite.png) no-repeat -180px -87px} .vimeo-icon:hover{background:url(lib/images/sprite.png) no-repeat -180px -87px}
.delicious-icon{background:url(lib/images/sprite.png) no-repeat -215px -57px} .delicious-icon{background:url(lib/images/sprite.png) no-repeat -215px -57px}
.delicious-icon:hover{background:url(lib/images/sprite.png) no-repeat -215px -87px} .delicious-icon:hover{background:url(lib/images/sprite.png) no-repeat -215px -87px}
.rss-icon{background:url(lib/images/sprite.png) no-repeat -250px -57px} .rss-icon{background:url(lib/images/sprite.png) no-repeat -250px -57px}
.rss-icon:hover{background:url(lib/images/sprite.png) no-repeat -250px -87px} .rss-icon:hover{background:url(lib/images/sprite.png) no-repeat -250px -87px}
.linkedin-icon{background:url(lib/images/sprite.png) no-repeat -320px -57px} .linkedin-icon{background:url(lib/images/sprite.png) no-repeat -320px -57px}
.linkedin-icon:hover{background:url(lib/images/sprite.png) no-repeat -320px -87px} .linkedin-icon:hover{background:url(lib/images/sprite.png) no-repeat -320px -87px}
.googleplus-icon{background:url(lib/images/sprite.png) no-repeat -357px -57px} .googleplus-icon{background:url(lib/images/sprite.png) no-repeat -357px -57px}
.googleplus-icon:hover{background:url(lib/images/sprite.png) no-repeat -357px -87px} .googleplus-icon:hover{background:url(lib/images/sprite.png) no-repeat -357px -87px}
#slider-wrapper{float:left;height:270px;overflow:hidden;padding:30px;position:relative;width:920px} #slider-wrapper{float:left;height:270px;overflow:hidden;padding:30px;position:relative;width:920px}
#slider-wrapper .error{border-style:solid;border-width:1px;color:#fff;line-height:19px;padding:10px} #slider-wrapper .error{border-style:solid;border-width:1px;color:#fff;line-height:19px;padding:10px}
.caroufredsel_wrapper{z-index:2} .caroufredsel_wrapper{z-index:2}
#slider{float:left;overflow:hidden;position:relative;z-index:2} #slider{float:left;overflow:hidden;position:relative;z-index:2}
.no-js #slider{min-width:5000px} .no-js #slider{min-width:5000px}
.slide{float:left;height:220px;line-height:0;margin:40px 30px 0 0;overflow:hidden;position:relative;width:160px} .slide{float:left;height:220px;line-height:0;margin:40px 30px 0 0;overflow:hidden;position:relative;width:160px}
.slide.slide-large{height:270px;margin:0 30px 0 0;width:350px} .slide.slide-large{height:270px;margin:0 30px 0 0;width:350px}
#slider-inner-bg{height:250px;position:absolute;right:0;top:40px;width:980px;z-index:1} #slider-inner-bg{height:250px;position:absolute;right:0;top:40px;width:980px;z-index:1}
.slide-caption{float:left;height:100%;margin-top:10px;position:relative;width:100%} .slide-caption{float:left;height:100%;margin-top:10px;position:relative;width:100%}
.slide-caption h2,.slide-caption h2 a{color:#fff;display:block;float:left;font-size:12px;height:100%;line-height:19px;margin:0;text-shadow:1px 1px 0 #000;width:111px} .slide-caption h2,.slide-caption h2 a{color:#fff;display:block;float:left;font-size:12px;height:100%;line-height:19px;margin:0;text-shadow:1px 1px 0 #000;width:111px}
.slide-caption h2 a{cursor:pointer} .slide-caption h2 a{cursor:pointer}
.slide-caption.hidden h2{width:160px} .slide-caption.hidden h2{width:160px}
.slide-large .slide-caption{background:url(lib/images/slide-caption-bg.png) repeat;bottom:0;height:auto;left:0;min-height:58px;padding:20px;position:absolute;width:310px} .slide-large .slide-caption{background:url(lib/images/slide-caption-bg.png) repeat;bottom:0;height:auto;left:0;min-height:58px;padding:20px;position:absolute;width:310px}
.slide-large .slide-caption h2,.slide-large .slide-caption h2 a{font-size:16px;width:220px} .slide-large .slide-caption h2,.slide-large .slide-caption h2 a{font-size:16px;width:220px}
.slide-large .slide-caption.hidden h2{width:310px} .slide-large .slide-caption.hidden h2{width:310px}
.slide-large .post-scores{width:80px} .slide-large .post-scores{width:80px}
.slide-large .post-scores .site-score,.slide-large .post-scores .user-score{line-height:40px} .slide-large .post-scores .site-score,.slide-large .post-scores .user-score{line-height:40px}
.slide-small .post-scores .site-score,.slide-small .post-scores .user-score{font-size:14px;height:15px;line-height:14px;padding:7px 0;width:34px} .slide-small .post-scores .site-score,.slide-small .post-scores .user-score{font-size:14px;height:15px;line-height:14px;padding:7px 0;width:34px}
#slider-nav{float:right;position:absolute;right:30px;top:10px} #slider-nav{float:right;position:absolute;right:30px;top:10px}
#slide-prev{background:url(lib/images/sprite.png) 0 0;cursor:pointer;float:left;height:19px;margin-left:20px;width:17px} #slide-prev{background:url(lib/images/sprite.png) 0 0;cursor:pointer;float:left;height:19px;margin-left:20px;width:17px}
#slide-prev:hover{background:url(lib/images/sprite.png) 0 -30px} #slide-prev:hover{background:url(lib/images/sprite.png) 0 -30px}
#slide-move-outer{float:left;margin-left:20px} #slide-move-outer{float:left;margin-left:20px}
#slide-move-inner{background:url(lib/images/sprite.png) -35px 0;cursor:pointer;float:left;height:19px;width:12px} #slide-move-inner{background:url(lib/images/sprite.png) -35px 0;cursor:pointer;float:left;height:19px;width:12px}
#slide-move-inner:hover{background:url(lib/images/sprite.png) -35px -30px} #slide-move-inner:hover{background:url(lib/images/sprite.png) -35px -30px}
#slide-move-inner.play{background:url(lib/images/sprite.png) -100px 0} #slide-move-inner.play{background:url(lib/images/sprite.png) -100px 0}
#slide-move-inner.play:hover{background:url(lib/images/sprite.png) -100px -30px} #slide-move-inner.play:hover{background:url(lib/images/sprite.png) -100px -30px}
#slide-next{background:url(lib/images/sprite.png) -64px 0;cursor:pointer;float:left;height:19px;margin-left:20px;width:17px} #slide-next{background:url(lib/images/sprite.png) -64px 0;cursor:pointer;float:left;height:19px;margin-left:20px;width:17px}
#slide-next:hover{background:url(lib/images/sprite.png) -64px -30px} #slide-next:hover{background:url(lib/images/sprite.png) -64px -30px}
.page-title{border-bottom:1px solid #e5e5e5;display:block;font-size:30px;margin:0 0 30px;padding:0 0 15px} .page-title{border-bottom:1px solid #e5e5e5;display:block;font-size:30px;margin:0 0 30px;padding:0 0 15px}
.shift-down .post-loop:first-child{margin-top:70px} .shift-down .post-loop:first-child{margin-top:70px}
.post-thumbnail{display:block;float:left;line-height:0;margin:0 15px 0 0;overflow:hidden;position:relative} .post-thumbnail{display:block;float:left;line-height:0;margin:0 15px 0 0;overflow:hidden;position:relative}
.post-thumbnail.thumbnail-no-wrap{margin:0 0 15px} .post-thumbnail.thumbnail-no-wrap{margin:0 0 15px}
.post-thumbnail img{display:block;position:relative} .post-thumbnail img{display:block;position:relative}
.post-text h2{font-size:14px;margin-bottom:5px} .post-text h2{font-size:14px;margin-bottom:5px}
.post-scores{float:right;width:80px} .post-scores{float:right;width:80px}
.post-scores .site-score,.post-scores .user-score{font-size:30px;height:40px;margin:0;padding:15px 0;text-align:center;width:80px} .post-scores .site-score,.post-scores .user-score{font-size:30px;height:40px;margin:0;padding:15px 0;text-align:center;width:80px}
.post-date{float:left;font-weight:700;margin:5px 0 0 15px;width:80px} .post-date{float:left;font-weight:700;margin:5px 0 0 15px;width:80px}
.post-meta{color:#999;float:left;font-size:11px;margin:0 0 20px;width:100%} .post-meta{color:#999;float:left;font-size:11px;margin:0 0 20px;width:100%}
.post-meta.post-tags{margin:5px 0 0} .post-meta.post-tags{margin:5px 0 0}
.single-post .post-meta.post-tags{margin:-15px 0 35px} .single-post .post-meta.post-tags{margin:-15px 0 35px}
ul#share-review-link,#share-review-link li{border:0;display:inline;list-style:none;margin:0;padding:0;position:relative;width:auto} ul#share-review-link,#share-review-link li{border:0;display:inline;list-style:none;margin:0;padding:0;position:relative;width:auto}
ul#share-review{background:#fff;border:1px solid #e5e5e5;display:none;float:left;padding:0 15px 15px;position:absolute;right:0;top:20px;width:100px;z-index:2} ul#share-review{background:#fff;border:1px solid #e5e5e5;display:none;float:left;padding:0 15px 15px;position:absolute;right:0;top:20px;width:100px;z-index:2}
#share-review li{float:left;list-style:none;margin:15px 0 0;padding:0} #share-review li{float:left;list-style:none;margin:15px 0 0;padding:0}
.wpfp-span{display:block;float:left;margin:0 0 10px;width:100%} .wpfp-span{display:block;float:left;margin:0 0 10px;width:100%}
.wpfp-link{-moz-border-radius:5px;-webkit-border-radius:5px;background:#2D5069;border-radius:5px;color:#fff;float:left;font-weight:700;line-height:13px;padding:5px 10px} .wpfp-link{-moz-border-radius:5px;-webkit-border-radius:5px;background:#2D5069;border-radius:5px;color:#fff;float:left;font-weight:700;line-height:13px;padding:5px 10px}
.wpfp-link:hover{background:#273138;color:#fff} .wpfp-link:hover{background:#273138;color:#fff}
.attachment img{height:auto;max-width:100%} .attachment img{height:auto;max-width:100%}
.attachment p{margin-top:12px} .attachment p{margin-top:12px}
#dropdown-filter{border-bottom:1px dotted #e5e5e5;display:none;float:left;left:0;margin:0 0 30px;padding:0 0 15px;position:absolute;top:0;width:100%} #dropdown-filter{border-bottom:1px dotted #e5e5e5;display:none;float:left;left:0;margin:0 0 30px;padding:0 0 15px;position:absolute;top:0;width:100%}
.jqTransformSelectWrapper{float:left;height:14px;position:relative;width:45px} .jqTransformSelectWrapper{float:left;height:14px;position:relative;width:45px}
.jqTransformSelectWrapper div span{color:#d14836;cursor:pointer;float:none;font-size:12px;height:14px;overflow:hidden;position:absolute;white-space:nowrap} .jqTransformSelectWrapper div span{color:#d14836;cursor:pointer;float:none;font-size:12px;height:14px;overflow:hidden;position:absolute;white-space:nowrap}
.jqTransformSelectWrapper a.jqTransformSelectOpen{background:url(lib/images/sprite.png) 0 -221px no-repeat;display:block;height:8px;position:absolute;right:25px;top:1px;width:9px} .jqTransformSelectWrapper a.jqTransformSelectOpen{background:url(lib/images/sprite.png) 0 -221px no-repeat;display:block;height:8px;position:absolute;right:25px;top:1px;width:9px}
#content .jqTransformSelectWrapper ul{background-color:#fff;border:1px solid #e5e5e5;display:none;height:200px;left:0;list-style:none;margin:0;overflow:auto;overflow-y:auto;padding:0;position:absolute;top:20px;width:43px;z-index:10} #content .jqTransformSelectWrapper ul{background-color:#fff;border:1px solid #e5e5e5;display:none;height:200px;left:0;list-style:none;margin:0;overflow:auto;overflow-y:auto;padding:0;position:absolute;top:20px;width:43px;z-index:10}
.jqTransformSelectWrapper ul li{list-style:none;margin:0;padding:0} .jqTransformSelectWrapper ul li{list-style:none;margin:0;padding:0}
.jqTransformSelectWrapper ul a{color:#666;display:block;font-size:12px;padding:10px;text-decoration:none} .jqTransformSelectWrapper ul a{color:#666;display:block;font-size:12px;padding:10px;text-decoration:none}
.jqTransformSelectWrapper ul a.selected{color:#666} .jqTransformSelectWrapper ul a.selected{color:#666}
.jqTransformSelectWrapper ul a:hover,.jqTransformSelectWrapper ul a.selected:hover{background:#f5f5f5} .jqTransformSelectWrapper ul a:hover,.jqTransformSelectWrapper ul a.selected:hover{background:#f5f5f5}
#review-links{border-bottom:1px solid #e5e5e5;float:left;margin:0 0 30px;padding:0 0 15px;width:100%} #review-links{border-bottom:1px solid #e5e5e5;float:left;margin:0 0 30px;padding:0 0 15px;width:100%}
#review-links ul{float:left;list-style:none;list-style-image:none;list-style-position:outside;margin:0;padding:0;width:100%} #review-links ul{float:left;list-style:none;list-style-image:none;list-style-position:outside;margin:0;padding:0;width:100%}
#review-links li{border-color:#e5e5e5;border-style:solid;border-width:0 0 0 1px;float:left;list-style:none;margin:0 0 0 15px;padding:0 0 0 15px} #review-links li{border-color:#e5e5e5;border-style:solid;border-width:0 0 0 1px;float:left;list-style:none;margin:0 0 0 15px;padding:0 0 0 15px}
#review-links li:first-child{border:0;margin:0;padding:0} #review-links li:first-child{border:0;margin:0;padding:0}
#review-left{float:left;margin:0 30px 0 0} #review-left{float:left;margin:0 30px 0 0}
#review-details{color:#999;float:left;font-size:11px;line-height:19px;width:100%} #review-details{color:#999;float:left;font-size:11px;line-height:19px;width:100%}
#more-images-link{display:block;float:left;font-size:11px;line-height:12px;margin:-5px 0 15px;text-align:center;width:100%} #more-images-link{display:block;float:left;font-size:11px;line-height:12px;margin:-5px 0 15px;text-align:center;width:100%}
.site-score{color:#fff;float:left;font-size:50px;font-weight:700;height:60px;margin:0 0 15px;padding:20px 0;text-align:center;width:120px} .site-score{color:#fff;float:left;font-size:50px;font-weight:700;height:60px;margin:0 0 15px;padding:20px 0;text-align:center;width:120px}
.good-bad-panel{background:#f5f5f5;float:left;font-size:11px;height:70px;line-height:13px;margin:0 0 15px;padding:15px} .good-bad-panel{background:#f5f5f5;float:left;font-size:11px;height:70px;line-height:13px;margin:0 0 15px;padding:15px}
.good-point{border-bottom:1px solid #ddd;float:left;height:25px;padding:0 0 10px;width:100%} .good-point{border-bottom:1px solid #ddd;float:left;height:25px;padding:0 0 10px;width:100%}
.bad-point{float:left;height:25px;padding:10px 0 0;width:100%} .bad-point{float:left;height:25px;padding:10px 0 0;width:100%}
.user-score{color:#fff;float:left;font-size:35px;font-weight:700;margin:0 20px 0 0;padding:10px 0;text-align:center;width:120px} .user-score{color:#fff;float:left;font-size:35px;font-weight:700;margin:0 20px 0 0;padding:10px 0;text-align:center;width:120px}
.user-score .voted,.user-score .inactive{color:#fff!important} .user-score .voted,.user-score .inactive{color:#fff!important}
.user-voting{float:left;margin-top:20px} .user-voting{float:left;margin-top:20px}
.user-voting-text{float:left;font-weight:700;width:100%} .user-voting-text{float:left;font-weight:700;width:100%}
.review-image{float:left;margin:0 10px 10px 0} .review-image{float:left;margin:0 10px 10px 0}
.video{background:#000;float:left;margin:0 0 30px} .video{background:#000;float:left;margin:0 0 30px}
.video-icon{background:url(lib/images/video-icon.png) no-repeat;bottom:10px;height:20px;position:absolute;right:10px;width:20px;z-index:2} .video-icon{background:url(lib/images/video-icon.png) no-repeat;bottom:10px;height:20px;position:absolute;right:10px;width:20px;z-index:2}
#related-items{float:left;margin:18px 0 12px;width:100%} #related-items{float:left;margin:18px 0 12px;width:100%}
.related-item{float:left;margin:0 0 0 30px;width:125px} .related-item{float:left;margin:0 0 0 30px;width:125px}
.related-item .post-thumbnail img{height:auto;max-width:120px} .related-item .post-thumbnail img{height:auto;max-width:120px}
.related-post-title{font-size:12px;font-weight:700;line-height:15px;margin:0} .related-post-title{font-size:12px;font-weight:700;line-height:15px;margin:0}
.related-post-cats,.related-post-cats a{color:#999;font-size:11px;margin-top:3px} .related-post-cats,.related-post-cats a{color:#999;font-size:11px;margin-top:3px}
.profile-avatar{background:#e5e5e5;float:left;padding:15px;text-align:center} .profile-avatar{background:#e5e5e5;float:left;padding:15px;text-align:center}
.profile-avatar .avatar{display:block;margin:0 0 15px} .profile-avatar .avatar{display:block;margin:0 0 15px}
.profile-details{background:#f5f5f5;float:left;min-height:87px;padding:15px;width:470px} .profile-details{background:#f5f5f5;float:left;min-height:87px;padding:15px;width:470px}
.fullwidth .profile-details{width:800px} .fullwidth .profile-details{width:800px}
.edit-profile-link{height:12px} .edit-profile-link{height:12px}
#edituser{padding:15px} #edituser{padding:15px}
#edituser h3{margin:0 0 20px} #edituser h3{margin:0 0 20px}
#edituser label{margin:5px 0 0 10px} #edituser label{margin:5px 0 0 10px}
.profile-box{float:left;margin:18px 0 0;width:590px} .profile-box{float:left;margin:18px 0 0;width:590px}
.profile-box h3{background:#e5e5e5;display:block;font-size:12px!important;margin:0!important;padding:15px} .profile-box h3{background:#e5e5e5;display:block;font-size:12px!important;margin:0!important;padding:15px}
.profile-content{background:#f5f5f5;float:left;padding:15px 15px 0;width:560px} .profile-content{background:#f5f5f5;float:left;padding:15px 15px 0;width:560px}
.fullwidth .profile-content{width:890px} .fullwidth .profile-content{width:890px}
.profile-item{float:left;line-height:19px;margin:0 0 10px;width:100%} .profile-item{float:left;line-height:19px;margin:0 0 10px;width:100%}
.profile-item .post-thumbnail{margin-bottom:15px} .profile-item .post-thumbnail{margin-bottom:15px}
.pp_content_container .pp_gallery ul a{height:auto;line-height:0;max-height:30px} .pp_content_container .pp_gallery ul a{height:auto;line-height:0;max-height:30px}
.html5player{height:100%;width:100%} .html5player{height:100%;width:100%}
.accordion .panel{margin:0;overflow:hidden;position:relative;width:100%} .accordion .panel{margin:0;overflow:hidden;position:relative;width:100%}
h3.accordion-title{background:url(lib/images/sprite.png) 0 -157px no-repeat;font-size:20px;padding:0 0 0 25px} h3.accordion-title{background:url(lib/images/sprite.png) 0 -157px no-repeat;font-size:20px;padding:0 0 0 25px}
.panel-content{line-height:19px;padding:0 20px 20px 25px} .panel-content{line-height:19px;padding:0 20px 20px 25px}
.author-info{background:#f7f7f7;border:1px solid #e5e5e5;margin:20px 0;min-height:50px;padding:10px} .author-info{background:#f7f7f7;border:1px solid #e5e5e5;margin:20px 0;min-height:50px;padding:10px}
.author-info .avatar{float:left;margin-right:10px} .author-info .avatar{float:left;margin-right:10px}
.author-info .author-meta{margin-left:60px} .author-info .author-meta{margin-left:60px}
.author-info .author-name{float:left;font-weight:700;padding-bottom:10px} .author-info .author-name{float:left;font-weight:700;padding-bottom:10px}
.author-info .author-links{color:#999;float:right;font-size:11px;padding-bottom:10px} .author-info .author-links{color:#999;float:right;font-size:11px;padding-bottom:10px}
.author-info .author-desc{font-size:11px;line-height:16px} .author-info .author-desc{font-size:11px;line-height:16px}
blockquote{clear:both;color:#999;font-family:Georgia, "Times New Roman";font-size:16px;margin:20px 20px 10px;overflow:hidden;padding:5px 0 5px 15px} blockquote{clear:both;color:#999;font-family:Georgia, "Times New Roman";font-size:16px;margin:20px 20px 10px;overflow:hidden;padding:5px 0 5px 15px}
blockquote p{line-height:23px} blockquote p{line-height:23px}
.blockquote-left{float:left;margin:20px 20px 20px 0} .blockquote-left{float:left;margin:20px 20px 20px 0}
.blockquote-right{float:right;margin:20px 0 20px 20px} .blockquote-right{float:right;margin:20px 0 20px 20px}
.blockquote-right,.blockquote-left{color:#999;font-family:Georgia, "Times New Roman";font-size:16px;line-height:23px;padding:5px 0 5px 15px;width:30%} .blockquote-right,.blockquote-left{color:#999;font-family:Georgia, "Times New Roman";font-size:16px;line-height:23px;padding:5px 0 5px 15px;width:30%}
.wp-caption{max-width:100%;padding:0;position:relative} .wp-caption{max-width:100%;padding:0;position:relative}
.wp-caption-text{font-size:11px;margin:5px 0 0} .wp-caption-text{font-size:11px;margin:5px 0 0}
.columns{float:left;line-height:19px;position:relative} .columns{float:left;line-height:19px;position:relative}
.blank{margin-right:4%} .blank{margin-right:4%}
.two{width:48%} .two{width:48%}
.three{width:30.66%} .three{width:30.66%}
.four{width:22%} .four{width:22%}
.five{width:16.8%} .five{width:16.8%}
.onethird{width:32.64%} .onethird{width:32.64%}
.twothirds{width:63.36%} .twothirds{width:63.36%}
.onefourth{width:24%} .onefourth{width:24%}
.threefourths{width:72%} .threefourths{width:72%}
.separate{margin-right:2%} .separate{margin-right:2%}
.two.separate{width:49%} .two.separate{width:49%}
.five.separate{width:18.4%} .five.separate{width:18.4%}
.twothirds.separate{width:66%} .twothirds.separate{width:66%}
.threefourths.separate{width:74.5%} .threefourths.separate{width:74.5%}
.two.joint{width:50%} .two.joint{width:50%}
.five.joint{width:20%} .five.joint{width:20%}
.twothirds.joint{width:66.33%} .twothirds.joint{width:66.33%}
.threefourths.joint{width:75%} .threefourths.joint{width:75%}
.last{clear:right;margin-right:0} .last{clear:right;margin-right:0}
#contact-form{float:left;margin-bottom:12px;width:100%} #contact-form{float:left;margin-bottom:12px;width:100%}
#contact-form .textfield_label{margin:0 0 0 10px} #contact-form .textfield_label{margin:0 0 0 10px}
#contact-form .contact-verify{float:left;margin-bottom:12px} #contact-form .contact-verify{float:left;margin-bottom:12px}
#contact-form textarea{max-width:550px;width:90%} #contact-form textarea{max-width:550px;width:90%}
input[type=text].input-error,textarea.input-error{border-color:#ca4f4f} input[type=text].input-error,textarea.input-error{border-color:#ca4f4f}
#contact-form .loader{background:url(lib/images/loader.gif) no-repeat right bottom;display:none;float:left;height:16px;padding:7px 0 0 10px;width:16px} #contact-form .loader{background:url(lib/images/loader.gif) no-repeat right bottom;display:none;float:left;height:16px;padding:7px 0 0 10px;width:16px}
.contact-success,.contact-error{display:block;font-weight:700;margin:0 0 20px;text-shadow:none} .contact-success,.contact-error{display:block;font-weight:700;margin:0 0 20px;text-shadow:none}
.sc-divider{border-bottom:1px solid #e5e5e5;clear:both;content:"";margin:30px 0;position:relative;width:100%} .sc-divider{border-bottom:1px solid #e5e5e5;clear:both;content:"";margin:30px 0;position:relative;width:100%}
.sc-divider.top a{color:#999;cursor:pointer;float:right;font-size:8px;position:absolute;right:0;text-align:right;top:-15px;width:20px} .sc-divider.top a{color:#999;cursor:pointer;float:right;font-size:8px;position:absolute;right:0;text-align:right;top:-15px;width:20px}
.sc-divider.clear{background:none;border:0;height:10px;margin-bottom:0} .sc-divider.clear{background:none;border:0;height:10px;margin-bottom:0}
.sc-divider.small.clear{border:0;margin:0} .sc-divider.small.clear{border:0;margin:0}
.gallery img{border:0!important;margin:5px 0} .gallery img{border:0!important;margin:5px 0}
.gallery-caption{float:left;line-height:14px;margin:10px 0} .gallery-caption{float:left;line-height:14px;margin:10px 0}
.ui-tabs{padding:0!important;position:relative;top:-4px;zoom:1} .ui-tabs{padding:0!important;position:relative;top:-4px;zoom:1}
.ui-tabs .ui-tabs-nav{display:block;margin:0;padding:0} .ui-tabs .ui-tabs-nav{display:block;margin:0;padding:0}
.ui-tabs .ui-tabs-nav li{background-image:none;border:0;border-bottom:0!important;float:left;list-style:none!important;margin:0!important;padding:0;position:relative;top:1px;white-space:nowrap;z-index:1} .ui-tabs .ui-tabs-nav li{background-image:none;border:0;border-bottom:0!important;float:left;list-style:none!important;margin:0!important;padding:0;position:relative;top:1px;white-space:nowrap;z-index:1}
.ui-tabs .ui-tabs-nav li a{float:left;font-weight:700;padding:10px;text-decoration:none} .ui-tabs .ui-tabs-nav li a{float:left;font-weight:700;padding:10px;text-decoration:none}
.ui-tabs .ui-tabs-nav li.ui-tabs-selected{background-color:#fff;border:1px solid #e5e5e5;border-bottom-color:#fff;z-index:3} .ui-tabs .ui-tabs-nav li.ui-tabs-selected{background-color:#fff;border:1px solid #e5e5e5;border-bottom-color:#fff;z-index:3}
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-state-processing a{color:#333;cursor:text} .ui-tabs .ui-tabs-nav li.ui-tabs-selected a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-state-processing a{color:#333;cursor:text}
.ui-tabs .ui-tabs-nav li.ui-state-hover a{color:#333} .ui-tabs .ui-tabs-nav li.ui-state-hover a{color:#333}
.ui-tabs .ui-tabs-nav li a,.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a{color:#999;cursor:pointer} .ui-tabs .ui-tabs-nav li a,.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a{color:#999;cursor:pointer}
.ui-tabs-nav .tabhead{cursor:pointer;display:block;font-size:12px!important;margin-bottom:0} .ui-tabs-nav .tabhead{cursor:pointer;display:block;font-size:12px!important;margin-bottom:0}
.sc-tab-panel{background-color:#fff;border:1px solid #e5e5e5;height:inherit;line-height:19px;margin:0 0 10px;overflow:hidden;padding:15px;position:relative;z-index:2} .sc-tab-panel{background-color:#fff;border:1px solid #e5e5e5;height:inherit;line-height:19px;margin:0 0 10px;overflow:hidden;padding:15px;position:relative;z-index:2}
.ui-tabs .ui-tabs-hide{display:none!important} .ui-tabs .ui-tabs-hide{display:none!important}
h3.toggle{background:url(lib/images/sprite.png) 0 -157px no-repeat;cursor:pointer;font-size:20px;margin:0;padding:0 0 0 25px} h3.toggle{background:url(lib/images/sprite.png) 0 -157px no-repeat;cursor:pointer;font-size:20px;margin:0;padding:0 0 0 25px}
h3.toggle a{display:block;text-decoration:none} h3.toggle a{display:block;text-decoration:none}
.toggle-box{clear:both;margin:0 0 10px;overflow:hidden} .toggle-box{clear:both;margin:0 0 10px;overflow:hidden}
.sc-video,.sc-video object,.sc-video embed,.sc-video iframe,.sc-video div,.sc-video video{max-width:100%} .sc-video,.sc-video object,.sc-video embed,.sc-video iframe,.sc-video div,.sc-video video{max-width:100%}
.sc-video .sc-video-inner{display:inline-block;margin:0 auto} .sc-video .sc-video-inner{display:inline-block;margin:0 auto}
.footer-widgets-border-left{float:left;height:10px;width:260px} .footer-widgets-border-left{float:left;height:10px;width:260px}
.footer-widgets-border-right{background:#e5e5e5;float:left;height:10px;width:720px} .footer-widgets-border-right{background:#e5e5e5;float:left;height:10px;width:720px}
#footer-widgets{-ms-filter:"progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#ffffff, endColorstr=#e5e5e5)";background:#fafafa;background-color:#fff;background-image:0 to(#e5e5e5));filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#ffffff,endColorstr=#e5e5e5);float:left;padding:30px 30px 0;width:920px} #footer-widgets{-ms-filter:"progid:DXImageTransform.Microsoft.gradient (GradientType=0, startColorstr=#ffffff, endColorstr=#e5e5e5)";background:#fafafa;background-color:#fff;background-image:0 to(#e5e5e5));filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#ffffff,endColorstr=#e5e5e5);float:left;padding:30px 30px 0;width:920px}
.footer-widget-outer{float:left;margin:0 0 0 30px} .footer-widget-outer{float:left;margin:0 0 0 30px}
.footer-half{width:445px} .footer-half{width:445px}
.footer-third{width:286.6px} .footer-third{width:286.6px}
.footer-fourth{width:207.5px} .footer-fourth{width:207.5px}
.footer-widget-inner h3{font-size:14px;font-weight:700;margin-bottom:20px} .footer-widget-inner h3{font-size:14px;font-weight:700;margin-bottom:20px}
.footer-widget-inner .textfield{width:125px} .footer-widget-inner .textfield{width:125px}
.footer-widget-inner textarea{height:75px} .footer-widget-inner textarea{height:75px}
.footer-widget-inner .verify{width:30px} .footer-widget-inner .verify{width:30px}
#footer-bottom{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;background:url(lib/images/stripes-bg.png) no-repeat center top;border-radius:0 0 5px 5px;float:left;padding:30px;position:relative;width:920px} #footer-bottom{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0 0 5px 5px;background:url(lib/images/stripes-bg.png) no-repeat center top;border-radius:0 0 5px 5px;float:left;padding:30px;position:relative;width:920px}
#footer-bottom p{line-height:17px;margin-bottom:5px} #footer-bottom p{line-height:17px;margin-bottom:5px}
#footer-bottom > .columns{font-size:11px;line-height:17px;margin-top:20px} #footer-bottom > .columns{font-size:11px;line-height:17px;margin-top:20px}
#footer-bottom .columns.separate > div,#footer-bottom .columns.joint > div{-moz-border-radius:5px;-webkit-border-radius:5px;background:url(lib/images/footer-column-bg.png) repeat;border:0;border-radius:5px;padding:20px} #footer-bottom .columns.separate > div,#footer-bottom .columns.joint > div{-moz-border-radius:5px;-webkit-border-radius:5px;background:url(lib/images/footer-column-bg.png) repeat;border:0;border-radius:5px;padding:20px}
.widget{float:left;margin-bottom:30px;width:100%} .widget{float:left;margin-bottom:30px;width:100%}
.widget h3{border-bottom:5px solid #e5e5e5;font-size:14px;font-weight:700;margin-bottom:20px;padding:0 0 10px} .widget h3{border-bottom:5px solid #e5e5e5;font-size:14px;font-weight:700;margin-bottom:20px;padding:0 0 10px}
.textwidget{line-height:19px} .textwidget{line-height:19px}
#searchbar{float:left;margin:0 10px 0 0;width:150px} #searchbar{float:left;margin:0 10px 0 0;width:150px}
#searchsubmit{float:left;margin:0} #searchsubmit{float:left;margin:0}
#wp-calendar{margin:0 auto} #wp-calendar{margin:0 auto}
#wp-calendar th,#wp-calendar td{padding:7px} #wp-calendar th,#wp-calendar td{padding:7px}
#wp-calendar caption{margin-bottom:10px;text-align:right} #wp-calendar caption{margin-bottom:10px;text-align:right}
.posts-widget .post-title{font-weight:700;line-height:15px} .posts-widget .post-title{font-weight:700;line-height:15px}
.posts-widget .site-score,.posts-widget .user-score{float:left;font-size:14px;height:15px;padding:7px 0;width:34px} .posts-widget .site-score,.posts-widget .user-score{float:left;font-size:14px;height:15px;padding:7px 0;width:34px}
.posts-widget .post-cats{color:#666;font-size:11px;margin-top:5px} .posts-widget .post-cats{color:#666;font-size:11px;margin-top:5px}
#comments{float:left;margin:18px 0 0;width:100%} #comments{float:left;margin:18px 0 0;width:100%}
#comments .wp-pagenavi{margin-bottom:30px} #comments .wp-pagenavi{margin-bottom:30px}
#commentlist,#commentlist ul,#commentlist li{list-style:none;list-style-type:none;margin:0;padding:0} #commentlist,#commentlist ul,#commentlist li{list-style:none;list-style-type:none;margin:0;padding:0}
.comment-box{border-bottom:1px solid #e5e5e5;margin:0 0 20px;padding:0 0 20px;position:relative} .comment-box{border-bottom:1px solid #e5e5e5;margin:0 0 20px;padding:0 0 20px;position:relative}
.comment-avatar{float:left;margin-right:15px} .comment-avatar{float:left;margin-right:15px}
.comment-meta{float:left;min-width:200px} .comment-meta{float:left;min-width:200px}
.comment-date{color:#999;float:left;font-size:11px;margin:5px 0} .comment-date{color:#999;float:left;font-size:11px;margin:5px 0}
.reply-link{float:left;font-size:11px;margin:5px 0} .reply-link{float:left;font-size:11px;margin:5px 0}
.comment-text{padding:10px 0 0} .comment-text{padding:10px 0 0}
.comment-text .moderation{font-weight:700;margin:0 0 12px;text-shadow:none} .comment-text .moderation{font-weight:700;margin:0 0 12px;text-shadow:none}
.comment-user-score{float:left;position:absolute;right:0;top:0} .comment-user-score{float:left;position:absolute;right:0;top:0}
.thumb-rating{margin-top:10px} .thumb-rating{margin-top:10px}
.thumb-rating-text .gdthumbtext{color:#999;font-size:11px} .thumb-rating-text .gdthumbtext{color:#999;font-size:11px}
.thumb-icons{color:#999;float:right;font-size:11px;margin:2px 0 0} .thumb-icons{color:#999;float:right;font-size:11px;margin:2px 0 0}
.thumb-icons .gdthumb{margin:-3px 0 0} .thumb-icons .gdthumb{margin:-3px 0 0}
.thumb-icons .left{margin:0 10px 0 5px} .thumb-icons .left{margin:0 10px 0 5px}
#commentlist .children .comment{background:none;margin-left:20px} #commentlist .children .comment{background:none;margin-left:20px}
#commentlist .bypostauthor > .comment-box .post-author{display:block;font-size:11px} #commentlist .bypostauthor > .comment-box .post-author{display:block;font-size:11px}
#commentform{float:left;margin:10px 0 12px;width:100%} #commentform{float:left;margin:10px 0 12px;width:100%}
#respond form{padding:10px 0 30px} #respond form{padding:10px 0 30px}
#respond label{margin-left:10px} #respond label{margin-left:10px}
#respond textarea{height:150px;max-width:544px;width:544px} #respond textarea{height:30px;max-width:627px;width:627px}
#cancel-comment-reply-link{display:block;float:right;font-size:11px;font-weight:400} #cancel-comment-reply-link{display:block;float:right;font-size:11px;font-weight:400}
.comment-score{display:none;float:left;margin:0 0 15px;width:100%} .comment-score{display:none;float:left;margin:0 0 15px;width:100%}
.comment-score-title{float:left;font-weight:700;margin:0 15px 0 0} .comment-score-title{float:left;font-weight:700;margin:0 15px 0 0}
.comment-score-stars{float:left;margin:-10px 0 0} .comment-score-stars{float:left;margin:-10px 0 0}
.wp-pagenavi{float:left;margin:10px 0 0 -10px;width:100%} .wp-pagenavi{float:left;margin:10px 0 0 -10px;width:100%}
.wp-pagenavi span,.wp-pagenavi a,.wp-pagenavi.post-navi a span{display:block;float:left;font-weight:700;margin:0 10px;text-align:center} .wp-pagenavi span,.wp-pagenavi a,.wp-pagenavi.post-navi a span{display:block;float:left;font-weight:700;margin:0 10px;text-align:center}
a,a:hover{text-decoration:none} a,a:hover{text-decoration:none}
h4,.review-panel h2{font-size:18px} h4,.review-panel h2{font-size:18px}
p:last-child,#footer-bottom p:last-child{margin-bottom:0} p:last-child,#footer-bottom p:last-child{margin-bottom:0}
p:first-child,.wp-pagenavi.post-navi{margin-bottom:12px} p:first-child,.wp-pagenavi.post-navi{margin-bottom:12px}
.text-center,.sc-video.aligncenter{text-align:center} .text-center,.sc-video.aligncenter{text-align:center}
legend,form label,#review-links li a,.profile-content a,#wp-calendar th{font-weight:700} legend,form label,#review-links li a,.profile-content a,#wp-calendar th{font-weight:700}
.gp-table,.one,.one.separate,.one.joint{width:100%} .gp-table,.one,.one.separate,.one.joint{width:100%}
.left,.sb-right #content,#search-panel,.post-text,#review-right,.user-score-stars,#edituser textarea,#contact-form .contact-submit,#searchform,.thumb-rating-text{float:left} .left,.sb-right #content,#search-panel,.post-text,#review-right,.user-score-stars,#edituser textarea,#contact-form .contact-submit,#searchform,.thumb-rating-text{float:left}
.right,.sb-left #content{float:right} .right,.sb-left #content{float:right}
.fullwidth #sidebar,.no-js #scroller,#scroller #scroller-marquee .scroller-bullet:first-child,.hidden .post-scores,.jqTransformHidden,.review-panel,.user-score-stars .ratingtext,#edit-profile.hidden,.author .pp_social,.reply-link.hidden,.comment-text .ratingblock,.comment-text .thumb-rating,#commentlist .post-author,#commentform.hidden{display:none} .fullwidth #sidebar,.no-js #scroller,#scroller #scroller-marquee .scroller-bullet:first-child,.hidden .post-scores,.jqTransformHidden,.review-panel,.user-score-stars .ratingtext,#edit-profile.hidden,.author .pp_social,.reply-link.hidden,.comment-text .ratingblock,.comment-text .thumb-rating,#commentlist .post-author,#commentform.hidden{display:none}
#nav li:hover > .sub-menu,.no-js #search-panel:hover #search-box,.no-js #scroller-marquee,.no-js #share-review-link:hover ul#share-review,.no-js #dropdown-filter,.ie8 .sc-video .sc-video-inner,#commentform .comment-score{display:block} #nav li:hover > .sub-menu,.no-js #search-panel:hover #search-box,.no-js #scroller-marquee,.no-js #share-review-link:hover ul#share-review,.no-js #dropdown-filter,.ie8 .sc-video .sc-video-inner,#commentform .comment-score{display:block}
#user-details a:hover,#scroller a,.slide-caption h2 a:hover,#footer-bottom a:hover,#footer-bottom h2,#footer-bottom h3,#footer-bottom h4,#footer-bottom h5,#footer-bottom h6{color:#fff} #user-details a:hover,#scroller a,.slide-caption h2 a:hover,#footer-bottom a:hover,#footer-bottom h2,#footer-bottom h3,#footer-bottom h4,#footer-bottom h5,#footer-bottom h6{color:#fff}
#slider-wrapper .error a:hover,#review-links li a:hover{text-decoration:underline} #slider-wrapper .error a:hover,#review-links li a:hover{text-decoration:underline}
.slide-small .post-scores,.posts-widget .post-text .post-scores{margin:0 0 0 15px;width:34px} .slide-small .post-scores,.posts-widget .post-text .post-scores{margin:0 0 0 15px;width:34px}
.post-loop,#review-container{border-bottom:1px solid #e5e5e5;float:left;margin:0 0 20px;padding:0 0 20px;position:relative;width:100%} .post-loop,#review-container{border-bottom:1px solid #e5e5e5;float:left;margin:0 0 20px;padding:0 0 20px;position:relative;width:100%}
.post-loop:last-child,.post-text .post-meta,.profile-item .post-meta,.wp-caption img,.sc-divider.small,.wp-pagenavi.post-navi a span{margin:0} .post-loop:last-child,.post-text .post-meta,.profile-item .post-meta,.wp-caption img,.sc-divider.small,.wp-pagenavi.post-navi a span{margin:0}
.post-meta a,.posts-widget .post-meta a,.reply-link a{color:#999} .post-meta a,.posts-widget .post-meta a,.reply-link a{color:#999}
.post-meta a:hover,.related-post-cats a:hover,.posts-widget .post-cats a:hover,.posts-widget .post-meta a:hover,.reply-link a:hover{color:#434343} .post-meta a:hover,.related-post-cats a:hover,.posts-widget .post-cats a:hover,.posts-widget .post-meta a:hover,.reply-link a:hover{color:#434343}
.order-by-text,.order-text,.comment-author{float:left;font-weight:700;margin-right:10px} .order-by-text,.order-text,.comment-author{float:left;font-weight:700;margin-right:10px}
#review-left .post-thumbnail,.related-item .post-thumbnail{margin:0 0 10px} #review-left .post-thumbnail,.related-item .post-thumbnail{margin:0 0 10px}
#review-right #review-details,#footer-bottom > .columns:first-child{margin-top:0} #review-right #review-details,#footer-bottom > .columns:first-child{margin-top:0}
#review-panels,.review-panel,#edituser p,.footer-widget-inner{float:left;width:100%} #review-panels,.review-panel,#edituser p,.footer-widget-inner{float:left;width:100%}
.site-score-title,.user-score-title{font-size:12px} .site-score-title,.user-score-title{font-size:12px}
.user-votes,.posts-widget .post-meta{font-size:11px;margin:5px 0 0} .user-votes,.posts-widget .post-meta{font-size:11px;margin:5px 0 0}
.user-score-stars .ratingblock,.no-js .toggle-box{display:block!important} .user-score-stars .ratingblock,.no-js .toggle-box{display:block!important}
#related-items h3,h3.comments,#respond h3{border-bottom:5px solid #e5e5e5;display:block;font-size:14px;margin:0 0 20px;padding:0 0 15px} #related-items h3,h3.comments,#respond h3{border-bottom:5px solid #e5e5e5;display:block;font-size:14px;margin:0 0 20px;padding:0 0 15px}
#related-items div .related-item:first-child,#footer-widgets > div:first-child{margin-left:0} #related-items div .related-item:first-child,#footer-widgets > div:first-child{margin-left:0}
.fullwidth .profile-box,.footer-whole{width:920px} .fullwidth .profile-box,.footer-whole{width:920px}
h3.ui-state-active.accordion-title,h3.toggle-active{background-position:0 -187px} h3.ui-state-active.accordion-title,h3.toggle-active{background-position:0 -187px}
.separate > div,.joint > div{border:1px solid #e5e5e5;padding:20px;position:relative} .separate > div,.joint > div{border:1px solid #e5e5e5;padding:20px;position:relative}
.three.separate,.onethird.separate{width:32%} .three.separate,.onethird.separate{width:32%}
.four.separate,.onefourth.separate{width:23.5%} .four.separate,.onefourth.separate{width:23.5%}
.three.joint,.onethird.joint{width:33.33%} .three.joint,.onethird.joint{width:33.33%}
.four.joint,.onefourth.joint{width:25%} .four.joint,.onefourth.joint{width:25%}
.footer-widget-inner li,#footer-bottom li,.widget li{list-style-image:none;list-style-type:none;margin:0} .footer-widget-inner li,#footer-bottom li,.widget li{list-style-image:none;list-style-type:none;margin:0}

View File

@ -0,0 +1,196 @@
<!--Begin Slider-->
<?php
require(ghostpool_inc . 'options.php');
$_ishome = (is_home() OR is_front_page());
global $gp_settings;
global $current_user, $bp;
get_currentuserinfo();
?>
<?php
if ($_ishome || ( $bp->current_component == BP_DEDICATION_SLUG )) {
$posts_per_page = $theme_video_slides;
$dedication_orderby = "date";
$dedication_order = "DESC";
$category_name = 'dedication';
$post_status = array('publish', 'private');
$args = array(
'post_type' => array('post'),
'order' => $dedication_order,
'orderby' => $dedication_orderby,
'posts_per_page' => $posts_per_page, //-1,
'post_status' => $post_status,
'category_name' => $category_name,
);
query_posts($args);
}
if (is_singular()) {
//
}
if (have_posts()) {
$slide_counter = 0;
$urls_video = array();
?>
<div id="the_slider" <?php echo (play_video_on_full_screen()) ? 'class="fullscreen_div"' : ''; ?> >
<!--Begin Slider Wrapper-->
<div id="slider-wrapper">
<?php if($theme_logo) { ?><div class="dedicationTitle_logo"><img src="<?php echo get_template_directory_uri(); ?>/lib/images/logo-w-fs.png" alt="<?php bloginfo('name'); ?>" /></div><?php } ?>
<div id="dedicationTitle_container">
<div id="dedicationTitle-data-panel"></div>
<h2 id="dedicationTitle"></h2>
</div>
<div id="componentWrapper">
<div class="mediaWrapper">
<div class="youtubeHolder"></div>
<div class="vimeoHolder"></div>
</div>
<div class="thumbHolder">
<div class="thumbContainer"><div class="thumbInnerContainer"></div></div>
<div class="thumbBackward"><img src="<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_backward_v.png" alt="" width="31" height="21" /></div>
<div class="thumbForward"><img src="<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/thumb_forward_v.png" alt="" width="31" height="21" /></div>
</div>
<div class="mediaPreloader"></div>
<div class="componentPlaylist">
<ul id='playlist'>
<?php
while (have_posts()) : the_post(); include('loop-dedication-data.php');
// Si ya hemos visto más de 'posts_per_page' dedicatorias, salgo del buble
if ($slide_counter == $posts_per_page) {
break;
}
$displayed_id = bp_displayed_user_id();
// Perfil del usuario: sólo mostrar las dedicadas por él y para él. El resto se descartan.
if ( $bp->current_component == BP_DEDICATION_SLUG ) {
if (($displayed_id != $gp_settings['from_user_id']) && ($displayed_id != $gp_settings['to_user_id'])) {
continue; // me salto esta dedicatoria
}
}
// Página de inicio / página del video: Usuario actual puede ver la dedicatoria?
if ($post->post_status == 'private') {
if (($current_user->ID != $gp_settings['from_user_id']) && ($current_user->ID != $gp_settings['to_user_id'])) {
continue; // me salto esta dedicatoria
}
}
$video = $gp_settings['video'];
if ($_ishome) {
if ($theme_homepage_not_repeat_videos) {
// Si la URL del video ya ha salido en una dedicatoria anterior, me la salto
if (in_array($video, $urls_video)) {
continue;
}
}
}
$urls_video[] = $video;
// Video Type
$vimeo = strpos($video, "vimeo.com");
$yt1 = strpos($video, "youtube.com");
$yt2 = strpos($video, "youtu.be");
if (($vimeo) OR ($yt1) OR ($yt2)) {
if ($yt2) { //youtu.be
$video_id = substr(parse_url($video, PHP_URL_PATH), 1);
$data_type = 'youtube_single';
$data_path = 'http://gdata.youtube.com/feeds/api/videos/' . $video_id . '?v=2&amp;alt=jsonc';
}
if ($yt1) { //youtube.com
$video = parse_str(parse_url($video, PHP_URL_QUERY), $my_array_of_vars);
$video_id = $my_array_of_vars['v'];
$data_type = 'youtube_single';
$data_path = 'http://gdata.youtube.com/feeds/api/videos/' . $video_id . '?v=2&amp;alt=jsonc';
}
if ($vimeo) { //vimeo.com
$video_id = substr(parse_url($video, PHP_URL_PATH), 1);
$data_type = 'vimeo_single';
$data_path = 'http://vimeo.com/api/v2/video/' . $video_id . '.json';
}
?>
<li data-type='<?php echo $data_type; ?>' data-path='<?php echo $data_path; ?>'>
<span id="postdata-id-<?php echo $slide_counter; ?>"><?php the_ID(); ?></span>
<span id="postdata-title-<?php echo $slide_counter; ?>"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
<span id="postdata-artist-<?php echo $slide_counter; ?>"><?php echo $gp_settings['artist_short']; ?></span>
<span id="postdata-song-<?php echo $slide_counter; ?>"><?php echo $gp_settings['song_short']; ?></span>
<span id="postdata-link-<?php echo $slide_counter; ?>"><?php the_permalink(); ?></span>
<span id="postdata-extlink-<?php echo $slide_counter; ?>"><?php echo $gp_settings['enc_link']; ?></span>
<span id="postdata-comments-<?php echo $slide_counter; ?>"></span>
<?php if (($theme_show_new_label) && ($gp_settings['unreaded'])) { ?><span id="postdata-mark-read-<?php echo $slide_counter; ?>"><?php echo mar_read_unread_links('', '', false); ?></span><?php } ?>
<span id="postdata-from-to-<?php echo $slide_counter; ?>">
<?php echo $gp_settings['from_flag']; ?><span>FROM: <?php echo $gp_settings['from_user_link']; ?></span>&nbsp;
<?php echo $gp_settings['to_flag']; ?>
<span>TO: <?php echo $gp_settings['to_user_link']; ?></span>
</span>
</li>
<?php } $slide_counter++; ?>
<?php endwhile; ?>
</ul>
</div> <!-- componentPlaylist -->
<div class="slideshow_controls">
<?php if ($slide_counter > 1) { ?>
<div class="controls_prev"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/backward.png' width='11' height='16' alt='controls_prev'/></div>
<div class="controls_playlist_toggle"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/close.png' width='16' height='16' alt='controls_playlist_toggle'/></div>
<div class="controls_next"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/forward.png' width='11' height='16' alt='controls_next'/></div>
<?php } ?>
<div class="player_share"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/share.png' width='40' height='40' alt=''/></div>
<div id="shareHolder">
<div id="shareHolderInner">
<div id="fb-root"></div>
<div id='fsbbtn'><a href="https://www.facebook.com/" target='_blank'><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/facebook.png' width='20' height='20' alt='facebook'/></a></div>
<div id='twtbtn'><a href="https://www.twitter.com/" target='_blank'><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/twitter.png' width='20' height='20' alt='twitter'/></a></div>
<div id='gpsbtn'><a href="https://plus.google.com/" target='_blank'><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/google_plus.png' width='20' height='20' alt='google'/></a></div>
<div id='mysbtn'><a href="https://myspace.com/" target='_blank'><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/myspace.png' width='20' height='20' alt='google'/></a></div>
</div>
</div>
</div>
</div>
<div id="dedicationFooter_container">
<div class="columns two first text-left">
<h3 id="dedicationArtits"></h3>
<h4 id="dedicationSong"></h4>
</div>
<div class="columns two last">
<div class="controls_fullscreen"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/<?php echo (play_video_on_full_screen()) ? 'fullscreen_exit.png' : 'fullscreen.png'; ?>' width='11' height='16' alt='fullscreen'/></div>
<?php if(function_exists('bp_is_active')) { ?>
<a id="dedicate_this_song_button" href="<?php echo bp_loggedin_user_domain() . bp_get_dedication_slug() ?>/new-dedication/" class="button" title="Dedicate this song">Dedicate this song</a>
<a href="<?php echo bp_loggedin_user_domain() . bp_get_dedication_slug() ?>/new-dedication/" class="button" title="Dedicate a song">Dedicate a song</a>
<?php } ?>
</div>
</div>
</div>
<script type="text/javascript">
function redirect() {
<?php if ( is_user_logged_in() ) { ?>
window.location.href = "<?php echo home_url(); ?>";
<?php } else { ?>
<?php if (play_video_for_registeres_user()) { ?>
window.location.href = "<?php echo home_url(); ?>/login/";
<?php } else { ?>
window.location.href = "<?php echo home_url(); ?>/register/";
<?php } ?>
<?php } ?>
}
</script>
<?php } ?>
<!--End Slider-->
</div>

View File

@ -10,19 +10,16 @@ global $current_user, $bp;
get_currentuserinfo(); get_currentuserinfo();
?> ?>
<?php <?php
if ($_ishome || ( $bp->current_component == BP_DEDICATION_SLUG )) { if ($_ishome || ( $bp->current_component == BP_DEDICATION_SLUG )) {
$posts_per_page = $theme_video_slides; $dedication_orderby = "rand";
$dedication_orderby = "date";
$dedication_order = "DESC";
$category_name = 'dedication'; $category_name = 'dedication';
$post_status = array('publish', 'private'); $post_status = array('publish');
$args = array( $args = array(
'post_type' => array('post'), 'post_type' => array('post'),
'order' => $dedication_order,
'orderby' => $dedication_orderby, 'orderby' => $dedication_orderby,
'posts_per_page' => -1, 'posts_per_page' => -1,
'post_status' => $post_status, 'post_status' => $post_status,
@ -36,10 +33,9 @@ if (is_singular()) {
} }
if (have_posts()) { if (have_posts()) {
$slide_counter = 0;
$urls_video = array();
?> ?>
<div id="the_slider" <?php echo (play_video_on_full_screen()) ? 'class="fullscreen_div"' : ''; ?> > <div id="the_slider" <?php echo (play_video_on_full_screen()) ? 'class="fullscreen_div"' : ''; ?> >
<!--Begin Slider Wrapper--> <!--Begin Slider Wrapper-->
<div id="slider-wrapper"> <div id="slider-wrapper">
@ -62,15 +58,9 @@ if (have_posts()) {
<div class="mediaPreloader"></div> <div class="mediaPreloader"></div>
<div class="componentPlaylist"> <div class="componentPlaylist">
<ul id='playlist'> <ul id='playlist'>
<?php <?php
while (have_posts()) : the_post(); include('loop-dedication-data.php'); while (have_posts()) : the_post(); include('loop-dedication-data.php');
// Si ya hemos visto más de 'posts_per_page' dedicatorias, salgo del buble
if ($slide_counter == $posts_per_page) {
break;
}
$displayed_id = bp_displayed_user_id(); $displayed_id = bp_displayed_user_id();
// Perfil del usuario: sólo mostrar las dedicadas por él y para él. El resto se descartan. // Perfil del usuario: sólo mostrar las dedicadas por él y para él. El resto se descartan.
@ -79,76 +69,29 @@ if (have_posts()) {
continue; // me salto esta dedicatoria continue; // me salto esta dedicatoria
} }
} }
?>
// Página de inicio / página del video: Usuario actual puede ver la dedicatoria? <li id='playlist-element-<?php the_ID(); ?>' data-type='<?php echo $gp_settings['video_type']; ?>' data-path='<?php echo $gp_settings['video_path']; ?>'>
if ($post->post_status == 'private') { <span id="postdata-id-<?php the_ID(); ?>"><?php the_ID(); ?></span>
if (($current_user->ID != $gp_settings['from_user_id']) && ($current_user->ID != $gp_settings['to_user_id'])) { <span id="postdata-title-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
continue; // me salto esta dedicatoria <span id="postdata-artist-<?php the_ID(); ?>"><?php echo $gp_settings['artist_short']; ?></span>
} <span id="postdata-song-<?php the_ID(); ?>"><?php echo $gp_settings['song_short']; ?></span>
} <span id="postdata-link-<?php the_ID(); ?>"><?php the_permalink(); ?></span>
<span id="postdata-extlink-<?php the_ID(); ?>"><?php echo $gp_settings['enc_link']; ?></span>
$video = $gp_settings['video']; <span id="postdata-comments-<?php the_ID(); ?>"></span>
<?php if (($theme_show_new_label) && ($gp_settings['unreaded'])) { ?><span id="postdata-mark-read-<?php the_ID(); ?>"><?php echo mar_read_unread_links('', '', false); ?></span><?php } ?>
if ($_ishome) { <span id="postdata-from-to-<?php the_ID(); ?>">
if ($theme_homepage_not_repeat_videos) { <?php echo $gp_settings['from_flag']; ?><span>FROM: <?php echo $gp_settings['from_user_link']; ?></span>&nbsp;
// Si la URL del video ya ha salido en una dedicatoria anterior, me la salto <?php echo $gp_settings['to_flag']; ?>
if (in_array($video, $urls_video)) { <span>TO: <?php echo $gp_settings['to_user_link']; ?></span>
continue; </span>
} </li>
} <?php break; endwhile; ?>
}
$urls_video[] = $video;
// Video Type
$vimeo = strpos($video, "vimeo.com");
$yt1 = strpos($video, "youtube.com");
$yt2 = strpos($video, "youtu.be");
if (($vimeo) OR ($yt1) OR ($yt2)) {
if ($yt2) { //youtu.be
$video_id = substr(parse_url($video, PHP_URL_PATH), 1);
$data_type = 'youtube_single';
$data_path = 'http://gdata.youtube.com/feeds/api/videos/' . $video_id . '?v=2&amp;alt=jsonc';
}
if ($yt1) { //youtube.com
$video = parse_str(parse_url($video, PHP_URL_QUERY), $my_array_of_vars);
$video_id = $my_array_of_vars['v'];
$data_type = 'youtube_single';
$data_path = 'http://gdata.youtube.com/feeds/api/videos/' . $video_id . '?v=2&amp;alt=jsonc';
}
if ($vimeo) { //vimeo.com
$video_id = substr(parse_url($video, PHP_URL_PATH), 1);
$data_type = 'vimeo_single';
$data_path = 'http://vimeo.com/api/v2/video/' . $video_id . '.json';
}
?>
<li data-type='<?php echo $data_type; ?>' data-path='<?php echo $data_path; ?>'>
<span id="postdata-id-<?php echo $slide_counter; ?>"><?php the_ID(); ?></span>
<span id="postdata-title-<?php echo $slide_counter; ?>"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
<span id="postdata-artist-<?php echo $slide_counter; ?>"><?php echo $gp_settings['artist_short']; ?></span>
<span id="postdata-song-<?php echo $slide_counter; ?>"><?php echo $gp_settings['song_short']; ?></span>
<span id="postdata-link-<?php echo $slide_counter; ?>"><?php the_permalink(); ?></span>
<span id="postdata-extlink-<?php echo $slide_counter; ?>"><?php echo $gp_settings['enc_link']; ?></span>
<span id="postdata-comments-<?php echo $slide_counter; ?>"></span>
<?php if (($theme_show_new_label) && ($gp_settings['unreaded'])) { ?><span id="postdata-mark-read-<?php echo $slide_counter; ?>"><?php echo mar_read_unread_links('', '', false); ?></span><?php } ?>
<span id="postdata-from-to-<?php echo $slide_counter; ?>">
<?php echo $gp_settings['from_flag']; ?><span>FROM: <?php echo $gp_settings['from_user_link']; ?></span>&nbsp;
<?php echo $gp_settings['to_flag']; ?>
<span>TO: <?php echo $gp_settings['to_user_link']; ?></span>
</span>
</li>
<?php } $slide_counter++; ?>
<?php endwhile; ?>
</ul> </ul>
</div> <!-- componentPlaylist --> </div> <!-- componentPlaylist -->
<div class="slideshow_controls"> <div class="slideshow_controls">
<?php if ($slide_counter > 1) { ?>
<div class="controls_prev"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/backward.png' width='11' height='16' alt='controls_prev'/></div> <div class="controls_prev"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/backward.png' width='11' height='16' alt='controls_prev'/></div>
<div class="controls_playlist_toggle"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/close.png' width='16' height='16' alt='controls_playlist_toggle'/></div>
<div class="controls_next"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/forward.png' width='11' height='16' alt='controls_next'/></div>
<?php } ?>
<div class="player_share"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/share.png' width='40' height='40' alt=''/></div> <div class="player_share"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/share.png' width='40' height='40' alt=''/></div>
<div class="controls_next"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/forward.png' width='11' height='16' alt='controls_next'/></div>
<div id="shareHolder"> <div id="shareHolder">
<div id="shareHolderInner"> <div id="shareHolderInner">
@ -176,7 +119,7 @@ if (have_posts()) {
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
function redirect() { function redirect() {
<?php if ( is_user_logged_in() ) { ?> <?php if ( is_user_logged_in() ) { ?>
@ -190,7 +133,6 @@ if (have_posts()) {
<?php } ?> <?php } ?>
} }
</script> </script>
<?php } ?> <?php } ?>
<!--End Slider--> <!--End Slider-->
</div> </div>