' . $sp . '			        class="mw-ui-button mw-ui-constructive"
' . $sp . '			        data-flow-interactive-handler="apiRequest"
' . $sp . '			        data-flow-api-handler="submitReply"
' . $sp . '			        data-flow-api-target="< .flow-topic"
' . $sp . '			        data-flow-eventlog-action="save-attempt"
' . $sp . '			>' . htmlentities((string) (isset($in['actions']['reply']['text']) && is_array($in['actions']['reply']) ? $in['actions']['reply']['text'] : null), ENT_QUOTES, 'UTF-8') . '</button>
' . $sp . '' . LCRun3::p($cx, 'flow_form_cancel_button', array(array($in), array()), '			') . '			<small class="flow-terms-of-use plainlinks">' . LCRun3::ch($cx, 'l10nParse', array(array('flow-terms-of-use-reply'), array()), 'encq') . '</small>
' . $sp . '		</div>
' . $sp . '	</form>
' . $sp . '' : '') . '';
    }, 'flow_post_replies' => function ($cx, $in, $sp) {
        return '' . $sp . '<div class="flow-replies">
' . $sp . '' . LCRun3::sec($cx, isset($in['replies']) && is_array($in) ? $in['replies'] : null, $in, true, function ($cx, $in) use($sp) {
            return '' . LCRun3::hbch($cx, 'eachPost', array(array(isset($cx['sp_vars']['root']['rootBlock']) && is_array($cx['sp_vars']['root']) ? $cx['sp_vars']['root']['rootBlock'] : null, $in), array()), $in, false, function ($cx, $in) use($sp) {
                return '			<!-- eachPost nested replies -->
' . $sp . '			' . LCRun3::ch($cx, 'post', array(array(isset($cx['sp_vars']['root']['rootBlock']) && is_array($cx['sp_vars']['root']) ? $cx['sp_vars']['root']['rootBlock'] : null, $in), array()), 'encq') . '
' . $sp . '';
            }) . '';
        }) . '' . LCRun3::hbch($cx, 'ifCond', array(array(isset($cx['sp_vars']['root']['rootBlock']['submitted']['postId']) && is_array($cx['sp_vars']['root']['rootBlock']['submitted']) ? $cx['sp_vars']['root']['rootBlock']['submitted']['postId'] : null, '===', isset($in['postId']) && is_array($in) ? $in['postId'] : null), array()), $in, false, function ($cx, $in) use($sp) {
            return '' . LCRun3::hbch($cx, 'ifCond', array(array(isset($cx['sp_vars']['root']['rootBlock']['submitted']['action']) && is_array($cx['sp_vars']['root']['rootBlock']['submitted']) ? $cx['sp_vars']['root']['rootBlock']['submitted']['action'] : null, '===', 'reply'), array()), $in, false, function ($cx, $in) use($sp) {
                return '' . LCRun3::p($cx, 'flow_reply_form', array(array($in), array()), '			') . '';
            }) . '';
        }) . '</div>
';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '' . LCRun3::wi($cx, isset($in['revision']) && is_array($in) ? $in['revision'] : null, $in, function ($cx, $in) {
        return '	<div id="flow-post-' . htmlentities((string) (isset($in['postId']) && is_array($in) ? $in['postId'] : null), ENT_QUOTES, 'UTF-8') . '"
	     class="flow-post' . (LCRun3::ifvar($cx, isset($in['isMaxThreadingDepth']) && is_array($in) ? $in['isMaxThreadingDepth'] : null) ? ' flow-post-max-depth' : '') . '"
	     data-flow-id="' . htmlentities((string) (isset($in['postId']) && is_array($in) ? $in['postId'] : null), ENT_QUOTES, 'UTF-8') . '"
	>
' . (LCRun3::ifvar($cx, isset($in['isModerated']) && is_array($in) ? $in['isModerated'] : null) ? '' . LCRun3::hbch($cx, 'ifCond', array(array(isset($cx['sp_vars']['root']['rootBlock']['submitted']['showPostId']) && is_array($cx['sp_vars']['root']['rootBlock']['submitted']) ? $cx['sp_vars']['root']['rootBlock']['submitted']['showPostId'] : null, '===', isset($in['postId']) && is_array($in) ? $in['postId'] : null), array()), $in, false, function ($cx, $in) {
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => false, 'jsobj' => false, 'spvar' => true, 'prop' => false, 'method' => false, 'mustlok' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array('html' => 'Flow\\TemplateHelper::htmlHelper'), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '<div class="' . htmlentities((string) (isset($in['extraClass']) && is_array($in) ? $in['extraClass'] : null), ENT_QUOTES, 'UTF-8') . ' flow-ui-tooltip ' . htmlentities((string) (isset($in['contextClass']) && is_array($in) ? $in['contextClass'] : null), ENT_QUOTES, 'UTF-8') . ' ' . htmlentities((string) (isset($in['positionClass']) && is_array($in) ? $in['positionClass'] : null), ENT_QUOTES, 'UTF-8') . ' ' . htmlentities((string) (isset($in['blockClass']) && is_array($in) ? $in['blockClass'] : null), ENT_QUOTES, 'UTF-8') . ' plainlinks">' . LCRun3::ch($cx, 'html', array(array(isset($in['content']) && is_array($in) ? $in['content'] : null), array()), 'encq') . '<span class="flow-ui-tooltip-triangle"></span>
</div>
';
};
' . $sp . '' : '') . '</div>
';
    }, 'flow_header_detail' => function ($cx, $in, $sp) {
        return '' . $sp . '<div class="flow-board-header-detail-view">
' . $sp . '	<div class="flow-board-header-nav">
' . $sp . '' . (LCRun3::ifvar($cx, isset($in['revision']['actions']['edit']) && is_array($in['revision']['actions']) ? $in['revision']['actions']['edit'] : null) ? '			<a href="' . htmlentities((string) (isset($in['revision']['actions']['edit']['url']) && is_array($in['revision']['actions']['edit']) ? $in['revision']['actions']['edit']['url'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '			   data-flow-api-handler="activateEditHeader"
' . $sp . '			   data-flow-api-target="< .flow-board-header"
' . $sp . '			   data-flow-interactive-handler="apiRequest"
' . $sp . '			   class="mw-ui-button mw-ui-progressive  mw-ui-quiet flow-ui-tooltip-target"
' . $sp . '			   title="' . htmlentities((string) (isset($in['revision']['actions']['edit']['title']) && is_array($in['revision']['actions']['edit']) ? $in['revision']['actions']['edit']['title'] : null), ENT_QUOTES, 'UTF-8') . '">
' . $sp . '					<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-edit flow-board-header-icon"></span>' . LCRun3::ch($cx, 'l10n', array(array('flow-edit-header-link'), array()), 'encq') . '
' . $sp . '			</a>
' . $sp . '' : '') . '	</div>
' . $sp . '	<div class="flow-board-header-content">
' . $sp . '' . (LCRun3::ifvar($cx, isset($in['revision']['content']) && is_array($in['revision']) ? $in['revision']['content'] : null) ? '' . LCRun3::ch($cx, 'escapeContent', array(array(isset($in['revision']['content']['format']) && is_array($in['revision']['content']) ? $in['revision']['content']['format'] : null, isset($in['revision']['content']['content']) && is_array($in['revision']['content']) ? $in['revision']['content']['content'] : null), array()), 'encq') . '' : '') . '	</div>
' . $sp . '</div>
' . $sp . '<a href="javascript:void(0);"
' . $sp . '	class="mw-ui-button mw-ui-quiet side-rail-toggle-button"
' . $sp . '	data-flow-interactive-handler="toggleSideRail">
' . $sp . '	<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-close pull-right collapse-button"
' . $sp . '		  title="' . LCRun3::ch($cx, 'l10n', array(array('flow-board-collapse-description'), array()), 'encq') . '"></span>
' . $sp . '	<span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-speechBubbles pull-right expand-button"
' . $sp . '		  title="' . LCRun3::ch($cx, 'l10n', array(array('flow-board-expand-description'), array()), 'encq') . '"></span>
' . $sp . '</a>
';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '<div class="flow-board-header flow-load-interactive" data-flow-load-handler="loadSideRail">
' . LCRun3::p($cx, 'flow_header_title', array(array($in), array()), '	') . '' . LCRun3::p($cx, 'flow_errors', array(array($in), array()), '	') . '' . LCRun3::p($cx, 'flow_header_detail', array(array($in), array()), '	') . '</div>
';
};
' . $sp . '			required
' . $sp . '			' . (LCRun3::ifvar($cx, isset($in['submitted']['topic']) && is_array($in['submitted']) ? $in['submitted']['topic'] : null) ? 'value="' . htmlentities((string) (isset($in['submitted']['topic']) && is_array($in['submitted']) ? $in['submitted']['topic'] : null), ENT_QUOTES, 'UTF-8') . '"' : '') . '
' . $sp . '			type="text"
' . $sp . '			placeholder="' . LCRun3::ch($cx, 'l10n', array(array('flow-newtopic-start-placeholder'), array()), 'encq') . '"
' . $sp . '			data-role="title"
' . $sp . '
' . $sp . '			data-flow-interactive-handler-focus="activateNewTopic"
' . $sp . '		/>
' . $sp . '		<div class="flow-editor">
' . $sp . '			<textarea name="topiclist_content"
' . $sp . '			          class="mw-ui-input flow-form-collapsible mw-ui-input-large' . (LCRun3::ifvar($cx, isset($in['isOnFlowBoard']) && is_array($in) ? $in['isOnFlowBoard'] : null) ? ' flow-form-collapsible-collapsed' : '') . '"
' . $sp . '			          placeholder="' . LCRun3::ch($cx, 'l10n', array(array('flow-newtopic-content-placeholder', isset($cx['sp_vars']['root']['title']) && is_array($cx['sp_vars']['root']) ? $cx['sp_vars']['root']['title'] : null), array()), 'encq') . '"
' . $sp . '			          data-role="content"
' . $sp . '			          required
' . $sp . '			>' . (LCRun3::ifvar($cx, isset($in['submitted']['content']) && is_array($in['submitted']) ? $in['submitted']['content'] : null) ? '' . htmlentities((string) (isset($in['submitted']['content']) && is_array($in['submitted']) ? $in['submitted']['content'] : null), ENT_QUOTES, 'UTF-8') . '' : '') . '</textarea>
' . $sp . '		</div>
' . $sp . '
' . $sp . '		<div class="flow-form-actions flow-form-collapsible' . (LCRun3::ifvar($cx, isset($in['isOnFlowBoard']) && is_array($in) ? $in['isOnFlowBoard'] : null) ? ' flow-form-collapsible-collapsed' : '') . '">
' . $sp . '			<button data-role="submit" data-flow-api-handler="newTopic"
' . $sp . '				data-flow-interactive-handler="apiRequest"
' . $sp . '				data-flow-eventlog-action="save-attempt"
' . $sp . '				class="mw-ui-button mw-ui-constructive mw-ui-flush-right">' . LCRun3::ch($cx, 'l10n', array(array('flow-newtopic-save'), array()), 'encq') . '</button>
' . $sp . '' . LCRun3::p($cx, 'flow_form_cancel_button', array(array($in), array()), '			') . '			<small class="flow-terms-of-use plainlinks">' . LCRun3::ch($cx, 'l10nParse', array(array('flow-terms-of-use-new-topic'), array()), 'encq') . '</small>
' . $sp . '		</div>
' . $sp . '	</form>
' . $sp . '' : '') . '';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '<div class="flow-board">
' . LCRun3::p($cx, 'flow_newtopic_form', array(array($in), array()), '	') . '</div>
';
};
' . $sp . '';
        }) . '		</ul>
' . $sp . '	</div>
' . $sp . '' : '') . '</div>
';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '<div class="flow-board">
' . (LCRun3::ifvar($cx, isset($in['undo']['possible']) && is_array($in['undo']) ? $in['undo']['possible'] : null) ? '		<p>' . LCRun3::ch($cx, 'l10n', array(array('flow-undo-edit-content'), array()), 'encq') . '</p>
' : '		<p class="error">' . LCRun3::ch($cx, 'l10n', array(array('flow-undo-edit-failure'), array()), 'encq') . '</p>
') . '
' . LCRun3::p($cx, 'flow_errors', array(array($in), array()), '	') . '
' . (LCRun3::ifvar($cx, isset($in['undo']['possible']) && is_array($in['undo']) ? $in['undo']['possible'] : null) ? '		' . LCRun3::ch($cx, 'diffUndo', array(array(isset($in['undo']['diff_content']) && is_array($in['undo']) ? $in['undo']['diff_content'] : null), array()), 'encq') . '
' : '') . '
	<form method="POST" action="' . htmlentities((string) (isset($in['links']['undo-edit-header']['url']) && is_array($in['links']['undo-edit-header']) ? $in['links']['undo-edit-header']['url'] : null), ENT_QUOTES, 'UTF-8') . '" class="flow-post">
		<input type="hidden" name="wpEditToken" value="' . htmlentities((string) (isset($cx['sp_vars']['root']['rootBlock']['editToken']) && is_array($cx['sp_vars']['root']['rootBlock']) ? $cx['sp_vars']['root']['rootBlock']['editToken'] : null), ENT_QUOTES, 'UTF-8') . '" />
		<input type="hidden" name="header_prev_revision" value="' . htmlentities((string) (isset($in['current']['revisionId']) && is_array($in['current']) ? $in['current']['revisionId'] : null), ENT_QUOTES, 'UTF-8') . '" />

		<div class="flow-editor">
			<textarea name="header_content" class="mw-ui-input" data-role="content">' . (LCRun3::ifvar($cx, isset($in['submitted']['content']) && is_array($in['submitted']) ? $in['submitted']['content'] : null) ? '' . htmlentities((string) (isset($in['submitted']['content']) && is_array($in['submitted']) ? $in['submitted']['content'] : null), ENT_QUOTES, 'UTF-8') . '' : '' . (LCRun3::ifvar($cx, isset($in['undo']['possible']) && is_array($in['undo']) ? $in['undo']['possible'] : null) ? '' . htmlentities((string) (isset($in['undo']['content']) && is_array($in['undo']) ? $in['undo']['content'] : null), ENT_QUOTES, 'UTF-8') . '' : '' . htmlentities((string) (isset($in['current']['content']['content']) && is_array($in['current']['content']) ? $in['current']['content']['content'] : null), ENT_QUOTES, 'UTF-8') . '') . '') . '</textarea>
		</div>

		<div class="flow-form-actions flow-form-collapsible">
			<button class="mw-ui-button mw-ui-constructive">' . LCRun3::ch($cx, 'l10n', array(array('flow-edit-header-submit'), array()), 'encq') . '</button>
			<small class="flow-terms-of-use plainlinks">' . LCRun3::ch($cx, 'l10nParse', array(array('flow-terms-of-use-edit'), array()), 'encq') . '
			</small>
		</div>
	</form>
</div>

';
};
';
    }, 'flow_topic_titlebar_lock' => function ($cx, $in, $sp) {
        return '' . $sp . '<div class="flow-topic-summary-container">
' . $sp . '	<div class="flow-topic-summary">
' . $sp . '		<form class="flow-edit-form" data-flow-initial-state="collapsed" method="POST"
' . $sp . '			  action="' . (LCRun3::ifvar($cx, isset($in['isLocked']) && is_array($in) ? $in['isLocked'] : null) ? '' . htmlentities((string) (isset($in['actions']['unlock']['url']) && is_array($in['actions']['unlock']) ? $in['actions']['unlock']['url'] : null), ENT_QUOTES, 'UTF-8') . '' : '' . htmlentities((string) (isset($in['actions']['lock']['url']) && is_array($in['actions']['lock']) ? $in['actions']['lock']['url'] : null), ENT_QUOTES, 'UTF-8') . '') . '">
' . $sp . '' . LCRun3::p($cx, 'flow_errors', array(array($in), array()), '			') . '			<input type="hidden" name="wpEditToken" value="' . htmlentities((string) (isset($cx['sp_vars']['root']['editToken']) && is_array($cx['sp_vars']['root']) ? $cx['sp_vars']['root']['editToken'] : null), ENT_QUOTES, 'UTF-8') . '" />
' . $sp . '			<input type="hidden" name="flow_reason" value="' . (LCRun3::ifvar($cx, isset($in['isLocked']) && is_array($in) ? $in['isLocked'] : null) ? '' . LCRun3::ch($cx, 'l10n', array(array('flow-rev-message-restore-topic-reason'), array()), 'encq') . '' : '' . LCRun3::ch($cx, 'l10n', array(array('flow-rev-message-lock-topic-reason'), array()), 'encq') . '') . '" />
' . $sp . '			<div class="flow-form-actions flow-form-collapsible">
' . $sp . '				<button data-role="submit"
' . $sp . '				        class="mw-ui-button mw-ui-constructive"
' . $sp . '				        data-flow-interactive-handler="apiRequest"
' . $sp . '				        data-flow-api-target="< .flow-topic"
' . $sp . '				        data-flow-api-handler="lockTopic"
' . $sp . '				>
' . $sp . '' . (LCRun3::ifvar($cx, isset($in['isLocked']) && is_array($in) ? $in['isLocked'] : null) ? '						' . LCRun3::ch($cx, 'l10n', array(array('flow-topic-action-unlock-topic'), array()), 'encq') . '
' . $sp . '' : '						' . LCRun3::ch($cx, 'l10n', array(array('flow-topic-action-lock-topic'), array()), 'encq') . '
' . $sp . '') . '				</button>
' . $sp . '' . LCRun3::p($cx, 'flow_form_cancel_button', array(array($in), array()), '				') . '				<small class="flow-terms-of-use plainlinks">
' . $sp . '' . (LCRun3::ifvar($cx, isset($in['isLocked']) && is_array($in) ? $in['isLocked'] : null) ? '						' . LCRun3::ch($cx, 'l10nParse', array(array('flow-terms-of-use-unlock-topic'), array()), 'encq') . '
' . $sp . '' : '						' . LCRun3::ch($cx, 'l10nParse', array(array('flow-terms-of-use-lock-topic'), array()), 'encq') . '
' . $sp . '') . '				</small>
' . $sp . '			</div>
' . $sp . '		</form>
' . $sp . '	</div>
' . $sp . '</div>
';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '' . LCRun3::p($cx, 'flow_topic_titlebar_lock', array(array($in), array())) . '
';
};
Пример #7
0
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array('helper1' => function ($args, $named) {
        $u = isset($args[0]) ? $args[0] : 'undefined';
        $t = isset($args[1]) ? $args[1] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>";
    }), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return '' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url2')), LCRun3::v($cx, $in, array('text'))), array()), 'raw')), array()), 'raw') . '

';
};
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => false, 'jsobj' => false, 'spvar' => true, 'prop' => false, 'method' => false, 'mustlok' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array('l10n' => 'Flow\\TemplateHelper::l10n', 'l10nParse' => 'Flow\\TemplateHelper::l10nParse', 'enablePatrollingLink' => 'Flow\\TemplateHelper::enablePatrollingLink'), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array('flow_patrol_diff' => function ($cx, $in, $sp) {
        return '' . $sp . '' . (LCRun3::ifvar($cx, isset($in['revision']['rev_view_links']['markPatrolled']) && is_array($in['revision']['rev_view_links']) ? $in['revision']['rev_view_links']['markPatrolled'] : null) ? '<div>
' . $sp . '        <span class="patrollink">
' . $sp . '            [<a class="mw-ui-quiet"
' . $sp . '               href="' . htmlentities((string) (isset($in['revision']['rev_view_links']['markPatrolled']['url']) && is_array($in['revision']['rev_view_links']['markPatrolled']) ? $in['revision']['rev_view_links']['markPatrolled']['url'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '               title="' . LCRun3::ch($cx, 'l10n', array(array('flow-mark-diff-patrolled-link-title'), array()), 'encq') . '"
' . $sp . '               data-role="patrol">' . LCRun3::ch($cx, 'l10n', array(array('flow-mark-diff-patrolled-link-text'), array()), 'encq') . '</a>]
' . $sp . '        </span>
' . $sp . '    </div>
' . $sp . '    ' . LCRun3::ch($cx, 'enablePatrollingLink', array(array(), array()), 'encq') . '' : '') . '';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '<div>
	<a href="' . htmlentities((string) (isset($in['revision']['rev_view_links']['single-view']['url']) && is_array($in['revision']['rev_view_links']['single-view']) ? $in['revision']['rev_view_links']['single-view']['url'] : null), ENT_QUOTES, 'UTF-8') . '" class="flow-diff-revision-link">
		' . LCRun3::ch($cx, 'l10nParse', array(array('flow-compare-revisions-revision-header', isset($in['revision']['human_timestamp']) && is_array($in['revision']) ? $in['revision']['human_timestamp'] : null, isset($in['revision']['author']['name']) && is_array($in['revision']['author']) ? $in['revision']['author']['name'] : null), array()), 'encq') . '
	</a>

' . (LCRun3::ifvar($cx, isset($in['new']) && is_array($in) ? $in['new'] : null) ? '' . (LCRun3::ifvar($cx, isset($in['revision']['actions']['undo']) && is_array($in['revision']['actions']) ? $in['revision']['actions']['undo'] : null) ? '(' . htmlentities((string) (isset($in['noop']) && is_array($in) ? $in['noop'] : null), ENT_QUOTES, 'UTF-8') . '<a class="mw-ui-anchor mw-ui-quiet" href="' . htmlentities((string) (isset($in['revision']['actions']['undo']['url']) && is_array($in['revision']['actions']['undo']) ? $in['revision']['actions']['undo']['url'] : null), ENT_QUOTES, 'UTF-8') . '">' . htmlentities((string) (isset($in['revision']['actions']['undo']['title']) && is_array($in['revision']['actions']['undo']) ? $in['revision']['actions']['undo']['title'] : null), ENT_QUOTES, 'UTF-8') . '</a>' . htmlentities((string) (isset($in['noop']) && is_array($in) ? $in['noop'] : null), ENT_QUOTES, 'UTF-8') . ')' : '') . '' : '') . '</div>
' . (LCRun3::ifvar($cx, isset($in['links']['previous']) && is_array($in['links']) ? $in['links']['previous'] : null) ? '' . (!LCRun3::ifvar($cx, isset($in['new']) && is_array($in) ? $in['new'] : null) ? '<div><a href="' . htmlentities((string) (isset($in['links']['previous']) && is_array($in['links']) ? $in['links']['previous'] : null), ENT_QUOTES, 'UTF-8') . '">' . LCRun3::ch($cx, 'l10n', array(array('flow-previous-diff'), array()), 'encq') . '</a></div>' : '') . '' : '') . '' . (LCRun3::ifvar($cx, isset($in['links']['next']) && is_array($in['links']) ? $in['links']['next'] : null) ? '' . (LCRun3::ifvar($cx, isset($in['new']) && is_array($in) ? $in['new'] : null) ? '<div><a href="' . htmlentities((string) (isset($in['links']['next']) && is_array($in['links']) ? $in['links']['next'] : null), ENT_QUOTES, 'UTF-8') . '">' . LCRun3::ch($cx, 'l10n', array(array('flow-next-diff'), array()), 'encq') . '</a></div>' : '') . '' : '') . '' . LCRun3::p($cx, 'flow_patrol_diff', array(array($in), array())) . '';
};
' . $sp . '' . (LCRun3::ifvar($cx, isset($in['links']['diff-prev']) && is_array($in['links']) ? $in['links']['diff-prev'] : null) ? '			<a href="' . htmlentities((string) (isset($in['links']['diff-prev']['url']) && is_array($in['links']['diff-prev']) ? $in['links']['diff-prev']['url'] : null), ENT_QUOTES, 'UTF-8') . '" title="' . htmlentities((string) (isset($in['links']['diff-prev']['title']) && is_array($in['links']['diff-prev']) ? $in['links']['diff-prev']['title'] : null), ENT_QUOTES, 'UTF-8') . '">' . htmlentities((string) (isset($in['links']['diff-prev']['text']) && is_array($in['links']['diff-prev']) ? $in['links']['diff-prev']['text'] : null), ENT_QUOTES, 'UTF-8') . '</a>' : '' . LCRun3::ch($cx, 'l10n', array(array('last'), array()), 'encq') . '') . '</span>' . (LCRun3::ifvar($cx, isset($in['links']['topic']) && is_array($in['links']) ? $in['links']['topic'] : null) ? '		<span><a href="' . htmlentities((string) (isset($in['links']['topic']['url']) && is_array($in['links']['topic']) ? $in['links']['topic']['url'] : null), ENT_QUOTES, 'UTF-8') . '" title="' . htmlentities((string) (isset($in['links']['topic']['title']) && is_array($in['links']['topic']) ? $in['links']['topic']['title'] : null), ENT_QUOTES, 'UTF-8') . '">' . htmlentities((string) (isset($in['links']['topic']['text']) && is_array($in['links']['topic']) ? $in['links']['topic']['text'] : null), ENT_QUOTES, 'UTF-8') . '</a></span>' : '') . ')
' . $sp . '</span>
' . $sp . '
' . $sp . '' . LCRun3::ch($cx, 'historyTimestamp', array(array($in), array()), 'encq') . '
' . $sp . '
' . $sp . '<span class="mw-changeslist-separator">. .</span>
' . $sp . '' . LCRun3::ch($cx, 'historyDescription', array(array($in), array()), 'encq') . '
' . $sp . '
' . $sp . '' . (LCRun3::ifvar($cx, isset($in['size']) && is_array($in) ? $in['size'] : null) ? '	<span class="mw-changeslist-separator">. .</span>
' . $sp . '	' . LCRun3::ch($cx, 'showCharacterDifference', array(array(isset($in['size']['old']) && is_array($in['size']) ? $in['size']['old'] : null, isset($in['size']['new']) && is_array($in['size']) ? $in['size']['new'] : null), array()), 'encq') . '
' . $sp . '' : '') . '
' . $sp . '<ul class="flow-history-moderation-menu">
' . $sp . '' . LCRun3::p($cx, 'flow_moderation_actions_list', array(array($in), array('moderationType' => 'history', 'moderationTarget' => 'post', 'moderationTemplate' => 'post', 'moderationMwUiClass' => 'mw-ui-anchor', 'moderationIcons' => false)), '	') . '</ul>
';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '<div class="flow-board-history">
' . LCRun3::p($cx, 'flow_errors', array(array($in), array()), '	') . '
	<div class="flow-topic-histories">
		' . (LCRun3::ifvar($cx, isset($in['navbar']) && is_array($in) ? $in['navbar'] : null) ? '' . LCRun3::ch($cx, 'html', array(array(isset($in['navbar']) && is_array($in) ? $in['navbar'] : null), array()), 'encq') . '' : '') . '

		<ul>
' . LCRun3::sec($cx, isset($in['revisions']) && is_array($in) ? $in['revisions'] : null, $in, true, function ($cx, $in) {
        return '				<li>' . LCRun3::p($cx, 'flow_history_line', array(array($in), array())) . '</li>
';
    }) . '		</ul>

		' . (LCRun3::ifvar($cx, isset($in['navbar']) && is_array($in) ? $in['navbar'] : null) ? '' . LCRun3::ch($cx, 'html', array(array(isset($in['navbar']) && is_array($in) ? $in['navbar'] : null), array()), 'encq') . '' : '') . '
	</div>
</div>
';
};
' . $sp . '		   data-flow-load-handler="loadMore"
' . $sp . '		   data-flow-scroll-target="' . htmlentities((string) (isset($in['loadMoreTarget']) && is_array($in) ? $in['loadMoreTarget'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '		   data-flow-scroll-container="' . htmlentities((string) (isset($in['loadMoreContainer']) && is_array($in) ? $in['loadMoreContainer'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '		   data-flow-template="' . htmlentities((string) (isset($in['loadMoreTemplate']) && is_array($in) ? $in['loadMoreTemplate'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '		   href="' . htmlentities((string) (isset($in['loadMoreObject']['url']) && is_array($in['loadMoreObject']) ? $in['loadMoreObject']['url'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '		   title="' . htmlentities((string) (isset($in['loadMoreObject']['title']) && is_array($in['loadMoreObject']) ? $in['loadMoreObject']['title'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '		   class="mw-ui-button mw-ui-progressive flow-load-interactive flow-ui-fallback-element"><span class="mw-ui-icon mw-ui-icon-before mw-ui-icon-article-invert"></span> ' . LCRun3::ch($cx, 'l10n', array(array('flow-load-more'), array()), 'encq') . '</a>
' . $sp . '	</div>
' . $sp . '' : '	<div class="flow-no-more">
' . $sp . '		' . LCRun3::ch($cx, 'l10n', array(array('flow-no-more-fwd'), array()), 'encq') . '
' . $sp . '	</div>
' . $sp . '') . '';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '' . LCRun3::p($cx, 'flow_board_navigation', array(array($in), array())) . '
<div class="flow-board" data-flow-sortby="' . htmlentities((string) (isset($in['sortby']) && is_array($in) ? $in['sortby'] : null), ENT_QUOTES, 'UTF-8') . '">
	<div class="flow-newtopic-container">
		<div class="flow-nojs">
			<a class="mw-ui-input mw-ui-input-large flow-ui-input-replacement-anchor"
				href="' . htmlentities((string) (isset($in['links']['newtopic']) && is_array($in['links']) ? $in['links']['newtopic'] : null), ENT_QUOTES, 'UTF-8') . '">' . LCRun3::ch($cx, 'l10n', array(array('flow-newtopic-start-placeholder'), array()), 'encq') . '</a>
		</div>

		<div class="flow-js">
' . LCRun3::p($cx, 'flow_newtopic_form', array(array($in), array('isOnFlowBoard' => true)), '			') . '		</div>
	</div>

	<div class="flow-topics">
' . LCRun3::p($cx, 'flow_topiclist_loop', array(array($in), array()), '		') . '
' . LCRun3::p($cx, 'flow_load_more', array(array($in), array('loadMoreApiHandler' => 'loadMoreTopics', 'loadMoreTarget' => 'window', 'loadMoreContainer' => '< .flow-topics', 'loadMoreTemplate' => 'flow_topiclist_loop.partial', 'loadMoreObject' => isset($in['links']['pagination']['fwd']) && is_array($in['links']['pagination']) ? $in['links']['pagination']['fwd'] : null)), '		') . '	</div>
</div>
';
};
Пример #11
0
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array('helper1' => function ($args, $named) {
        $u = isset($args[0]) ? $args[0] : 'undefined';
        $t = isset($args[1]) ? $args[1] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>";
    }, 'helper2' => function ($args, $named) {
        $u = isset($named['url']) ? jsraw($named['url']) : 'undefined';
        $t = isset($named['text']) ? jsraw($named['text']) : 'undefined';
        $x = isset($named['ur"l']) ? $named['ur"l'] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>({$x})";
    }), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return 'Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!

. Test 1: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test & OK'), array()), 'raw') . ' !!
. Test 2: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test'), array()), 'raw') . ' !!
. Test 3: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test & OK'), array()), 'encq') . ' !!
. Test 3: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'string/arg.css'), array()), 'encq') . ' !!
. Test 4: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test'), array()), 'encq') . ' !!
. Test 5: ' . LCRun3::ch($cx, 'helper2', array(array(), array('url' => LCRun3::v($cx, $in, array('url')), 'text' => 'this is a test')), 'encq') . ' !!
. Test 6: ' . LCRun3::ch($cx, 'helper2', array(array(), array('ur"l' => LCRun3::v($cx, $in, array('url')), 'text' => 'this is a test')), 'encq') . ' !!
. Test 7: ' . LCRun3::ch($cx, 'helper2', array(array(), array('url' => '0', 'text' => '10')), 'encq') . ' !!
. Test 8: ' . LCRun3::ch($cx, 'helper2', array(array(), array('url' => '-1', 'text' => '1.3')), 'encq') . ' !!
. Test 9: ' . LCRun3::ch($cx, 'helper2', array(array(), array('url' => true, 'text' => false)), 'encq') . ' !!
';
};
Пример #12
0
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array('helper1' => function ($args, $named) {
        $u = isset($args[0]) ? $args[0] : 'undefined';
        $t = isset($args[1]) ? $args[1] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>";
    }), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return 'Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!

. Test 1: ' . (LCRun3::ifvar($cx, '') ? 'OK' : '') . ' !!
. Test 2: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('test', 'a b'))) . ' !!
. Test 3: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('te"st', 'cd'))) . ' !!
. Test 4: ' . (LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('te"st'))) ? 'OK' : '') . ' !!
. Test 5: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test & OK'), array()), 'raw') . ' !!
. Test 6: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test'), array()), 'raw') . ' !!
. Test 7: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test & OK'), array()), 'encq') . ' !!
. Test 8: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test'), array()), 'encq') . ' !!
. Test 9: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this.is.atest'), array()), 'encq') . ' !!
';
};
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => false, 'jsobj' => false, 'spvar' => true, 'prop' => false, 'method' => false, 'mustlok' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array('block' => 'Flow\\TemplateHelper::block'), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '' . LCRun3::sec($cx, isset($in['blocks']) && is_array($in) ? $in['blocks'] : null, $in, true, function ($cx, $in) {
        return '	' . LCRun3::ch($cx, 'block', array(array($in), array()), 'encq') . '
';
    }) . '<div class="flow-ui-load-overlay"></div>
<div style="clear: both"></div>
';
};
' . $sp . '' . (LCRun3::ifvar($cx, isset($cx['sp_vars']['root']['posts']) && is_array($cx['sp_vars']['root']) ? $cx['sp_vars']['root']['posts'] : null) ? '' . LCRun3::sec($cx, isset($in['replies']) && is_array($in) ? $in['replies'] : null, $in, true, function ($cx, $in) use($sp) {
            return '' . LCRun3::hbch($cx, 'eachPost', array(array(isset($cx['sp_vars']['root']) && is_array($cx['sp_vars']) ? $cx['sp_vars']['root'] : null, $in), array()), $in, false, function ($cx, $in) use($sp) {
                return '				<!-- eachPost topic -->
' . $sp . '				' . LCRun3::ch($cx, 'post', array(array(isset($cx['sp_vars']['root']) && is_array($cx['sp_vars']) ? $cx['sp_vars']['root'] : null, $in), array()), 'encq') . '
' . $sp . '';
            }) . '';
        }) . '' : '') . '
' . $sp . '' . (LCRun3::ifvar($cx, isset($in['actions']['reply']) && is_array($in['actions']) ? $in['actions']['reply'] : null) ? '' . LCRun3::hbch($cx, 'ifCond', array(array(isset($cx['sp_vars']['root']['submitted']['postId']) && is_array($cx['sp_vars']['root']['submitted']) ? $cx['sp_vars']['root']['submitted']['postId'] : null, '===', isset($in['postId']) && is_array($in) ? $in['postId'] : null), array()), $in, false, function ($cx, $in) use($sp) {
            return '' . LCRun3::p($cx, 'flow_reply_form', array(array($in), array()), '			') . '';
        }, function ($cx, $in) use($sp) {
            return '' . LCRun3::hbch($cx, 'progressiveEnhancement', array(array(), array('type' => 'replace', 'target' => '~ a')), $in, false, function ($cx, $in) use($sp) {
                return '' . LCRun3::p($cx, 'flow_reply_form', array(array($in), array()), '				') . '';
            }) . '			<a href="' . htmlentities((string) (isset($in['actions']['reply']['url']) && is_array($in['actions']['reply']) ? $in['actions']['reply']['url'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '			   title="' . htmlentities((string) (isset($in['actions']['reply']['title']) && is_array($in['actions']['reply']) ? $in['actions']['reply']['title'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '			   class="flow-ui-input-replacement-anchor mw-ui-input"
' . $sp . '			>' . LCRun3::ch($cx, 'l10n', array(array('flow-reply-topic-title-placeholder', isset($in['properties']['topic-of-post']) && is_array($in['properties']) ? $in['properties']['topic-of-post'] : null), array()), 'encq') . '</a>
' . $sp . '';
        }) . '' : '') . '</div>
';
    }, 'flow_topiclist_loop' => function ($cx, $in, $sp) {
        return '' . $sp . '' . LCRun3::sec($cx, isset($in['roots']) && is_array($in) ? $in['roots'] : null, $in, true, function ($cx, $in) use($sp) {
            return '' . LCRun3::hbch($cx, 'eachPost', array(array(isset($cx['sp_vars']['root']) && is_array($cx['sp_vars']) ? $cx['sp_vars']['root'] : null, $in), array()), $in, false, function ($cx, $in) use($sp) {
                return '' . LCRun3::p($cx, 'flow_topic', array(array($in), array()), '		') . '';
            }) . '';
        }) . '';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '<div class="flow-board">
	<div class="flow-topics">
' . LCRun3::p($cx, 'flow_errors', array(array($in), array()), '		') . '
' . LCRun3::p($cx, 'flow_topiclist_loop', array(array($in), array()), '		') . '	</div>
</div>
Пример #15
0
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array('helper1' => function ($args, $named) {
        $u = isset($args[0]) ? $args[0] : 'undefined';
        $t = isset($args[1]) ? $args[1] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>";
    }), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return 'Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!

. Test 1: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), LCRun3::v($cx, $in, array('text'))), array()), 'raw') . '
. Test 2: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), LCRun3::v($cx, $in, array('text'))), array()), 'encq') . '
. Test 3: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('test', 'url')), LCRun3::v($cx, $in, array('test', 'text'))), array()), 'encq') . '
. Test 4: ' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('people')), $in, true, function ($cx, $in) {
        return '
  * ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('url')), LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))), array()), 'encq') . ' <= ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('url'))) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('url'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))) . ' !!
  * ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), LCRun3::v($cx, $in, array('text'))), array()), 'encq') . ' <= ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('url'))) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))) . ' , ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('url'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))) . ' :D
';
    }) . '';
};
' . $sp . '' . (LCRun3::ifvar($cx, isset($cx['sp_vars']['root']['errors']) && is_array($cx['sp_vars']['root']) ? $cx['sp_vars']['root']['errors'] : null) ? '	<div class="flow-errors errorbox">
' . $sp . '		<ul>
' . $sp . '' . LCRun3::sec($cx, isset($cx['sp_vars']['root']['errors']) && is_array($cx['sp_vars']['root']) ? $cx['sp_vars']['root']['errors'] : null, $in, true, function ($cx, $in) use($sp) {
            return '				<li>' . LCRun3::ch($cx, 'html', array(array(isset($in['message']) && is_array($in) ? $in['message'] : null), array()), 'encq') . '</li>
' . $sp . '';
        }) . '		</ul>
' . $sp . '	</div>
' . $sp . '' : '') . '</div>
';
    }, 'flow_patrol_action' => function ($cx, $in, $sp) {
        return '' . $sp . '' . (LCRun3::ifvar($cx, isset($in['revision']['rev_view_links']['markPatrolled']) && is_array($in['revision']['rev_view_links']) ? $in['revision']['rev_view_links']['markPatrolled'] : null) ? '<div class="patrollink">
' . $sp . '        [<a class="mw-ui-quiet"
' . $sp . '           href="' . htmlentities((string) (isset($in['revision']['rev_view_links']['markPatrolled']['url']) && is_array($in['revision']['rev_view_links']['markPatrolled']) ? $in['revision']['rev_view_links']['markPatrolled']['url'] : null), ENT_QUOTES, 'UTF-8') . '"
' . $sp . '           title="' . LCRun3::ch($cx, 'l10n', array(array('flow-mark-revision-patrolled-link-title'), array()), 'encq') . '"
' . $sp . '           data-role="patrol">' . LCRun3::ch($cx, 'l10n', array(array('flow-mark-revision-patrolled-link-text'), array()), 'encq') . '</a>]
' . $sp . '    </div>
' . $sp . '    ' . LCRun3::ch($cx, 'enablePatrollingLink', array(array(), array()), 'encq') . '' : '') . '';
    }), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '<div class="flow-board">
' . LCRun3::p($cx, 'flow_errors', array(array($in), array()), '	') . '
' . (LCRun3::ifvar($cx, isset($in['revision']) && is_array($in) ? $in['revision'] : null) ? '		<div class="flow-revision-permalink-warning plainlinks">
' . (LCRun3::ifvar($cx, isset($in['revision']['previousRevisionId']) && is_array($in['revision']) ? $in['revision']['previousRevisionId'] : null) ? '				' . LCRun3::ch($cx, 'l10nParse', array(array('flow-revision-permalink-warning-post', isset($in['revision']['human_timestamp']) && is_array($in['revision']) ? $in['revision']['human_timestamp'] : null, isset($in['revision']['rev_view_links']['board']['title']) && is_array($in['revision']['rev_view_links']['board']) ? $in['revision']['rev_view_links']['board']['title'] : null, isset($in['revision']['root']['content']) && is_array($in['revision']['root']) ? $in['revision']['root']['content'] : null, isset($in['revision']['rev_view_links']['hist']['url']) && is_array($in['revision']['rev_view_links']['hist']) ? $in['revision']['rev_view_links']['hist']['url'] : null, isset($in['revision']['rev_view_links']['diff']['url']) && is_array($in['revision']['rev_view_links']['diff']) ? $in['revision']['rev_view_links']['diff']['url'] : null), array()), 'encq') . '
' : '				' . LCRun3::ch($cx, 'l10nParse', array(array('flow-revision-permalink-warning-post-first', isset($in['revision']['human_timestamp']) && is_array($in['revision']) ? $in['revision']['human_timestamp'] : null, isset($in['revision']['rev_view_links']['board']['title']) && is_array($in['revision']['rev_view_links']['board']) ? $in['revision']['rev_view_links']['board']['title'] : null, isset($in['revision']['root']['content']) && is_array($in['revision']['root']) ? $in['revision']['root']['content'] : null, isset($in['revision']['rev_view_links']['hist']['url']) && is_array($in['revision']['rev_view_links']['hist']) ? $in['revision']['rev_view_links']['hist']['url'] : null, isset($in['revision']['rev_view_links']['diff']['url']) && is_array($in['revision']['rev_view_links']['diff']) ? $in['revision']['rev_view_links']['diff']['url'] : null), array()), 'encq') . '
') . '		</div>
		<div class="flow-revision-content">
			' . LCRun3::ch($cx, 'escapeContent', array(array(isset($in['revision']['content']['format']) && is_array($in['revision']['content']) ? $in['revision']['content']['format'] : null, isset($in['revision']['content']['content']) && is_array($in['revision']['content']) ? $in['revision']['content']['content'] : null), array()), 'encq') . '
		</div>

' . LCRun3::p($cx, 'flow_patrol_action', array(array($in), array()), '		') . '' : '') . '</div>
';
};
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => false, 'jsobj' => false, 'spvar' => true, 'prop' => false, 'method' => false, 'mustlok' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array('l10nParse' => 'Flow\\TemplateHelper::l10nParse', 'diffRevision' => 'Flow\\TemplateHelper::diffRevision'), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array(), 'sp_vars' => array('root' => $in), 'lcrun' => 'LCRun3');
    return '<div class="flow-board">
	<div class="flow-compare-revisions-header plainlinks">
		' . LCRun3::ch($cx, 'l10nParse', array(array('flow-compare-revisions-header-post', isset($in['revision']['new']['rev_view_links']['board']['title']) && is_array($in['revision']['new']['rev_view_links']['board']) ? $in['revision']['new']['rev_view_links']['board']['title'] : null, isset($in['revision']['new']['properties']['topic-of-post']) && is_array($in['revision']['new']['properties']) ? $in['revision']['new']['properties']['topic-of-post'] : null, isset($in['revision']['new']['author']['name']) && is_array($in['revision']['new']['author']) ? $in['revision']['new']['author']['name'] : null, isset($in['revision']['new']['rev_view_links']['board']['url']) && is_array($in['revision']['new']['rev_view_links']['board']) ? $in['revision']['new']['rev_view_links']['board']['url'] : null, isset($in['revision']['new']['rev_view_links']['root']['url']) && is_array($in['revision']['new']['rev_view_links']['root']) ? $in['revision']['new']['rev_view_links']['root']['url'] : null, isset($in['revision']['new']['rev_view_links']['hist']['url']) && is_array($in['revision']['new']['rev_view_links']['hist']) ? $in['revision']['new']['rev_view_links']['hist']['url'] : null), array()), 'encq') . '
	</div>
	<div class="flow-compare-revisions">
		' . LCRun3::ch($cx, 'diffRevision', array(array(isset($in['revision']) && is_array($in) ? $in['revision'] : null), array()), 'encq') . '
	</div>
</div>

';
};
' : '') . '
			<div class="flow-editor">
				<textarea class="mw-ui-input"
				          name="' . htmlentities((string) (isset($in['type']) && is_array($in) ? $in['type'] : null), ENT_QUOTES, 'UTF-8') . '_summary"
				          type="text"
				          placeholder="' . LCRun3::ch($cx, 'l10n', array(array('flow-edit-summary-placeholder'), array()), 'encq') . '"
				          data-role="content"
				>' . (LCRun3::ifvar($cx, isset($in['submitted']['summary']) && is_array($in['submitted']) ? $in['submitted']['summary'] : null) ? '' . htmlentities((string) (isset($in['submitted']['summary']) && is_array($in['submitted']) ? $in['submitted']['summary'] : null), ENT_QUOTES, 'UTF-8') . '' : '' . (LCRun3::ifvar($cx, isset($in['revision']['revisionId']) && is_array($in['revision']) ? $in['revision']['revisionId'] : null) ? '' . htmlentities((string) (isset($in['revision']['content']['content']) && is_array($in['revision']['content']) ? $in['revision']['content']['content'] : null), ENT_QUOTES, 'UTF-8') . '' : '') . '') . '</textarea>
			</div>

			<div class="flow-form-actions flow-form-collapsible">
				<button
					data-role="submit"
					class="mw-ui-button mw-ui-constructive"
					data-flow-interactive-handler="apiRequest"
					data-flow-api-handler="summarizeTopic"
					data-flow-api-target="< .flow-topic-summary-container">
						' . LCRun3::ch($cx, 'l10n', array(array('flow-topic-action-update-topic-summary'), array()), 'encq') . '
				</button>

' . LCRun3::hbch($cx, 'ifCond', array(array(isset($in['action']) && is_array($in) ? $in['action'] : null, '===', 'summarize'), array()), $in, false, function ($cx, $in) {
        return '' . LCRun3::p($cx, 'flow_form_cancel_button', array(array($in), array()), '					') . '';
    }, function ($cx, $in) {
        return '' . (!LCRun3::ifvar($cx, isset($in['submitted']['summary']) && is_array($in['submitted']) ? $in['submitted']['summary'] : null) ? '' . (!LCRun3::ifvar($cx, isset($in['revision']['content']['content']) && is_array($in['revision']['content']) ? $in['revision']['content']['content'] : null) ? '' . LCRun3::p($cx, 'flow_form_cancel_button', array(array($in), array('msg' => 'flow-skip-summary')), '							') . '' : '') . '' : '') . '';
    }) . '				<small class="flow-terms-of-use plainlinks">' . LCRun3::ch($cx, 'l10nParse', array(array('flow-terms-of-use-summarize'), array()), 'encq') . '</small>
			</div>
		</form>
	</div>
</div>
';
};