Skip to content

Commit

Permalink
1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PadowYT2 committed May 12, 2023
1 parent 7baffbe commit 94c6252
Show file tree
Hide file tree
Showing 11 changed files with 484 additions and 691 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Iframe Module 1.3.1
# Iframe Module 1.3.2
## Upload
Upload "custom" and the "modules" folder to your NamelessMC Root directory (public_html, html, htdocs)

## Installing Module
- Open your NamelessMC dashboard => Modules => Click on "Install"
- Open the newly added sidebar entry and edit it to your liking

Get your support here https://resourcemc.net/discord
Get your support here https://pterodactyl-resources.com/discord

## Contribution
### Pull Requests
Expand Down
224 changes: 98 additions & 126 deletions custom/panel_templates/Default/Iframe/edit_iframe.tpl
Original file line number Diff line number Diff line change
@@ -1,130 +1,102 @@
{include file='header.tpl'}

<body id="page-top">

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

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

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

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

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

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

<!-- 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">{$EDIT_NAME}</h5>
<div class="float-md-right">
<a style="display:inline" href="{$BACK_LINK}" class="btn btn-warning">{$BACK}</a>
</div>
<hr />

{if isset($ERRORS) && count($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="Name">{$NAME}</label>
<input type="text" id="Name" name="name" class="form-control" value="{$EDIT_NAME}">
</div>

<label>{$DESCRIPTION}</label>
{if !isset($MARKDOWN)}
<div class="form-group">
<textarea name="content" class="form-control" id="reply">{$CONTENT}</textarea>
</div>
{else}
<div class="form-group">
<textarea name="content" class="form-control" id="markdown">{$CONTENT}</textarea>
<div class="meta">{$MARKDOWN_HELP}</div>
</div>
{/if}
<label>{$FOOTER_DESCRIPTION}</label>
{if !isset($MARKDOWN)}
<div class="form-group">
<textarea name="footer_content" class="form-control"
id="footer_reply">{$FOOTER_CONTENT}</textarea>
</div>
{else}
<div class="form-group">
<textarea name="footer_content" class="form-control" id="markdown">{$FOOTER_CONTENT}</textarea>
<div class="meta">{$MARKDOWN_HELP}</div>
</div>
{/if}

<div class="form-group">
<label for="Src">{$SRC}</label>
<input type="text" id="Src" name="src" class="form-control" value="{$EDIT_SRC}">
</div>

<div class="form-group">
<label for="Iframe_size">{$IFRAME_SIZE}</label>
<select class="form-control mr-sm-2" id="Iframe_size" name="iframe_size">

<option {if $SIZE === 21} selected {/if} value="21by9">21:9 aspect ratio</option>
<option {if $SIZE === 16} selected {/if} value="16by9">16:9 aspect ratio</option>
<option {if $SIZE === 4} selected {/if} value="4by3">4:3 aspect ratio</option>
<option {if $SIZE === 1} selected {/if} value="1by1">1:1 aspect ratio</option>

</select>
</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>

{include file='footer.tpl'}


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

{include file='scripts.tpl'}

<!-- Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
{include file='sidebar.tpl'}
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main content -->
<div id="content">
<!-- Topbar -->
{include file='navbar.tpl'}
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- 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">{$EDIT_NAME}</h5>
<div class="float-md-right">
<a style="display:inline" href="{$BACK_LINK}"
class="btn btn-warning">{$BACK}</a>
</div>
<hr />
{if isset($ERRORS) && count($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="Name">{$NAME}</label>
<input type="text" id="Name" name="name" class="form-control"
value="{$EDIT_NAME}">
</div>
<label>{$DESCRIPTION}</label>
<div class="form-group">
<textarea name="content" class="form-control"
id="reply">{$CONTENT}</textarea>
</div>
<label>{$FOOTER_DESCRIPTION}</label>
<div class="form-group">
<textarea name="footer_content" class="form-control"
id="footer_reply">{$FOOTER_CONTENT}</textarea>
</div>
<div class="form-group">
<label for="Src">{$SRC}</label>
<input type="text" id="Src" name="src" class="form-control"
value="{$EDIT_SRC}">
</div>
<div class="form-group">
<label for="Iframe_size">{$IFRAME_SIZE}</label>
<select class="form-control mr-sm-2" id="Iframe_size" name="iframe_size">
<option {if $SIZE === 21} selected {/if} value="21by9">
21:9 aspect ratio
</option>
<option {if $SIZE === 16} selected {/if} value="16by9">
16:9 aspect ratio
</option>
<option {if $SIZE === 4} selected {/if} value="4by3">
4:3 aspect ratio
</option>
<option {if $SIZE === 1} selected {/if} value="1by1">
1:1 aspect ratio
</option>
</select>
</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>
{include file='footer.tpl'}
</div>
</div>
<!-- ./wrapper -->
{include file='scripts.tpl'}
</body>
Loading

0 comments on commit 94c6252

Please sign in to comment.