Documentation

EasyBlogBlockHandlerHtml extends EasyBlogBlockHandlerAbstract
in package

Table of Contents

Properties

$doc  : mixed
$element  : mixed
$icon  : mixed
$keywords  : mixed
$nestable  : mixed
$table  : mixed
$title  : mixed
$type  : mixed
$visible  : mixed

Methods

__construct()  : mixed
canUse()  : mixed
use for acl checking on blocks. By default this method always return true. If a block needed acl checking, the block will need to override this method in their handler.
data()  : mixed
formatDisplay()  : mixed
Standard method to format the output for displaying purposes
getAMPHtml()  : mixed
Retrieve AMP html
getDescription()  : mixed
Retrieves the description / help text for the current block
getEditableHtml()  : mixed
Retrieves the output for the block when it is being edited
getFieldset()  : mixed
Renders the fieldset of a block
getHtml()  : mixed
We need to alter the behavior of the HTML block to address issues with dynamic scripts that tries to alter the output
getIcon()  : mixed
Retrieves the icon
getInstantHtml()  : mixed
Retrieve Instant article html
getInstantHtmlArticle()  : mixed
getInstantHtmlBlockquote()  : mixed
getInstantHtmlEmbedded()  : mixed
getInstantHtmlFigure()  : mixed
getInstantHtmlGallery()  : mixed
getInstantHtmlHeading()  : mixed
getInstantHtmlImage()  : mixed
getInstantHtmlNone()  : mixed
getInstantHtmlSection()  : mixed
getInstantHtmlTable()  : mixed
getInstantHtmlVideo()  : mixed
meta()  : mixed
Standard meta data of a block object
normaliseImageTags()  : mixed
Convert HTML img tag to amp-img tag
updateBlock()  : mixed
validate()  : mixed
Validates if the block contains any contents

Properties

$element

public mixed $element = 'none'

$icon

public mixed $icon = 'fdi fa fa-code'

$nestable

public mixed $nestable = \false

Methods

canUse()

use for acl checking on blocks. By default this method always return true. If a block needed acl checking, the block will need to override this method in their handler.

public canUse() : mixed
Tags
since
5.0
access

public

data()

public data() : mixed

formatDisplay()

Standard method to format the output for displaying purposes

public formatDisplay(mixed $item, EasyBlogPost &$blog) : mixed
Parameters
$item : mixed
$blog : EasyBlogPost
Tags
since
5.1
access

public

getAMPHtml()

Retrieve AMP html

public getAMPHtml(mixed $block) : mixed
Parameters
$block : mixed
Tags
since
5.3.0
access

public

getDescription()

Retrieves the description / help text for the current block

public getDescription() : mixed
Tags
since
5.1
access

public

getEditableHtml()

Retrieves the output for the block when it is being edited

public getEditableHtml(mixed $block) : mixed
Parameters
$block : mixed
Tags
since
5.0
access

public

getFieldset()

Renders the fieldset of a block

public getFieldset(mixed $meta) : mixed
Parameters
$meta : mixed
Tags
since
6.0.0
access

public

getHtml()

We need to alter the behavior of the HTML block to address issues with dynamic scripts that tries to alter the output

public getHtml(mixed $block[, mixed $textOnly = false ]) : mixed
Parameters
$block : mixed
$textOnly : mixed = false
Tags
since
5.1.4
access

public

getIcon()

Retrieves the icon

public getIcon() : mixed
Tags
since
5.1
access

public

getInstantHtml()

Retrieve Instant article html

public getInstantHtml(mixed $block) : mixed
Parameters
$block : mixed
Tags
since
5.0
access

public

getInstantHtmlArticle()

public getInstantHtmlArticle(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlBlockquote()

public getInstantHtmlBlockquote(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlEmbedded()

public getInstantHtmlEmbedded(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlFigure()

public getInstantHtmlFigure(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlGallery()

public getInstantHtmlGallery(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlHeading()

public getInstantHtmlHeading(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlImage()

public getInstantHtmlImage(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlNone()

public getInstantHtmlNone(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlSection()

public getInstantHtmlSection(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlTable()

public getInstantHtmlTable(mixed $block) : mixed
Parameters
$block : mixed

getInstantHtmlVideo()

public getInstantHtmlVideo(mixed $block) : mixed
Parameters
$block : mixed

meta()

Standard meta data of a block object

public meta() : mixed

normaliseImageTags()

Convert HTML img tag to amp-img tag

public normaliseImageTags(mixed $blockContent, mixed $customImageWidth, mixed $customImageHeight) : mixed
Parameters
$blockContent : mixed
$customImageWidth : mixed
$customImageHeight : mixed
Tags
since
5.4.0
access

public

updateBlock()

public updateBlock(mixed $block, mixed $data) : mixed
Parameters
$block : mixed
$data : mixed

validate()

Validates if the block contains any contents

public validate(mixed $block) : mixed
Parameters
$block : mixed
Tags
since
5.0
access

public

Loading…
On this page

Search results