EasyBlogBlockHandlerImage
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
- Determine if current user can use this block or not in composer.
- data() : mixed
- Default block data
- formatDisplay() : mixed
- Standard method to format the output for displaying purposes
- getAMPHtml() : mixed
- Retrieve Instant article 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
- Displays 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
- updateBlock() : mixed
- validate() : mixed
- Validates if the block contains any contents
- addCssUnit() : mixed
- getStyle() : mixed
- ratioDecimal() : mixed
- function to convert the image ratio to decimal so that we can get the padding value for display.
Properties
$doc
public
mixed
$doc
= \null
$element
public
mixed
$element
= 'image'
$icon
public
mixed
$icon
= 'fdi fa fa-camera'
$keywords
public
mixed
$keywords
$nestable
public
mixed
$nestable
= \false
$table
public
mixed
$table
$title
public
mixed
$title
$type
public
mixed
$type
$visible
public
mixed
$visible
= \true
Methods
__construct()
public
__construct(EasyBlogTableBlock &$block) : mixed
Parameters
- $block : EasyBlogTableBlock
canUse()
Determine if current user can use this block or not in composer.
public
canUse() : mixed
Tags
data()
Default block data
public
data() : mixed
Tags
formatDisplay()
Standard method to format the output for displaying purposes
public
formatDisplay(mixed $item, EasyBlogPost &$blog) : mixed
Parameters
- $item : mixed
- $blog : EasyBlogPost
Tags
getAMPHtml()
Retrieve Instant article html
public
getAMPHtml(mixed $block) : mixed
Parameters
- $block : mixed
Tags
getDescription()
Retrieves the description / help text for the current block
public
getDescription() : mixed
Tags
getEditableHtml()
Retrieves the output for the block when it is being edited
public
getEditableHtml(mixed $block) : mixed
Parameters
- $block : mixed
Tags
getFieldset()
Renders the fieldset of a block
public
getFieldset(mixed $meta) : mixed
Parameters
- $meta : mixed
Tags
getHtml()
Displays the output
public
getHtml(mixed $block[, mixed $textOnly = false ][, mixed $useRelative = false ]) : mixed
Parameters
- $block : mixed
- $textOnly : mixed = false
- $useRelative : mixed = false
Tags
getIcon()
Retrieves the icon
public
getIcon() : mixed
Tags
getInstantHtml()
Retrieve Instant article html
public
getInstantHtml(mixed $block) : mixed
Parameters
- $block : mixed
Tags
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
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
addCssUnit()
private
addCssUnit(mixed $num) : mixed
Parameters
- $num : mixed
getStyle()
private
getStyle(mixed $rules) : mixed
Parameters
- $rules : mixed
ratioDecimal()
function to convert the image ratio to decimal so that we can get the padding value for display.
private
ratioDecimal(mixed $ratio) : mixed
Parameters
- $ratio : mixed