+
diff --git a/wp-content/themes/score/dedications/single/my-dedications.php b/wp-content/themes/score/dedications/single/my-dedications.php
index 56cfab7..9a1bfb1 100644
--- a/wp-content/themes/score/dedications/single/my-dedications.php
+++ b/wp-content/themes/score/dedications/single/my-dedications.php
@@ -1,45 +1,26 @@
displayed_user->id);
+
+$user_id = $bp->displayed_user->id;
+
+$args = $GLOBALS['wp_query']->query;
+$args['ignore_sticky_posts'] = 1;
+$args['orderby'] = $orderby;
+$args['order'] = $order;
+$args['paged'] = $paged;
+$args['post_status'] = $post_status;
+$args['posts_per_page'] = 3; //$gp_settings['posts_per_page'];
+$args['category'] = get_cat_id('dedication');
+$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');
+
?>
-
-
-
-
-
-
-
-
-
-
>
-
-
-
thumbnail-no-wrap">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/wp-content/themes/score/functions.php b/wp-content/themes/score/functions.php
index 15dfeb9..a2be739 100644
--- a/wp-content/themes/score/functions.php
+++ b/wp-content/themes/score/functions.php
@@ -717,8 +717,6 @@ function asociate_dedications_to_new_user($user_id) {
$category_name = 'dedication';
$post_status = array('publish', 'private');
- _log('Email del usuario => ' . $user->user_email);
-
$args = array(
'post_type' => array('post'),
'posts_per_page' => -1,
diff --git a/wp-content/themes/score/lib/scripts/custom.php b/wp-content/themes/score/lib/scripts/custom.php
index ee8852d..cad695b 100644
--- a/wp-content/themes/score/lib/scripts/custom.php
+++ b/wp-content/themes/score/lib/scripts/custom.php
@@ -47,6 +47,42 @@ jQuery(document).ready(function(){
});
});
});
+
+ jQuery('.my-account .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.get(link, function(data) {
+ var kids = jQuery(data).find('#content').children();
+ jQuery.each(kids, function(){
+ if (jQuery(this).hasClass('post-loop')) {
+ jQuery(this).removeClass();
+ jQuery(this).addClass('home-my-dedications post-loop');
+ }
+ jQuery('.my-account .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){
+ e.preventDefault();
+ link = jQuery(this).attr('href');
+ jQuery('.my-account .dedication-profile .home_column_dedicated_2_me a.read-more').remove();
+
+ jQuery.get(link, function(data) {
+ var kids = jQuery(data).find('#content').children();
+ jQuery.each(kids, function(){
+ if (jQuery(this).hasClass('post-loop')) {
+ 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));
+ });
+ });
+ });
+
});
var aIndex=-1;
diff --git a/wp-content/themes/score/post-loop-dedication.php b/wp-content/themes/score/post-loop-dedication.php
index d1c8138..421703a 100644
--- a/wp-content/themes/score/post-loop-dedication.php
+++ b/wp-content/themes/score/post-loop-dedication.php
@@ -19,7 +19,7 @@
query;
- $args['caller_get_posts'] = 1;
+ $args['ignore_sticky_posts'] = 1;
$args['orderby'] = $orderby;
$args['order'] = $order;
$args['gdsr_sort'] = $gdsr_sort;
@@ -31,55 +31,4 @@
-
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
- }
- }
-
- $contador += 1;
-
- ?>
-
>
-
-
-
-
thumbnail-no-wrap">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file