mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-02 20:29:20 +02:00
Merge branch 'develop' into feature/settings
This commit is contained in:
commit
a7b8ccaee2
@ -69,6 +69,10 @@ define('HOOK_ADMIN_LOGIN_AFTER_PASSWORD', ++$i);
|
|||||||
define('HOOK_ADMIN_LOGIN_AFTER_SIGN_IN', ++$i);
|
define('HOOK_ADMIN_LOGIN_AFTER_SIGN_IN', ++$i);
|
||||||
define('HOOK_ADMIN_ACCOUNTS_SAVE_POST', ++$i);
|
define('HOOK_ADMIN_ACCOUNTS_SAVE_POST', ++$i);
|
||||||
define('HOOK_EMAIL_CONFIRMED', ++$i);
|
define('HOOK_EMAIL_CONFIRMED', ++$i);
|
||||||
|
define('HOOK_GUILDS_BEFORE_GUILD_HEADER', ++$i);
|
||||||
|
define('HOOK_GUILDS_AFTER_GUILD_HEADER', ++$i);
|
||||||
|
define('HOOK_GUILDS_AFTER_GUILD_INFORMATION', ++$i);
|
||||||
|
define('HOOK_GUILDS_AFTER_GUILD_MEMBERS', ++$i);
|
||||||
define('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', ++$i);
|
define('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', ++$i);
|
||||||
|
|
||||||
const HOOK_FIRST = HOOK_STARTUP;
|
const HOOK_FIRST = HOOK_STARTUP;
|
||||||
|
@ -311,7 +311,6 @@ if(config('highscores_balance'))
|
|||||||
/** @var Twig\Environment $twig */
|
/** @var Twig\Environment $twig */
|
||||||
$twig->display('highscores.html.twig', [
|
$twig->display('highscores.html.twig', [
|
||||||
'highscores' => $highscores,
|
'highscores' => $highscores,
|
||||||
'totalRows' => $i - 1,
|
|
||||||
'list' => $list,
|
'list' => $list,
|
||||||
'skill' => $skill,
|
'skill' => $skill,
|
||||||
'skillName' => ($skill == SKILL_FRAGS ? 'Frags' : ($skill == SKILL_BALANCE ? 'Balance' : getSkillName($skill))),
|
'skillName' => ($skill == SKILL_FRAGS ? 'Frags' : ($skill == SKILL_BALANCE ? 'Balance' : getSkillName($skill))),
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<div class="Border_2">
|
<div class="Border_2">
|
||||||
<div class="Border_3">
|
<div class="Border_3">
|
||||||
<div class="BoxContent">
|
<div class="BoxContent">
|
||||||
|
{{ hook('HOOK_GUILDS_BEFORE_GUILD_HEADER') }}
|
||||||
<table border="0" width="100%">
|
<table border="0" width="100%">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
@ -16,7 +17,9 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br/>
|
||||||
|
|
||||||
|
{{ hook('HOOK_GUILDS_AFTER_GUILD_HEADER') }}
|
||||||
|
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -83,8 +86,10 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
{{ hook('HOOK_GUILDS_AFTER_GUILD_INFORMATION') }}
|
||||||
|
|
||||||
<br>
|
|
||||||
<div class="TableContainer">
|
<div class="TableContainer">
|
||||||
<div class="TableContainer">
|
<div class="TableContainer">
|
||||||
<div class="CaptionContainer">
|
<div class="CaptionContainer">
|
||||||
@ -193,7 +198,9 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br/>
|
||||||
|
|
||||||
|
{{ hook('HOOK_GUILDS_AFTER_GUILD_MEMBERS') }}
|
||||||
|
|
||||||
<div class="TableContainer">
|
<div class="TableContainer">
|
||||||
<div class="CaptionContainer">
|
<div class="CaptionContainer">
|
||||||
@ -263,9 +270,9 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br/>
|
||||||
|
|
||||||
{{ hook(constant('HOOK_GUILDS_AFTER_INVITED_CHARACTERS'), { 'guild': guild, 'isLeader': isLeader }) }}
|
{{ hook('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', { 'guild': guild, 'isLeader': isLeader }) }}
|
||||||
|
|
||||||
<div class="TableContainer">
|
<div class="TableContainer">
|
||||||
<table class="Table3" cellpadding="0" cellspacing="0">
|
<table class="Table3" cellpadding="0" cellspacing="0">
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
{% if totalRows < 1 %}
|
{% if highscores|length < 1 %}
|
||||||
<tr bgcolor="{{ config('darkborder') }}"><td colspan="100%">No records yet.</td></tr>
|
<tr bgcolor="{{ config('darkborder') }}"><td colspan="100%">No records yet.</td></tr>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set row = 0 %}
|
{% set row = 0 %}
|
||||||
|
@ -90,15 +90,16 @@ $function = new TwigFunction('truncate', function ($s, $n) {
|
|||||||
});
|
});
|
||||||
$twig->addFunction($function);
|
$twig->addFunction($function);
|
||||||
|
|
||||||
$function = new TwigFunction('hook', function ($hook, array $params = []) {
|
$function = new TwigFunction('hook', function ($context, $hook, array $params = []) {
|
||||||
global $hooks;
|
global $hooks;
|
||||||
|
|
||||||
if(is_string($hook)) {
|
if(is_string($hook)) {
|
||||||
$hook = constant($hook);
|
$hook = constant($hook);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$params['context'] = $context;
|
||||||
$hooks->trigger($hook, $params);
|
$hooks->trigger($hook, $params);
|
||||||
});
|
}, ['needs_context' => true]);
|
||||||
$twig->addFunction($function);
|
$twig->addFunction($function);
|
||||||
|
|
||||||
$function = new TwigFunction('config', function ($key) {
|
$function = new TwigFunction('config', function ($key) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user