• The #1 reason why I like this plugin is that you can select 100+ images from your Media library and they are added instantly. The list of images for a gallery is displayed as a collection of thumbnails, which makes it easy to see what images you have selected for your gallery. Removing an image from the gallery does not immediately delete it from the Media library, which is excellent. Also, it does not make changes to the Media library as some plugins do. Very smooth and unobtrusive.

    The Gallery is displayed using blueimp.Gallery. You can find the details here: https://blueimp.github.io/Gallery/

    This Lightbox gallery implementation is lightweight and easy to customize. This was all it took to customize the plugin and make it display file names as title:

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    diff code_gallery.php code_gallery.php_org
    
    283,285d282
     < $attachment_title =
    pathinfo($attachment_url_full[0],PATHINFO_BASENAME);
     < $attachment_title = substr($attachment_title,0,-4);
     < $attachment_title = str_replace("_"," ",$attachment_title);
     287,288c284
     < <div class="images">
     < <a>" title="<?php echo
    $attachment_title;?>" >
     --
     > <div class="images"></a><a>"
    
     290,292c286
     < </a>
     < <div class="title"><?php echo $attachment_title;?></div>
     < </div>
     --
     > </div>

    10 out of 10 would use again!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Excellent plugin’ is closed to new replies.