Maintainable Ways to Set Up WordPress Hooks
What Are Hooks? In WordPress, we’re encouraged to use their hooks and filters. So what are they? Basically, they allow one to plug custom functionality into WordPress at predefined points of execution. I’m sure you’ve seen them; ever dealt with add_action(“init”, ‘setup_theme_plugins’); ? That’s a way of telling WordPress, “When you get to the ‘init’ […]
Laravel – Using View Creators to Make Default Values
What is a “View Model”? In web MVC architecture, there are scenarios you run into where you’d like the same set of dynamic information passed into each view, but that view isn’t called from one location. One such example is a menuing system. The items you pass into the navigation might potentially always be the […]
Using Composer Dependencies in WordPress
Composer In this tutorial, I’m going to show you how you can add Composer Dependencies to your WordPress theme. Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you. (https://getcomposer.org/doc/00-intro.md) Getting Started The first thing […]
Adding Bootstrap Panel Classes to Widgets
Bootstrap CSS Bootstrap is an awesome CSS framework that allows you to rapidly prototype web applications. It makes it easy to create components that look consistent and unify a website’s feel. Something lesser known about Bootstrap is that it’s just as good with prototyping websites; it provides you with a some simple tools that make […]
Transforming API Data Objects in AngularJS
The Problem AngularJS is awesome, but one thing sorely lacking from it is the ability to use information from HTTP endpoints as Business Logic objects. For example, if you get a list of files from an API endpoint, all you get are the attributes from that endpoint, no methods. [{“filename”: “avi_1003.mov”, “filesize”: 1033293}, {“filename”: “avi_1123.mov”, […]
Phalcon PHP, A C Extension PHP Framework
What is Phalcon? Phalcon is a PHP MVC Framework written with speed in mind; however, it takes a different approach to getting that speed. Quite a few micro-frameworks exist, the popular contenders being Slim, Silex, and CodeIgniter, but they all are exactly that: a micro-framework. Thus, you’re missing a lot of built-in functionality found in bigger, […]
Gnarly Web Redesign
A Whole New Look for Gnarly Web! I’ve been needing to redesign my site for quite a while now; I had started on this back in 2013, but never really got too far before I got swamped with work. I recently had some openings with time, so I jumped at the chance to redesign my site. […]