<?php

$ipsum = elgg_view('developers/ipsum');

$object = new ThemeSandboxObject();
$object->title = 'Test Object';
$object->description = $ipsum;
$object->tags = ['tag 1', 'tag 2', 'tag 3'];

$summary = elgg_view('object/elements/summary', [
	'entity' => $object,
	'subtitle' => 'Listing subtitle',
	'class' => 'theme-sandbox-summary-listing',
	'metadata' => elgg_view_menu('entity', [
		'entity' => $object,
		'handler' => 'theme-sandbox',
		'class' => 'elgg-menu-hz',
	]),
]);

$icon = elgg_view_entity_icon($object, 'small');

echo elgg_view('object/elements/full', [
	'entity' => $object,
	'summary' => $summary,
	'icon' => $icon,
	'body' => elgg_view('output/longtext', [
		'value' => $object->description,
	]),
	'class' => 'theme-sandbox-full-listing',
]);