Coder Social home page Coder Social logo

show file name about novagallery HOT 4 CLOSED

novafacile avatar novafacile commented on May 25, 2024
show file name

from novagallery.

Comments (4)

david-novafacile avatar david-novafacile commented on May 25, 2024

Hi,
yes, this can be achieved with a small enhancement to a theme or with creating an individual theme.

In the theme the file name is available in the foreach iteration in the variable $element

e.g. in /nova-themes/novagallery/album.php beetween line 32 and 36.

There you can add the file name where you like with <?= $element ?>

For example Line 34:
<img src="<?php echo Image::url($album, $element, Site::config('imageSizeThumb')); ?>" loading="lazy" class="rounded"><br><?= $element ?>

To show the filename in the lightbox view, just add it as title to the image tag (Line 34)
<img src="<?php echo Image::url($album, $element, Site::config('imageSizeThumb')); ?>" loading="lazy" class="rounded" title="<?= $element ?>"><br>
You can extend this with individual functions, for example to remove the file extension.

Of course it could be better but for that I recommend to create an individual theme: just copy paste a theme, change what you like to change (including the metadata.json of the theme) and activate it in the config file.

If you need personal support for creating an individual theme (including a pro license), just let me know. ;-)

from novagallery.

dcordovez avatar dcordovez commented on May 25, 2024

Thank you!
I have already bought the license. Should I receive an email with the download or do I use the same files as the free version?

from novagallery.

david-novafacile avatar david-novafacile commented on May 25, 2024

You should have received an email from Paddle with the download link and support info right after your order.

If you haven't received it, I can also send you the download link from novaGallery Pro Support. Just send a short email to [email protected]

from novagallery.

david-novafacile avatar david-novafacile commented on May 25, 2024

seems to be solved.

from novagallery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.