RebrandVariable

Type
Class
Namespace
Craft
Inherits
Craft\RebrandVariable
Since
1.0

Rebranding functions.

See also http://craftcms.com

View source (opens new window)

# Public Methods

Method Description
getIcon() Returns the icons variable, or null if a site icon hasn't been uploaded.
getImageVariable() Get the ImageVariable for type.
getLogo() Returns the logo's Image variable, or null if a logo hasn't been uploaded.
isIconUploaded() Returns whether a custom site icon has been uploaded.
isImageUploaded() Return whether the specified type of image has been uploaded for the site.
isLogoUploaded() Returns whether a custom logo has been uploaded.

# getIcon()

Returns the icons variable, or null if a site icon hasn't been uploaded.

View source (opens new window)

Returns

Craft\ImageVariable, null (opens new window)

Signature

public Craft\ImageVariable, null getIcon ( )

# getImageVariable()

Get the ImageVariable for type.

View source (opens new window)

Arguments

  • $type

Returns

Craft\ImageVariable, null (opens new window)

Signature

public Craft\ImageVariable, null getImageVariable ( $type )

Returns the logo's Image variable, or null if a logo hasn't been uploaded.

View source (opens new window)

Returns

Craft\ImageVariable, null (opens new window)

Signature

public Craft\ImageVariable, null getLogo ( )

# isIconUploaded()

Returns whether a custom site icon has been uploaded.

View source (opens new window)

Returns

boolean (opens new window)

Signature

public boolean isIconUploaded ( )

# isImageUploaded()

Return whether the specified type of image has been uploaded for the site.

View source (opens new window)

Arguments

Returns

boolean (opens new window)

Signature

public boolean isImageUploaded ( $type )

# isLogoUploaded()

Returns whether a custom logo has been uploaded.

View source (opens new window)

Returns

boolean (opens new window)

Signature

public boolean isLogoUploaded ( )