View file upload/src/addons/xenMade/ACPE/_data/templates.xml

File size: 39.98Kb
<?xml version="1.0" encoding="utf-8"?>
<templates>
  <template type="admin" title="acpe.less" version_id="20009" version_string="1.1.0"><![CDATA[.acpe-new-version {
  background-color: #ffb8b8;
}

@_adminNav-hideWidth: @xf-responsiveWide;
@media (max-width: @_adminNav-hideWidth)
{
	.p-header-button.p-header-button--title
	{
		max-width: 120px;
	}
}]]></template>
  <template type="admin" title="acpe_addon_list_macros" version_id="20001" version_string="1.0.0"><![CDATA[<xf:macro name="addon_list_block" arg-upgradeable="!" arg-installable="!" arg-installed="!" arg-legacy="!" arg-disabled="!" arg-tab="">

	<div class="block">
		<div class="block-container">

			<h2 class="block-tabHeader tabs" role="tablist">
				<xf:if is="$upgradeable"><a class="tabs-tab {{ (!$tab || $tab == 'upgradeable') ? 'is-active' : '' }}" role="tab" tabindex="0" aria-controls="upgradeable" href="{{ link('add-ons', {}, {'tab': 'upgradeable'}) }}">{{ phrase('upgradeable_add_ons') }}</a></xf:if>
				<xf:if is="$installable"><a class="tabs-tab {{ ($tab == 'installable' || (!$tab && !$upgradeable)) ? 'is-active' : '' }}" role="tab" tabindex="0" aria-controls="installable" href="{{ link('add-ons', {}, {'tab': 'installable'}) }}">{{ phrase('installable_add_ons') }}</a></xf:if>
				<a class="tabs-tab {{ $tab == 'installed' ? 'is-active' : '' }}" role="tab" tabindex="0" aria-controls="installed" href="{{ link('add-ons', {}, {'tab': 'installed'}) }}">{{ phrase('installed_add_ons') }}</a>
				<xf:if is="$legacy"><a class="tabs-tab {{ $tab == 'legacy' ? 'is-active' : '' }}" role="tab" tabindex="0" aria-controls="legacy" href="{{ link('add-ons', {}, {'tab': 'legacy'}) }}">{{ phrase('legacy_add_ons') }}</a></xf:if>
				<xf:if is="$disabled"><a class="tabs-tab {{ $tab == 'disabled' ? 'is-active' : '' }}" role="tab" tabindex="0" aria-controls="disabled" href="{{ link('add-ons', {}, {'tab': 'disabled'}) }}">{{ phrase('disabled') }}</a></xf:if>
			</h2>

			<xf:if is="!$tab || $tab == 'upgradeable'">
				<xf:set var="$addOns" value="{$upgradeable}" />

				<xf:elseif is="$tab == 'installable'" />
				<xf:set var="$addOns" value="{$installable}" />

				<xf:elseif is="$tab == 'installed'" />
				<xf:set var="$addOns" value="{$installed}" />

				<xf:elseif is="$tab == 'legacy'" />
				<xf:set var="$addOns" value="{$legacy}" />

				<xf:elseif is="$tab == 'disabled'" />
				<xf:set var="$addOns" value="{$disabled}" />
			</xf:if>

			<xf:if is="$addOns is not empty">
				<ol class="block-body">
					<xf:foreach loop="$addOns" value="$addOn">
						<xf:macro name="addon_list_item" arg-addOn="{$addOn}" />
					</xf:foreach>
				</ol>

				<xf:else />

			</xf:if>
		</div>

		<xf:if is="!$addOns">
			<div class="blockMessage">{{ phrase('acpe_no_add_ons_found') }}</div>
		</xf:if>
	</div>

</xf:macro>]]></template>
  <template type="admin" title="acpe_cron_list" version_id="20002" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('cron_entries') }}</xf:title>

<xf:pageaction>
    <xf:button href="{{ link('cron/add') }}" icon="add">{{ phrase('add_cron_entry') }}</xf:button>
</xf:pageaction>

<xf:if is="$entries is not empty">
    <xf:form action="{{ link('cron/toggle') }}" class="block" ajax="true">
        <div class="block-outer">
            <xf:macro template="filter_macros" name="quick_filter" arg-key="cron" arg-class="block-outer-opposite" />
        </div>
        <div class="block-container">

            <h2 class="block-tabHeader tabs" role="tablist">
                <a class="tabs-tab {{ $tab == 'enabled' ? 'is-active' : '' }}" role="tab" tabindex="0" aria-controls="enabled" href="{{ link('cron', {}, {'tab': 'enabled'}) }}">{{ phrase('enabled') }}</a>
                <a class="tabs-tab {{ $tab == 'disabled' ? 'is-active' : '' }}" role="tab" tabindex="0" aria-controls="disabled" href="{{ link('cron', {}, {'tab': 'disabled'}) }}">{{ phrase('disabled') }}</a>
            </h2>

            <div class="block-body">
                <xf:datalist>
                    <xf:foreach loop="$entries" value="$cron">
                        <xf:if is="($tab == 'enabled' && $cron.active) || ($tab == 'disabled' && !$cron.active) ">
                            <xf:datarow>
                                <xf:main hash="{$cron.entry_id}" href="{{ link('cron/edit', $cron) }}"
                                         label="{$cron.title}"
                                         hint="{{ $cron.addon_id != 'XF' ? $cron.AddOn.title : '' }}">

                                    <xf:explain>
                                        <xf:if is="{$cron.active}">
                                            <xf:if is="{{ !$cron.addon_id OR $cron.AddOn.active }}">
                                                {{ phrase('next_run') . ': ' . date_time($cron.next_run)  }}
                                                <xf:else />
                                                {{ phrase('cron_entry_associated_with_inactive_add_on_cannot_run') }}
                                            </xf:if>
                                        </xf:if>
                                    </xf:explain>
                                </xf:main>
                                <xf:toggle name="active[{$cron.entry_id}]" selected="$cron.active"
                                           class="dataList-cell--separated" submit="true"
                                           tooltip="{{ phrase('enable_disable_x', {'title': $cron.title}) }}" />
                                <xf:if is="{{ !$cron.addon_id OR $cron.AddOn.active }}">
                                    <xf:action href="{{ link('cron/run', $cron) }}" overlay="true"
                                               data-xf-init="tooltip" title="{{ phrase('run_now') }}"
                                               class="dataList-cell--iconic">
                                        <i class="fa fa-refresh"></i></xf:action>
                                    <xf:else />
                                    <xf:action></xf:action>
                                </xf:if>
                                <xf:delete href="{{ link('cron/delete', $cron) }}" />
                            </xf:datarow>
                        </xf:if>
                    </xf:foreach>
                </xf:datalist>
            </div>
            <div class="block-footer">
                <span class="block-footer-counter">{{ display_totals($entries) }}</span>
            </div>
        </div>
    </xf:form>
    <xf:else />
    <div class="blockMessage">{{ phrase('no_items_have_been_created_yet') }}</div>
</xf:if>]]></template>
  <template type="admin" title="acpe_index_stats" version_id="20030" version_string="1.3.0"><![CDATA[
<xf:js src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.bundle.min.js" />

<div class="block">
    <div class="block-container">
        <canvas id="myChart" width="400" height="400"></canvas>
        <xf:js>
            var ctx = document.getElementById("myChart").getContext('2d');


            var myChart = new Chart(ctx, {
                type: 'doughnut',
                data: {
                    labels: [],
                    datasets: [{
                        label: '# of Votes',
                        data: [12, 19, 3, 5, 2, 3],
                        backgroundColor: [
                            'rgba(255, 99, 132, 0.2)',
                            'rgba(54, 162, 235, 0.2)',
                            'rgba(255, 206, 86, 0.2)',
                            'rgba(75, 192, 192, 0.2)',
                            'rgba(153, 102, 255, 0.2)',
                            'rgba(255, 159, 64, 0.2)'
                        ],
                        borderColor: [
                            'rgba(255,99,132,1)',
                            'rgba(54, 162, 235, 1)',
                            'rgba(255, 206, 86, 1)',
                            'rgba(75, 192, 192, 1)',
                            'rgba(153, 102, 255, 1)',
                            'rgba(255, 159, 64, 1)'
                        ],
                        borderWidth: 1
                    }]
                },
                options: {
       
                }
            });
        </xf:js>
    </div>
</div>]]></template>
  <template type="admin" title="acpe_info" version_id="20008" version_string="1.1.0"><![CDATA[<xf:css src="acpe.less" />

<xf:datalist data-xf-init="responsive-data-list">

    <xf:comment>
        <xf:foreach loop="$software_versions" value="$product">
            <xf:datarow rowclass="{{ $product.update_exists ? 'acpe-new-version' : '' }}">
                <xf:cell class="u-ltr">{$product.title}</xf:cell>
                <xf:cell>{$product.version_string} {{ $product.update_exists ? phrase('acpe_new_version_x', {'new_version' : $product.current_string}) : '' }}</xf:cell>
            </xf:datarow>
        </xf:foreach>
    </xf:comment>

    <xf:datarow>
        <xf:cell class="u-ltr">{{ phrase('acpe_host_ip') }}</xf:cell>
        <xf:cell>{$host.host_ip}</xf:cell>
    </xf:datarow>

    <xf:datarow>
        <xf:cell class="u-ltr">{{ phrase('acpe_host_name') }}</xf:cell>
        <xf:cell>{$host.host_name}</xf:cell>
    </xf:datarow>

    <xf:datarow>
        <xf:cell class="u-ltr">{{ phrase('acpe_memorylimit') }}</xf:cell>
        <xf:cell>{$server.memorylimit|file_size}</xf:cell>
    </xf:datarow>

    <xf:datarow>
        <xf:cell class="u-ltr">{{ phrase('acpe_php_version') }}</xf:cell>
        <xf:cell>{$server.php_version} / <a href="{{ link('tools/phpinfo') }}" target="_blank">PHP-Info</a></xf:cell>
    </xf:datarow>

    <xf:datarow>
        <xf:cell class="u-ltr">{{ phrase('acpe_mysql_version') }}</xf:cell>
        <xf:cell>{$server.mysql_version}</xf:cell>
    </xf:datarow>

    <xf:datarow>
        <xf:cell class="u-ltr">{{ phrase('acpe_db_size') }}</xf:cell>
        <xf:cell>{$server.db_size|file_size}</xf:cell>
    </xf:datarow>

    <xf:datarow>
        <xf:cell class="u-ltr">{{ phrase('acpe_os') }}</xf:cell>
        <xf:cell>{$server.os}</xf:cell>
    </xf:datarow>

    <xf:datarow>
        <xf:cell class="u-ltr">{{ phrase('acpe_cpu_load') }}</xf:cell>
        <xf:cell>{$server.cpu_load}</xf:cell>
    </xf:datarow>
</xf:datalist>


<xf:if is="$xf.visitor.hasAdminPermission('acpp_enabledDebugMode')">
    <div class="block-footer block-footer--split">
        <xf:form action="{{ link('tools/debug-mode') }}">
        <span class="block-footer-select">
            <xf:checkbox standalone="false">
               <xf:option name="debug_mode" value="1" label="{{ phrase('acpe_enable_debug_mode') }}" checked="{$debugMode}" />
            </xf:checkbox>
        </span>
            <span class="block-footer-controls"><xf:button type="submit" icon="save" /></span>
        </xf:form>
    </div>
</xf:if>]]></template>
  <template type="admin" title="acpe_log_admin_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/admin/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_admin_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_email_bounces_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/email-bounces/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_email_bounces_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_firewall_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/firewall-logs/clear') }}" class="block" ajax="true">
    <div class="block-container">
        <div class="block-body">
            <xf:inforow rowtype="confirm">
                {{ phrase('acpe_sure_you_want_to_clear_firewall_logins_log') }}
            </xf:inforow>
        </div>
        <xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
    </div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_firewall_login_delete" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/firewall-logs/delete') }}" class="block" ajax="true">
    <div class="block-container">
        <div class="block-body">
            <xf:inforow rowtype="confirm">
                {{ phrase('please_confirm_that_you_want_to_delete_following:') }}
                <strong><xf:date time="$entry.dateline" /> - {$entry.username}: {$entry.status}</strong>
            </xf:inforow>
        </div>

        <xf:hiddenval name="id">{$entry.log_id}</xf:hiddenval>
        <xf:submitrow rowtype="simple" icon="delete" />
    </div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_firewall_logins_list" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('acpe_firewall_logins_logs') }}</xf:title>

<xf:pageaction if="$entries is not empty">
    <xf:button href="{{ link('logs/firewall-logs/clear') }}" icon="delete" overlay="true">
        {{ phrase('clear') }}
    </xf:button>
</xf:pageaction>

<xf:if is="$entries is not empty">
    <div class="block">
        <div class="block-container">
            <div class="block-body">
                <xf:datalist>
                    <xf:datarow rowtype="header">
                        <xf:cell>{{ phrase('date') }}</xf:cell>
                        <xf:cell>{{ phrase('user_name') }}</xf:cell>
                        <xf:cell>{{ phrase('status') }}</xf:cell>
                        <xf:cell>{{ phrase('ip_address') }}</xf:cell>
                        <xf:cell>&nbsp;</xf:cell>
                    </xf:datarow>
                    <xf:foreach loop="$entries" value="$entry">
                        <xf:datarow>
                            <xf:cell><xf:date time="$entry.dateline" /></xf:cell>
                            <xf:cell>{{ $entry.username ?: phrase('n_a') }}</xf:cell>
                            <xf:cell>{{ $entry.status ?: phrase('n_a') }}</xf:cell>
                            <xf:cell>{{ $entry.ip ?: phrase('n_a') }}</xf:cell>

                            <xf:delete href="{{ link('logs/firewall-logs/delete', '', {'id': $entry.log_id}) }}" tooltip="{{ phrase('delete') }}" />
                        </xf:datarow>
                    </xf:foreach>
                </xf:datalist>
            </div>
            <div class="block-footer">
                <span class="block-footer-counter">{{ display_totals($entries, $total) }}</span>
            </div>
        </div>

        <xf:pagenav page="{$page}" perpage="{$perPage}" total="{$total}"
                    link="logs/firewall-logs"
                    wrapperclass="block-outer block-outer--after" />
    </div>
    <xf:else />
    <div class="blockMessage">{{ phrase('no_entries_have_been_logged') }}</div>
</xf:if>]]></template>
  <template type="admin" title="acpe_log_image_proxy_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/image-proxy/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_image_proxy_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_link_proxy_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/link-proxy/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_link_proxy_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_moderator_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/moderator/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_moderator_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_oembed_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/oembed/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_oembed_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_rejected_users_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/rejected-users/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_rejected_users_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_spam_cleaner_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/spam-cleaner/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_spam_cleaner_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_spam_trigger_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/spam-trigger/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_spam_trigger_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_log_user_change_clear" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('logs/user-change/clear') }}" class="block" ajax="true">
	<div class="block-container">
		<div class="block-body">
			<xf:inforow rowtype="confirm">
				{{ phrase('acpe_sure_you_want_to_clear_user_change_log') }}
			</xf:inforow>
		</div>
		<xf:submitrow submit="{{ phrase('clear') }}" rowtype="simple" icon="delete" />
	</div>
</xf:form>]]></template>
  <template type="admin" title="acpe_macros_acpe_settings" version_id="20013" version_string="1.2.0"><![CDATA[<xf:macro name="option_form_block" arg-group="" arg-options="!" arg-containerBeforeHtml="">
    <xf:if is="$options is not empty">
        <xf:form action="{{ link('options/update') }}" ajax="true" class="block">
            {$containerBeforeHtml|raw}
            <div class="block-container">
                <h2 class="block-tabHeader tabs" data-xf-init="tabs" role="tablist">
                    <a class="tabs-tab is-active" role="tab" tabindex="0" aria-controls="generalSettings">{{ phrase('acpe_general_settings') }}</a>
                    <a class="tabs-tab" role="tab" tabindex="1" aria-controls="firewallSettings">{{ phrase('acpe_firewall_settings') }}</a>
                    <a class="tabs-tab" role="tab" tabindex="1" aria-controls="deleteThreads">{{ phrase('acpe_soft_delete_threads') }}</a>
                </h2>
                <ul class="tabPanes">
                    <li class="is-active" role="tabpanel" id="generalSettings">
                        <div class="block-body">
                            <xf:foreach loop="$options" value="$option">
                                <xf:if is="$option.Relations.acpe_settings.display_order < 100">
                                    <xf:macro template="option_macros" name="option_row" arg-group="{$group}" arg-option="{$option}" />
                                </xf:if>
                            </xf:foreach>
                        </div>
                    </li>

                    <li class="is-active" role="tabpanel" id="firewallSettings">
                        <div class="block-body">
                            <xf:foreach loop="$options" value="$option">
                                <xf:if is="$option.Relations.acpe_settings.display_order >= 100 && $option.Relations.acpe_settings.display_order < 200">
                                    <xf:macro template="option_macros" name="option_row" arg-group="{$group}" arg-option="{$option}" />
                                </xf:if>
                            </xf:foreach>
                        </div>
                    </li>

                    <li class="is-active" role="tabpanel" id="deleteThreads">
                        <div class="block-body">
                            <xf:foreach loop="$options" value="$option">
                                <xf:if is="$option.Relations.acpe_settings.display_order >= 200 && $option.Relations.acpe_settings.display_order < 300">
                                    <xf:macro template="option_macros" name="option_row" arg-group="{$group}" arg-option="{$option}" />
                                </xf:if>
                            </xf:foreach>
                        </div>
                    </li>
                </ul>
                <xf:submitrow sticky="true" icon="save" />
            </div>
        </xf:form>
    </xf:if>
</xf:macro>]]></template>
  <template type="admin" title="acpe_option_group_sort" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{{ phrase('acpe_sort_option_group') }}</xf:title>

<xf:macro template="public:nestable_macros" name="setup" />

<xf:form action="{{ link('options/sort') }}" class="block" ajax="true">
    <div class="block-container">
        <div class="block-body">
            <div class="nestable-container" data-xf-init="nestable" data-max-depth="1" data-value-target=".js-optionGroupData">
                <ol class="nestable-list">
                    <xf:foreach loop="$groups" value="$group">
                        <li class="nestable-item" data-id="{$group.group_id}">
                            <div class="nestable-handle nestable-handle--full" aria-label="{{ phrase('drag_handle')|for_attr }}">
                                <i class="fa fa-bars" aria-hidden="true"></i>
                            </div>

                            <div class="nestable-content">{$group.title}</div>
                        </li>
                    </xf:foreach>
                </ol>
                <xf:hiddenval name="optiongroup[]" value="" class="js-optionGroupData" />
            </div>
        </div>
        <xf:submitrow icon="save" rowtype="simple" />
    </div>
</xf:form>]]></template>
  <template type="admin" title="acpe_option_template_firewall" version_id="20012" version_string="1.1.1"><![CDATA[<xf:checkboxrow
        hint="{$hintHtml}"
        explain="{$explainHtml}"
        html="{$listedHtml}">

    <xf:option name="{$inputName}[firewall]" selected="$option.option_value.firewall" label="{{ phrase('acpe_ip_firewall') }}">

        <xf:dependent>
            <div>{{ phrase('acpe_allowed_ip_addresses:') }}</div>
            <xf:textarea name="{$inputName}[allowed_ip_address]" value="{$option.option_value.allowed_ip_address}" rows="5" autosize="true" />
            <p class="formRow-explain">{{ phrase('acpe_allowed_ip_addresses_explain') }}</p>

            <div>{{ phrase('acpe_alert_email_addresses:') }}</div>
            <xf:textarea name="{$inputName}[login_alert_emails]" value="{$option.option_value.login_alert_emails}" rows="5" autosize="true" />
            <p class="formRow-explain">{{ phrase('acpe_alert_email_addresses_explain') }}</p>

            <xf:checkbox name="{$inputName}[ip_not_allowed]">
                <xf:option value="1" selected="{$option.option_value.ip_not_allowed}">{{ phrase('acpe_send_email_if_ip_address_not_allowd:') }}</xf:option>
            </xf:checkbox>
            <p class="formRow-explain">{{ phrase('acpe_send_email_if_ip_address_not_allowd_explain') }}</p>

            <xf:checkbox name="{$inputName}[login_success]">
                <xf:option value="1" selected="{$option.option_value.login_success}">{{ phrase('acpe_send_email_if_login_successful:') }}</xf:option>
            </xf:checkbox>
            <p class="formRow-explain">{{ phrase('acpe_send_email_if_login_successful_explain') }}</p>

            <xf:checkbox name="{$inputName}[user_not_admin]">
                <xf:option value="1" selected="{$option.option_value.user_not_admin}">{{ phrase('acpe_send_email_if_user_registered_not_a_admin:') }}</xf:option>
            </xf:checkbox>
            <p class="formRow-explain">{{ phrase('acpe_send_email_if_user_registered_not_a_admin_explain') }}</p>

            <xf:checkbox name="{$inputName}[user_not_found]">
                <xf:option value="1" selected="{$option.option_value.user_not_found}">{{ phrase('acpe_send_email_if_user_not_found_in_db:') }}</xf:option>
            </xf:checkbox>
            <p class="formRow-explain">{{ phrase('acpe_send_email_if_user_not_found_in_db_explain') }}</p>
        </xf:dependent>

    </xf:option>
</xf:checkboxrow>]]></template>
  <template type="admin" title="acpe_soft_delete_post_delete" version_id="20008" version_string="1.1.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('soft-deleted/posts/delete') }}" class="block" ajax="true">
    <div class="block-container">
        <div class="block-body">
            <xf:inforow rowtype="confirm">
                <xf:if is="$post">
                    {{ phrase('please_confirm_that_you_want_to_delete_following:') }}
                    <strong>{$post.Thread.title}</strong>
                    <xf:else />
                    {{ phrase('acpe_please_confirm_that_you_want_to_delete_x_posts', {'number': count($postIds)}) }}
                </xf:if>
            </xf:inforow>
        </div>
        <xf:submitrow rowtype="simple" icon="delete" />
    </div>
    <xf:foreach loop="$postIds" value="$postId">
        <xf:hiddenval name="post_ids[]">{$postId}</xf:hiddenval>
    </xf:foreach>
</xf:form>]]></template>
  <template type="admin" title="acpe_soft_delete_thread_delete" version_id="20008" version_string="1.1.0"><![CDATA[<xf:title>{{ phrase('confirm_action') }}</xf:title>

<xf:form action="{{ link('soft-deleted/threads/delete') }}" class="block" ajax="true">
    <div class="block-container">
        <div class="block-body">
            <xf:inforow rowtype="confirm">
                <xf:if is="$thread">
                    {{ phrase('please_confirm_that_you_want_to_delete_following:') }}
                    <strong>{$thread.title}</strong>
                    <xf:else />
                    {{ phrase('acpe_please_confirm_that_you_want_to_delete_x_threads', {'number': count($threadIds)}) }}
                </xf:if>
            </xf:inforow>
        </div>
        <xf:submitrow rowtype="simple" icon="delete" />
    </div>
    <xf:foreach loop="$threadIds" value="$threadId">
        <xf:hiddenval name="thread_ids[]">{$threadId}</xf:hiddenval>
    </xf:foreach>
</xf:form>]]></template>
  <template type="admin" title="acpe_soft_deleted_post_list" version_id="20008" version_string="1.1.0"><![CDATA[<xf:title>{{ phrase('acpe_soft_deleted_posts') }}</xf:title>

<xf:if is="$posts is not empty">
    <xf:form action="{{ link('soft-deleted/posts/delete') }}" class="block" ajax="true">
        <div class="block-container">
            <div class="block-body">
                <xf:datalist>
                    <xf:datarow rowtype="header">

                        <xf:cell class="dataList-cell--min"></xf:cell>
                        <xf:cell colspan="1">{{ phrase('title') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('forum') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('posting_user') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('post_date') }}</xf:cell>
                        <xf:cell class="dataList-cell--min"></xf:cell>

                    </xf:datarow>
                    <xf:foreach loop="$posts" value="$post">
                        <xf:datarow delete="{{ link('soft-deleted/posts/delete', $post) }}">

                            <xf:toggle name="post_ids[]" value="{$post.post_id}" />

                            <xf:main href="{{ link_type('public', 'posts/show', $post) }}" label="{$post.Thread.title}">
                                <xf:explain>{{ phrase('reason:') }} {{ $post.DeletionLog.delete_reason ?: phrase('n_a') }}</xf:explain>
                            </xf:main>

                            <xf:cell class="dataList-cell--min">
                                {$post.Thread.Forum.title}
                            </xf:cell>

                            <xf:cell class="dataList-cell--min">
                                {$post.username}
                            </xf:cell>

                            <xf:cell class="dataList-cell--min">
                                <xf:date time="{$post.post_date}" />
                            </xf:cell>

                        </xf:datarow>
                    </xf:foreach>
                </xf:datalist>
            </div>

            <div class="block-footer block-footer--split">
                <span class="block-footer-counter">{{ display_totals($posts, $total) }}</span>

                <span class="block-footer-select"><xf:checkbox standalone="true"><xf:option check-all="< .block-container" label="{{ phrase('select_all') }}" /></xf:checkbox></span>
                <span class="block-footer-controls">
					<xf:button type="submit" name="delete_posts" overlay="true" icon="delete" />
				</span>
            </div>
        </div>

        <xf:pagenav page="{$page}" perpage="{$perPage}" total="{$total}" link="soft-deleted/posts" wrapperclass="block-outer block-outer--after" />
    </xf:form>
    <xf:else />
    <div class="blockMessage">{{ phrase('no_records_matched') }}</div>
</xf:if>]]></template>
  <template type="admin" title="acpe_soft_deleted_thread_list" version_id="20008" version_string="1.1.0"><![CDATA[<xf:title>{{ phrase('acpe_soft_deleted_threads') }}</xf:title>

<xf:if is="$threads is not empty">
    <xf:form action="{{ link('soft-deleted/threads/delete') }}" class="block" ajax="true">
        <div class="block-container">
            <div class="block-body">
                <xf:datalist>
                    <xf:datarow rowtype="header">

                        <xf:cell class="dataList-cell--min"></xf:cell>
                        <xf:cell colspan="1">{{ phrase('title') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('forum') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('thread_starter') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('replies') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('last_message') }}</xf:cell>
                        <xf:cell class="dataList-cell--min"></xf:cell>

                    </xf:datarow>
                    <xf:foreach loop="$threads" value="$thread">
                        <xf:datarow delete="{{ link('soft-deleted/threads/delete', $thread) }}">

                            <xf:toggle name="thread_ids[]" value="{$thread.thread_id}" />

                            <xf:main href="{{ link_type('public', 'threads', $thread) }}" label="{$thread.title}">
                                <xf:explain>{{ phrase('reason:') }} {$thread.DeletionLog.delete_reason}</xf:explain>
                            </xf:main>

                            <xf:cell class="dataList-cell--min">
                                {$thread.Forum.title}
                            </xf:cell>

                            <xf:cell class="dataList-cell--min">
                                {$thread.username}
                            </xf:cell>

                            <xf:cell class="dataList-cell--min">
                                {$thread.reply_count|number}
                            </xf:cell>

                            <xf:cell class="dataList-cell--min">
                                <xf:date time="{$thread.last_post_date}" />
                            </xf:cell>

                        </xf:datarow>
                    </xf:foreach>
                </xf:datalist>
            </div>

            <div class="block-footer block-footer--split">
                <span class="block-footer-counter">{{ display_totals($threads, $total) }}</span>

                <span class="block-footer-select"><xf:checkbox standalone="true"><xf:option check-all="< .block-container" label="{{ phrase('select_all') }}" /></xf:checkbox></span>
                <span class="block-footer-controls">
					<xf:button type="submit" name="delete_threads" overlay="true" icon="delete" />
				</span>
            </div>
        </div>

        <xf:pagenav page="{$page}" perpage="{$perPage}" total="{$total}" link="soft-deleted/threads" wrapperclass="block-outer block-outer--after" />
    </xf:form>
    <xf:else />
    <div class="blockMessage">{{ phrase('no_records_matched') }}</div>
</xf:if>]]></template>
  <template type="admin" title="acpe_who_voted_list" version_id="20006" version_string="1.0.1"><![CDATA[<xf:title>{{ phrase('acpe_who_voted') }}</xf:title>

<xf:if is="$threads is not empty">
    <div class="block">
        <div class="block-container">
            <div class="block-body">
                <xf:datalist>
                    <xf:datarow rowtype="header">

                        <xf:cell colspan="1">{{ phrase('question') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('forum') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('thread_starter') }}</xf:cell>
                        <xf:cell class="dataList-cell--min">{{ phrase('total_voters') }}</xf:cell>
                        <xf:cell> </xf:cell>

                    </xf:datarow>
                    <xf:foreach loop="$threads" value="$thread">
                        <xf:datarow>

                            <xf:main href="{{ link('who-voted/view', $thread.Poll) }}" label="{$thread.Poll.question}">
                                <xf:explain>{{ phrase('thread:') }} {$thread.title}</xf:explain>
                            </xf:main>

                            <xf:cell class="dataList-cell--min">
                                {$thread.Forum.title}
                            </xf:cell>

                            <xf:cell class="dataList-cell--min">
                                {$thread.username}
                            </xf:cell>

                            <xf:cell class="dataList-cell--min">
                                {$thread.Poll.voter_count|number}
                            </xf:cell>

                            <xf:action href="{{ link_type('public', 'threads', $thread) }}" target="_blank">{{ phrase('go_to_content') }}</xf:action>
                        </xf:datarow>
                    </xf:foreach>
                </xf:datalist>
            </div>

            <div class="block-footer block-footer--split">
                <span class="block-footer-counter">{{ display_totals($threads, $total) }}</span>
            </div>
        </div>

        <xf:pagenav page="{$page}" perpage="{$perPage}" total="{$total}" link="who-voted" wrapperclass="block-outer block-outer--after" />
    </div>
    <xf:else />
    <div class="blockMessage">{{ phrase('no_records_matched') }}</div>
</xf:if>]]></template>
  <template type="admin" title="acpe_who_voted_view" version_id="20001" version_string="1.0.0"><![CDATA[<xf:title>{$poll.question}</xf:title>

<div class="block">
    <div class="block-container">
        <div class="block-body">

            <xf:datalist>
                <xf:foreach loop="$answers" value="$answer">
                    <tbody class="dataList-rowGroup">

                    <xf:datarow rowtype="subsection" rowclass="dataList-row--noHover">
                        <xf:cell>{$answer.response|censor}</xf:cell>
                    </xf:datarow>

                    <xf:datarow rowclass="dataList-row--noHover ">
                        <xf:cell class="dataList-cell--noSearch">
                            <ul class="listInline listInline--comma"><xf:trim>
                                <xf:foreach loop="$answer.voters" value="$voter">
                                    <li><xf:username user="$voter" /></li>

                                    <xf:else />
                                    <li>{{ phrase('n_a') }}</li>
                                </xf:foreach>
                            </xf:trim></ul>
                        </xf:cell>
                    </xf:datarow>

                    </tbody>
                </xf:foreach>
            </xf:datalist>
        </div>
    </div>
</div>]]></template>
  <template type="email" title="acpe_firewall_email_ip_not_allowed" version_id="20001" version_string="1.0.0"><![CDATA[<mail:subject>
{{ phrase('acpe_firewall_ip_not_allowed_email_subject', {
	'subject': $subject,
	'board_title': $xf.options.boardTitle
}) }}
</mail:subject>


<body_text>
{{ phrase('acpe_firewall_ip_not_allowed_email_text', {
	'name': $name,
	'ip': $ip,
	'board': '<a href="' . link('canonical:index') . '">' . $xf.options.boardTitle . '</a>'
}) }}
</body_text>]]></template>
  <template type="email" title="acpe_firewall_email_user_login_success" version_id="20001" version_string="1.0.0"><![CDATA[<mail:subject>
{{ phrase('acpe_firewall_email_user_login_success_subject', {
	'subject': $subject,
	'name': $name,
	'board_title': $xf.options.boardTitle
}) }}
</mail:subject>

<body_text>
{{ phrase('acpe_firewall_email_user_login_success_text', {
	'name': $name,
	'ip': $ip,
	'board': '<a href="' . link('canonical:index') . '">' . $xf.options.boardTitle . '</a>'
}) }}
</body_text>]]></template>
  <template type="email" title="acpe_firewall_email_user_not_admin" version_id="20001" version_string="1.0.0"><![CDATA[<mail:subject>
{{ phrase('acpe_firewall_email_user_not_admin_subject', {
	'subject': $subject,
	'board_title': $xf.options.boardTitle
}) }}
</mail:subject>

<body_text>
{{ phrase('acpe_firewall_email_user_not_admin_text', {
	'name': $name,
	'ip': $ip,
	'board': '<a href="' . link('canonical:index') . '">' . $xf.options.boardTitle . '</a>'
}) }}
</body_text>]]></template>
  <template type="email" title="acpe_firewall_email_user_not_found" version_id="20001" version_string="1.0.0"><![CDATA[<mail:subject>
{{ phrase('acpe_firewall_email_user_not_found_subject', {
	'subject': $subject,
	'board_title': $xf.options.boardTitle
}) }}
</mail:subject>

<body_text>
{{ phrase('acpe_firewall_email_user_not_found_text', {
	'name': $name,
	'ip': $ip,
	'board': '<a href="' . link('canonical:index') . '">' . $xf.options.boardTitle . '</a>'
}) }}
</body_text>]]></template>
</templates>