<?php
// FROM HASH: 254125e083c63d0729b697fc8e8bbe5d
return array(
'code' => function($__templater, array $__vars, $__extensions = null)
{
	$__finalCompiled = '';
	$__templater->pageParams['pageTitle'] = $__templater->preEscaped('New profile posts');
	$__templater->pageParams['pageNumber'] = $__vars['page'];
	$__finalCompiled .= '

';
	$__compilerTemp1 = $__vars;
	$__compilerTemp1['pageSelected'] = $__templater->preEscaped('new_profile_post');
	$__templater->wrapTemplate('whats_new_wrapper', $__compilerTemp1);
	$__finalCompiled .= '

';
	if ($__vars['canInlineMod']) {
		$__finalCompiled .= '
	';
		$__templater->includeJs(array(
			'src' => 'xf/inline_mod.js',
			'min' => '1',
		));
		$__finalCompiled .= '
';
	}
	$__finalCompiled .= '

' . $__templater->callMacro(null, 'lightbox_macros::setup', array(
		'canViewAttachments' => $__vars['canViewAttachments'],
	), $__vars) . '

<div class="block" data-xf-init="lightbox ' . ($__vars['canInlineMod'] ? 'inline-mod' : '') . '" data-type="profile_post" data-href="' . $__templater->func('link', array('inline-mod', ), true) . '">
	';
	if ($__vars['findNew']['result_count']) {
		$__finalCompiled .= '
		<div class="block-outer">
			' . $__templater->func('page_nav', array(array(
			'page' => $__vars['page'],
			'total' => $__vars['findNew']['result_count'],
			'link' => 'whats-new/profile-posts',
			'data' => $__vars['findNew'],
			'wrapperclass' => 'block-outer-main',
			'perPage' => $__vars['perPage'],
		))) . '

			';
		$__compilerTemp2 = '';
		$__compilerTemp2 .= '
						';
		if ($__vars['canInlineMod']) {
			$__compilerTemp2 .= '
							' . $__templater->callMacro(null, 'inline_mod_macros::button', array(), $__vars) . '
						';
		}
		$__compilerTemp2 .= '
					';
		if (strlen(trim($__compilerTemp2)) > 0) {
			$__finalCompiled .= '
				<div class="block-outer-opposite">
					<div class="buttonGroup">
					' . $__compilerTemp2 . '
					</div>
				</div>
			';
		}
		$__finalCompiled .= '
		</div>
	';
	}
	$__finalCompiled .= '

	<div class="block-container">
		';
	if ($__vars['xf']['visitor']['user_id']) {
		$__finalCompiled .= '
			<div class="block-filterBar">
				<div class="filterBar">
					';
		$__compilerTemp3 = '';
		$__compilerTemp3 .= '
								' . '
								';
		if ($__vars['findNew']['filters']['followed']) {
			$__compilerTemp3 .= '
									<li><a href="' . $__templater->func('link', array('whats-new/profile-posts', $__vars['findNew'], array('remove' => 'followed', ), ), true) . '"
										class="filterBar-filterToggle" data-xf-init="tooltip" title="' . $__templater->filter('Remove this filter', array(array('for_attr', array()),), true) . '">
										<span class="filterBar-filterToggle-label">' . 'Show only' . '</span>
										' . 'Followed members' . '</a></li>
								';
		}
		$__compilerTemp3 .= '
								' . '
							';
		if (strlen(trim($__compilerTemp3)) > 0) {
			$__finalCompiled .= '
						<ul class="filterBar-filters">
							' . $__compilerTemp3 . '
						</ul>
					';
		}
		$__finalCompiled .= '

					<a class="filterBar-menuTrigger" data-xf-click="menu" role="button" tabindex="0" aria-expanded="false" aria-haspopup="true">' . 'Filters' . '</a>
					<div class="menu" data-menu="menu" aria-hidden="true">
						<div class="menu-content">
							<h4 class="menu-header">' . 'Show only' . $__vars['xf']['language']['label_separator'] . '</h4>
							' . $__templater->form('
								<div class="menu-row">
									' . $__templater->formCheckBox(array(
		), array(array(
			'name' => 'followed',
			'selected' => $__vars['findNew']['filters']['followed'],
			'label' => 'Members you follow',
			'_type' => 'option',
		))) . '
								</div>

								' . $__templater->callMacro(null, 'filter_macros::find_new_filter_footer', array(), $__vars) . '
							', array(
			'action' => $__templater->func('link', array('whats-new/profile-posts', ), false),
		)) . '
						</div>
					</div>
				</div>
			</div>
		';
	}
	$__finalCompiled .= '

		';
	if ($__vars['findNew']['result_count']) {
		$__finalCompiled .= '
			';
		if ($__templater->isTraversable($__vars['profilePosts'])) {
			foreach ($__vars['profilePosts'] AS $__vars['profilePost']) {
				$__finalCompiled .= '
				' . $__templater->callMacro(null, 'profile_post_macros::profile_post', array(
					'profilePost' => $__vars['profilePost'],
					'attachmentData' => $__vars['profilePostAttachData'][$__vars['profilePost']['profile_post_id']],
					'showTargetUser' => true,
				), $__vars) . '
			';
			}
		}
		$__finalCompiled .= '
		';
	} else {
		$__finalCompiled .= '
			<div class="block-row">' . 'No results found.' . '</div>
		';
	}
	$__finalCompiled .= '
	</div>

	';
	if ($__vars['findNew']['result_count']) {
		$__finalCompiled .= '
		<div class="block-outer block-outer--after">
			' . $__templater->func('page_nav', array(array(
			'page' => $__vars['page'],
			'total' => $__vars['findNew']['result_count'],
			'link' => 'whats-new/profile-posts',
			'data' => $__vars['findNew'],
			'wrapperclass' => 'block-outer-main',
			'perPage' => $__vars['perPage'],
		))) . '
			' . $__templater->func('show_ignored', array(array(
			'wrapperclass' => 'block-outer-opposite',
		))) . '
		</div>
	';
	}
	$__finalCompiled .= '
</div>';
	return $__finalCompiled;
}
);