<?php
// FROM HASH: b036b7e6c422477920de74f624c5880d
return array(
'code' => function($__templater, array $__vars, $__extensions = null)
{
	$__finalCompiled = '';
	$__templater->pageParams['pageTitle'] = $__templater->preEscaped('Confirm action');
	$__finalCompiled .= '

';
	$__compilerTemp1 = '';
	if ($__vars['positionId']) {
		$__compilerTemp1 .= '
					' . 'Please confirm that you want to delete the following widget from the \'' . $__templater->escape($__vars['positionId']) . '\' position.' . '
				';
	} else {
		$__compilerTemp1 .= '
					' . 'Please confirm that you want to delete the following' . $__vars['xf']['language']['label_separator'] . '
				';
	}
	$__compilerTemp2 = '';
	if ($__templater->func('count', array($__vars['widget']['positions'], ), false) == 1) {
		$__compilerTemp2 .= '
			<div class="block-body">
				' . $__templater->formCheckBoxRow(array(
		), array(array(
			'name' => 'delete',
			'label' => 'This is the last position for this widget. Permanently delete the widget.',
			'_type' => 'option',
		)), array(
			'rowtype' => 'fullWidth noLabel',
		)) . '
			</div>
		';
	} else if ((!$__vars['positionId']) AND $__templater->func('count', array($__vars['widget']['positions'], ), false)) {
		$__compilerTemp2 .= '
			<div class="block-row">
				<div class="blockMessage blockMessage--close blockMessage--warning blockMessage--iconic blockMessage--iconic">
					' . 'This widget is currently used in ' . $__templater->func('count', array($__vars['widget']['positions'], ), true) . ' position(s).' . '
				</div>
			</div>
		';
	}
	$__finalCompiled .= $__templater->form('
	<div class="block-container">
		<div class="block-body">
			' . $__templater->formInfoRow('
				' . $__compilerTemp1 . '
				<strong><a href="' . $__templater->func('link', array('widgets/edit', $__vars['widget'], ), true) . '">' . $__templater->escape($__vars['widget']['title']) . '</a></strong>
			', array(
		'rowtype' => 'confirm',
	)) . '
		</div>
		' . $__compilerTemp2 . '
		' . $__templater->formSubmitRow(array(
		'icon' => 'delete',
	), array(
		'rowtype' => 'simple',
	)) . '
	</div>
', array(
		'action' => $__templater->func('link', array('widgets/delete', $__vars['widget'], array('position_id' => $__vars['positionId'], ), ), false),
		'class' => 'block',
		'ajax' => 'true',
	));
	return $__finalCompiled;
}
);