This commit is contained in:
2026-01-11 19:39:55 +01:00
commit c1042c9cde
98 changed files with 9086 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
{% extends '@plugin/admin/pages/base.twig' %}
{% block title %}
<h1>{{ __('Admin Scripts', 'romhackplaza') }}</h1>
{% endblock %}
{% block page %}
<form id="script-loader" method="post" autocomplete="off">
<label for="script_select">
{{ __('Select script', 'romhackplaza') }}
</label>
<select id="script_select" name="script_select">
{% for script in scripts %}
<option value="{{ script }}">{{ script }}</option>
{% else %}
<option value="none" disabled selected>{{ __('No scripts found.', 'romhackplaza') }}</option>
{% endfor %}
</select>
<hr>
<div id="arguments" class="arguments">
<div class="details">
<span style="margin-right: 10%">{{ __( 'Name:', 'romhackplaza') }}</span>
<span style="margin-right: 10%">{{ __( 'Value:', 'romhackplaza') }}</span>
</div>
</div>
<button id="add_args">{{ __( 'Add a paramter', 'romhackplaza') }}</button>
<hr>
<input type="submit" id="wp-load-custom-script" name="load" value="{{ __('Load script', 'romhackplaza') }}">
</form>
<h3>{{ __( 'Script response', 'romhackplaza') }}</h3>
<div id="script-response">
</div>
{% endblock %}

View File

@@ -0,0 +1,9 @@
<div class="wrap">
{% block title %}
{% endblock %}
{% block page %}
{% endblock %}
</div>

View File

@@ -0,0 +1,5 @@
{% extends '@plugin/admin/pages/base.twig' %}
{% block title %}
<h1>{{ __('RomhackPlaza - Admin', 'romhackplaza') }}</h1>
{% endblock %}

View File

@@ -0,0 +1,43 @@
{% extends '@plugin/admin/pages/base.twig' %}
{% block title %}
<h1>{{ __('Send Notification', 'romhackplaza') }}</h1>
{% endblock %}
{% block page %}
<form id="send-manual-notification" method="post" autocomplete="off">
<label for="type_select">
{{ __('Type of notification', 'romhackplaza') }}
</label>
<select id="type_select" name="type_select">
<option value="none" disabled selected>---</option>
{% for type, pretty_type in type_list %}
<option value="{{ type }}">{{ __(pretty_type) }}</option>
{% endfor %}
</select>
<hr>
<input type="checkbox" name="sender_anonymous" id="sender_anonymous"> {{ __('Anonymous notification?', 'romhackplaza') }}
<hr>
<label for="recipients">
{{ __('Recipients', 'romhackplaza') }}
</label>
<select id="recipients" name="recipients[]" multiple="multiple" style="width: 15%">
{# Filled by Select2 Ajax. #}
</select>
<br><input type="checkbox" name="recipients_all" id="recipients_all"> All users ?
<hr>
<label for="postContent">
{{ __('Content', 'romhackplaza') }}
</label>
{{ fn( 'wp_editor', "", 'postContent' ) }}
<hr>
<input type="submit" name="send" value="{{ __('Send Notification', 'romhackplaza') }}">
</form>
{% endblock %}

View File

@@ -0,0 +1,12 @@
<div class="accordion-section">
<div class="accordion-header" data-opened="{% if accordion_opened %}1{% else %}0{% endif %}">
<div class="accordion-title">
<i class="{{ icon }}"></i>
{{ pretty_title }}
</div>
<div class="accordion-open-close-icon"><i class="fas fa-plus"></i></div>
</div>
<div class="accordion-content">
{{ content|raw }}
</div>
</div>