Don't show if matches pattern
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 28 Jul 2015 20:58:58 +0000 (16:58 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 28 Jul 2015 20:58:58 +0000 (16:58 -0400)
nggallery/gallery-glmphotos.php

index d2dc85b..6d08ea5 100644 (file)
@@ -36,7 +36,9 @@ 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>
+                        <?phpif (!preg_match('%^is[0-9]{2}-[0-9]{10}-[0-9]{5}%', $image->alttext)):?>
                     <span class="photoTitle" title="<?php echo esc_attr($image->alttext) ?>"><?php if (!$image->hidden) { echo esc_attr($image->alttext); }?></span>
+                        <?php endif;?>
                             <?php } ?>
                     </a>
                 </div>