Elgg  Version master
Variables
content.php File Reference

Go to the source code of this file.

Variables

 $blogs = []
 Elgg News fetched from the community. More...
 
 try
 
 $response = $client->get('https://elgg.org/blog/all?view=json')
 
 $data = $response->getBody()->getContents()
 
 $list_items = ''
 
foreach($blogs as $blog) $list = elgg_format_element('ul', ['class' => 'elgg-list'], $list_items)
 

Variable Documentation

catch (\Exception $e) if (empty($blogs)||!is_array($blogs)) $blogs = []

Elgg News fetched from the community.

Definition at line 6 of file content.php.

$data = $response->getBody()->getContents()

Definition at line 11 of file content.php.

foreach ($blogs as $blog) $list = elgg_format_element('ul', ['class' => 'elgg-list'], $list_items)

Definition at line 45 of file content.php.

$list_items = ''

Definition at line 24 of file content.php.

$response = $client->get('https://elgg.org/blog/all?view=json')

Definition at line 10 of file content.php.

try
Initial value:
{
$client = elgg_get_http_client(['verify' => false])
$client
elgg_get_http_client(array $options=[])
Returns a Guzzle HTTP client.
Definition: elgglib.php:235

Definition at line 7 of file content.php.