wire_thread; if (!$thread_id) { $post->wire_thread = $post->guid; } $owner = $post->getOwnerEntity(); $owner_icon = elgg_view_entity_icon($owner, 'tiny'); $owner_link = elgg_view('output/url', array( 'href' => "thewire/owner/$owner->username", 'text' => $owner->name, 'is_trusted' => true, )); $author_text = elgg_echo('byline', array($owner_link)); $date = elgg_view_friendly_time($post->time_created); $metadata = elgg_view_menu('entity', array( 'entity' => $post, 'handler' => 'thewire', 'sort_by' => 'priority', 'class' => 'elgg-menu-hz', )); $subtitle = "$author_text $date"; // do not show the metadata and controls in widget view if (elgg_in_context('widgets')) { $metadata = ''; } // Add decrypt option if (strlen(strstr($post->description,"U2FsdGVkX1"))>0) { $post->description = '
' . $post->description . '
' . elgg_echo("elgg-crypt:decrypt") . '
'; } else { $post->description = $post->description; } $params = array( 'entity' => $post, 'metadata' => $metadata, 'subtitle' => $subtitle, 'content' => thewire_filter($post->description), 'tags' => false, ); $params = $params + $vars; $list_body = elgg_view('object/elements/summary', $params); echo elgg_view_image_block($owner_icon, $list_body); if ($post->reply) { echo "
guid}\">"; echo "
"; }