Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
river
elements
image.php
Go to the documentation of this file.
1
<?php
10
$item
=
$vars
[
'item'
];
11
/* @var ElggRiverItem $item */
12
13
$subject
=
$item
->getSubjectEntity();
14
15
if
(
elgg_in_context
(
'widgets'
)) {
16
echo
elgg_view_entity_icon
(
$subject
,
'tiny'
);
17
}
else
{
18
echo
elgg_view_entity_icon
(
$subject
,
'small'
);
19
}
$vars
$vars['entity']
Definition:
plugin_settings.php:15
elgg_in_context
elgg_in_context($context)
Check if this context exists anywhere in the stack.
Definition:
pageowner.php:241
echo
elgg echo
Translates a string.
Definition:
languages.js:48
elgg_view_entity_icon
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
Definition:
views.php:936
$item
$item
Elgg river image.
Definition:
image.php:10
$subject
$subject
Definition:
image.php:13
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11