To make this more "plug and play" for people using this module with inline images added via a WYSIWYG editor, I wrote a quick input filter which adds the class "adaptive" to each img tag. Presto chango, your existing site is now (more) adaptive!

Comments

mvc’s picture

Status: Active » Needs review
StatusFileSize
new2.03 KB
mvc’s picture

StatusFileSize
new2.53 KB

oops, forgot to properly handle the character set of the html snippet. fixed based on example from http://php.net/manual/en/domdocument.loadhtml.php

spotzero’s picture

Status: Needs review » Needs work

The function and hook implementations are incorrectly named. They should be named after the module to be correctly namespaced.

i.e.
ccdmd_filter_info() should be ais_filter_info()
_ccdmd_filter_adaptive_image_styles_process() should be _ais_filter_process().
_ccdmd_filter_adaptive_image_styles_tips() should be _ais_filter_tips().

mvc’s picture

Status: Needs work » Needs review
StatusFileSize
new2.52 KB

heh, oops. i was copying the code from a custom module written for a client :)