New plugin to show filenames
[bizou.git] / plugins / _disabled / filenames / after_thumb.php
diff --git a/plugins/_disabled/filenames/after_thumb.php b/plugins/_disabled/filenames/after_thumb.php
new file mode 100644 (file)
index 0000000..09e2db2
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+$filename = $GLOBALS["file"]["name"];
+# comment this to have the file extensions
+$filename = substr($filename, 0, strrpos($filename, '.')); 
+?>
+<div class="imagefilename"><a href="<?= $GLOBALS["file"]["link"] ?>"><?= $filename ?></a></div>