mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fe6ff01396
Fix Some PHP 8+ view error in Build & Credits TO DO : Full audit in build directory
45 lines
2.2 KiB
Smarty
45 lines
2.2 KiB
Smarty
<?php
|
|
|
|
#################################################################################
|
|
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
|
## --------------------------------------------------------------------------- ##
|
|
## Filename : BLACKSMITH ##
|
|
## 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 = (int) ($village->resarray[$field] ?? 0);
|
|
$hasBlacksmith = $building->getTypeLevel(12) > 0;
|
|
?>
|
|
<div id="build" class="gid12">
|
|
<a href="#" onclick="return Popup(12,4);" class="build_logo">
|
|
<img class="building g12" src="img/x.gif" alt="<?= BLACKSMITH ?>" title="<?= BLACKSMITH ?>">
|
|
</a>
|
|
|
|
<h1>
|
|
<?= BLACKSMITH ?>
|
|
<span class="level"><?= LEVEL ?> <?= $currentLevel ?></span>
|
|
</h1>
|
|
|
|
<p class="build_desc"><?= BLACKSMITH_DESC ?></p>
|
|
|
|
<?php if ($hasBlacksmith): ?>
|
|
<?php include '12_upgrades.tpl'; ?>
|
|
<?php else: ?>
|
|
<p><b><?= UPGRADES_COMMENCE_BLACKSMITH ?></b></p>
|
|
<?php endif; ?>
|
|
|
|
<?php include 'upgrade.tpl'; ?>
|
|
</div> |