Skip to content

Commit

Permalink
Patches (probably the last update)
Browse files Browse the repository at this point in the history
Why last update? It works perfectly with no problems, could be updates with languages and that's it
* Green means enabled, red means disabled **IMPORTANT**
* Added languages for `translate.namelessmc.com`
* Formatting
* Remove all PHPStan errors
  • Loading branch information
PadowYT2 committed Aug 9, 2022
1 parent 6294e21 commit eb6cd2f
Show file tree
Hide file tree
Showing 36 changed files with 1,027 additions and 1,008 deletions.
171 changes: 87 additions & 84 deletions custom/panel_templates/Default/CustomDropdown/edit_dropdown.tpl
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,106 +2,109 @@

<body id="page-top">

<!-- Wrapper -->
<div id="wrapper">
<!-- Wrapper -->
<div id="wrapper">

<!-- Sidebar -->
{include file='sidebar.tpl'}
<!-- Sidebar -->
{include file='sidebar.tpl'}

<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">

<!-- Main content -->
<div id="content">
<!-- Main content -->
<div id="content">

<!-- Topbar -->
{include file='navbar.tpl'}
<!-- Topbar -->
{include file='navbar.tpl'}

<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Begin Page Content -->
<div class="container-fluid">

<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">


<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">{$TITLE}</h1>
</div>
</div>
</div>

<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="card">
<div class="card-body">
<h5 style="display:inline">{$EDITE_DROPDOWN} <label>{$EDIT_TITLE}</label></h5>
<div class="float-md-right">
<a style="display:inline" href="{$BACK_LINK}" class="btn btn-warning">{$BACK}</a>
</div>

<hr>

{if isset($ERRORS) && !empty($ERRORS)}
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h5><i class="icon fas fa-exclamation-triangle"></i> {$ERRORS_TITLE}</h5>
<ul>
{foreach from=$ERRORS item=error}
<li>{$error}</li>
{/foreach}
</ul>
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">{$TITLE}</h1>
</div>
</div>
</div>
{/if}

<form action="" method="post">
<div class="form-group">
<label for="DropdownTitle">{$DROPDOWN_TITLE}</label>
<input type="text" id="DropdownTitle" name="dropdown_title" class="form-control"
value="{$EDIT_TITLE}">
</div>
<div class="form-group">
<label for="DropdownLocation">{$DROPDOWN_LOCATION}</label>
<select class="form-control" id="DropdownLocation" name="dropdown_location">
<option value="1" {if $EDIT_LOCATION == 1} selected{/if}>{$LINK_NAVBAR}</option>
<option value="2" {if $EDIT_LOCATION == 2} selected{/if}>{$LINK_FOOTER}</option>
</select>
<!-- <input type="text" id="DropdownLocation" name="dropdown_location" class="form-control" value="{$EDIT_LOCATION}"> -->
</div>
<div class="form-group">
<label for="DropdownIcon">{$DROPDOWN_ICON}</label>
<input type="text" id="DropdownIcon" name="dropdown_icon" class="form-control"
value="{$EDIT_ICON}">
</div>
<div class="form-group">
<label for="DropdownOrder">{$DROPDOWN_ORDER}</label>
<input type="text" id="DropdownOrder" name="dropdown_order" class="form-control"
value="{$EDIT_ORDER}">
</div>
<div class="form-group">
<input type="hidden" name="token" value="{$TOKEN}">
<input type="submit" class="btn btn-primary" value="{$SUBMIT}">
</div>
</form>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="card">
<div class="card-body">
<h5 style="display:inline">{$EDITE_DROPDOWN} <label>{$EDIT_TITLE}</label></h5>
<div class="float-md-right">
<a style="display:inline" href="{$BACK_LINK}"
class="btn btn-warning">{$BACK}</a>
</div>

<hr>

{if isset($ERRORS) && !empty($ERRORS)}
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h5><i class="icon fas fa-exclamation-triangle"></i> {$ERRORS_TITLE}</h5>
<ul>
{foreach from=$ERRORS item=error}
<li>{$error}</li>
{/foreach}
</ul>
</div>
{/if}

<form action="" method="post">
<div class="form-group">
<label for="DropdownTitle">{$DROPDOWN_TITLE}</label>
<input type="text" id="DropdownTitle" name="dropdown_title"
class="form-control" value="{$EDIT_TITLE}">
</div>
<div class="form-group">
<label for="DropdownLocation">{$DROPDOWN_LOCATION}</label>
<select class="form-control" id="DropdownLocation" name="dropdown_location">
<option value="1" {if $EDIT_LOCATION == 1} selected{/if}>{$LINK_NAVBAR}
</option>
<option value="2" {if $EDIT_LOCATION == 2} selected{/if}>{$LINK_FOOTER}
</option>
</select>
<!-- <input type="text" id="DropdownLocation" name="dropdown_location" class="form-control" value="{$EDIT_LOCATION}"> -->
</div>
<div class="form-group">
<label for="DropdownIcon">{$DROPDOWN_ICON}</label>
<input type="text" id="DropdownIcon" name="dropdown_icon"
class="form-control" value="{$EDIT_ICON}">
</div>
<div class="form-group">
<label for="DropdownOrder">{$DROPDOWN_ORDER}</label>
<input type="text" id="DropdownOrder" name="dropdown_order"
class="form-control" value="{$EDIT_ORDER}">
</div>
<div class="form-group">
<input type="hidden" name="token" value="{$TOKEN}">
<input type="submit" class="btn btn-primary" value="{$SUBMIT}">
</div>
</form>
</div>
</div>

</div>
</section>
</div>
</div>

</div>
</section>
</div>
</div>

{include file='footer.tpl'}
{include file='footer.tpl'}

</div>
</div>

</div>
<!-- ./wrapper -->
</div>
<!-- ./wrapper -->

{include file='scripts.tpl'}
{include file='scripts.tpl'}

</body>

Expand Down
146 changes: 75 additions & 71 deletions custom/panel_templates/Default/CustomDropdown/edit_page.tpl
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,92 +2,96 @@

<body id="page-top">

<!-- Wrapper -->
<div id="wrapper">
<!-- Wrapper -->
<div id="wrapper">

<!-- Sidebar -->
{include file='sidebar.tpl'}
<!-- Sidebar -->
{include file='sidebar.tpl'}

<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">

<!-- Main content -->
<div id="content">
<!-- Main content -->
<div id="content">

<!-- Topbar -->
{include file='navbar.tpl'}
<!-- Topbar -->
{include file='navbar.tpl'}

<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Begin Page Content -->
<div class="container-fluid">

<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">


<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">{$TITLE}</h1>
</div>
</div>
</div>

<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="card">
<div class="card-body">
<h5 style="display:inline">{$EDITE_DROPDOWN} <label>{$EDIT_TITLE}</label></h5>
<div class="float-md-right">
<a style="display:inline" href="{$BACK_LINK}" class="btn btn-warning">{$BACK}</a>
</div>

<hr>

<form action="" method="post">
<div class="form-group">
<label for="DropdownTitle">{$PAGE_TITLE}</label>
<input type="text" id="DropdownTitle" name="page_title" class="form-control"
value="{$EDIT_TITLE}">
</div>
<div class="form-group">
<label for="PageLink">{$PAGE_LINK}</label>
<input type="text" id="PageLink" name="page_link" class="form-control" value="{$EDIT_LINK}">
</div>
<div class="form-group">
<label for="PageTarget">{$PAGE_TARGET}</label>
<select class="form-control" id="PageTarget" name="page_target">
<option value="0">{$NO}</option>
<option value="1">{$YES}</option>
</select>
</div>
<div class="form-group">
<label for="PageIcon">{$PAGE_ICON}</label>
<input type="text" id="PageIcon" name="page_icon" class="form-control" value="{$EDIT_ICON}">
</div>
<div class="form-group">
<label for="PageOrder">{$PAGE_ORDER}</label>
<input type="text" id="PageOrder" name="page_order" class="form-control" value="{$EDIT_ORDER}">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">{$TITLE}</h1>
</div>
</div>
</div>
<div class="form-group">
<input type="hidden" name="token" value="{$TOKEN}">
<input type="submit" class="btn btn-primary" value="{$SUBMIT}">
</div>
</form>
</div>
</div>

<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="card">
<div class="card-body">
<h5 style="display:inline">{$EDITE_DROPDOWN} <label>{$EDIT_TITLE}</label></h5>
<div class="float-md-right">
<a style="display:inline" href="{$BACK_LINK}"
class="btn btn-warning">{$BACK}</a>
</div>

<hr>

<form action="" method="post">
<div class="form-group">
<label for="DropdownTitle">{$PAGE_TITLE}</label>
<input type="text" id="DropdownTitle" name="page_title" class="form-control"
value="{$EDIT_TITLE}">
</div>
<div class="form-group">
<label for="PageLink">{$PAGE_LINK}</label>
<input type="text" id="PageLink" name="page_link" class="form-control"
value="{$EDIT_LINK}">
</div>
<div class="form-group">
<label for="PageTarget">{$PAGE_TARGET}</label>
<select class="form-control" id="PageTarget" name="page_target">
<option value="0">{$NO}</option>
<option value="1">{$YES}</option>
</select>
</div>
<div class="form-group">
<label for="PageIcon">{$PAGE_ICON}</label>
<input type="text" id="PageIcon" name="page_icon" class="form-control"
value="{$EDIT_ICON}">
</div>
<div class="form-group">
<label for="PageOrder">{$PAGE_ORDER}</label>
<input type="text" id="PageOrder" name="page_order" class="form-control"
value="{$EDIT_ORDER}">
</div>
<div class="form-group">
<input type="hidden" name="token" value="{$TOKEN}">
<input type="submit" class="btn btn-primary" value="{$SUBMIT}">
</div>
</form>
</div>
</div>

</div>
</section>
</div>
</div>
</section>
</div>
</div>

{include file='footer.tpl'}
{include file='footer.tpl'}

</div>
</div>
</div>
<!-- ./wrapper -->
<!-- ./wrapper -->

{include file='scripts.tpl'}
{include file='scripts.tpl'}

</body>

Expand Down
Loading

0 comments on commit eb6cd2f

Please sign in to comment.