Made so it's possible to configure more directories as constants

More flexibility for the user.
This commit is contained in:
slawkens
2023-02-02 18:53:56 +01:00
parent 708aa2d72f
commit 74d013049d
12 changed files with 37 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
<div style="text-align:center"><h2>Change guild logo</h2></div>
Here you can change logo of your guild.<br/>Actuall logo: <img src="images/guilds/{{ guild_logo }}" height="64" width="64"><br/><br/>
Here you can change logo of your guild.<br/>Actuall logo: <img src="{{ constant('GUILD_IMAGES_DIR') }}{{ guild_logo }}" height="64" width="64"><br/><br/>
<form enctype="multipart/form-data" action="?subtopic=guilds&guild={{ guild.getName() }}&action=change_logo" method="post" id="upload_form">
<input type="hidden" name="todo" value="save" />
<input type="hidden" name="MAX_FILE_SIZE" value="{{ max_image_size_b }}" />

View File

@@ -41,7 +41,7 @@
{% set i = i + 1 %}
<tr bgcolor="{{ getStyle(i) }}">
<td>
<img src="images/guilds/{{ guild.logo }}" width="64" height="64">
<img src="{{ constant('GUILD_IMAGES_DIR') }}{{ guild.logo }}" width="64" height="64">
</td>
<td>

View File

@@ -5,13 +5,13 @@
<tbody>
<tr>
<td width="64">
<img src="images/guilds/{{ logo }}" width="64" height="64">
<img src="{{ constant('GUILD_IMAGES_DIR') }}{{ logo }}" width="64" height="64">
</td>
<td align="center" width="100%"><h1>{{ guild_name }}</h1></td>
<td width="64">
<img src="images/guilds/{{ logo }}" width="64" height="64">
<img src="{{ constant('GUILD_IMAGES_DIR') }}{{ logo }}" width="64" height="64">
</td>
</tr>
</tbody>