Elgg  Version 6.2
Variables
image_block.php File Reference

Go to the source code of this file.

Variables

 $body = elgg_extract('body', $vars, '')
 Elgg image block pattern. More...
 
 $image = elgg_extract('image', $vars, '')
 
 $alt_image = elgg_extract('image_alt', $vars, '')
 
 $vars ['class'] = elgg_extract_class($vars, ['elgg-image-block'])
 
 $content = ''
 
if($alt_image) $tag_name = elgg_extract('tag_name', $vars, 'div')
 

Variable Documentation

◆ $alt_image

$alt_image = elgg_extract('image_alt', $vars, '')

Definition at line 29 of file image_block.php.

◆ $body

$body = elgg_extract('body', $vars, '')

Elgg image block pattern.

Common pattern where there is an image, icon, media object to the left and a descriptive block of text to the right.


| | | alt | | image | body | image | | block | block | block |

| | | (optional)|

@uses $vars['body'] HTML content of the body block @uses $vars['image'] HTML content of the image block @uses $vars['image_alt'] HTML content of the alternate image block @uses $vars['class'] Optional additional class (or an array of classes) for the element @uses $vars['id'] Optional id for the element @uses $vars['tag_name'] Optional tag name for the element (default 'div')

Definition at line 23 of file image_block.php.

◆ $content

if ( $image) $content = ''

Definition at line 34 of file image_block.php.

◆ $image

$image = elgg_extract('image', $vars, '')
Examples
/root/Elgg/engine/lib/views.php.

Definition at line 26 of file image_block.php.

◆ $tag_name

if ( $alt_image) $tag_name = elgg_extract('tag_name', $vars, 'div')
Examples
/root/Elgg/engine/lib/output.php.

Definition at line 45 of file image_block.php.

◆ $vars

$vars[ 'class'] = elgg_extract_class($vars, ['elgg-image-block'])

Definition at line 32 of file image_block.php.