From 2cabe810160d67c76610aa1c28717451f206b574 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 20 Jul 2011 17:49:02 +0000 Subject: [PATCH] =?UTF-8?q?-=20Ocultar=20los=20precios=20cuando=20sea=200.?= =?UTF-8?q?00=E2=82=AC=20en=20la=20ventana=20de=20lightbox.=20-=20Descripc?= =?UTF-8?q?iones=20en=20la=20ventana=20de=20lightbox=20en=202=20l=C3=ADnea?= =?UTF-8?q?s.=20-=20Mejorado=20el=20sistema=20de=20escoger=20la=20descripc?= =?UTF-8?q?i=C3=B3n=20a=20partir=20del=20t=C3=ADtulo=20del=20enlace=20en?= =?UTF-8?q?=20lightbox.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://192.168.0.254/svn/Proyectos.OriginalHouse_Web/trunk@58 54e8636e-a86c-764f-903d-b964358a1ae2 --- .../lightbox-plus/js/jquery.colorbox.js | 2 +- .../themes/originalhouse/archive.php | 9 ++++--- .../originalhouse/includes/js/general.js | 24 ++++++++++++++++- .../themes/originalhouse/loop-tcp-grid.php | 26 +++++++++++++------ 4 files changed, 48 insertions(+), 13 deletions(-) diff --git a/src/wp-content/plugins/lightbox-plus/js/jquery.colorbox.js b/src/wp-content/plugins/lightbox-plus/js/jquery.colorbox.js index 5db1077..113c57a 100644 --- a/src/wp-content/plugins/lightbox-plus/js/jquery.colorbox.js +++ b/src/wp-content/plugins/lightbox-plus/js/jquery.colorbox.js @@ -150,7 +150,7 @@ settings.rel = settings.rel || element.rel || 'nofollow'; settings.href = settings.href || $(element).attr('href'); - settings.title = settings.title || element.title; + settings.title = settings.title || $(element).data('title'); //element.title; if (typeof settings.href === "string") { settings.href = $.trim(settings.href); diff --git a/src/wp-content/themes/originalhouse/archive.php b/src/wp-content/themes/originalhouse/archive.php index 1aba6fb..7e6af39 100644 --- a/src/wp-content/themes/originalhouse/archive.php +++ b/src/wp-content/themes/originalhouse/archive.php @@ -1,8 +1,8 @@ -
@@ -18,7 +18,10 @@
- +
> @@ -34,7 +37,7 @@ $description = get_the_content(); $attrib = array('title' => $title); ?> - + diff --git a/src/wp-content/themes/originalhouse/includes/js/general.js b/src/wp-content/themes/originalhouse/includes/js/general.js index a468767..16735d4 100644 --- a/src/wp-content/themes/originalhouse/includes/js/general.js +++ b/src/wp-content/themes/originalhouse/includes/js/general.js @@ -4,7 +4,29 @@ jQuery(document).ready(function() { + /*$.colorbox.settings.title = function() { + // would apply to all instances of colorbox + return $(this).find('img').attr('alt') || this.title || ''; + }*/ + + if ( jQuery( 'a.size-thumbnail' ).length ) { + jQuery("a.size-thumbnail").each(function() { + var $this = jQuery(this); + $this.data('title', $this.attr('title')); + $this.removeAttr('title'); + }); + } + if ( jQuery( '.post_container .posts .post .entry a' ).length ) { + jQuery('.post_container .posts .post .entry a').each( function() { + var $this = jQuery(this); + $this.data('title', $this.attr('title')); + $this.removeAttr('title'); + }); + } + + + /*if ( jQuery( '.post_container .posts .post .entry a' ).length ) { jQuery('.post_container .posts .post .entry a').each( function() { var $this = jQuery(this); $this.data('title',$this.attr('title')); @@ -30,7 +52,7 @@ jQuery(document).ready(function() { var $title = $this.data('title'); $this.attr('title', $title); }); - } + }*/ diff --git a/src/wp-content/themes/originalhouse/loop-tcp-grid.php b/src/wp-content/themes/originalhouse/loop-tcp-grid.php index 0841a63..de771e4 100644 --- a/src/wp-content/themes/originalhouse/loop-tcp-grid.php +++ b/src/wp-content/themes/originalhouse/loop-tcp-grid.php @@ -26,7 +26,7 @@ ?> - +

@@ -67,23 +67,33 @@ while ( have_posts() ) :
'; + $description .= $content; + } if (has_post_thumbnail()) { + $attr = array('alt' => $description, + 'title' => the_title_attribute('echo=0')); $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); ?> - + - +