コード例 #1
0
 /**
  * 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 . ' />';
 }
コード例 #2
0
ファイル: functions.render.php プロジェクト: adlerj/vanilla
 /**
  * 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 . ' />';
 }