<div class="ngg-albumcontent"> <div class="ngg-thumbnail"> <a class="gallery_link" href="<?php echo nextgen_esc_url($gallery->pagelink); ?> "><img class="Thumb" alt="<?php echo esc_attr($gallery->title); ?> " src="<?php echo nextgen_esc_url($gallery->previewurl); ?> "/></a> </div> <div class="ngg-description"> <p><?php echo_safe_html($gallery->galdesc); ?> </p> <?php if (isset($gallery->counter) && $gallery->counter > 0) { ?> <p class="ngg-album-gallery-image-counter"><strong><?php echo $gallery->counter; ?> </strong> <?php _e('Photos', 'nggallery'); ?> </p> <?php } ?>
<h4> <a class="ngg-album-desc" title="<?php echo esc_attr($gallery->title); ?> " href="<?php echo nextgen_esc_url($gallery->pagelink); ?> " <?php echo $max_width; ?> > <?php echo_safe_html($gallery->title); ?> </a> </h4> <p class="ngg-album-gallery-image-counter"> <?php if (isset($gallery->counter) && $gallery->counter > 0) { ?> <strong><?php echo $gallery->counter; ?> </strong> <?php _e('Photos', 'nggallery'); ?> <?php } else {
<?php M_NextGen_PictureFill::render_picture_element($entity->previewpic, $thumbnail_size_name, array('class' => 'gallery_preview')); ?> </a> <a href="<?php echo esc_attr($entity->link); ?> " title="<?php echo esc_attr($entity->title); ?> " class="caption_link" ><?php echo_safe_html($entity->title); ?> </a> <div class="image_description"><?php echo_safe_html(nl2br($entity->galdesc)); ?> </div> <br class="clear"/> </div> <?php $i++; ?> <?php } ?> </div> <?php $this->end_element();