?>
                    <?php 
            }
            ?>
				<h2 class="post-title"><a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title();
            ?>
" rel="bookmark"><?php 
            echo csubstr(the_title('', '', 0), 26);
            ?>
</a></h2>
				<?php 
            wpthemes_post_content(60, 1, '[...]');
            ?>
</div>
			  </div>
			  <?php 
        }
        ?>
			<?php 
    } else {
        ?>
				<div class="notfound"><p>Content Not Found!</p><p>Please try again.</p></div>
			<?php 
    }
    ?>
			  </div>
                    $gallery_thumb_img = get_the_post_thumbnail($post->ID, 'thumbnail');
                    $gallery_img_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large');
                    $gallery_img_thumb_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'thumbnail');
                } else {
                    $gallery_img_src = get_post_meta($post->ID, 'featured', true);
                    $gallery_img_thumb_src = get_post_meta($post->ID, 'featured', true);
                    $gallery_img = '<img src="$gallery_img_src" class="full" />';
                    $gallery_thumb_img = '<img src="$gallery_img_src" class="post_thumbnail" />';
                }
            }
            $gallery_data['src' . $num] = $gallery_img_src[0];
            $gallery_data['src_thumb' . $num] = $gallery_img_thumb_src[0];
            $gallery_data['title' . $num] = get_the_title();
            $gallery_data['permalink' . $num] = get_permalink();
            $gallery_data['category' . $num] = get_the_category();
            $gallery_data['content' . $num] = wpthemes_post_content(180, 1, "", 0);
            $num++;
        }
        ?>
		<?php 
        $num = 1;
        while ($num <= $num_sum) {
            ?>
					  <div class="imageElement" style="display: none;">
							<h3><?php 
            echo csubstr($gallery_data['title' . $num], 60);
            ?>
</h3>
							<p>
							<em>Posted by <?php 
            the_author();