21 $max = $config->get(
'HTML.MaxImgLength');
31 'height' =>
'Pixels#' . $max,
32 'width' =>
'Pixels#' . $max,
37 if ($max === null || $config->get(
'HTML.Trusted')) {
38 $img->attr[
'height'] =
39 $img->attr[
'width'] =
'Length';
43 $img->attr_transform_pre[] =
44 $img->attr_transform_post[] =
addElement($element, $type, $contents, $attr_includes=array(), $attr=array())
Convenience function that sets up a new element.
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
XHTML 1.1 Image Module provides basic image embedding.
Validates a URI as defined by RFC 3986.