Tag Archive: jQuery
Blurbette Plugin: TinyMCE Control
This time I’ll define a TinyMCE Control class that must be instantiated.
The last one, the Shortcode class, works fine without instantiating because all its properties are one-offs, and its public elements are available to all scopes (global and function).
This class defines a ‘thing’ that has unique properties, and there might be more than one of these ‘things,’ so it must ...
Preload Images
Here’s an easy way to manage your image preloads from anywhere in your PHP functions. We can simply build a globalized array of all image sources prior to outputting the page, then hook into the wp_footer action to output the required Javascript.
Each time your code encounters an image source that must be preloaded, simply call wpcx_add_preload_img($src) to add it to ...