first commit
This commit is contained in:
25
templates/wiki/category-preview.php
Normal file
25
templates/wiki/category-preview.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<? global $user;?>
|
||||
<div class="row block-header">
|
||||
<div class="col-12">
|
||||
<h2>Kategoria: <strong><?= $this -> category['name'];?></strong></h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="menu-buttons">
|
||||
<? if ( $user['id'] == 1 or $user['id'] == 3 ):?>
|
||||
<a href="/wiki/category_edit/id=<?= $this -> category['id'];?>" class="btn btn-success btn-sm" title="Edytuj kategorię">
|
||||
<i class="fa fa-edit"></i>Edytuj kategorię
|
||||
</a>
|
||||
<? endif;?>
|
||||
<a href="/wiki/main_view/" class="btn btn-dark btn-sm" title="Wstecz">
|
||||
<i class="fa fa-reply"></i>Wstecz
|
||||
</a>
|
||||
</div>
|
||||
<div class="text-container">
|
||||
<?= $this -> category['text'];?>
|
||||
</div>
|
||||
<? if ( $user['id'] == 1 or $user['id'] == 3 ):?>
|
||||
<br>
|
||||
<div class="text-container">
|
||||
<?= $this -> category['text_admin'];?>
|
||||
</div>
|
||||
<? endif;?>
|
||||
Reference in New Issue
Block a user