<?php $gallery = get_post_meta($post->ID, 'gallery', true); if ($gallery != '-1') { //THIS PART DONE BY NEIL 2012 // echo do_shortcode('[nggallery id='.$gallery.' template="galleryview" images=0]'); global $nggdb; } $galleryt = $nggdb->get_gallery($gallery, 'sortorder', 'ASC', true, 0, 0); foreach ($galleryt as $image) { echo '<div id="pb-image-block"><div id="pb-gallery-image"><img src="' . $image->imageURL . '"/></div>'; echo '<p id="pb-gallery-text">' . $image->description . ' (Photo by ' . $image->alttext . ')</p></div>'; } ?> <?php if (function_exists('the_audio')) { the_audio(); } ?> <hr> <?php the_content(); ?> <p id="photoblog-post-author">Credit: <?php coauthors(); ?> </p> <p class="photoblog-sm"> <div class="fb-like" data-href="<?php echo get_permalink(); ?> " data-send="true" data-width="450" data-show-faces="true" data-colorscheme="dark"></div>
<div class="row" style="padding-left:0"> <?php endif; ?> <span class="db-section-date"> <h4><?php the_category(', ');?></h4> <h4>|</h4> <h5><?php the_time('F j, g:i a');?> </h5> </span> <?php if(has_post_thumbnail()): ?> <h2><a href="<?php the_permalink(); ?>"><?php the_headline(); ?></a></h2> <?php else: ?> <h2 class="db-large-title text-center" style="margin: 2rem 0;"> <a href="<?php the_permalink(); ?>"><?php the_headline(); ?></a> </h2> <?php endif; ?> <div class="entry-content"> <?php the_audio(); ?> <p><?php echo get_the_excerpt(); ?> <a href="<?php the_permalink(); ?>">More »</a></p> </div> <?php if(has_post_thumbnail()): ?> </div> <?php endif; ?> </article> </div> <?php if(++$i > 1): $i=0;?> </div> <?php endif; ?> <!-- <hr> --> <?php endif; ?> <?php endwhile; /* End loop */ ?> </div>