PHP Class WPDKHTMLTagImg

Remeber to add this tag in WPDKHTMLTagName
Since: 1.3.1
Author: =undo= ([email protected])
Inheritance: extends WPDKHTMLTag
Datei anzeigen Open project: wpxtreme/wpdk Class Usage Examples

Public Properties

Property Type Description
$alt string Specifies an alternate text for an image
$crossorigin string Allow images from third-party sites that allow cross-origin access to be used with canvas: anonymous, use-credentials
$height string Specifies the height of an image
$ismap string Specifies an image as a server-side image-map: ismap
$src string Specifies the URL of an image
$usemap string Specifies an image as a client-side image-map. Values #mapnam
$width string Specifies the width of an image

Public Methods

Method Description
__construct ( string $src = '', string $alt = '', string $width = '', string $height = '' ) : WPDKHTMLTagImg Create an instance of WPDKHTMLTagImg class

Method Details

__construct() public method

Create an instance of WPDKHTMLTagImg class
public __construct ( string $src = '', string $alt = '', string $width = '', string $height = '' ) : WPDKHTMLTagImg
$src string Optional. Specifies the URL of an image
$alt string Optional. Specifies an alternate text for an image
$width string Optional. Specifies the width of an image
$height string Optional. Specifies the height of an image
return WPDKHTMLTagImg

Property Details

$alt public_oe property

Specifies an alternate text for an image
public string $alt
return string

$crossorigin public_oe property

Allow images from third-party sites that allow cross-origin access to be used with canvas: anonymous, use-credentials
public string $crossorigin
return string

$height public_oe property

Specifies the height of an image
public string $height
return string

$ismap public_oe property

Specifies an image as a server-side image-map: ismap
public string $ismap
return string

$src public_oe property

Specifies the URL of an image
public string $src
return string

$usemap public_oe property

Specifies an image as a client-side image-map. Values #mapnam
public string $usemap
return string

$width public_oe property

Specifies the width of an image
public string $width
return string