/** * Returns an img tag. * * @param $Image * @param string $Attributes * @param bool|false $WithDomain * @return string */ function img($Image, $Attributes = '', $WithDomain = false) { if ($Attributes != '') { $Attributes = attribute($Attributes); } if (!IsUrl($Image)) { $Image = smartAsset($Image, $WithDomain); } return '<img src="' . htmlspecialchars($Image, ENT_QUOTES) . '"' . $Attributes . ' />'; }
/** * Returns an img tag. * * @param $Image * @param string $Attributes * @param bool|false $WithDomain * @return string */ function img($Image, $Attributes = '', $WithDomain = false) { if ($Attributes != '') { $Attributes = attribute($Attributes); } if (!IsUrl($Image)) { $Image = smartAsset($Image, $WithDomain); } return '<img src="' . $Image . '"' . $Attributes . ' />'; }