Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
page
components
column
excerpt.php
Go to the documentation of this file.
1
<?php
11
$item
=
$vars
[
'item'
];
12
/* @var ElggEntity $item */
13
14
$length
=
elgg_extract
(
'length'
,
$vars
, 250);
15
16
$description
=
$item
->description;
17
18
echo
elgg_get_excerpt
(
$description
, $excerpt_length);
$length
$length
Definition:
excerpt.php:14
$vars
$vars['entity']
Definition:
plugin_settings.php:15
echo
elgg echo
Translates a string.
Definition:
languages.js:48
$description
$description
Definition:
excerpt.php:16
elgg_extract
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1375
elgg_get_excerpt
elgg_get_excerpt($text, $num_chars=250)
Returns an excerpt.
Definition:
output.php:62
$item
$item
Render an excerpt of the description.
Definition:
excerpt.php:11
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11