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:
parent
0be4185e91
commit
da4099022e
@ -65,7 +65,7 @@ global $current_user; get_currentuserinfo();
|
||||
<div class="post-thumbnail">
|
||||
<a href="<?php get_permalink($o); ?>" title="<?php echo $p->post_title; ?>">
|
||||
<?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>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
@ -517,7 +517,6 @@ function gp_ajax_pagination($pages = '', $range = 2) {
|
||||
/* * ************************* Posts Per Page Fix ************************** */
|
||||
|
||||
function gp_posts_per_page($query_string) {
|
||||
|
||||
require(ghostpool_inc . 'options.php');
|
||||
|
||||
if (!is_admin()) {
|
||||
@ -643,7 +642,7 @@ function htmlwrap(&$str, $maxLength, $char='<br />'){
|
||||
|
||||
function cutstr($str, $length, $ellipsis=''){
|
||||
$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 : '');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -14,8 +14,6 @@ $args = array(
|
||||
"ignore_sticky_posts" => 1,
|
||||
"orderby" => $orderby,
|
||||
"order" => $order,
|
||||
"gdsr_sort" => $gdsr_sort,
|
||||
"gdsr_order" => $gdsr_order,
|
||||
"paged" => $paged,
|
||||
"posts_per_page" => -1
|
||||
);
|
||||
@ -52,8 +50,6 @@ $args = array(
|
||||
"ignore_sticky_posts" => 1,
|
||||
"orderby" => $orderby,
|
||||
"order" => $order,
|
||||
"gdsr_sort" => $gdsr_sort,
|
||||
"gdsr_order" => $gdsr_order,
|
||||
"paged" => $paged,
|
||||
"posts_per_page" => $gp_settings['posts_per_page'],
|
||||
"post__not_in" => $ids_descartados
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
<?php
|
||||
// Meta Options (WPShout.com)
|
||||
|
||||
require(ghostpool_inc . 'options.php');
|
||||
|
||||
add_action('admin_menu', 'ghostpool_create_meta_box');
|
||||
@ -736,4 +734,4 @@ function get_meta_gallery($args = array(), $value = false) {
|
||||
|
||||
endforeach;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
@ -60,6 +60,8 @@ class SidebarPosts extends WP_Widget {
|
||||
|
||||
// Column Width
|
||||
$column_width = "300";
|
||||
|
||||
$counter = 0;
|
||||
|
||||
if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post();
|
||||
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 } ?>">
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
|
||||
<?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);
|
||||
} else {
|
||||
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 } ?>
|
||||
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
|
||||
<?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);
|
||||
} else {
|
||||
echo get_the_title();
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
* $thumb = get_post_thumbnail_id();
|
||||
* $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 string $img_url
|
||||
|
||||
@ -70,7 +70,7 @@ if($current_user->ID == $bp->displayed_user->id) { ?>
|
||||
<div class="post-thumbnail">
|
||||
<a href="<?php get_permalink($o); ?>" title="<?php echo $p->post_title; ?>">
|
||||
<?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>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
@ -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 ?>">
|
||||
<?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>
|
||||
|
||||
<?php }} ?>
|
||||
|
||||
@ -68,7 +68,7 @@
|
||||
<?php if(has_post_thumbnail()) { ?>
|
||||
|
||||
<?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 } ?>
|
||||
|
||||
@ -119,7 +119,7 @@
|
||||
<?php } ?>
|
||||
|
||||
<?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 } ?>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user