From: Laury GvR Date: Tue, 18 Jun 2019 17:40:13 +0000 (-0400) Subject: Separate notitles template into a separate file X-Git-Tag: v1.0.7^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=78c29d04a3426b2f6453f2c07f34bf2385f3838d;p=WP-Themes%2Fuptravel.git Separate notitles template into a separate file --- diff --git a/nggallery/gallery-glmphotos-notitles.php b/nggallery/gallery-glmphotos-notitles.php new file mode 100644 index 0000000..3fe2e78 --- /dev/null +++ b/nggallery/gallery-glmphotos-notitles.php @@ -0,0 +1,66 @@ + + If you would like to show the timestamp of the image ,you can use +**/ +?> + + +
+ + + + + + +
+ + diff --git a/nggallery/gallery-glmphotos.php b/nggallery/gallery-glmphotos.php index 3fe2e78..2decd8d 100644 --- a/nggallery/gallery-glmphotos.php +++ b/nggallery/gallery-glmphotos.php @@ -41,11 +41,11 @@ Follow variables are useable : size ?> /> alttext) ? $image->alttext: ''; + $imageTitle = !preg_match(';is\d{2,}-\d{10,}-\d{5,}$;', $image->alttext) ? $image->alttext: ''; ?> - + + hidden) { echo esc_attr($imageTitle); }?> +