<xf:if is="$profilePosts is not empty">
	<xf:macro template="lightbox_macros" name="setup" arg-canViewAttachments="{$canViewAttachments}" />

	<div class="block"{{ widget_data($widget) }}
		data-xf-init="lightbox">
		<div class="block-container">
			<xf:if is="$style == 'full'">
				<h3 class="block-header">
					<a href="{$link}" rel="nofollow">{$title}</a>
				</h3>
			<xf:else />
				<h3 class="block-minorHeader">
					<a href="{$link}" rel="nofollow">{$title}</a>
				</h3>
			</xf:if>
			<div class="block-body js-replyNewMessageContainer">
				<xf:if is="$xf.visitor.canPostOnProfile()">
					<xf:set var="$firstProfilePost" value="{$profilePosts|first}" />
					<xf:macro template="profile_post_macros" name="submit"
						arg-user="{$xf.visitor}"
						arg-lastDate="{{ $firstProfilePost.post_date ?: 0 }}"
						arg-containerSelector="< .js-replyNewMessageContainer"
						arg-style="{$style}"
						arg-context="all"
						arg-attachmentData="{$attachmentData}" />
				</xf:if>
				<xf:foreach loop="$profilePosts" value="$profilePost">
					<xf:if is="$style == 'full'">
						<xf:macro template="profile_post_macros" name="profile_post"
							arg-profilePost="{$profilePost}"
							arg-attachmentData="{$profilePostAttachData.{$profilePost.profile_post_id}}"
							arg-showTargetUser="{{ true }}"
							arg-allowInlineMod="{{ false }}" />
					<xf:else />
						<div class="block-row">
							<xf:macro template="profile_post_macros" name="profile_post_simple"
								arg-profilePost="{$profilePost}"
								arg-limitHeight="{{ true }}" />
						</div>
					</xf:if>
				</xf:foreach>
			</div>
			<xf:if is="$style == 'full'">
				<div class="block-footer">
					<span class="block-footer-controls">
						<xf:button href="{$link}" rel="nofollow">{{ phrase('view_more...') }}</xf:button>
					</span>
				</div>
			</xf:if>
		</div>
	</div>
</xf:if>