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' => -1, 'post_status' => $post_status, 'category_name' => $category_name, ); query_posts($args); } if (is_singular()) { // } if (have_posts()) { $slide_counter = 0; $urls_video = array(); ?>

    ID, 'ghostpool_destination_user_id', true); $to_user = get_user_by('id', $to_user_id); $to_user_email = get_post_meta($post->ID, 'ghostpool_destination_user_email', true);*/ $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 = get_post_meta($post->ID, 'ghostpool_dedication_url', true); $artist = get_post_meta($post->ID, 'ghostpool_dedication_artist', true); $song = get_post_meta($post->ID, 'ghostpool_dedication_song', true);*/ $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&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&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'; } ?>
  • FROM:   TO:
1) { ?>
controls_prev
controls_playlist_toggle
controls_next
facebook
twitter
google