Start Theme Repo

This commit is contained in:
2026-01-29 19:10:03 +01:00
commit 101179e994
84 changed files with 14654 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<span class="label">
{{ __( "Main Image:", 'romhackplaza' ) }}
</span>
<span class="field-helper">
{{ __( "This will show up on the index and on top of the entry. A screenshot or custom cover is prefered else all hacks of same game will look the same.", 'romhackplaza' ) }}
</span>
<br>
{% if can_acf %}
{{ function( 'acf_form', attachments_settings ) }}
{% endif %}

View File

@@ -0,0 +1,11 @@
<label for="author-name">
{{ __( "Authors:", 'romhackplaza') }}
</label>
<span class="field-helper">
{{ __( "Person or Group who created this, if it's you add/select yourself.", 'romhackplaza' ) }}
</span>
<select id="author-name" name="author-name[]" multiple="multiple" required>
{% for author in value_authors %}
<option value="{{ author.term_id|esc_attr }}" selected>{{ author.name|esc_html }}</option>
{% endfor %}
</select>

View File

@@ -0,0 +1,7 @@
<label for="staff">
{{ __( "Staff/Credits", 'romhackplaza' ) }}
</label>
<span class="field-helper">
{{ __( "Optional.", 'romhackplaza') }}
</span>
<textarea id="staff" name="staff" rows="4">{{ value_credits }}</textarea>

View File

@@ -0,0 +1,10 @@
<label for="entryTitle">{{ entry_title_field_name }}</label>
{% if post_type == "translations" %}
{{ __( "If the translation has a custom title. If not, leave it blank and the game title will be taken.", 'romhackplaza' ) }}
{% endif %}
<input
type="text"
id="entryTitle"
value="{{ value_entry_title }}"
{% if not post_type == "translations" %}required{% endif %}
>

View File

@@ -0,0 +1,12 @@
<label for="releaseSite">
{{ __( "Release Site:", 'romhackplaza' ) }}
</label>
<span class="field-helper">{{ __( 'Optional.', 'romhackplaza' ) }}</span>
<span class="field-helper">{{ __( "Project entry on site/blog/forum/GitHub.", 'romhackplaza' ) }}</span>
<input type="url" id="releaseSite" name="release_site" placeholder="https://example.com" value="{{ value_release_site }}">
<label for="youtubeVideo">
{{ __( "YouTube Video:", 'romhackplaza' ) }}
</label>
<span class="field-helper">{{ __( 'Optional.', 'romhackplaza' ) }}</span>
<input type="url" id="youtubeVideo" name="youtube_video" placeholder="https://youtube.com/watch?v=example" value="{{ value_youtube_video }}">

View File

@@ -0,0 +1,32 @@
<span class="label">
{{ __( "Files", 'romhackplaza' ) }}
</span>
<span class="field-helper">
{{ __( "For patches, .zip is prefered. .7z/.rar accepted. <b>To enable online patcher</b>, your patch need to be compressed in a <b>ZIP file</b>", 'romhackplaza' ) }}
</span>
<div class="file-upload-container">
<label class="drop-container" id="file-container">
<span id="file-container-text" class="drop-title">{{ __( "Drop files here or click to upload the file.", 'romhackplaza' ) }}</span>
</label>
<span id="fileSizeDisplay"></span>
<div class="button-container">
<button id="cancelButton" style="display:none;">{{ __( "Cancel Upload", 'romhackplaza' ) }}</button>
</div>
</div>
<div id="progress" style="display:none;">
<div id="fullbar">
<div class="bar" style="width:0%;"></div>
<div id="status">0%</div>
</div>
<div id="speed">0.00 KB/s</div>
</div>
{% if submission_can_bypass_trashed_private %}
<div id="chosen-server-visual" style="display:block;float:right;">
{{ __( "Chosen server: ", 'romhackplaza' ) }}
</div>
{% endif %}
<div id="current-files">
<span class="label">
{{ __( "Current Files", 'romhackplaza' ) }}
</span>
</div>

View File

@@ -0,0 +1,7 @@
<label for="gameTitle">{{ __( "Game Name:", 'romhackplaza' ) }}</label>
<span class="field-helper">{{ __( "Search your game (give it a second).", 'romhackplaza' ) }}</span>
<select id="gameTitle" name="gameTitle" data-term-id="{{ value_game_id|esc_attr }}" data-term-name="{{ value_game_name|esc_attr }}">
{% if value_game_id == "" %}
<option value=""></option>
{% endif %}
</select>

View File

@@ -0,0 +1,11 @@
<label for="genre">
{{ __( "Genre:", 'romhackplaza' ) }}
</label>
<select id="genre" name="genre" class="custom-select" required>
<option value="" disabled selected>{{ __( "Select a genre", 'romhackplaza' ) }}
{% for term in terms_genre %}
<option value="{{ term.id|esc_attr }}" {% if term.id == value_genre_id %}selected{% endif %}>
{{ term.name|esc_html }}
</option>
{% endfor %}
</select>

View File

@@ -0,0 +1,9 @@
<fieldset>
<legend>{{ __( "Status:", 'romhackplaza' ) }}</legend>
{% for term in terms_status %}
<div class="status-option">
<input type="radio" id="complete" name="hack-status" value="{{ term.id }}" {% if term.id in value_terms_status %}checked{% endif %} required>
<label for="complete">{{ __( term.title, 'romhackplaza' ) }}</label>
</div>
{% endfor %}
</fieldset>

View File

@@ -0,0 +1,13 @@
<label for="hashes">
{{ __( "Hashes:", 'romhackplaza' ) }}
</label>
<span class="field-helper">{{ __( "Hash of original, unpatched rom. Calculate it here or paste it directly below.", "romhackplaza" ) }}</span>
<div class="file-upload-container">
<label class="drop-container" id="hash-container">
<span class="drop-title" id="hash-container-text">{{ __( "Drop files here or click to upload the file", 'romhackplaza' ) }}</span>
</label>
</div>
<div><span id="loading" style="display:none;">{{ __( 'Now Loading...', 'romhackplaza' ) }}</span></div>
<textarea id="hashes" name="hashes" rows="4" required>{{ value_hashes }}</textarea>
<button id="clearButton" type="button" style="float:right;">{{ __( "Clear", 'romhackplaza' ) }}</button>

View File

@@ -0,0 +1,17 @@
<label for="language">
{{ __( "Language", 'romhackplaza' ) }}
{% do action( 'qm/debug', value_terms_language ) %}
</label>
<div class="languages-selector">
<input type="text" id="searchBox" placeholder="{{ __( "Find languages...", 'romhackplaza' ) }}">
<div id="checkboxGroup">
{% for term in terms_language %}
<div class="checkbox-wrapper">
<label>
<input type="checkbox" name="language[]" value="{{ term.term_id }}" {% if term.term_id in value_terms_language %}checked{% endif %} >
{{ __( term.name, 'romhackplaza' ) }}
</label>
</div>
{% endfor %}
</div>
</div>

View File

@@ -0,0 +1,11 @@
<label for="platform">
{{ __( "Platform:", 'romhackplaza' ) }}
</label>
<select id="platform" name="platform" class="custom-select" required>
<option value="" disabled selected>{{ __( "Select a platform", 'romhackplaza' ) }}
{% for term in terms_platform %}
<option value="{{ term.id|esc_attr }}" {% if term.id == value_platform_id %}selected{% endif %}>
{{ term.name|esc_html }}
</option>
{% endfor %}
</select>

View File

@@ -0,0 +1,4 @@
<label for="postContent">
{{ __( "Description:", 'romhackplaza') }}
</label>
{{ fn( 'wp_editor', value_post_content, "postContent", post_content_settings ) }}

View File

@@ -0,0 +1,15 @@
<label for="releaseDate">
{{ __( "Last updated:", "romhackplaza" ) }}
</label>
<span class="field-helper">{{ __( "If only initial release exist, the release date.", "romhackplaza" ) }}</span>
<input
type="date"
id="releaseDate"
name="release_date"
value="{{ value_release_date }}"
required
>
<script>
const today = new Date().toISOString().split("T")[0];
document.getElementById("releaseDate").setAttribute( "max", today );
</script>

View File

@@ -0,0 +1,4 @@
<div class="drafts-checkbox">
<input type="checkbox" id="saveToDrafts" name="saveToDrafts" value="yes" {% if submission_save_as_draft_checkbox %}checked{% endif %}>
<label for="saveToDrafts">{{ __( "Don't publish, save to", 'romhackplaza' ) }} <a href="/my-drafts/">{{ __( "My Drafts", 'romhackplaza') }}</a></label>
</div>

View File

@@ -0,0 +1,8 @@
<label for="versionNumber">{{ version_number_field_name }}</label>
<input
type="text"
id="versionNumber"
name="versionNumber"
value="{{ value_version_number }}"
required
>