Tarea #996 -> Cargar de 10 en 10 las dedicatorias del perfil
Tarea #995 -> Ajustar el texto del artista y la canción con unos puntos suspensivos cuando sean largos git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@105 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
parent
e01ca0713f
commit
3f52cccce5
@ -10,7 +10,7 @@ $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['posts_per_page'] = 10; //$gp_settings['posts_per_page'];
|
||||
$args['category'] = get_cat_id('dedication');
|
||||
$args['meta_key'] = 'ghostpool_destination_user_id';
|
||||
$args['meta_value'] = $user_id;
|
||||
|
||||
@ -8,7 +8,7 @@ $dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) .
|
||||
<h4><?php _e('Dedicatited 2 me'); ?></h4>
|
||||
<?php foreach ($from_dedications as $post) :
|
||||
$count++;
|
||||
if ($count > 3) {?>
|
||||
if ($count > 10) {?>
|
||||
<a href="<?php echo $dedication_link; ?>" class="read-more" title="<?php _e('See More', 'gp_lang'); ?>"><?php _e('See More', 'gp_lang'); ?> »</a>
|
||||
<?php break; } ?>
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ $dedication_link = bp_core_get_userlink($bp->displayed_user->id, false, true) .
|
||||
<h4><?php _e('My dedications'); ?></h4>
|
||||
<?php foreach ($from_dedications as $post) :
|
||||
$count++;
|
||||
if ($count > 3) {?>
|
||||
if ($count > 10) {?>
|
||||
<a href="<?php echo $dedication_link; ?>" class="read-more" title="<?php _e('See More', 'gp_lang'); ?>"><?php _e('See More', 'gp_lang'); ?> »</a>
|
||||
<?php break; } ?>
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ $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['posts_per_page'] = 10; //$gp_settings['posts_per_page'];
|
||||
$args['category'] = get_cat_id('dedication');
|
||||
$args['author'] = $user_id;
|
||||
|
||||
|
||||
@ -20,7 +20,9 @@ if(get_post_meta($post->ID, 'ghostpool_thumbnail_height', true) && get_post_meta
|
||||
// Song data
|
||||
$gp_settings['video'] = get_post_meta($post->ID, 'ghostpool_dedication_url', true);
|
||||
$gp_settings['artist'] = get_post_meta($post->ID, 'ghostpool_dedication_artist', true);
|
||||
$gp_settings['artist_short'] = cutstr($gp_settings['artist'], 80, '...');
|
||||
$gp_settings['song'] = get_post_meta($post->ID, 'ghostpool_dedication_song', true);
|
||||
$gp_settings['song_short'] = cutstr($gp_settings['song'], 80, '...');
|
||||
$gp_settings['artist_song'] = $gp_settings['artist'] . '. ' . $gp_settings['song'];
|
||||
$gp_settings['artist_song_span'] = '<span>' . $gp_settings['artist'] . '</span>. ' . $gp_settings['song'];
|
||||
$gp_settings['artist_song_span_short'] = cutstr($gp_settings['artist_song_span'], 38, '');
|
||||
|
||||
@ -353,12 +353,12 @@ ul.navmenu li a.logout:hover {
|
||||
#dedicationFooter_container .button {
|
||||
float: right;
|
||||
margin-left: 5px;
|
||||
margin-top: 48px;
|
||||
margin-top: 40px;
|
||||
width: 193px;
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
padding: 3px 0;
|
||||
line-height: 19px;
|
||||
font-weight: 800;
|
||||
padding: 6px 0;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
#dedicationFooter_container h3 {
|
||||
@ -956,23 +956,17 @@ input[type="submit"], input[type="reset"], input[type="button"], button,
|
||||
.bp-wrapper #content-wrapper .activity-meta a:hover span,
|
||||
a.button {
|
||||
font-size: 13px;
|
||||
font-weight: bold;
|
||||
line-height: 19px;
|
||||
font-weight: 800;
|
||||
line-height: 30px;
|
||||
text-transform: uppercase;
|
||||
|
||||
text-align: center;
|
||||
padding: 5px 10px;
|
||||
cursor: pointer;
|
||||
color: #ffffff;
|
||||
color: #B0F0F3;
|
||||
|
||||
background: -moz-linear-gradient(
|
||||
top,
|
||||
#179dc2 0%,
|
||||
#0f3d5f);
|
||||
background: -webkit-gradient(
|
||||
linear, left top, left bottom,
|
||||
from(#179dc2),
|
||||
to(#0f3d5f));
|
||||
border: 1px outset #34404b;
|
||||
background: #203A75;
|
||||
border: 1px solid #1E263A;
|
||||
}
|
||||
|
||||
input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hover, button:hover,
|
||||
@ -987,15 +981,9 @@ input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hove
|
||||
.bp-wrapper #content-wrapper div.item-list-tabs ul li a:hover span,
|
||||
.bp-wrapper #content-wrapper .activity-meta a span,
|
||||
a.button:hover {
|
||||
background: -moz-linear-gradient(
|
||||
top,
|
||||
#7cb9d0 0%,
|
||||
#466b94);
|
||||
background: -webkit-gradient(
|
||||
linear, left top, left bottom,
|
||||
from(#7cb9d0),
|
||||
to(#466b94));
|
||||
border: 1px outset #7CB9D0;
|
||||
color: #fff;
|
||||
background: #0059b5;
|
||||
border: 1px solid #88c4c2;
|
||||
}
|
||||
|
||||
input[type="submit"]:active, input[type="reset"]:active, input[type="button"]:active, button:active,
|
||||
@ -1010,11 +998,9 @@ input[type="submit"]:active, input[type="reset"]:active, input[type="button"]:ac
|
||||
.bp-wrapper #content-wrapper div.item-list-tabs ul li a:active span,
|
||||
.bp-wrapper #content-wrapper .activity-meta a span,
|
||||
a.button:active {
|
||||
background: #0f3d5f;
|
||||
border: 1px inset #34404b;
|
||||
-moz-box-shadow: inset 0 0 10px #262630;
|
||||
-webkit-box-shadow: inset 0 0 10px #262630;
|
||||
box-shadow: inset 0 0 10px #262630;
|
||||
color: #fff;
|
||||
background: #0059b5;
|
||||
border: 1px solid #88c4c2;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -128,8 +128,8 @@ if (have_posts()) {
|
||||
<li data-type='<?php echo $data_type; ?>' data-path='<?php echo $data_path; ?>'>
|
||||
<span id="postdata-id-<?php echo $slide_counter; ?>"><?php the_ID(); ?></span>
|
||||
<span id="postdata-title-<?php echo $slide_counter; ?>"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></span>
|
||||
<span id="postdata-artist-<?php echo $slide_counter; ?>"><?php echo $gp_settings['artist']; ?></span>
|
||||
<span id="postdata-song-<?php echo $slide_counter; ?>"><?php echo $gp_settings['song']; ?></span>
|
||||
<span id="postdata-artist-<?php echo $slide_counter; ?>"><?php echo $gp_settings['artist_short']; ?></span>
|
||||
<span id="postdata-song-<?php echo $slide_counter; ?>"><?php echo $gp_settings['song_short']; ?></span>
|
||||
<span id="postdata-link-<?php echo $slide_counter; ?>"><?php the_permalink(); ?></span>
|
||||
<span id="postdata-comments-<?php echo $slide_counter; ?>">
|
||||
<?php if (0) /*$_ishome)*/ require('home-comments.php'); ?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user