Arreglos en página de inicio

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@13 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-07-18 16:13:40 +00:00
parent e164a0696d
commit c3cbbc1e28
6 changed files with 33 additions and 25 deletions

View File

@ -113,6 +113,7 @@ class Top_Members extends WP_Widget {
/* Display the widget title if one was input (before and after defined by themes). */ /* Display the widget title if one was input (before and after defined by themes). */
if( isset( $title ) ) { if( isset( $title ) ) {
if (strlen($title) > 0)
echo $before_title . $title . $after_title; echo $before_title . $title . $after_title;
} }
@ -183,7 +184,7 @@ class Top_Members extends WP_Widget {
$output = str_replace("%firstname%",$user->user_firstname,$output); $output = str_replace("%firstname%",$user->user_firstname,$output);
$output = str_replace("%lastname%",$user->user_lastname,$output); $output = str_replace("%lastname%",$user->user_lastname,$output);
$output = str_replace("%nrofposts%",$post,$output); $output = str_replace("%nrofposts%",$post,$output);
$output = str_replace("%nickname%",$user->nickname,$output); $output = str_replace("%nickname%",$user->user_login,$output);
$output = str_replace("%displayname%",$user->display_name,$output); $output = str_replace("%displayname%",$user->display_name,$output);
$gravatar_detect = strpos($output,"%gravatar%"); $gravatar_detect = strpos($output,"%gravatar%");

View File

@ -6,9 +6,6 @@
<!--Begin Footer Widgets--> <!--Begin Footer Widgets-->
<?php if($theme_footer_widgets == "All Pages" OR ($theme_footer_widgets == "Homepage" && is_home())) { ?> <?php if($theme_footer_widgets == "All Pages" OR ($theme_footer_widgets == "Homepage" && is_home())) { ?>
<div class="footer-widgets-border-left"></div>
<div class="footer-widgets-border-right"></div>
<div id="footer-widgets"> <div id="footer-widgets">
<?php if(is_active_sidebar('footer-1') OR is_active_sidebar('footer-2') OR is_active_sidebar('footer-3') OR is_active_sidebar('footer-4')) { ?> <?php if(is_active_sidebar('footer-1') OR is_active_sidebar('footer-2') OR is_active_sidebar('footer-3') OR is_active_sidebar('footer-4')) { ?>

View File

@ -22,7 +22,7 @@ query_posts($args);
<?php if(has_post_thumbnail()) { ?> <?php if(has_post_thumbnail()) { ?>
<div class="post-thumbnail<?php if($gp_settings['image_wrap'] == "Disable") { ?> thumbnail-no-wrap<?php } ?>"> <div class="post-thumbnail<?php if($gp_settings['image_wrap'] == "Disable") { ?> thumbnail-no-wrap<?php } ?>">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php $image = vt_resize(get_post_thumbnail_id(), '', $gp_settings['image_width'], $gp_settings['image_height'], false); ?> <?php $image = vt_resize(get_post_thumbnail_id(), '', $gp_settings['image_width'], $gp_settings['image_height'], true); ?>
<img src="<?php echo $image[url]; ?>" alt="<?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(); } ?>" /> <img src="<?php echo $image[url]; ?>" alt="<?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(); } ?>" />
</a> </a>
</div> </div>

View File

@ -123,7 +123,7 @@ class SidebarPosts extends WP_Widget {
$to_user = get_user_by('id', $to_user_id); $to_user = get_user_by('id', $to_user_id);
?> ?>
<div class="post-meta"> <div class="post-meta">
<span>FROM: <?php echo bp_core_get_userlink($from_user_id); ?></span> <span>FROM: <?php echo bp_core_get_userlink($from_user_id); ?></span><br/>
<?php if ($to_user) { ?><span>TO: <?php echo bp_core_get_userlink($to_user->ID); ?></span> <?php if ($to_user) { ?><span>TO: <?php echo bp_core_get_userlink($to_user->ID); ?></span>
<?php } else { ?> <?php } else { ?>
<span>TO: <?php echo get_post_meta($post->ID, 'ghostpool_destination_user_name', true); ?></span> <span>TO: <?php echo get_post_meta($post->ID, 'ghostpool_destination_user_name', true); ?></span>

View File

@ -10,11 +10,11 @@
<div class="columns twothirds first text-left"> <div class="columns twothirds first text-left">
<div id="item-header-avatar" class="columns onefourth first text-left"> <div id="item-header-avatar" class="columns onefourth first text-left">
<a href="<?php echo bp_user_link(); ?>"><?php bp_displayed_user_avatar(array('width' => 77, 'height' => 77)); ?></a> <a href="<?php echo bp_displayed_user_link(); ?>"><?php bp_displayed_user_avatar(array('width' => 77, 'height' => 77)); ?></a>
</div> </div>
<div class="columns threefourths last text-left"> <div class="columns threefourths last text-left">
<span class="user-nicename"><a href="<?php echo bp_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a></span> <span class="user-nicename"><a href="<?php echo bp_displayed_user_link(); ?>"><?php bp_displayed_user_fullname(); ?></a></span>
<div id="item-meta"> <div id="item-meta">
<?php if (bp_is_active('dedications')) : ?> <?php if (bp_is_active('dedications')) : ?>
<div class="my-dedications"><?php _e('My dedications:'); ?>&nbsp;<?php echo $bp->dedications->get_count_dedications_from_user(bp_displayed_user_id()); ?></div> <div class="my-dedications"><?php _e('My dedications:'); ?>&nbsp;<?php echo $bp->dedications->get_count_dedications_from_user(bp_displayed_user_id()); ?></div>

View File

@ -31,6 +31,7 @@ input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hove
#page-wrapper { #page-wrapper {
padding-top: 0; padding-top: 0;
width: 940px;
} }
#page-shadow { #page-shadow {
@ -106,7 +107,7 @@ input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hove
/* Main Content */ /* Main Content */
#content { #content {
width: 775px; width: 79.25%;
margin-bottom: 20px; margin-bottom: 20px;
} }
@ -119,7 +120,11 @@ input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hove
/* Sidebar */ /* Sidebar */
#sidebar { #sidebar {
width: 155px; /*230px;*/ width: 20.74%;
}
.sb-right #sidebar {
margin-left: 0;
} }
@ -310,7 +315,7 @@ ul.navmenu li a.profile {
float: right; float: right;
margin-left: 5px; margin-left: 5px;
margin-top: 48px; margin-top: 48px;
width: 155px; width: 193px;
font-size: 13px; font-size: 13px;
font-weight: bold; font-weight: bold;
padding: 3px 0; padding: 3px 0;
@ -331,10 +336,8 @@ ul.navmenu li a.profile {
border-top: none; border-top: none;
padding: 0; padding: 0;
height: 650px; height: 650px;
width: 978px; width: 100%;
border: 1px solid #349bbc; border: 1px solid #349bbc;
/*box-shadow:inset 0 0 3px #989898;
-moz-box-shadow:inset 0 0 3px #989898;*/
background: #f5f1f0; background: #f5f1f0;
} }
@ -371,7 +374,7 @@ ul.navmenu li a.profile {
#dedicationComments_container { #dedicationComments_container {
display: inline-block; display: inline-block;
width: 67.64% !important; width: 58.51% !important;
} }
#dedicationComments_container #comments { #dedicationComments_container #comments {
@ -445,6 +448,10 @@ ul.navmenu li a.profile {
/* Footer Widgets */ /* Footer Widgets */
#footer-widgets { #footer-widgets {
background: #e7e7e7; background: #e7e7e7;
padding-right: 0px;
border: 2px solid #349BBC;
border-left: none;
border-right: none;
} }
#footer-widgets h3 { #footer-widgets h3 {
@ -508,11 +515,12 @@ ul.navmenu li a.profile {
/* General Widget Styling */ /* General Widget Styling */
.widget h3 { .widget h3 {
text-align: center; text-align: center;
width: 153px; width: 100%;
background: #cce6f5; background: #cce6f5;
border: 1px solid #2c85c7; border: 1px solid #2c85c7;
color: #7da0b6; color: #7da0b6;
padding: 6px 0; padding: 6px 0;
display: inline-block;
} }
.widget h4 { .widget h4 {
@ -520,14 +528,12 @@ ul.navmenu li a.profile {
} }
#sidebar-home { #sidebar-home {
width: 32.36% !important; width: 41.49% !important;
} }
/* Homepage Widget Styling */ /* Homepage Widget Styling */
#sidebar-home .widget { #sidebar-home .widget {
width: 155px; width: 195px;
/*width: 47%;
margin-left: 3%;*/
margin-bottom: 30px; margin-bottom: 30px;
text-align: center; text-align: center;
} }
@ -547,7 +553,7 @@ ul.navmenu li a.profile {
/* Top members widget */ /* Top members widget */
#sidebar-home .widget.top_members { #sidebar-home .widget.top_members {
color: #bf2d2d; color: #bf2d2d;
width: 155px; width: 195px;
float: left; float: left;
} }
@ -566,6 +572,7 @@ ul.navmenu li a.profile {
font-size: 12px; font-size: 12px;
font-weight: bold; font-weight: bold;
float: none; float: none;
heigth: 38px;
} }
#sidebar-home .widget.top_members a.button { #sidebar-home .widget.top_members a.button {
@ -797,11 +804,12 @@ h3.comments {
.category-dedication.post-loop { .category-dedication.post-loop {
text-align: left; text-align: left;
max-height:220px; max-height: 230px;
min-height:220px; min-height: 230px;
border-bottom: 0; border-bottom: 0;
width: 32% !important; width: 32% !important;
margin: 0 0 10px 0; display: inline-block;
margin: 0;
padding: 0; padding: 0;
padding-right: 1%; padding-right: 1%;
} }
@ -809,6 +817,8 @@ h3.comments {
.home-page .post-loop { .home-page .post-loop {
width: 49% !important; width: 49% !important;
padding-right: 1% !important; padding-right: 1% !important;
max-height: 250px;
min-height: 250px;
} }
.post-text { .post-text {