| |

Directory Handler at Theme Forest

Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don't hold it against me. One of the perils of having a 20+ year old website!

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.

Similar Posts

  • How to Get Feedback From Listeners (And Build Community)

    Over the weekend, my daughter started to play a song on our HomePod that drives me absolutely crazy; I won’t even tell you the name of it, to save you from the pain. Even though I put the kibosh on that quickly, it was too late — the song was already stuck in my head…….

  • I was on Entrepreneur’s Enigma

    I had the pleasure of going on Seth Goldstein’s Entrepreneur’s Enigma at the end of 2021 to talk about my journey through entrepreneurship. I talked selling mix CDs, profiting from yard sales, and how all of that shaped my view for running my own business:

    Joe Casabona is probably one of the nicest guys you’ll ever meet. I’ve known Joe for more than 5 years. He’s been in the WordPress space since the beginning of the project and has now pivoted to teaching online course is both WordPress and Podcasting.

    Listen here

  • Links Round Up for 8/1/10

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website! Healthy Eating Could be a Mental Disorder: I wonder what the metal disorder for thinking everything is a metal disorder…

  • |

    Favorites of 2010

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!Happy New Years Eve! As tradition for the last couple of years, here is a list of my favorites from 2010….

  • An interesting Upgrade

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website! Found it here: College Humor Courtesy of Matt. Later.