{template="embedHeader" group="embed" app="core" params="$item, $item->mapped('title'), $item->mapped('date'), $url"}
{{if $item->primary_screenshot_thumb}}
{{if \IPS\Application::appIsEnabled( 'nexus' ) and settings.idm_nexus_on}}
-
{{if $item->isPaid()}}
{$item->price()|raw}
{{else}}
{lang="file_free"}
{{endif}}
{{if $renewalTerm = $item->renewalTerm()}}
-
{lang="file_renewal_term_val" sprintf="$renewalTerm"}
{{endif}}
{{endif}}
{{if $item->container()->version_numbers OR ($item->isPaid() and \in_array( 'purchases', explode( ',', settings.idm_nexus_display ) )) OR (!$item->isPaid() or \in_array( 'downloads', explode( ',', settings.idm_nexus_display ) ))}}
{{if $item->container()->version_numbers}} - {lang="version"} {$item->version}
{{endif}}
{{if $item->isPaid() and \in_array( 'purchases', explode( ',', settings.idm_nexus_display ) )}}
- purchaseCount()}}class='ipsType_light'{{endif}}> {lang="x_purchases" pluralize="$item->purchaseCount()"}
{{endif}}
{{if !$item->isPaid() or \in_array( 'downloads', explode( ',', settings.idm_nexus_display ) )}}
- downloads}}class='ipsType_light'{{endif}}> {lang="num_downloads" pluralize="$item->downloads"}
{{endif}}
{{endif}}
{{if \IPS\Member::loggedIn()->member_id}}
{{endif}}
{$item->truncated(TRUE)|raw}
{template="embedItemStats" group="embed" app="core" params="$item, $item->container()->bitoptions['comments']"}