marketplace

  • Directory Handler at Theme Forest

    I’m happy to announce my first Theme Forest component, Directory Handler. it’s a simple set of 2 classes that handle (in several ways) listing the contents of a directory. The main class, DirectoryHandler, includes several functions that:

    • Get and/or print the entire contents of a directory
    • Normalize the name of a file or directory (replace special characters with spaces)
    • Return the extension of a file
    • Return all of the files of a directory in an array
    • Return all of the sub directories of a directory in an array

    TheImageDirectory class extends the functionality of DirectoryHandler by changing the get and print directory functions to:

    • Print a thumbnail version of the image
    • Integrate lightbox for easy image viewing/browsing.

    You can view a live demo here and Download the full documentation here.