Fixed the description showing on hover of gallery photoTitle
authorLaury GvR <laury@gaslightmedia.com>
Thu, 20 Nov 2014 17:03:02 +0000 (12:03 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 20 Nov 2014 17:03:02 +0000 (12:03 -0500)
nggallery/gallery-glmphotos.php

index cbd12ff..b48b8f8 100644 (file)
@@ -55,8 +55,8 @@ Follow variables are useable :
                         <div class="image_overlay">
                             <img title="<?php echo esc_attr($image->alttext) ?>" alt="<?php echo esc_attr($image->alttext) ?>" src="<?php echo nextgen_esc_url($image->thumbnailURL) ?>" <?php echo $image->size ?> />
                         </div>
-                    <span class="photoTitle"><?php if (!$image->hidden) { echo esc_attr($image->alttext); }?></span>
-                    <span class="photoHead"><?php if (!$image->hidden) { echo nggcf_get_field($image->pid, "Front Description"); } ?></span>
+                    <span class="photoTitle" title="<?php echo esc_attr($image->alttext) ?>"><?php if (!$image->hidden) { echo esc_attr($image->alttext); }?></span>
+                    <span class="photoHead" title="<?php echo esc_attr($image->alttext) ?>><?php if (!$image->hidden) { echo nggcf_get_field($image->pid, "Front Description"); } ?></span>
                             <?php } ?>
                     </a>
                 </div>