| |

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

  • | |

    Rock-Solid WordPress 3.0 Themes using Custom Post Types

    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!The good people over at Nettuts+ have published a tutorial I wrote for them called Rock-Solid WordPress 3.0 Themes using Custom…

  • | |

    Favorites of 2011

    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! What has seemingly become a tradition on this blog is my annual “Favorites of” post, where I recap some of…

  • | |

    Favorites of 2012

    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 going to be honest here. 2012 was a pretty great year for me. A lot of amazing things happened in…

  • |

    I’m on Github!

    I know it’s something I should have had for a while but I generally don’t feel my code is up to snuff. Seeing as I’ve been promising people my code, however, it makes sense. My username on @github is jcasabona. You can get to my repo using the link below. My Github Repository Right now…

  • Interesting Links for July 2, 2013

    Google Reader Vigil: This one is a little shameless self-promotiony, but I created a site for users to pay their last respected to the new defunct Google Reader. Google Reader was my first RSS reader and showed me the true power of RSS. I used it faithfully for 8 years and I will deeply miss…