Skip to content

Commit

Permalink
+++
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoleoncio committed May 7, 2024
1 parent 358610b commit 0985324
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 37 deletions.
2 changes: 1 addition & 1 deletion bin/backtrack.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<button
type='submit'
onclick="return confirm('<?=§('backtrack-areyousure')?>')"
class='w3-bar-item w3-right w3-button w3-section w3-green'
class='w3-bar-item w3-<?=$right?> w3-button w3-section w3-green'
><?=§('backtrack-accept')?></button>
</form>
</li>
Expand Down
2 changes: 1 addition & 1 deletion bin/edits.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
<div class="w3-threequarter"><?=§('edits-about')?></div>
<form method="post" target="_blank" class="w3-quarter">
<input type="hidden" name="csv" value="csv">
<button class="w3-button w3-right w3-green" type="submit">
<button class="w3-button w3-<?=$right?> w3-green" type="submit">
<i class="fa-solid fa-file-csv"></i> <?=§('edits-csv')?>
</button>
</form>
Expand Down
12 changes: 6 additions & 6 deletions bin/evaluators.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
class="w3-input w3-border w3-bar-item w3-section"
>
<button type='submit'
class='w3-bar-item w3-right w3-button w3-section w3-<?=$contest['theme'];?>'
class='w3-bar-item w3-<?=$right?> w3-button w3-section w3-<?=$contest['theme'];?>'
>
<?=§('evaluators-register')?>
</button>
Expand Down Expand Up @@ -212,7 +212,7 @@ class='w3-bar-item w3-right w3-button w3-section w3-<?=$contest['theme'];?>'
<button
type='submit'
onclick="return confirm('<?=§('evaluators-areyousure')?>')"
class='w3-bar-item w3-right w3-button w3-margin w3-red'
class='w3-bar-item w3-<?=$right?> w3-button w3-margin w3-red'
><?=§('counter-redefine')?></button>
</form>
<?php endif; ?>
Expand Down Expand Up @@ -242,7 +242,7 @@ class='w3-bar-item w3-right w3-button w3-margin w3-red'
<button
type='submit'
onclick="return confirm('<?=§('evaluators-areyousure')?>')"
class='w3-bar-item w3-right w3-button w3-section w3-orange'
class='w3-bar-item w3-<?=$right?> w3-button w3-section w3-orange'
><?=§('evaluators-disable')?></button>
</form>
<form method="post">
Expand All @@ -251,7 +251,7 @@ class='w3-bar-item w3-right w3-button w3-section w3-orange'
<button
type='submit'
onclick="return confirm('<?=§('evaluators-areyousure')?>')"
class='w3-bar-item w3-right w3-button w3-margin w3-red'
class='w3-bar-item w3-<?=$right?> w3-button w3-margin w3-red'
><?=§('counter-redefine')?></button>
</form>
<?php endif; ?>
Expand Down Expand Up @@ -281,7 +281,7 @@ class='w3-bar-item w3-right w3-button w3-margin w3-red'
<button
type='submit'
onclick="return confirm('<?=§('evaluators-areyousure')?>')"
class='w3-bar-item w3-right w3-button w3-section w3-green'
class='w3-bar-item w3-<?=$right?> w3-button w3-section w3-green'
><?=§('evaluators-enable')?></button>
</form>
<form method="post">
Expand All @@ -290,7 +290,7 @@ class='w3-bar-item w3-right w3-button w3-section w3-green'
<button
type='submit'
onclick="return confirm('<?=§('evaluators-areyousure')?>')"
class='w3-bar-item w3-right w3-button w3-margin w3-red'
class='w3-bar-item w3-<?=$right?> w3-button w3-margin w3-red'
><?=§('counter-redefine')?></button>
</form>
<?php endif; ?>
Expand Down
8 changes: 7 additions & 1 deletion bin/languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,10 @@ function §($item, ...$args) {

//RTL conversion
$rtl = ['he', 'skr-arab'];
if (in_array($lang, $rtl)) echo '<link rel="stylesheet" href="bin/rtl.css">';
$right = 'right';
$left = 'left';
if (in_array($lang, $rtl)) {
echo '<link rel="stylesheet" href="bin/rtl.css">';
$right = 'left';
$left = 'right';
}
4 changes: 2 additions & 2 deletions bin/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
class="w3-button w3-bar-item" ><?=§('login-graph')?></button>
<button onclick="document.getElementById('id01').style.display='block'"
class="w3-button w3-bar-item" ><?=§('login')?></button>
<span class="w3-bar-item w3-right w3-hide-small"><?=$contest['name'];?></span>
<span class="w3-bar-item w3-<?=$right?> w3-hide-small"><?=$contest['name'];?></span>
</div>
<div class="w3-block w3-card w3-margin w3-hide-medium w3-hide-small" style="width: inherit;">
<div class="w3-center">
Expand Down Expand Up @@ -216,7 +216,7 @@ class="w3-button w3-margin-top w3-padding">
<div class="w3-modal-content w3-card-4 w3-animate-zoom" style="max-width:600px">
<div class="w3-center">
<br>
<button onclick="document.getElementById('id01').style.display='none'" class="w3-button w3-xlarge w3-hover-red w3-display-topright" title="Close Modal">&times;</button>
<button onclick="document.getElementById('id01').style.display='none'" class="w3-button w3-xlarge w3-hover-red w3-display-top<?=$right?>" title="Close Modal">&times;</button>
<svg width="240" height="240" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7 18V17C7 14.2386 9.23858 12 12 12V12C14.7614 12 17 14.2386 17 17V18" stroke="currentColor" stroke-linecap="round" />
<path d="M12 12C13.6569 12 15 10.6569 15 9C15 7.34315 13.6569 6 12 6C10.3431 6 9 7.34315 9 9C9 10.6569 10.3431 12 12 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" />
Expand Down
30 changes: 15 additions & 15 deletions bin/manage_contests.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ class="w3-input w3-border w3-margin-bottom"
<?=($contest_info['name']==null)?'required':'disabled'?>>

<div class="w3-row">
<div class="w3-threequarter" style="padding-right: 8px;">
<div class="w3-threequarter" style="padding-<?=$right?>: 8px;">

<label for="internalcode">
<strong><?=§('manage-internalcode')?></strong>
Expand All @@ -569,7 +569,7 @@ class="w3-input w3-border w3-margin-bottom"
<?=($contest_info['name']==null)?'required':'disabled'?>>

</div>
<div class="w3-quarter" style="padding-right: 8px;">
<div class="w3-quarter" style="padding-<?=$right?>: 8px;">

<label for="group">
<strong><?=§('manage-group')?></strong>
Expand Down Expand Up @@ -637,7 +637,7 @@ class="w3-input w3-border w3-margin-bottom"
<?=($contest_info['name']==null)?'required':'disabled'?>>

<div class="w3-row">
<div class="w3-half" style="padding-right: 8px;">
<div class="w3-half" style="padding-<?=$right?>: 8px;">

<label for="reverttime">
<strong><?=§('manage-reverttime')?></strong>
Expand Down Expand Up @@ -672,7 +672,7 @@ class="w3-select w3-border w3-margin-bottom"
</select>

</div>
<div class="w3-half" style="padding-left: 8px;">
<div class="w3-half" style="padding-<?=$left?>: 8px;">

<label for="listid">
<strong><?=§('manage-listid')?></strong>
Expand Down Expand Up @@ -715,7 +715,7 @@ class="w3-input w3-border w3-margin-bottom"
<?=($contest_info['name']==null)?'required':'disabled'?>>

<div class="w3-row">
<div class="w3-half" style="padding-right: 8px;">
<div class="w3-half" style="padding-<?=$right?>: 8px;">

<label for="bpp">
<strong><?=§('manage-bpp')?></strong>
Expand Down Expand Up @@ -759,7 +759,7 @@ class="w3-input w3-border w3-margin-bottom"
<?=($contest_info['name']==null)?'required':'disabled'?>>

</div>
<div class="w3-half" style="padding-left: 8px;">
<div class="w3-half" style="padding-<?=$left?>: 8px;">

<label for="ipp">
<strong><?=§('manage-ipp')?></strong>
Expand Down Expand Up @@ -805,7 +805,7 @@ class="w3-select w3-border w3-margin-bottom"
</div>

<div class="w3-row">
<div class="w3-half" style="padding-right: 8px;">
<div class="w3-half" style="padding-<?=$right?>: 8px;">
<label for="theme">
<strong><?=§('manage-palette')?></strong>
</label>
Expand Down Expand Up @@ -848,7 +848,7 @@ class="w3-select w3-border w3-margin-bottom"
<option value="color" class="w3-transparent" <?=($contest_info['theme']!='color')?:'selected'?>><?=§('manage-custom')?></option>
</select>
</div>
<div class="w3-half" style="padding-left: 8px;">
<div class="w3-half" style="padding-<?=$left?>: 8px;">
<label for="hex">
<strong><?=§('manage-hexcolor')?></strong>
</label>
Expand Down Expand Up @@ -887,14 +887,14 @@ class="w3-button w3-block w3-deep-green w3-section w3-padding"
<div class="w3-row w3-section">
<div class="w3-half">
<button
class="w3-button w3-blue w3-block w3-rightbar w3-border-white"
class="w3-button w3-blue w3-block w3-<?=$right?>bar w3-border-white"
style="display: block;"
type="button"
id="editor"
onclick="editChange('<?=$contest_info['name_id']?>')"
><?=§('modify')?></button>
<button
class="w3-button w3-green w3-block w3-rightbar w3-border-white"
class="w3-button w3-green w3-block w3-<?=$right?>bar w3-border-white"
style="display: none;"
name="do_edit"
id="saver"
Expand All @@ -903,7 +903,7 @@ class="w3-button w3-green w3-block w3-rightbar w3-border-white"
</div>
<div class="w3-half">
<button
class="w3-button w3-black w3-block w3-leftbar w3-border-white"
class="w3-button w3-black w3-block w3-<?=$left?>bar w3-border-white"
name="do_manager"
onclick="managerChange('<?=$contest_info['name_id']??''?>', true)"
type="button"><?=§('manage-newmanager')?></button>
Expand All @@ -912,14 +912,14 @@ class="w3-button w3-black w3-block w3-leftbar w3-border-white"
<div class="w3-row w3-section">
<div class="w3-half">
<button
class="w3-button w3-orange w3-block w3-rightbar w3-border-white"
class="w3-button w3-orange w3-block w3-<?=$right?>bar w3-border-white"
name="do_restart"
onclick="editChange('<?=$contest_info['name_id']?>'); return confirm('<?=§('manage-confirmrestart')?>')"
type="submit"><?=§('manage-restart')?></button>
</div>
<div class="w3-half">
<button
class="w3-button w3-red w3-block w3-leftbar w3-border-white"
class="w3-button w3-red w3-block w3-<?=$left?>bar w3-border-white"
name="do_delete"
onclick="editChange('<?=$contest_info['name_id']?>'); return confirm('<?=§('manage-confirmdelete')?>')"
type="submit"><?=§('manage-delete')?></button>
Expand All @@ -945,13 +945,13 @@ class="w3-input w3-border w3-margin-bottom"
<div class="w3-row">
<div class="w3-half">
<button
class="w3-button w3-orange w3-block w3-rightbar w3-border-white"
class="w3-button w3-orange w3-block w3-<?=$right?>bar w3-border-white"
name="do_manager"
type="submit"><?=§('manage-newmanager')?></button>
</div>
<div class="w3-half">
<button
class="w3-button w3-red w3-block w3-leftbar w3-border-white"
class="w3-button w3-red w3-block w3-<?=$left?>bar w3-border-white"
type="button"
onclick="managerChange('<?=$contest_info['name_id']??''?>', false)"><?=§('login-cancel')?></button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion bin/manage_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="w3-modal-content w3-card-4 w3-animate-zoom" style="max-width:600px">
<div class="w3-center">
<br>
<button onclick="document.getElementById('id01').style.display='none'" class="w3-button w3-xlarge w3-hover-red w3-display-topright" title="Close Modal" style="display: none;">&times;</button>
<button onclick="document.getElementById('id01').style.display='none'" class="w3-button w3-xlarge w3-hover-red w3-display-top<?=$right?>" title="Close Modal" style="display: none;">&times;</button>
<svg width="240" height="240" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7 18V17C7 14.2386 9.23858 12 12 12V12C14.7614 12 17 14.2386 17 17V18" stroke="currentColor" stroke-linecap="round" />
<path d="M12 12C13.6569 12 15 10.6569 15 9C15 7.34315 13.6569 6 12 6C10.3431 6 9 7.34315 9 9C9 10.6569 10.3431 12 12 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" />
Expand Down
4 changes: 2 additions & 2 deletions bin/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function w3_close() {
<i class="fa-solid fa-server fa-fade"></i>
</span>
<?php endif; ?>
<span class="w3-bar-item w3-right w3-hide-small"><?=$contest['name'];?></span>
<span class="w3-bar-item w3-<?=$right?> w3-hide-small"><?=$contest['name'];?></span>
</div>
<nav class="w3-sidebar w3-white w3-animate-left" style="z-index:3;width:280px;display:none;min-height:100vh;" id="mySidebar">
<nav class="w3-sidebar w3-white w3-animate-<?=$left?>" style="z-index:3;width:280px;display:none;min-height:100vh;" id="mySidebar">
<br>
<div class="w3-container w3-row">
<div class="w3-col s4">
Expand Down
Loading

0 comments on commit 0985324

Please sign in to comment.