Files
novgorodschi catalin fe6ff01396 Fix Some PHP 8+ view error in Build & Credits
Fix Some PHP 8+ view error in Build & Credits

TO DO :  Full audit in build directory
2026-06-25 10:54:58 +03:00

45 lines
2.2 KiB
Smarty

<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename : ARMOURY ##
## Type : BUILDING TEMPLATE ##
## --------------------------------------------------------------------------- ##
## Refactored by : Shadow ##
## Redesign by : Shadow ##
## --------------------------------------------------------------------------- ##
## Contact : cata7007@gmail.com ##
## Project : TravianZ ##
## Test Server : https://travianz.org ##
## GitHub : https://github.com/Shadowss/TravianZ ##
## --------------------------------------------------------------------------- ##
## License : TravianZ Project ##
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
## --------------------------------------------------------------------------- ##
#################################################################################
$field = 'f' . $id;
$currentLevel = isset($village->resarray[$field]) ? (int)$village->resarray[$field] : 0;
$hasArmoury = $building->getTypeLevel(13) > 0;
?>
<div id="build" class="gid13">
<a href="#" onclick="return Popup(13,4);" class="build_logo">
<img class="building g13" src="img/x.gif" alt="<?php echo ARMOURY; ?>" title="<?php echo ARMOURY; ?>">
</a>
<h1>
<?php echo ARMOURY; ?>
<span class="level"><?php echo LEVEL; ?> <?php echo $currentLevel; ?></span>
</h1>
<p class="build_desc"><?php echo ARMOURY_DESC; ?></p>
<?php if ($hasArmoury): ?>
<?php include '13_upgrades.tpl'; ?>
<?php else: ?>
<p><b><?php echo UPGRADES_COMMENCE_ARMOURY; ?></b></p>
<?php endif; ?>
<?php include 'upgrade.tpl'; ?>
</div>