{lang="block_topDownloads"}

{{if $orientation == 'vertical'}}
{{if \count( $week )}}
    {{foreach $week as $idx => $data}} {template="fileRow" group="widgets" app="downloads" params="$data"} {{endforeach}}
{{else}}

{lang="no_downloaded_files__week"}

{{endif}}
{{if \count( $month )}}
    {{foreach $month as $idx => $data}} {template="fileRow" group="widgets" app="downloads" params="$data"} {{endforeach}}
{{else}}

{lang="no_downloaded_files__month"}

{{endif}}
{{if \count( $year )}}
    {{foreach $year as $idx => $data}} {template="fileRow" group="widgets" app="downloads" params="$data"} {{endforeach}}
{{else}}

{lang="no_downloaded_files__year"}

{{endif}}
{{if \count( $all )}}
    {{foreach $all as $idx => $data}} {template="fileRow" group="widgets" app="downloads" params="$data"} {{endforeach}}
{{else}}

{lang="no_downloaded_files"}

{{endif}}
{{else}}

{lang="week"}

{{if \count( $week )}}
    {{foreach $week as $idx => $data}} {template="fileRow" group="widgets" app="downloads" params="$data, $orientation"} {{endforeach}}
{{else}}

{lang="no_downloaded_files__week"}

{{endif}}

{lang="month"}

{{if \count( $month )}}
    {{foreach $month as $idx => $data}} {template="fileRow" group="widgets" app="downloads" params="$data, $orientation"} {{endforeach}}
{{else}}

{lang="no_downloaded_files__month"}

{{endif}}

{lang="year"}

{{if \count( $year )}}
    {{foreach $year as $idx => $data}} {template="fileRow" group="widgets" app="downloads" params="$data, $orientation"} {{endforeach}}
{{else}}

{lang="no_downloaded_files__year"}

{{endif}}

{lang="alltime"}

{{if \count( $all )}}
    {{foreach $all as $idx => $data}} {template="fileRow" group="widgets" app="downloads" params="$data, $orientation"} {{endforeach}}
{{else}}

{lang="no_downloaded_files"}

{{endif}}
{{endif}}