{lang="downloads"}

{{if !empty( $featured )}}

{lang="featured_downloads"}

    {{foreach $featured as $file}} {template="featuredFile" group="browse" app="downloads" params="$file"} {{endforeach}}
{{endif}} {{if settings.idm_show_newest }}

{lang="browse_whats_new"}

{{if \count( $new )}}
    {{foreach $new as $idx => $file}} {template="indexBlock" group="browse" params="$file"} {{endforeach}}
{{else}}

{lang="no_new_files"}

{{endif}}
{{endif}} {{if settings.idm_show_highest_rated }}

{lang="browse_highest_rated"}

{{if \count( $rated )}}
    {{foreach $rated as $idx => $file}} {template="indexBlock" group="browse" params="$file"} {{endforeach}}
{{else}}

{lang="no_rated_files"}

{{endif}}
{{endif}} {{if settings.idm_show_most_downloaded }}

{lang="browse_most_downloaded"}

{{if \count( $downloaded )}}
    {{foreach $downloaded as $idx => $file}} {template="indexBlock" group="browse" params="$file"} {{endforeach}}
{{else}}

{lang="no_downloaded_files"}

{{endif}}
{{endif}} {{if \IPS\downloads\Category::canOnAny('add') OR \IPS\downloads\Category::theOnlyNode()}} {{endif}}