Correcciones en código sin importancia.

git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@98 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
David Arranz 2012-08-09 17:36:04 +00:00
parent 0be4185e91
commit da4099022e
9 changed files with 12 additions and 17 deletions

View File

@ -65,7 +65,7 @@ global $current_user; get_currentuserinfo();
<div class="post-thumbnail"> <div class="post-thumbnail">
<a href="<?php get_permalink($o); ?>" title="<?php echo $p->post_title; ?>"> <a href="<?php get_permalink($o); ?>" title="<?php echo $p->post_title; ?>">
<?php $image = vt_resize(get_post_thumbnail_id($o), '', 50, 0, true); ?> <?php $image = vt_resize(get_post_thumbnail_id($o), '', 50, 0, true); ?>
<img src="<?php echo $image['url']; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" alt="<?php if(get_post_meta(get_post_thumbnail_id($o), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id($o), '_wp_attachment_image_alt', true); } else { echo $p->post_title; } ?>" /> <img src="<?php echo $image['url']; ?>" width="<?php echo $image['width']; ?>" height="<?php echo $image['height']; ?>" alt="<?php if(get_post_meta(get_post_thumbnail_id($o), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id($o), '_wp_attachment_image_alt', true); } else { echo $p->post_title; } ?>" />
</a> </a>
</div> </div>
<?php } ?> <?php } ?>

View File

@ -517,7 +517,6 @@ function gp_ajax_pagination($pages = '', $range = 2) {
/* * ************************* Posts Per Page Fix ************************** */ /* * ************************* Posts Per Page Fix ************************** */
function gp_posts_per_page($query_string) { function gp_posts_per_page($query_string) {
require(ghostpool_inc . 'options.php'); require(ghostpool_inc . 'options.php');
if (!is_admin()) { if (!is_admin()) {
@ -643,7 +642,7 @@ function htmlwrap(&$str, $maxLength, $char='<br />'){
function cutstr($str, $length, $ellipsis=''){ function cutstr($str, $length, $ellipsis=''){
$cut = (array)explode('\n\n', htmlwrap($str, $length, '\n\n')); $cut = (array)explode('\n\n', htmlwrap($str, $length, '\n\n'));
return $cut[0].((strlen($cut)<strlen($str))?$ellipsis:''); return $cut[0] . ((strlen($cut[0]) < strlen($str)) ? $ellipsis : '');
} }

View File

@ -14,8 +14,6 @@ $args = array(
"ignore_sticky_posts" => 1, "ignore_sticky_posts" => 1,
"orderby" => $orderby, "orderby" => $orderby,
"order" => $order, "order" => $order,
"gdsr_sort" => $gdsr_sort,
"gdsr_order" => $gdsr_order,
"paged" => $paged, "paged" => $paged,
"posts_per_page" => -1 "posts_per_page" => -1
); );
@ -52,8 +50,6 @@ $args = array(
"ignore_sticky_posts" => 1, "ignore_sticky_posts" => 1,
"orderby" => $orderby, "orderby" => $orderby,
"order" => $order, "order" => $order,
"gdsr_sort" => $gdsr_sort,
"gdsr_order" => $gdsr_order,
"paged" => $paged, "paged" => $paged,
"posts_per_page" => $gp_settings['posts_per_page'], "posts_per_page" => $gp_settings['posts_per_page'],
"post__not_in" => $ids_descartados "post__not_in" => $ids_descartados

View File

@ -1,6 +1,4 @@
<?php <?php
// Meta Options (WPShout.com)
require(ghostpool_inc . 'options.php'); require(ghostpool_inc . 'options.php');
add_action('admin_menu', 'ghostpool_create_meta_box'); add_action('admin_menu', 'ghostpool_create_meta_box');
@ -736,4 +734,4 @@ function get_meta_gallery($args = array(), $value = false) {
endforeach; endforeach;
} }
?> ?>

View File

@ -60,6 +60,8 @@ class SidebarPosts extends WP_Widget {
// Column Width // Column Width
$column_width = "300"; $column_width = "300";
$counter = 0;
if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post();
include(dirname(__FILE__).'/../../../loop-dedication-data.php'); include(dirname(__FILE__).'/../../../loop-dedication-data.php');
@ -82,7 +84,7 @@ class SidebarPosts extends WP_Widget {
<div class="post-thumbnail<?php if ($image_width >= 175) { ?> thumbnail-no-wrap<?php } ?>"> <div class="post-thumbnail<?php if ($image_width >= 175) { ?> 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(), '', $image_width, $image_height, true); ?> <?php $image = vt_resize(get_post_thumbnail_id(), '', $image_width, $image_height, true); ?>
<img src="<?php echo $image['url']; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" alt="<?php if (get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) { <img src="<?php echo $image['url']; ?>" width="<?php echo $image['width']; ?>" height="<?php echo $image['height']; ?>" 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); echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true);
} else { } else {
echo get_the_title(); echo get_the_title();
@ -457,7 +459,7 @@ class SidebarPosts extends WP_Widget {
<?php if ($gp_settings['post_type'] == "Video") { ?><span class="video-icon"></span><?php } ?> <?php if ($gp_settings['post_type'] == "Video") { ?><span class="video-icon"></span><?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(), '', $image_width, $image_height, true); ?> <?php $image = vt_resize(get_post_thumbnail_id(), '', $image_width, $image_height, true); ?>
<img src="<?php echo $image['url']; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" alt="<?php if (get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true)) { <img src="<?php echo $image['url']; ?>" width="<?php echo $image['width']; ?>" height="<?php echo $image['height']; ?>" 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); echo get_post_meta(get_post_thumbnail_id(), '_wp_attachment_image_alt', true);
} else { } else {
echo get_the_title(); echo get_the_title();

View File

@ -11,7 +11,7 @@
* $thumb = get_post_thumbnail_id(); * $thumb = get_post_thumbnail_id();
* $image = vt_resize( $thumb, '', 140, 110, true); * $image = vt_resize( $thumb, '', 140, 110, true);
* ?> * ?>
* <img src="<?php echo $image['url']; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" /> * <img src="<?php echo $image['url']; ?>" width="<?php echo $image['width']; ?>" height="<?php echo $image['height']; ?>" />
* *
* @param int $attach_id * @param int $attach_id
* @param string $img_url * @param string $img_url

View File

@ -70,7 +70,7 @@ if($current_user->ID == $bp->displayed_user->id) { ?>
<div class="post-thumbnail"> <div class="post-thumbnail">
<a href="<?php get_permalink($o); ?>" title="<?php echo $p->post_title; ?>"> <a href="<?php get_permalink($o); ?>" title="<?php echo $p->post_title; ?>">
<?php $image = vt_resize(get_post_thumbnail_id($o), '', 50, 0, true); ?> <?php $image = vt_resize(get_post_thumbnail_id($o), '', 50, 0, true); ?>
<img src="<?php echo $image['url']; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" alt="<?php if(get_post_meta(get_post_thumbnail_id($o), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id($o), '_wp_attachment_image_alt', true); } else { echo $p->post_title; } ?>" /> <img src="<?php echo $image['url']; ?>" width="<?php echo $image['width']; ?>" height="<?php echo $image['height']; ?>" alt="<?php if(get_post_meta(get_post_thumbnail_id($o), '_wp_attachment_image_alt', true)) { echo get_post_meta(get_post_thumbnail_id($o), '_wp_attachment_image_alt', true); } else { echo $p->post_title; } ?>" />
</a> </a>
</div> </div>
<?php } ?> <?php } ?>

View File

@ -75,7 +75,7 @@
<a href="<?php echo wp_get_attachment_url($attachment->ID); ?>" rel="prettyPhoto[gallery<?php echo $i; ?>]" title="<?php echo $attachment->post_excerpt ?>"> <a href="<?php echo wp_get_attachment_url($attachment->ID); ?>" rel="prettyPhoto[gallery<?php echo $i; ?>]" title="<?php echo $attachment->post_excerpt ?>">
<?php $image = vt_resize($attachment->ID, '', 137, 100, true); ?> <?php $image = vt_resize($attachment->ID, '', 137, 100, true); ?>
<img src="<?php echo $image['url']; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" alt="<?php echo $attachment->post_title ?>" class="review-image" /> <img src="<?php echo $image['url']; ?>" width="<?php echo $image['width']; ?>" height="<?php echo $image['height']; ?>" alt="<?php echo $attachment->post_title ?>" class="review-image" />
</a> </a>
<?php }} ?> <?php }} ?>

View File

@ -68,7 +68,7 @@
<?php if(has_post_thumbnail()) { ?> <?php if(has_post_thumbnail()) { ?>
<?php $image = vt_resize(get_post_thumbnail_id(), '', 350, 270, true); ?> <?php $image = vt_resize(get_post_thumbnail_id(), '', 350, 270, true); ?>
<img src="<?php echo $image['url']; ?>" width="<?php echo $image[width]; ?>" 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']; ?>" width="<?php echo $image['width']; ?>" 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(); } ?>" />
<?php } ?> <?php } ?>
@ -119,7 +119,7 @@
<?php } ?> <?php } ?>
<?php $image = vt_resize(get_post_thumbnail_id(), '', 160, 120, true); ?> <?php $image = vt_resize(get_post_thumbnail_id(), '', 160, 120, true); ?>
<img src="<?php echo $image['url']; ?>" width="<?php echo $image[width]; ?>" height="<?php echo $image[height]; ?>" 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']; ?>" width="<?php echo $image['width']; ?>" height="<?php echo $image['height']; ?>" 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(); } ?>" />
<?php if(get_post_meta($post->ID, 'ghostpool_slide_url', true) OR get_post_meta($post->ID, 'ghostpool_slide_link_type', true) != "Page" OR get_post_type() != "slide") { ?></a><?php } ?> <?php if(get_post_meta($post->ID, 'ghostpool_slide_url', true) OR get_post_meta($post->ID, 'ghostpool_slide_link_type', true) != "Page" OR get_post_type() != "slide") { ?></a><?php } ?>