Elgg  Version 2.3
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, '')
 
 $class = elgg_extract_class($vars, ['elgg-image-block', 'clearfix'])
 
if($image) if($alt_image) $params = $vars
 
 $params ['class'] = $class
 

Variable Documentation

◆ $alt_image

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

Definition at line 28 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 media element @uses $vars['id'] Optional id for the media element

Definition at line 22 of file image_block.php.

◆ $class

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

Definition at line 31 of file image_block.php.

◆ $image

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

Definition at line 25 of file image_block.php.

◆ $params [1/2]

if ( $image) if ( $alt_image) $params = $vars

Definition at line 50 of file image_block.php.

◆ $params [2/2]

$params[ 'class'] = $class

Definition at line 51 of file image_block.php.