diff --git a/wp-content/themes/score/dedications/single/dedicated-2-me.php b/wp-content/themes/score/dedications/single/dedicated-2-me.php index 371870f..3be4ac3 100644 --- a/wp-content/themes/score/dedications/single/dedicated-2-me.php +++ b/wp-content/themes/score/dedications/single/dedicated-2-me.php @@ -22,4 +22,5 @@ $gp_settings['thumbnail_height'] = $theme_cat_thumbnail_height; include(dirname(__FILE__).'/../../post-loop-dedication-template.php'); +wp_reset_postdata(); ?> diff --git a/wp-content/themes/score/dedications/single/my-dedications.php b/wp-content/themes/score/dedications/single/my-dedications.php index 9a1bfb1..cba7c6b 100644 --- a/wp-content/themes/score/dedications/single/my-dedications.php +++ b/wp-content/themes/score/dedications/single/my-dedications.php @@ -3,7 +3,7 @@ global $bp, $post, $gp_settings, $paged; require(ghostpool_inc . 'options.php'); $user_id = $bp->displayed_user->id; - + $args = $GLOBALS['wp_query']->query; $args['ignore_sticky_posts'] = 1; $args['orderby'] = $orderby; @@ -16,11 +16,10 @@ $args['author'] = $user_id; query_posts($args); -_log($args); - $gp_settings['thumbnail_width'] = $theme_cat_thumbnail_width; $gp_settings['thumbnail_height'] = $theme_cat_thumbnail_height; include(dirname(__FILE__).'/../../post-loop-dedication-template.php'); +wp_reset_postdata(); ?> diff --git a/wp-content/themes/score/lib/scripts/custom.php b/wp-content/themes/score/lib/scripts/custom.php index cad695b..2bbefa5 100644 --- a/wp-content/themes/score/lib/scripts/custom.php +++ b/wp-content/themes/score/lib/scripts/custom.php @@ -48,10 +48,10 @@ jQuery(document).ready(function(){ }); }); - jQuery('.my-account .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){ e.preventDefault(); link = jQuery(this).attr('href'); - jQuery('.my-account .dedication-profile .home_column_my_dedications a.read-more').remove(); + jQuery('.dedication-profile .home_column_my_dedications a.read-more').remove(); jQuery.get(link, function(data) { var kids = jQuery(data).find('#content').children(); @@ -60,16 +60,16 @@ jQuery(document).ready(function(){ jQuery(this).removeClass(); jQuery(this).addClass('home-my-dedications post-loop'); } - jQuery('.my-account .dedication-profile .home_column_my_dedications').append(jQuery(this)); + jQuery('.dedication-profile .home_column_my_dedications').append(jQuery(this)); }); }); }); - jQuery('.my-account .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){ e.preventDefault(); link = jQuery(this).attr('href'); - jQuery('.my-account .dedication-profile .home_column_dedicated_2_me a.read-more').remove(); + jQuery('.dedication-profile .home_column_dedicated_2_me a.read-more').remove(); jQuery.get(link, function(data) { var kids = jQuery(data).find('#content').children(); @@ -78,7 +78,7 @@ jQuery(document).ready(function(){ jQuery(this).removeClass(); jQuery(this).addClass('home-dedicated-2-me post-loop'); } - jQuery('.my-account .dedication-profile .home_column_dedicated_2_me').append(jQuery(this)); + jQuery('.dedication-profile .home_column_dedicated_2_me').append(jQuery(this)); }); }); }); diff --git a/wp-content/themes/score/post-loop-dedication-template.php b/wp-content/themes/score/post-loop-dedication-template.php new file mode 100644 index 0000000..4e5be7d --- /dev/null +++ b/wp-content/themes/score/post-loop-dedication-template.php @@ -0,0 +1,50 @@ +
shift-down"> + + + + post_status == 'private') { + if (($displayed_id != $gp_settings['from_user_id']) && ($displayed_id != $gp_settings['to_user_id'])) { + continue; // me salto esta dedicatoria + } + } + + ?> +
> + + + +
thumbnail-no-wrap"> + + + <?php if(get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true); } else { echo get_the_title(); } ?> + +
+ + + + +
+

+ FROM:   + TO: +
+ +
+ + + + + + + + + +

+ + + +
\ No newline at end of file