<!-- INCLUDE overall_header.html -->

<a id="maincontent"></a>

	<h1>{L_EXTENSIONS_ADMIN}</h1>

	<p>{L_EXTENSIONS_EXPLAIN}</p>

	<fieldset class="quick">
		<span class="small"><a href="https://www.phpbb.com/go/customise/extensions/3.3" target="_blank">{L_BROWSE_EXTENSIONS_DATABASE}</a> &bull; <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE_ALL}</a> &bull; <a href="javascript:phpbb.toggleDisplay('version_check_settings');">{L_SETTINGS}</a></span>
	</fieldset>

	<form id="version_check_settings" method="post" action="{U_ACTION}" style="display:none">

	<fieldset>
		<legend>{L_EXTENSIONS_VERSION_CHECK_SETTINGS}</legend>
		<dl>
			<dt><label for="force_unstable">{L_FORCE_UNSTABLE}{L_COLON}</label></dt>
			<dd>
				<label><input type="radio" id="force_unstable" name="force_unstable" class="radio" value="1"<!-- IF FORCE_UNSTABLE --> checked="checked"<!-- ENDIF --> /> {L_YES}</label>
				<label><input type="radio" name="force_unstable" class="radio" value="0"<!-- IF not FORCE_UNSTABLE --> checked="checked"<!-- ENDIF --> /> {L_NO}</label>
			</dd>
		</dl>

		<p class="submit-buttons">
			<input class="button1" type="submit" name="update" value="{L_SUBMIT}" />&nbsp;
			<input class="button2" type="reset" name="reset" value="{L_RESET}" />
			<input type="hidden" name="action" value="set_config_version_check_force_unstable" />
			{S_FORM_TOKEN}
		</p>
	</fieldset>
	</form>

	<table class="table1">
		<col class="row1" ><col class="row1" ><col class="row2" ><col class="row2" >
	<thead>
		<tr>
			<th>{L_EXTENSION_NAME}</th>
			<th style="text-align: center; width: 20%;">{L_CURRENT_VERSION}</th>
			<th style="text-align: center; width: 10%;">{L_EXTENSION_OPTIONS}</th>
			<th style="text-align: center; width: 25%;">{L_EXTENSION_ACTIONS}</th>
		</tr>
	</thead>
	<tbody>
		{% for list in ['enabled', 'disabled', 'not_installed'] %}
			{% set blockname = attribute(loops, list) %}
			{% if blockname|length %}
			<tr>
				<td class="row3" colspan="4"><strong>{{ lang('EXTENSIONS_' ~ list|upper) }}</strong>
					{% if list == 'enabled' %}
						{% EVENT acp_ext_list_enabled_title_after %}
					{% elseif list == 'disabled' %}
						{% EVENT acp_ext_list_disabled_title_after %}
					{% elseif list == 'not_installed' %}
						{% EVENT acp_ext_list_not_installed_title_after %}
					{% endif %}
				</td>
			</tr>
			{% for data in blockname %}
			<tr class="ext_{{ list }} row-highlight">
				<td><strong title="{{ data.NAME }}">{{ data.META_DISPLAY_NAME }}</strong>
					{% if list == 'enabled' %}
						{% EVENT acp_ext_list_enabled_name_after %}
					{% elseif list == 'disabled' %}
						{% EVENT acp_ext_list_disabled_name_after %}
					{% elseif list == 'not_installed' %}
						{% EVENT acp_ext_list_not_installed_name_after %}
					{% endif %}
				</td>
				<td style="text-align: center;">
					{% if data.S_VERSIONCHECK %}
					<strong class="{% if data.S_UP_TO_DATE %}current-ext{% else %}outdated-ext{% endif %}">{{ data.META_VERSION }}</strong>
					{% if not data.S_UP_TO_DATE %}<i class="fa fa-exclamation-circle outdated-ext" aria-hidden="true"></i>{% endif %}
					{% else %}
					{{ data.META_VERSION }}
					{% endif %}
				</td>
				<td style="text-align: center;">
					{% if data.U_DETAILS %}<a href="{{ data.U_DETAILS }}">{{ lang ('DETAILS') }}</a>{% endif %}
				</td>
				<td style="text-align: center;">
					{% for actions in data.actions %}
						<a href="{{ actions.U_ACTION }}"{% if actions.L_ACTION_EXPLAIN %} title="{{ actions.L_ACTION_EXPLAIN }}"{% endif %}>{{ actions.L_ACTION }}</a>
						{% if not actions.S_LAST_ROW %}&nbsp;|&nbsp;{% endif %}
					{% endfor %}
				</td>
			</tr>
			{% endfor %}
			{% endif %}
		{% endfor %}
	</tbody>
	</table>

	<table class="table1">
	<tr>
		<th>{L_EXTENSION_INSTALL_HEADLINE}</th>
	</tr>
	<tr>
		<td class="row3">{L_EXTENSION_INSTALL_EXPLAIN}</td>
	</tr>
	<tr>
		<th>{L_EXTENSION_UPDATE_HEADLINE}</th>
	</tr>
	<tr>
		<td class="row3">{L_EXTENSION_UPDATE_EXPLAIN}</td>
	</tr>
	<tr>
		<th>{L_EXTENSION_REMOVE_HEADLINE}</th>
	</tr>
	<tr>
		<td class="row3">{L_EXTENSION_REMOVE_EXPLAIN}</td>
	</tr>
	</tbody>
	</table>

<!-- INCLUDE overall_footer.html -->
