Blog posts tagged php

Practical uses of PHP’s Reflection API

Posted 11 years in | Comments (240)

While I’ve been working on my CM framework, I came to realize how useful PHP’s Reflection actually is during development.
So I wrote two examples: php-highlight, which displays caller source in my custom exception handler, and php-ref, which prints detailed and nicely formatted information about a [...]

Featured images (thumbnails) in menus

Posted 12 years in | Comments (98)

The following code will let you use featured images as thumbnails in your custom menus. Paste this in your child theme functions.php file, or theme settings > Advanced > User-defined code:

atom()->setContextArgs(‘primary_menu’, array(‘walker’ => new ThumbMenuWalker()));

class ThumbMenuWalker [...]