diff --git a/wp-content/plugins/bp-dedication/functions.php b/wp-content/plugins/bp-dedication/functions.php
index fa97e69..40dc663 100644
--- a/wp-content/plugins/bp-dedication/functions.php
+++ b/wp-content/plugins/bp-dedication/functions.php
@@ -18,7 +18,7 @@ function bp_dedication_get_dedications_from_user( $user_id ) {
$args = array(
'post_status' => array('publish', 'private'),
- 'numberposts' => -1,
+ 'numberposts' => 10,
'category' => get_cat_id('dedication'),
'author' => $user_id
);
@@ -33,7 +33,7 @@ function bp_dedication_get_dedications_to_user( $user_id ) {
$args = array(
'post_status' => array('publish', 'private'),
- 'numberposts' => -1,
+ 'numberposts' => 10,
'category' => 'dedication',
'meta_key' => 'ghostpool_destination_user_id',
'meta_value' => $user_id
diff --git a/wp-content/themes/score/dedications/single/home-column-dedicated-2-me.php b/wp-content/themes/score/dedications/single/home-column-dedicated-2-me.php
index 6a9a63c..2fa22bd 100644
--- a/wp-content/themes/score/dedications/single/home-column-dedicated-2-me.php
+++ b/wp-content/themes/score/dedications/single/home-column-dedicated-2-me.php
@@ -1,57 +1,58 @@
-displayed_user->id);
-$count = 0;
-$dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) . $bp->dedications->slug . '/dedicated-2u/page/2/';
-?>
-
- 10) {?>
- »
-
-
-
-
-
-
-
-
-
- >
-
-
-
thumbnail-no-wrap">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+displayed_user->id);
+$count = 0;
+$dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) . $bp->dedications->slug . '/dedicated-2u/page/2/';
+?>
+
+ 10) {?>
+ »
+
+
+
+
+
+
+
+
+
+ >
+
+
+
thumbnail-no-wrap">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/wp-content/themes/score/dedications/single/home-column-my-dedications.php b/wp-content/themes/score/dedications/single/home-column-my-dedications.php
index 7644f4d..89695b0 100644
--- a/wp-content/themes/score/dedications/single/home-column-my-dedications.php
+++ b/wp-content/themes/score/dedications/single/home-column-my-dedications.php
@@ -1,56 +1,57 @@
-displayed_user->id);
-$count = 0;
-$dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) . $bp->dedications->slug . '/my-dedications/page/2/';
-?>
-
- 10) {?>
- »
-
-
-
-
-
-
-
-
-
- >
-
-
-
thumbnail-no-wrap">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+displayed_user->id);
+$count = 0;
+$dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) . $bp->dedications->slug . '/my-dedications/page/2/';
+?>
+
+ 10) {?>
+ »
+
+
+
+
+
+
+
+
+
+ >
+
+
+
thumbnail-no-wrap">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/wp-content/themes/score/index.php b/wp-content/themes/score/index.php
index 78fa356..b78975b 100644
--- a/wp-content/themes/score/index.php
+++ b/wp-content/themes/score/index.php
@@ -1,123 +1,85 @@
-
-
- $gp_settings['cats'],
- "ignore_sticky_posts" => 1,
- "orderby" => $orderby,
- "order" => $order,
- "paged" => $paged,
- "posts_per_page" => -1
-);
-
-query_posts($args);
-$urls_video = array();
-$ids_descartados = array();
-
-if (have_posts()) :
- while (have_posts()) :
- the_post();
- include('loop-dedication-data.php');
-
- // 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'])) {
- $ids_descartados[] = $post->ID;
- }
- }
-
- if ($theme_homepage_not_repeat_videos) {
- // Si la URL del video ya ha salido en una dedicatoria anterior, me la salto
- if (in_array($gp_settings['video'], $urls_video)) {
- $ids_descartados[] = $post->ID;
- }
- }
-
- $urls_video[] = $gp_settings['video'];
- endwhile;
-endif;*/
-$orderby = 'rand';
-$args = array(
- "cat" => $gp_settings['cats'],
- "ignore_sticky_posts" => 1,
- "orderby" => $orderby,
- "order" => $order,
- "paged" => $paged,
- "posts_per_page" => $gp_settings['posts_per_page'],
- //"post__not_in" => $ids_descartados
-);
-
-query_posts($args);
-?>
-
- class="shift-down">
-
-
-
-
-
-
-
-
>
-
-
-
thumbnail-no-wrap">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ $gp_settings['cats'],
+ "ignore_sticky_posts" => 1,
+ "orderby" => $orderby,
+ "order" => $order,
+ "paged" => $paged,
+ "posts_per_page" => $gp_settings['posts_per_page'],
+ //"post__not_in" => $ids_descartados
+);
+
+query_posts($args);
+?>
+
+ class="shift-down">
+
+
+
+
+
+
+
+
>
+
+
+
thumbnail-no-wrap">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/score/lib/inc/fetch-video-data.php b/wp-content/themes/score/lib/inc/fetch-video-data.php
index e230973..b15d92a 100644
--- a/wp-content/themes/score/lib/inc/fetch-video-data.php
+++ b/wp-content/themes/score/lib/inc/fetch-video-data.php
@@ -1,128 +1,131 @@
- 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;
- get_currentuserinfo();
-
- $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;
-
- $listavideos = new WP_Query($args);
- while ($listavideos->have_posts()) {
- $listavideos->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'] .= 'FROM: ' . $gp_settings['from_user_link'] . ' ';
- $array[$i]['from_to_text'] .= $gp_settings['to_flag'];
- $array[$i]['from_to_text'] .= 'TO: ' . $gp_settings['to_user_link'] . '';
-
- $i++;
-
- break;
- }
- wp_reset_postdata();
-
- $salida = '';
- foreach($array as $video) {
- $salida .= '';
- $salida .= '' . $video['id'] . '';
- $salida .= '' . $video['title']. '';
- $salida .= '' . $video['artist']. '';
- $salida .= '' . $video['song']. '';
- $salida .= '' . $video['permalink']. '';
- $salida .= '' . $video['extlink']. '';
- $salida .= '';
-
- if ($video['unreaded']) {
- $salida .= '';
- $salida .= mar_read_unread_links('', '', false);
- $salida .= '';
- }
- $salida .= '';
- $salida .= $video['from_to_text'];
- $salida .= '';
-
- $salida .= '';
- }
-
- 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');
-
-?>
+ 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;
+ get_currentuserinfo();
+
+ $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' => 10,
+ 'post_status' => $post_status,
+ 'category_name' => $category_name,
+ );
+ }
+ $array = array();
+ $i = 0;
+
+ $listavideos = new WP_Query($args);
+
+ while ($listavideos->have_posts()) {
+ $listavideos->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'] .= 'FROM: ' . $gp_settings['from_user_link'] . ' ';
+ $array[$i]['from_to_text'] .= $gp_settings['to_flag'];
+ $array[$i]['from_to_text'] .= 'TO: ' . $gp_settings['to_user_link'] . '';
+
+ $i++;
+
+ break;
+ }
+ wp_reset_postdata();
+ $listavideos = NULL;
+
+ $salida = '';
+ foreach($array as $video) {
+ $salida .= '';
+ $salida .= '' . $video['id'] . '';
+ $salida .= '' . $video['title']. '';
+ $salida .= '' . $video['artist']. '';
+ $salida .= '' . $video['song']. '';
+ $salida .= '' . $video['permalink']. '';
+ $salida .= '' . $video['extlink']. '';
+ $salida .= '';
+
+ if ($video['unreaded']) {
+ $salida .= '';
+ $salida .= mar_read_unread_links('', '', false);
+ $salida .= '';
+ }
+ $salida .= '';
+ $salida .= $video['from_to_text'];
+ $salida .= '';
+
+ $salida .= '';
+ }
+ $array = NULL;
+
+ 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');
+
+?>
diff --git a/wp-content/themes/score/loop-dedication-data.php b/wp-content/themes/score/loop-dedication-data.php
index 65c52d7..0c547a6 100644
--- a/wp-content/themes/score/loop-dedication-data.php
+++ b/wp-content/themes/score/loop-dedication-data.php
@@ -1,102 +1,103 @@
-ID, 'ghostpool_post_type', true);
-
-// Image Dimensions
-if(get_post_meta($post->ID, 'ghostpool_thumbnail_width', true) && get_post_meta($post->ID, 'ghostpool_thumbnail_width', true)) {
- $gp_settings['image_width'] = get_post_meta($post->ID, 'ghostpool_thumbnail_width', true);
-} else {
- $gp_settings['image_width'] = $gp_settings['thumbnail_width'];
-}
-if(get_post_meta($post->ID, 'ghostpool_thumbnail_height', true) && get_post_meta($post->ID, 'ghostpool_thumbnail_height', true)) {
- $gp_settings['image_height'] = get_post_meta($post->ID, 'ghostpool_thumbnail_height', true);
-} else {
- $gp_settings['image_height'] = $gp_settings['thumbnail_height'];
-}
-
-$gp_settings['enc_link'] = add_query_arg('refid', bp_dedication_encode(get_permalink()), get_option('siteurl') . '/index.php');
-
-// Song data
-$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&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&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_short'] = cutstr($gp_settings['artist'], 47, '...');
-$gp_settings['song'] = get_post_meta($post->ID, 'ghostpool_dedication_song', true);
-$gp_settings['song_short'] = cutstr($gp_settings['song'], 47, '...');
-$gp_settings['artist_song'] = $gp_settings['artist'] . '. ' . $gp_settings['song'];
-$gp_settings['artist_song_span'] = '' . $gp_settings['artist'] . '. ' . $gp_settings['song'];
-$gp_settings['artist_song_span_short'] = cutstr($gp_settings['artist_song_span'], 38, '');
-if ($gp_settings['artist_song_span_short'] != $gp_settings['artist_song_span']) {
- $gp_settings['artist_song_span_short'] .= '...';
-}
-
-// from user
-$gp_settings['from_user_id'] = get_the_author_meta('ID');
-$gp_settings['from_user_link'] = ''.bp_core_get_username($gp_settings['from_user_id']).'';
- //bp_core_get_userlink($gp_settings['from_user_id']);
-$gp_settings['from_flag'] = gp_get_the_flag($gp_settings['from_user_id']);
-
-if ($gp_settings['from_user_id'] == mar_get_user_id()) :
- $mark_as_read = mar_add_to_usermeta($post->ID);
- $update_count = mar_increase_count($post->ID);
-endif;
-
-$read_posts = gp_get_unread_dedications( mar_get_user_id() );
-$gp_settings['unreaded'] = (in_array($post->ID, $read_posts));
-
-// to user
-$gp_settings['to_user_id'] = get_post_meta($post->ID, 'ghostpool_destination_user_id', true);
-$gp_settings['to_user_email'] = get_post_meta($post->ID, 'ghostpool_destination_user_email', true);
-$gp_settings['to_user_name'] = get_post_meta($post->ID, 'ghostpool_destination_user_name', true);
-$gp_settings['to_user_country'] = get_post_meta($post->ID, 'ghostpool_destination_user_country', true);
-$gp_settings['to_user'] = get_userdata($gp_settings['to_user_id']);
-
-
-if ($gp_settings['to_user']) {
- $gp_settings['to_flag'] = gp_get_the_flag($gp_settings['to_user']->ID, 32);
- $gp_settings['to_user_name'] = bp_core_get_username($gp_settings['to_user']->ID);
- $gp_settings['to_user_link'] = ''.$gp_settings['to_user_name'].'';
- //bp_core_get_userlink($gp_settings['to_user']->ID);
-} else {
- $gp_settings['to_flag'] = gp_get_flag_img_country($gp_settings['to_user_country'], 32);
- $gp_settings['to_user_link'] = $gp_settings['to_user_name'];
-}
-
-// Post Text Width
-if(!has_post_thumbnail() OR $gp_settings['image_wrap'] == "Disable") {
- $gp_settings['post_text_width'] = $gp_settings['content_width'];
-} else {
- $gp_settings['post_text_width'] = $gp_settings['content_width'] - $gp_settings['image_width'] - 17;
-}
-
-// Post Left Width
-if($gp_settings['post_type'] == "Review" && $gp_settings['review_date_column'] == "0" && (($gp_settings['score_type'] == "Site Score" && $gp_settings['gp_gdsr']->review > 0) OR ($gp_settings['score_type'] == "User Score" && $gp_settings['user_voting'] != "Users cannot vote") OR ($gp_settings['score_type'] == "Site & User Score" && ($gp_settings['gp_gdsr']->review > 0 OR $gp_settings['user_voting'] != "Users cannot vote")))) {
- $gp_settings['post_left_width'] = $gp_settings['post_text_width'] - 190;
-} elseif($gp_settings['post_type'] == "Review" && $gp_settings['review_date_column'] == "1" && (($gp_settings['score_type'] == "Site Score" && $gp_settings['gp_gdsr']->review > 0) OR ($gp_settings['score_type'] == "User Score" && $gp_settings['user_voting'] != "Users cannot vote") OR ($gp_settings['score_type'] == "Site & User Score" && ($gp_settings['gp_gdsr']->review > 0 OR $gp_settings['user_voting'] != "Users cannot vote")))) {
- $gp_settings['post_left_width'] = $gp_settings['post_text_width'] - 95;
-} else {
- $gp_settings['post_left_width'] = $gp_settings['post_text_width'];
-}
-
-?>
+ID, 'ghostpool_post_type', true);
+
+// Image Dimensions
+if(get_post_meta($post->ID, 'ghostpool_thumbnail_width', true) && get_post_meta($post->ID, 'ghostpool_thumbnail_width', true)) {
+ $gp_settings['image_width'] = get_post_meta($post->ID, 'ghostpool_thumbnail_width', true);
+} else {
+ $gp_settings['image_width'] = $gp_settings['thumbnail_width'];
+}
+if(get_post_meta($post->ID, 'ghostpool_thumbnail_height', true) && get_post_meta($post->ID, 'ghostpool_thumbnail_height', true)) {
+ $gp_settings['image_height'] = get_post_meta($post->ID, 'ghostpool_thumbnail_height', true);
+} else {
+ $gp_settings['image_height'] = $gp_settings['thumbnail_height'];
+}
+
+$gp_settings['enc_link'] = add_query_arg('refid', bp_dedication_encode(get_permalink()), get_option('siteurl') . '/index.php');
+
+// Song data
+$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&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&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_short'] = cutstr($gp_settings['artist'], 47, '...');
+$gp_settings['song'] = get_post_meta($post->ID, 'ghostpool_dedication_song', true);
+$gp_settings['song_short'] = cutstr($gp_settings['song'], 47, '...');
+$gp_settings['artist_song'] = $gp_settings['artist'] . '. ' . $gp_settings['song'];
+$gp_settings['artist_song_span'] = '' . $gp_settings['artist'] . '. ' . $gp_settings['song'];
+$gp_settings['artist_song_span_short'] = cutstr($gp_settings['artist_song_span'], 38, '');
+if ($gp_settings['artist_song_span_short'] != $gp_settings['artist_song_span']) {
+ $gp_settings['artist_song_span_short'] .= '...';
+}
+
+// from user
+$gp_settings['from_user_id'] = get_the_author_meta('ID');
+$gp_settings['from_user_link'] = ''.bp_core_get_username($gp_settings['from_user_id']).'';
+ //bp_core_get_userlink($gp_settings['from_user_id']);
+$gp_settings['from_flag'] = gp_get_the_flag($gp_settings['from_user_id']);
+
+if ($gp_settings['from_user_id'] == mar_get_user_id()) :
+ $mark_as_read = mar_add_to_usermeta($post->ID);
+ $update_count = mar_increase_count($post->ID);
+endif;
+
+$read_posts = gp_get_unread_dedications( mar_get_user_id() );
+$gp_settings['unreaded'] = (in_array($post->ID, $read_posts));
+$read_posts = NULL;
+
+// to user
+$gp_settings['to_user_id'] = get_post_meta($post->ID, 'ghostpool_destination_user_id', true);
+$gp_settings['to_user_email'] = get_post_meta($post->ID, 'ghostpool_destination_user_email', true);
+$gp_settings['to_user_name'] = get_post_meta($post->ID, 'ghostpool_destination_user_name', true);
+$gp_settings['to_user_country'] = get_post_meta($post->ID, 'ghostpool_destination_user_country', true);
+$gp_settings['to_user'] = get_userdata($gp_settings['to_user_id']);
+
+
+if ($gp_settings['to_user']) {
+ $gp_settings['to_flag'] = gp_get_the_flag($gp_settings['to_user']->ID, 32);
+ $gp_settings['to_user_name'] = bp_core_get_username($gp_settings['to_user']->ID);
+ $gp_settings['to_user_link'] = ''.$gp_settings['to_user_name'].'';
+ //bp_core_get_userlink($gp_settings['to_user']->ID);
+} else {
+ $gp_settings['to_flag'] = gp_get_flag_img_country($gp_settings['to_user_country'], 32);
+ $gp_settings['to_user_link'] = $gp_settings['to_user_name'];
+}
+
+// Post Text Width
+if(!has_post_thumbnail() OR $gp_settings['image_wrap'] == "Disable") {
+ $gp_settings['post_text_width'] = $gp_settings['content_width'];
+} else {
+ $gp_settings['post_text_width'] = $gp_settings['content_width'] - $gp_settings['image_width'] - 17;
+}
+
+// Post Left Width
+if($gp_settings['post_type'] == "Review" && $gp_settings['review_date_column'] == "0" && (($gp_settings['score_type'] == "Site Score" && $gp_settings['gp_gdsr']->review > 0) OR ($gp_settings['score_type'] == "User Score" && $gp_settings['user_voting'] != "Users cannot vote") OR ($gp_settings['score_type'] == "Site & User Score" && ($gp_settings['gp_gdsr']->review > 0 OR $gp_settings['user_voting'] != "Users cannot vote")))) {
+ $gp_settings['post_left_width'] = $gp_settings['post_text_width'] - 190;
+} elseif($gp_settings['post_type'] == "Review" && $gp_settings['review_date_column'] == "1" && (($gp_settings['score_type'] == "Site Score" && $gp_settings['gp_gdsr']->review > 0) OR ($gp_settings['score_type'] == "User Score" && $gp_settings['user_voting'] != "Users cannot vote") OR ($gp_settings['score_type'] == "Site & User Score" && ($gp_settings['gp_gdsr']->review > 0 OR $gp_settings['user_voting'] != "Users cannot vote")))) {
+ $gp_settings['post_left_width'] = $gp_settings['post_text_width'] - 95;
+} else {
+ $gp_settings['post_left_width'] = $gp_settings['post_text_width'];
+}
+
+?>