Skip to content

Commit

Permalink
WEB: Merged in more screenshot-related templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 12, 2015
1 parent f4f8a01 commit 63bb577
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 80 deletions.
8 changes: 8 additions & 0 deletions lang/lang.de.ini
Expand Up @@ -3,3 +3,11 @@ newsContentTitle = "Aktuelle Entwicklungen"

screenshotsHeading = "Bildschirmfotos"
screenshotsNavigation = "Navigation"

screenshotsCategoryHeading = "Gallerie"
screenshotsCategoryBack = "Back"

screenshotsViewerHeading = "Gallerie"
screenshotsViewerPrevious = "Vorheriges"
screenshotsViewerNext = "Nächstes"
screenshotsViewerBack = "Back"
8 changes: 8 additions & 0 deletions lang/lang.ini
Expand Up @@ -49,5 +49,13 @@ screenshotsContentTitle = "Screenshots"
screenshotsHeading = "Screenshots"
screenshotsNavigation = "Navigation"

screenshotsCategoryHeading = "Screenshot Gallery"
screenshotsCategoryBack = "Back"

screenshotsViewerHeading = "Screenshot Gallery"
screenshotsViewerPrevious = "Previous"
screenshotsViewerNext = "Next"
screenshotsViewerBack = "Back"

subprojectsTitle = "Subprojects"
subprojectsContentTitle = "Subprojects"
8 changes: 8 additions & 0 deletions lang/lang.ru.ini
Expand Up @@ -49,5 +49,13 @@ screenshotsContentTitle = "Скриншоты"
screenshotsHeading = "Скриншоты"
screenshotsNavigation = "Навигация"

screenshotsCategoryHeading = "Галерея скриншотов"
screenshotsCategoryBack = "Назад"

screenshotsViewerHeading = "Галерея скриншотов"
screenshotsViewerPrevious = "Пред."
screenshotsViewerNext = "След."
screenshotsViewerBack = "Назад"

subprojectsTitle = "Подпроекты"
subprojectsContentTitle = "Подпроекты"
8 changes: 4 additions & 4 deletions templates/screenshots_category.tpl
Expand Up @@ -3,7 +3,7 @@
{* A single game (target) was selected. *}
{if !empty($game)}
<div class="box">
<div class="head">Screenshot Gallery</div>
<div class="head">{#screenshotsCategoryHeading#}</div>
{foreach from=$screenshots.games item=g name=cat_loop}
{if $game == $g->getCategory()}
<h3 class="subhead">{$g->getName()}</h3>
Expand All @@ -19,13 +19,13 @@
{/foreach}
<div class="spacing"></div>
</div>
<a href="screenshots/{$category}/">Back</a>
<a href="screenshots/{$category}/">{#screenshotsCategoryBack#}</a>

{else}

{* No game selected, but the complete category. *}
<div class="box">
<div class="head">Screenshot Gallery</div>
<div class="head">{#screenshotsCategoryHeading#}</div>
{foreach from=$screenshots.games item=g name=cat_loop}
<div>
<h3 class="subhead"><a href="screenshots/{$category}/{$g->getCategory()}/">{$g->getName()}</a></h3>
Expand All @@ -41,5 +41,5 @@
<div class="spacing"></div>
{/foreach}
</div>
<a href="screenshots/">Back</a>
<a href="screenshots/">{#screenshotsCategoryBack#}</a>
{/if}
8 changes: 4 additions & 4 deletions templates/screenshots_viewer.tpl
Expand Up @@ -2,7 +2,7 @@
{assign var='files' value=$screenshot->getFiles()}

<div class="box">
<div class="head">Screenshot Gallery</div>
<div class="head">{#screenshotsViewerHeading#}</div>
<h3 class="subhead">{$screenshot->getName()} (#{$num+1} of {$files|@count})</h3>
<div class="viewer">
<div class="screenshot">
Expand All @@ -12,16 +12,16 @@
<div>
{if $num > 0}
<a href="screenshots/{$category}/{$screenshot->getCategory()}/{$num}/" class="float_left">
Previous
{#screenshotsViewerPrevious#}
</a>
{/if}
{if $num < ($files|@count) - 1}
<a href="screenshots/{$category}/{$screenshot->getCategory()}/{$num+2}/" class="float_right">
Next
{#screenshotsViewerNext#}
</a>
{/if}
</div>
<div class="spacing"></div>
</div>
<a href="screenshots/{$category}/{$screenshot->getCategory()}/">Back</a>
<a href="screenshots/{$category}/{$screenshot->getCategory()}/">{#screenshotsViewerBack#}</a>
</div>
45 changes: 0 additions & 45 deletions templates_de/screenshots_category.tpl

This file was deleted.

27 changes: 0 additions & 27 deletions templates_de/screenshots_viewer.tpl

This file was deleted.

0 comments on commit 63bb577

Please sign in to comment.