while validating a page that uses this plugin I found out that there is a minor mistake in the usage instructions which could eventually cause errors, eg:
line 8: * Declare your variables in this order: - url, alt, id, class, title. Things break if you don't!
contraddicted by
line 13(14,15): * < plug:rand_img url='files/notes', id='home_note', alt='Hello!', title='Howdy!' /> (Normal method)
In facts following the pattern on line 13 I had an output where the alt and id where scrambled, as well as class/title and title was missing...
therefore my choice was to accordingly change the order url, id, alt, class, title in line 20:
function rand_img($folder='', $id=false, $alt=false, $class=false, $title=false )
and in line 46:
$style = "< img src='$url' id='$id' alt='$alt' class='$class' title='$title' />";
You need to be logged in to post.
