2012-07-11 16:28:51 +00:00
|
|
|
<!--Begin Slider-->
|
|
|
|
|
<?php
|
|
|
|
|
|
2012-07-17 16:19:40 +00:00
|
|
|
require(ghostpool_inc . 'options.php');
|
|
|
|
|
|
2012-07-25 16:20:32 +00:00
|
|
|
$_ishome = (is_home() OR is_front_page());
|
|
|
|
|
|
|
|
|
|
global $gp_settings;
|
2012-07-19 11:32:53 +00:00
|
|
|
global $current_user, $bp;
|
2012-07-11 16:28:51 +00:00
|
|
|
get_currentuserinfo();
|
|
|
|
|
|
2012-07-25 16:20:32 +00:00
|
|
|
?>
|
2012-08-31 13:56:31 +00:00
|
|
|
|
2012-07-25 16:20:32 +00:00
|
|
|
<?php
|
|
|
|
|
|
2012-07-26 17:33:26 +00:00
|
|
|
if ($_ishome || ( $bp->current_component == BP_DEDICATION_SLUG )) {
|
2012-08-31 13:56:31 +00:00
|
|
|
$dedication_orderby = "rand";
|
2012-07-11 16:28:51 +00:00
|
|
|
$category_name = 'dedication';
|
2012-08-31 13:56:31 +00:00
|
|
|
$post_status = array('publish');
|
2012-07-11 16:28:51 +00:00
|
|
|
|
|
|
|
|
$args = array(
|
|
|
|
|
'post_type' => array('post'),
|
|
|
|
|
'orderby' => $dedication_orderby,
|
2012-07-17 16:19:40 +00:00
|
|
|
'posts_per_page' => -1,
|
2012-07-11 16:28:51 +00:00
|
|
|
'post_status' => $post_status,
|
|
|
|
|
'category_name' => $category_name,
|
|
|
|
|
);
|
2012-07-19 11:32:53 +00:00
|
|
|
query_posts($args);
|
|
|
|
|
}
|
2012-07-11 16:28:51 +00:00
|
|
|
|
2012-07-19 11:32:53 +00:00
|
|
|
if (is_singular()) {
|
|
|
|
|
//
|
|
|
|
|
}
|
2012-07-11 16:28:51 +00:00
|
|
|
|
|
|
|
|
if (have_posts()) {
|
2012-08-07 16:14:27 +00:00
|
|
|
|
2012-08-31 13:56:31 +00:00
|
|
|
?>
|
|
|
|
|
|
2012-08-07 16:14:27 +00:00
|
|
|
<div id="the_slider" <?php echo (play_video_on_full_screen()) ? 'class="fullscreen_div"' : ''; ?> >
|
2012-07-11 16:28:51 +00:00
|
|
|
<!--Begin Slider Wrapper-->
|
|
|
|
|
<div id="slider-wrapper">
|
2012-08-29 15:26:35 +00:00
|
|
|
<?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 } ?>
|
2012-08-06 11:56:42 +00:00
|
|
|
<div id="dedicationTitle_container">
|
|
|
|
|
<div id="dedicationTitle-data-panel"></div>
|
|
|
|
|
<h2 id="dedicationTitle"></h2>
|
|
|
|
|
</div>
|
2012-07-11 16:28:51 +00:00
|
|
|
<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>
|
2012-08-03 16:41:02 +00:00
|
|
|
<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>
|
2012-07-11 16:28:51 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="mediaPreloader"></div>
|
|
|
|
|
<div class="componentPlaylist">
|
|
|
|
|
<ul id='playlist'>
|
|
|
|
|
<?php
|
2012-07-26 17:33:26 +00:00
|
|
|
while (have_posts()) : the_post(); include('loop-dedication-data.php');
|
2012-07-11 16:28:51 +00:00
|
|
|
|
2012-07-18 14:35:38 +00:00
|
|
|
$displayed_id = bp_displayed_user_id();
|
|
|
|
|
|
2012-07-26 17:33:26 +00:00
|
|
|
// 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'])) {
|
2012-07-16 15:58:15 +00:00
|
|
|
continue; // me salto esta dedicatoria
|
|
|
|
|
}
|
|
|
|
|
}
|
2012-08-31 13:56:31 +00:00
|
|
|
?>
|
|
|
|
|
<li id='playlist-element-<?php the_ID(); ?>' data-type='<?php echo $gp_settings['video_type']; ?>' data-path='<?php echo $gp_settings['video_path']; ?>'>
|
|
|
|
|
<span id="postdata-id-<?php the_ID(); ?>"><?php the_ID(); ?></span>
|
|
|
|
|
<span id="postdata-title-<?php the_ID(); ?>"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
|
|
|
|
|
<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>
|
|
|
|
|
<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 } ?>
|
|
|
|
|
<span id="postdata-from-to-<?php the_ID(); ?>">
|
|
|
|
|
<?php echo $gp_settings['from_flag']; ?><span>FROM: <?php echo $gp_settings['from_user_link']; ?></span>
|
|
|
|
|
<?php echo $gp_settings['to_flag']; ?>
|
|
|
|
|
<span>TO: <?php echo $gp_settings['to_user_link']; ?></span>
|
|
|
|
|
</span>
|
|
|
|
|
</li>
|
|
|
|
|
<?php break; endwhile; ?>
|
2012-07-11 16:28:51 +00:00
|
|
|
</ul>
|
|
|
|
|
</div> <!-- componentPlaylist -->
|
|
|
|
|
<div class="slideshow_controls">
|
|
|
|
|
<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="player_share"><img src='<?php echo get_template_directory_uri(); ?>/lib/scripts/videoslider/data/icons/share.png' width='40' height='40' alt=''/></div>
|
2012-08-31 13:56:31 +00:00
|
|
|
<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>
|
2012-07-11 16:28:51 +00:00
|
|
|
|
|
|
|
|
<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>
|
2012-08-03 16:41:02 +00:00
|
|
|
<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>
|
2012-07-11 16:28:51 +00:00
|
|
|
</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">
|
2012-08-24 15:59:23 +00:00
|
|
|
<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>
|
2012-07-16 15:58:15 +00:00
|
|
|
<?php if(function_exists('bp_is_active')) { ?>
|
2012-07-26 10:17:11 +00:00
|
|
|
<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>
|
2012-07-13 15:46:22 +00:00
|
|
|
<?php } ?>
|
2012-07-11 16:28:51 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2012-08-31 13:56:31 +00:00
|
|
|
|
2012-07-11 16:28:51 +00:00
|
|
|
<script type="text/javascript">
|
2012-08-07 18:17:15 +00:00
|
|
|
function redirect() {
|
|
|
|
|
<?php if ( is_user_logged_in() ) { ?>
|
|
|
|
|
window.location.href = "<?php echo home_url(); ?>";
|
|
|
|
|
<?php } else { ?>
|
2012-08-27 17:15:29 +00:00
|
|
|
<?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 } ?>
|
2012-08-07 18:17:15 +00:00
|
|
|
<?php } ?>
|
2012-07-11 16:28:51 +00:00
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<!--End Slider-->
|
2012-08-06 11:56:42 +00:00
|
|
|
</div>
|