From 78c29d04a3426b2f6453f2c07f34bf2385f3838d Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Tue, 18 Jun 2019 13:40:13 -0400 Subject: [PATCH] Separate notitles template into a separate file --- nggallery/gallery-glmphotos-notitles.php | 66 ++++++++++++++++++++++++ nggallery/gallery-glmphotos.php | 8 +-- 2 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 nggallery/gallery-glmphotos-notitles.php 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); }?> + -- 2.17.1