Forum Moderators: coopster
<img class="ppthumb" src="http://www.domain.com/wp-content/themes/%themename%/tools/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", TRUE); ?>&h=160&w=160&zc=0" alt="<?php the_title(); ?>" /> <img src="<?php echo get_post_meta($post->ID, 'thumb', true) ?>" alt="<?php the_title(); ?>" /> if (count($data) > 0) {
$images .= '<h2>'.__('Photo Gallery','news').'</h2>';
$images .= '<div class="gallery-container">';
foreach($data as $k => $v) {
if ($v['alt'] && $v['title']) $alttext = $v['alt']; elseif ($v['title']) $alttext = $v['title']; else $alttext = $v['alt'];
$img_title = sprintf(__('%1$s (Photo %2$s of %3$s photo(s)).','news'), $alttext, ($k+1), count($data));
$images .= '<div class="gallery-item"><div class="fancybox-zoom"><a href="'.urldecode($v['src']).'" title="'.$img_title.'" class="zoomgallery" rel="gallery"><img src="'.get_bloginfo('template_directory').'/thumbopen.php?src='.$v['src'].'&w=100&h=100&zc=1&a=t&q=100" alt="'.$img_title.'" title="'.$img_title.'" width="100" height="100" /><div class="zoom-black"></div><div class="zoom-overlay"></div></a></div></div>';
}
$images .= '<div class="clear"></div></div>'; // clear float fix
} $images .= '<div class="gallery-item"><div class="fancybox-zoom"><a href="'.urldecode($v['src']).'" title="'.$img_title.'" class="zoomgallery" rel="gallery"><img src="<?php echo get_post_meta($post->ID, 'thumb', true) ?>" alt="<?php the_title(); ?>" /><div class="zoom-black"></div><div class="zoom-overlay"></div></a></div></div>';
src="<?php echo get_post_meta($post->ID, 'thumb', true) ?>"
src="'.get_post_meta($post->ID, 'thumb', true).'"
$images .= '<div class="gallery-item"><div class="fancybox-zoom"><a href="'.urldecode($v['src']).'" title="'.$img_title.'" class="zoomgallery" rel="gallery"><img src="'.get_post_meta($post->ID, 'thumb', true).'" alt="'.the_title().'" /><div class="zoom-black"></div><div class="zoom-overlay"></div></a></div></div>';
<img src="<?php echo get_post_meta($post->ID, 'thumb', true) ?>" alt="<?php the_title(); ?>" />
$images .= '<div class="gallery-item"><div class="fancybox-zoom"><a href="'.urldecode($v['src']).'" title="'.$img_title.'" class="zoomgallery" rel="gallery"><img src="'.get_post_meta($post->ID, 'thumb', true).'" alt="'.$img_title.'" /><div class="zoom-black"></div><div class="zoom-overlay"></div></a></div></div>';