Steam workshop UPDATE
This commit is contained in:
parent
49600d1cfd
commit
fcc1b18e4c
23 changed files with 1290 additions and 335 deletions
20
modules/steam_workshop/views/index.php
Normal file
20
modules/steam_workshop/views/index.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
/** @var array $records */
|
||||
/** @var array $lang */
|
||||
/** @var bool $isAdmin */
|
||||
/** @var array $adapterOptions */
|
||||
?>
|
||||
<div class="sw-admin sw-index">
|
||||
<?php if (empty($records)): ?>
|
||||
<div class="sw-empty">
|
||||
<p><?php echo $isAdmin ? htmlspecialchars($lang['empty_state_admin']) : htmlspecialchars($lang['empty_state_user']); ?></p>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="sw-grid">
|
||||
<?php foreach ($records as $record): ?>
|
||||
<?php $currentRecord = $record; include __DIR__ . '/partials/server_card.php'; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue