| |

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

  • |

    Grok reminds everyone that AI is made by people.

    The Guardian is reporting that Elon Musk’s Grok AI tells users he is fitter than LeBron James and smarter than Leonardo da Vinci. From the story: Musk was also funnier than Jerry Seinfeld, according to Grok, and he would have risen from the dead faster than Jesus. Many of the Grok responses were quietly deleted on Friday,…

  • | |

    WConroy.com

    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! A new Featured Project. Bill Conroy is running in my district for Supreme Court Justice (of my district). He came…

  • | |

    The Brick Artist

    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 loved legos as a kid. As a metter of fact, put legos in front of me right now, and i…

  • Do You Really Need a WordPress Podcast Plugin?

    Over on the Crocoblock Blog, I have an article on answering an important question: do you really need a podcast plugin for WordPress? From the piece:

    The most significant thing podcast plugins do is create a valid RSS feed specifically for your podcast. This is the feed you will submit to Apple Podcasts and other directories, with some requirements. It needs tags for: title, description, author, artwork, category (which must map to an Apple Podcast category), and if the show is explicit or not.

    Plus, podcast apps have many podcaster-friendly features you want to take advantage of. Things like donation links, where people can go to send you money or join your membership, transcripts, and feed locking.

    Read the whole thing here.