<?xml version="1.0" encoding="utf-8"?>
<templates application="forums" templategroups="a:7:{s:11:&quot;skin_boards&quot;;s:5:&quot;exact&quot;;s:10:&quot;skin_forum&quot;;s:5:&quot;exact&quot;;s:12:&quot;skin_legends&quot;;s:5:&quot;exact&quot;;s:8:&quot;skin_mod&quot;;s:5:&quot;exact&quot;;s:9:&quot;skin_poll&quot;;s:5:&quot;exact&quot;;s:9:&quot;skin_post&quot;;s:5:&quot;exact&quot;;s:10:&quot;skin_topic&quot;;s:5:&quot;exact&quot;;}">
  <templategroup group="skin_boards">
    <template>
      <template_group>skin_boards</template_group>
      <template_content><![CDATA[{parse js_module="board"}
{parse variable="sidebar_enabled" default="$show_side_blocks"}
<if test="boardIndexTop:|:true"></if>
<div id='board_index' class='ipsLayout <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'>	
	<div id='categories' class='ipsLayout_content clearfix'>
	<!-- CATS AND FORUMS -->
		<if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">
			<foreach loop="categories:$cat_data as $_data">
				<if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
					<div id='category_{$_data['cat_data']['id']}' class='category_block block_wrap'>
						<h3 class='maintitle'>
							<a class='toggle right' href='#' title="{parse expression="sprintf( $this->lang->words['toggle_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}">{parse expression="sprintf( $this->lang->words['toggle_cat'], $_data['cat_data']['name'] )"}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a>
						</h3>
						<div class='ipsBox table_wrap'>
							<div class='ipsBox_container'>
								<table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_data']['name']}'">
									<tr class='header hide'>
										<th scope='col' class='col_c_icon'>&nbsp;</th>
										<th scope='col' class='col_c_forum'>{$this->lang->words['cat_name']}</th>
										<th scope='col' class='col_c_stats stats'>{$this->lang->words['stats']}</th>
										<if test="canSeeLastInfoHeader:|:$this->memberData['gbw_view_last_info']"><th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th></if>
									</tr>
									<!-- / CAT HEADER -->
									<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
										<if test="forumRedirect:|:$forum_data['redirect_on']">
											<tr class='redirect_forum' id='f_{$forum_data['id']}'>
												<td class='col_c_icon'>
													<img src='{$this->settings['img_url']}/f_redirect.png' />
												</td>
												<td <if test="canSeeLastInfoRedirect:|:$this->memberData['gbw_view_last_info']">colspan='2'</if> class='col_c_forum'>
													<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</a></h4>
													<p class='desc'>{$forum_data['description']}</p>
												</td>
												<td class='desc'>
													<ul class='last_post ipsType_small'>
														<li class='desc lighter'><em>{parse format_number="$forum_data['redirect_hits']"} {$this->lang->words['rd_hits']}</em></li>
													</ul>
												</td>
											</tr>
										<else />
											<tr class='<if test="hasUnreadClass:|:$forum_data['_has_unread']">unread</if>'>
												<td class='col_c_icon'>
													<if test="hasUnread:|:$forum_data['_has_unread']">
														<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=forum&amp;forumid={$forum_data['id']}&amp;returntoforumid={$this->request['f']}&amp;i=1&amp;k={$this->member->form_hash}" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><img src='{$this->settings['img_url']}/f_icon.png' /></a>
													<else />
														<img src='{$this->settings['img_url']}/f_icon_read.png' />
													</if>
												</td>
												<td class='col_c_forum'>
													
													<h4>
														<if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])">
															<a href='{parse url="showforum={$forum_data['id']}&amp;modfilter=unapproved" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['view_unapproved']}' class='ipsBadge ipsBadge_orange' data-tooltip="{parse expression="sprintf( $this->lang->words['f_queued'], $forum_data['queued_topics'], $forum_data['queued_posts'])"}" style='vertical-align: top'>{$this->lang->words['f_queued_badge']}</a>
														</if>
														<a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars( $forum_data['name'] ) )"}'>{$forum_data['name']}</a>
													</h4>
														
													<if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
														<br />
														<ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'>
															<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
																<if test="showSubForumsLit:|:$__data[3]"><li class='unread'><else /><li></if>
																	<a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars($__data[1]) )"}'>{$__data[1]}</a><if test="isNotLast:|: empty($__data[4] )">,</if>
																</li>
															</foreach>
														</ol>
													</if>
																					
													<p class='desc __forum_desc ipsType_small'>{$forum_data['description']}</p>											
												</td>
												<td class='col_c_stats ipsType_small'>
													<ul>
														<li><strong>{$forum_data['topics']}</strong> {$this->lang->words['topics']}</li>
														<li><strong>{$forum_data['posts']}</strong> {$this->lang->words['replies']}</li>
													</ul>
												</td>
												<if test="canSeeLastInfo:|:$this->memberData['gbw_view_last_info']">
												<td class='col_c_post'>
													<if test="hideLastInfo:|:$forum_data['hide_last_info']">
														<ul class='last_post ipsType_small'>
															<li class='desc lighter'><em>{$this->lang->words['f_protected']}</em></li>
														</ul>
													<else />
														<if test="hideTopicInTitle:|:$forum_data['_hide_last_date']">
														{parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => '' )"}
														<else />
														{parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => sprintf( $this->lang->words['bindex_userphoto_alt'], $forum_data['last_title'], $forum_data['members_display_name'] ) )"}
														</if>
														<ul class='last_post ipsType_small'>
															<if test="!$forum_data['last_id']">
																<li class='desc lighter'><em>{$this->lang->words['f_none']}</em></li>
															<else />
																<li>
																	{$forum_data['last_topic_title']}
																</li>
																<if test="lastPosterID:|:$forum_data['last_poster_id']">
																	<li>{$this->lang->words['by']} {parse template="userHoverCard" group="global" params="$forum_data"}</li>
																</if>
																<if test="hideDateUrl:|:$forum_data['_hide_last_date']">
																	<li class='desc lighter blend_links'>{parse date="$forum_data['last_post']" format="DATE"}</li>
																<else />
																	<li class='desc lighter blend_links'><a href='{parse url="showtopic={$forum_data['last_id']}&amp;view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="DATE"}</a></li>
																</if>
															</if>
														</ul>
													</if>
												</td>
												</if>
											</tr>
										</if>
									</foreach>
								</table>
							</div>
						</div>
						<br />
					</div>
				</if>
			</foreach>
		</if>
	</div>
	<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
		<div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
			<foreach loop="side_blocks:$side_blocks as $block">
				{$block}
			</foreach>
		</div>
		<a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="&times;">&nbsp;</a>
	</if>
</div>
<script type='text/javascript'>
//<!#^#|CDATA|
	var markerURL  = ipb.vars['base_url'] + "app=forums&module=ajax&section=markasread&i=1"; // Ajax URL so don't use &amp;
	var unreadIcon = "<img src='{$this->settings['img_url']}/f_icon_read.png' />";
	
	<if test="markercatforums:|:is_array( $cat_data ) AND count( $cat_data )">
		<foreach loop="markercategories:$cat_data as $_data">
			<if test="markerhasforums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
				<foreach loop="markerforums:$_data['forum_data'] as $forum_id => $forum_data">
					<if test="markernotredirect:|:!$forum_data['redirect_on']">
						<if test="markerhasunread:|:$forum_data['_has_unread']">
	ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
						</if>
					</if>
				</foreach>
			</if>
		</foreach>
	</if>
//|#^#]>
</script>
<if test="showTotals:|:$this->settings['show_totals']">
	<div id='board_stats'>		
		<ul class='ipsType_small ipsList_inline'>
			<li class='clear'>
				<span class='value'>{$stats['info']['total_posts']}</span>
				{$this->lang->words['total_posts']}
			</li>
			<li class='clear'>
				<span class='value'>{$stats['info']['mem_count']}</span>
				{$this->lang->words['total_members']}
			</li>
			<li class='clear'>
				{IPSMember::makeProfileLink( $stats['info']['last_mem_name'], $stats['info']['last_mem_id'], $stats['info']['last_mem_seo'], 'value' )}
				{$this->lang->words['newest_member']}
			</li>
			<li class='clear' data-tooltip="{$stats['info']['most_time']}">
				<span class='value'>{$stats['info']['most_online']}</span>
				{$this->lang->words['online_at_once']}
			</li>
		</ul>
	</div>
</if>
<div id='board_statistics' class='statistics clearfix'>
	<ul id='stat_links' class='ipsList_inline right ipsType_small'>
		<if test="statsLinks:|:1==1"> <!-- Hook point -->
			<li><a href="{parse url="app=forums&amp;module=extras&amp;section=stats&amp;do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
			<li><a href="{parse url="app=forums&amp;module=extras&amp;section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
			<li><a href="{parse url="app=members&amp;module=list&amp;max_results=20&amp;sort_key=posts&amp;sort_order=desc&amp;filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
			<if test="reputationEnabled:|:$this->settings['reputation_enabled']">
				<li>
					<a href="{parse url="app=members&amp;module=reputation&amp;section=most" base="public" template="most_liked" seotitle="most_liked"}" title="<if test="reputationTypeTitle:|:$this->settings['reputation_point_types'] == 'like'">{$this->lang->words['most_rep_likes']}<else />{$this->lang->words['most_rep_rep']}</if>">
						<if test="reputationType:|:$this->settings['reputation_point_types'] == 'like'">
							{$this->lang->words['most_rep_likes']}
						<else />
							{$this->lang->words['most_rep_rep']}
						</if>
					</a>
				</li>
			</if>
		</if>
	</ul>
	
	<if test="showActive:|:$this->settings['show_active'] && $this->memberData['gbw_view_online_lists']">
		<h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</h4>
		<p class='statistics_brief desc'>
			{parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}
			<if test="onlineListEnabled:|:$this->settings['allow_online_list']">&nbsp;&nbsp;<a href='{parse url="app=members&amp;module=online&amp;sort_order=desc" base="public"}' title='{$this->lang->words['online_link']}'>({$this->lang->words['online_link']})</a></if>
		</p>
	</if>
	<if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']">
		<br />
		<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>
		</p>
	</if>
</div>]]></template_content>
      <template_name>boardIndexTemplate</template_name>
      <template_data><![CDATA[$lastvisit="", $stats=array(), $cat_data=array(), $show_side_blocks=true, $side_blocks=array()]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_boards</template_group>
      <template_content><![CDATA[<script type='text/javascript' src="{$this->settings['public_dir']}js/ips.status.js"></script>
<div class='ipsSideBlock clearfix' id='statusHook'>
	<h3>{$this->lang->words['recent_status_updates']}</h3>
	<div class='_sbcollapsable'>
		<div id="status_wrapper">
			<div id="status_wrapper_inside">{parse template="statusUpdates" group="boards" params="$updates, 1, 1"}</div>
			<div class="status_main_content ipsType_small" style='text-align: center'>
				<a href='{parse url="app=members&amp;module=profile&amp;section=status&amp;type=all" seotitle="true" template="members_status_all" base="public"}'>{$this->lang->words['viewallupdates']}</a>
			</div>
		</div>
	</div>
</div>]]></template_content>
      <template_name>hookBoardIndexStatusUpdates</template_name>
      <template_data>$updates=array()</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_boards</template_group>
      <template_content><![CDATA[<if test="fbAppIdPresent:|:IPSLib::fbc_enabled()">
<div class='general_box clearfix'>
	<h3>{$this->lang->words['hook_facebookactivity']}</h3>
	<div  class='block_list clearfix _sbcollapsable'>
		<div><fb:activity site="" width="270" height="300" header="false" border_color="#FFF" colorscheme="light" /></div>
	</div>
</div><div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: '{$this->settings['fbc_appid']}', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/{$this->settings['fb_locale']}/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
</script>
</if>]]></template_content>
      <template_name>hookFacebookActivity</template_name>
      <template_data/>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_boards</template_group>
      <template_content><![CDATA[<if test="recenttopics:|:is_array( $topics ) && count( $topics )">
<div class='ipsSideBlock clearfix'>
	<h3>{$this->lang->words['recently_added_topics']}</h3>
	<div class='_sbcollapsable'>
		<ul class='ipsList_withminiphoto'>
		<foreach loop="topics_hook:$topics as $r">
		<li class='clearfix'>
			{parse template="userSmallPhoto" group="global" params="$r"}
			<div class='list_content'>
				<a href="{parse url="showtopic={$r['tid']}" base="public" template="showtopic" seotitle="{$r['title_seo']}"}" rel='bookmark' class='ipsType_small' title='{parse expression="strip_tags($r['topic_title'])"} {$this->lang->words['topic_started_on']} {parse date="$r['start_date']" format="LONG"}'>{$r['topic_title']}</a>
				<p class='desc ipsType_smaller'>
					<if test="$r['members_display_name']">{parse template="userHoverCard" group="global" params="$r"}<else />{$this->settings['guest_name_pre']}{$r['starter_name']}{$this->settings['guest_name_suf']}</if>
					- {parse date="$r['start_date']" format="short"}
				</p>
			</div>
		</li>
		</foreach>
		</ul>
	</div>
</div>
</if>]]></template_content>
      <template_name>hookRecentTopics</template_name>
      <template_data>$topics</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_boards</template_group>
      <template_content><![CDATA[<div class='ipsSideBlock clearfix'>
	<h3>{$this->lang->words['popular_tags']}</h3>
	<div class='_sbcollapsable'>
		<ul class='ipsList_inline'>
		<foreach loop="eachTag:$tags['tags'] as $id => $data">
			<li><span class="{$data['className']}">{$data['tagWithUrl']}</span></li>
		</foreach>
		</ul>
	</div>
</div>]]></template_content>
      <template_name>hookTagCloud</template_name>
      <template_data>$tags</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_boards</template_group>
      <template_content><![CDATA[<foreach loop="innerLoop:$replies as $reply">
	<div id='statusReply-{$reply['reply_id']}' class='ipsPad_half'>
		{parse template="userSmallPhoto" group="global" params="array_merge( $reply, array( '_customClass' => 'ipsUserPhoto_tiny', 'alt' => sprintf($this->lang->words['users_photo'],$reply['members_display_name']) ) )"}
		<div class='list_content'>
			<div class='right lighter'>
				<span class='desc ipsType_smaller'>{parse date="$reply['reply_date']" format="manual{%d %b}" relative="true"}&nbsp;&nbsp;</span>
				<span class='desc mod_links ipsType_smaller'>
					<if test="canDelete:|:$reply['_canDelete']"><a href="{$this->settings['base_url']}app=members&amp;module=profile&amp;section=status&amp;do=deleteReply&amp;status_id={$reply['reply_status_id']}&amp;reply_id={$reply['reply_id']}&amp;k={$this->member->form_hash}" id="statusReplyDelete-{$reply['reply_status_id']}-{$reply['reply_id']}" class="__sDR __dr{$reply['reply_status_id']}-{$reply['reply_id']}">{$this->lang->words['status_delete_link']}</a></if>
				</span>
			</div>
			<strong>{parse template="userHoverCard" group="global" params="$reply"}</strong>
			<p class='index_status_update ipsType_small'>{$reply['reply_content']}</p>
		</div>
	</div>
	<if test="isFirstCycle:|:$__iteratorCount == count($replies)">
		<div id='statusReplyBlank-{$reply['reply_status_id']}' style='display: none'></div>
	</if>
</foreach>]]></template_content>
      <template_name>statusReplies</template_name>
      <template_data>$replies=array()</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_boards</template_group>
      <template_content><![CDATA[<script type="text/javascript">
	ipb.status.maxReplies = {parse expression="intval($this->settings['su_max_replies'])"};
	ipb.status.smallSpace = {parse expression="intval($smallSpace)"};
	ipb.status.skin_group = 'boards';
</script>
<foreach loop="outerLoop:$updates as $id => $status">
	<if test="$this->memberData['member_id'] AND $latestOnly AND $status['member_id'] == $this->memberData['member_id']">
		<script type="text/javascript">
			ipb.status.myLatest = {$status['status_id']};
		</script>
	</if>
	<ul class='ipsList_withminiphoto status_list' id='statusWrap-{$status['status_id']}'>
		<li class='clearfix'>
			{parse template="userSmallPhoto" group="global" params="$status"}
			<div class='list_content'>
				<div id="statusContent-{$status['status_id']}">
					<div class='right desc lighter'>
						<span class='desc mod_links ipsType_smaller'>
							<if test="canDelete:|:$status['_canDelete']"><a rel="nofollow" href="{$this->settings['base_url']}app=members&amp;module=profile&amp;section=status&amp;do=deleteStatus&amp;status_id={$status['status_id']}&amp;k={$this->member->form_hash}" id="statusDelete-{$status['status_id']}" class="__sD __d{$status['status_id']}">{$this->lang->words['status_delete_link']}</a></if>
							<span id='statusUnlock-{$status['status_id']}' <if test="isLocked:|:$status['_isLocked'] AND $status['_canUnlock']">style='display:inline'<else />style='display:none'</if>> &middot; <a rel="nofollow"  href="{$this->settings['base_url']}app=members&amp;module=profile&amp;section=status&amp;do=unlockStatus&amp;status_id={$status['status_id']}&amp;k={$this->member->form_hash}" id="statusUnlockLink-{$status['status_id']}" class="__sU __u{$status['status_id']}">{$this->lang->words['status_unlock_link']}</a></span>
							<span id='statusLock-{$status['status_id']}' <if test="canLock:|:$status['_canLock'] AND ! $status['_isLocked']">style='display:inline'<else />style='display:none'</if>> &middot; <a rel="nofollow"  href="{$this->settings['base_url']}app=members&amp;module=profile&amp;section=status&amp;do=lockStatus&amp;status_id={$status['status_id']}&amp;k={$this->member->form_hash}" id="statusLockLink-{$status['status_id']}" class="__sL __l{$status['status_id']}">{$this->lang->words['status_lock_link']}</a></span>
						</span>
						&nbsp;&nbsp;<span class='ipsType_smaller blend_links'><a href='{parse url="app=members&amp;module=profile&amp;section=status&amp;type=single&amp;status_id={$status['status_id']}" seotitle="array($status['member_id'], $status['members_seo_name'])" template="members_status_single" base="public"}'>{parse date="$status['status_date']" format="manual{%d %b}" relative="true"}</a></span>
					</div>
					{parse template="userHoverCard" group="global" params="$status"}
					<p class='index_status_update ipsType_small'>{$status['status_content']}</p>
					<span class='desc' id='statusToggle-{$status['status_id']}'>
						<img src="{$this->settings['img_url']}/icon_lock.png" id='statusLockImg-{$status['status_id']}' alt="{$this->lang->words['status__locked']}" <if test="noLocked:|:!$status['status_is_locked']">style='display: none'</if> />
						<if test="cImg:|:! $smallSpace AND $status['_creatorImg']"><img src="{$status['_creatorImg']}" alt='' data-tooltip="{$this->lang->words['su_via']} {$status['_creatorText']}" /></if>
						<if test="canReplyMain:|:$status['_userCanReply']">
							<if test="hasRepliesMain:|:$status['status_replies']">
								<a href="#" class="__sT __t{$status['status_id']} ipsType_smaller ">{parse expression="sprintf( $this->lang->words['view_comments_and_add'], $status['status_replies'])"}</a>
							<else />
								<a href="#" class="__sT __t{$status['status_id']} ipsType_smaller">{$this->lang->words['add_comments_only']}</a>
							</if>
						<else />
							<if test="hasRepliesButCannotReply:|:$status['status_replies']">
								<a href="#" class="__sT __t{$status['status_id']} ipsType_smaller">{parse expression="sprintf( $this->lang->words['view_comments_only'], $status['status_replies'])"}</a>
							</if>
						</if>
					</span>
					<span class='desc' id='statusToggleOff-{$status['status_id']}' style='display:none'>
						<a href="#" class="__sTO __to{$status['status_id']}">{$this->lang->words['view_comments_collapse']}</a>
					</span>
				</div>
			</div>
			<div id="statusFeedback-{$status['status_id']}" class='status_feedback' style='display:none'>
				<div class='ipsList_withtinyphoto status_list' id='statusReplies-{$status['status_id']}'>
					<if test="hasReplies:|:$status['status_replies'] AND count( $status['replies'] )">
						<if test="hasMore:|:$status['status_replies'] > 3">
							<div class='status_mini_wrap row2 altrow' id='statusMoreWrap-{$status['status_id']}'>
								<img src="{$this->settings['img_url']}/comments.png" alt="" /> &nbsp;<a href="#" id="statusMore-{$status['status_id']}" class='__showAll __x{$status['status_id']}'>{parse expression="sprintf( $this->lang->words['status_show_all_x'], $status['status_replies'] )"}</a>
							</div>
						</if>
						{parse template="statusReplies" group="boards" params="$status['replies']"}
					<else />
						<div id='statusReplyBlank-{$status['status_id']}' style='display: none'></div>
					</if>
				</div>
				<if test="canReply:|:$status['_userCanReply']">
					<div class='ipsList_withtinyphoto status_list status_reply clearfix ipsPad_half' id='statusReply-{$status['status_id']}'>
						{parse template="userSmallPhoto" group="global" params="array_merge( $this->memberData, array( '_customClass' => 'ipsUserPhoto_tiny', 'alt' => sprintf($this->lang->words['users_photo'],$this->memberData['members_display_name']) ) )"}
						<div class='list_content'>
							<form id='statusReplyForm-{$status['status_id']}' action='{$this->settings['base_url']}app=members&amp;module=profile&amp;section=status&amp;do=reply&amp;status_id={$status['status_id']}&amp;k={$this->member->form_hash}&amp;id={$this->memberData['member_id']}' method='post'>
								<textarea class='status_textarea' rows='3' cols='50' name='comment-{$status['status_id']}' id='statusText-{$status['status_id']}'></textarea>
								<div class="status_submit"><input type='submit' class='__submit input_submit' id='statusSubmit-{$status['status_id']}' value='{$this->lang->words['status__dfcomment']}' /></div>
							</form>
							<a href='#' class='__showform' id='statusReplyFormShow-{$status['status_id']}' style='display: none'>{$this->lang->words['status__addcomment']}</a>
						</div>
					</div>
					<script type='text/javascript'>
						if( $('statusReplyForm-{$status['status_id']}') ){
							$('statusReplyForm-{$status['status_id']}').hide();
						}
						if( $('statusReplyFormShow-{$status['status_id']}') ){
							$('statusReplyFormShow-{$status['status_id']}').show();
						}
					</script>
				</if>
			</div>
		</li>
	</ul>
</foreach>]]></template_content>
      <template_name>statusUpdates</template_name>
      <template_data>$updates=array(), $smallSpace=0, $latestOnly=0</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
  </templategroup>
  <templategroup group="skin_forum">
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<h3>{$this->lang->words['topic_delete']}</h3>
<div class='ipsBox'>
	<div class='ipsBox_container'>
		<div class='ipsPad ipsForm_center'>
			{$this->lang->words['topic_delete_confirm']}<br />
			<br />
			<form action='#{deleteUrl}' method='POST'>
				<input type='submit' class='input_submit' id='delPush' value='{$this->lang->words['topic_delete']}' />
			</form>
		</div>
	</div>
</div>]]></template_content>
      <template_name>ajax__deleteTopic</template_name>
      <template_data/>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<if test="$this->request['module']=='ajax'">
	<h3>{$this->lang->words['attach_page_title']}: $title</h3>
	<if test="$pages">
		<div class='topic_controls' style='padding-top: 4px;'>{$pages}</div>
	</if>
<else />
	<if test="$pages">
		<div class='topic_controls'>{$pages}</div>
	</if>
	<h3 class='maintitle'>{$this->lang->words['attach_page_title']}: $title</h3>
</if>
<table class='ipb_table'>
	<tr class='header'>
		<th>&nbsp;</th>
		<th>{$this->lang->words['attach_title']}</th>
		<th>{$this->lang->words['attach_size']}</th>
		<th>{$this->lang->words['attach_post']}</th>
	</tr>
	{parse striping="attachies" classes="row1,row2"}
	<if test="count($rows)">
		<foreach loop="attachments:$rows as $data">
			<tr class='{parse striping="attachies"}' id="{$data['attach_id']}">
				<td class="altrow short">
					<img src="{$this->settings['mime_img']}/{$data['image']}" alt="{$this->lang->words['attached_file']}" />
				</td>
				<td>
					<a href="{parse url="app=core&amp;module=attach&amp;section=attach&amp;attach_rel_module=post&amp;attach_id={$data['attach_id']}" base="public"}" title="{$data['attach_file']}">{$data['short_name']}</a><br />
					<span class="desc">( {$this->lang->words['attach_hits']}: {$data['attach_hits']} )<br />( {$this->lang->words['attach_post_date']} {$data['attach_date']} )</span>
				</td>
				<td class="altrow short">{$data['real_size']}</td>
				<td class='short'><a href="{parse url="app=forums&amp;module=forums&amp;section=findpost&amp;pid={$data['pid']}" base="public"}" title="{$this->lang->words['view_post']}">{$data['pid']}</a></td>
			</tr>
		</foreach>
	</if>
</table>
<if test="$pages">
	<br />
	<div class='topic_controls'>{$pages}</div>
</if>]]></template_content>
      <template_name>forumAttachments</template_name>
      <template_data>$title, $rows, $pages</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[{parse js_module="forums"}
<script type="text/javascript">
//<!#^#|CDATA|
	//Search Setup
	ipb.vars['search_type']		= 'forum';
	ipb.vars['search_type_id']	= {$this->request['showforum']};
	ipb.templates['topic_rename'] = new Template("<input type='text' id='#{inputid}' value='#{value}' class='input_text' size='50' maxlength='{$this->settings['topic_title_max_len']}' /> <input type='submit' value='{$this->lang->words['rename_topic_update']}' class='input_submit' id='#{submitid}' /> <a href='#' id='#{cancelid}' class='cancel' title='{$this->lang->words['cancel']}'>{$this->lang->words['cancel']}</a>");
	var markerURL  = ipb.vars['base_url'] + "app=forums&module=ajax&section=markasread&i=1"; // Ajax URL so don't use &amp;
	var unreadIcon = "<img src='{$this->settings['img_url']}/f_icon_read.png' />";
	
	ipb.forums.modPerms	  = [];
	<if test="$this->memberData['g_is_supmod']">
		ipb.forums.modPerms['approve'] = 1;
		ipb.forums.modPerms['delete'] = 1;
		ipb.forums.modPerms['hide'] = 1;
		ipb.forums.modPerms['unhide'] = 1;
		ipb.forums.modPerms['pin'] = 1;
		ipb.forums.modPerms['unpin'] = 1;
		ipb.forums.modPerms['open'] = 1;
		ipb.forums.modPerms['close'] = 1;
		ipb.forums.modPerms['move'] = 1;
		ipb.forums.modPerms['merge'] = 1;
	<else />
		<if test="isset( $this->memberData['forumsModeratorData'][ $forum_data['id'] ] )">
			ipb.forums.modPerms['approve'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['topic_q']};
			ipb.forums.modPerms['delete'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['delete_topic']};
			ipb.forums.modPerms['hide'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['bw_mod_soft_delete']};
			ipb.forums.modPerms['unhide'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['bw_mod_un_soft_delete']};
			ipb.forums.modPerms['pin'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['pin_topic']};
			ipb.forums.modPerms['unpin'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['unpin_topic']};
			ipb.forums.modPerms['open'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['open_topic']};
			ipb.forums.modPerms['close'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['close_topic']};
			ipb.forums.modPerms['move'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['move_topic']};
			ipb.forums.modPerms['merge'] = {$this->memberData['forumsModeratorData'][ $forum_data['id'] ]['split_merge']};
		</if>
	</if>
	
	ipb.templates['topic_moderation'] = new Template("<div id='comment_moderate_box' class='ipsFloatingAction' style='display: none'><span class='desc'>{$this->lang->words['f_comment_action_count']} </span><select id='tactInPopup' class='input_select'></select>&nbsp;&nbsp;<input type='button' class='input_submit' id='submitModAction' value='{$this->lang->words['comments_act_go']}' /></div>");
//|#^#]>
</script>
<if test="watchismember:|:$this->memberData['member_id']">
	<if test="hasFollowData:|:$other_data['follow_data']">
		{$other_data['follow_data']}
	</if>
</if>
<h1 class='ipsType_pagetitle'>{$forum_data['name']}</h1>
<div class='ipsType_pagedesc forum_rules'>
	<if test="rules:|:$forum_data['show_rules']">
		<if test="rulesinline:|:$forum_data['show_rules'] == 2">
			<strong>{$forum_data['rules_title']}</strong>
			{$forum_data['rules_text']}
		</if>
		<if test="ruleslink:|:$forum_data['show_rules'] == 1">
			<a href='{parse url="app=forums&amp;module=forums&amp;section=rules&amp;f={$forum_data['id']}" base="public"}' title='{$this->lang->words['view_forum_rules']}'>{$forum_data['rules_title']}</a>
		</if>
	<else />
		{$forum_data['description']}
	</if>
</div>
<br />
<if test="hasannouncements:|:is_array( $announce_data ) AND count( $announce_data )">
	<table class='ipb_table topic_list hover_rows' summary='{$this->lang->words['forum_topic_list']} "{$forum_data['name']}"' id='announcements'>
		<foreach loop="announcements:$announce_data as $aid => $adata">
			<tr class='row2 announcement' id='arow_{$adata['announce_id']}'>
				<td>
					<php>$_seoTitle	= $adata['announce_seo_title'] ? $adata['announce_seo_title'] : "%%{$adata['announce_title']}%%";</php>
					{parse replacement="t_announcement"}
					<h4>
						<a href="{parse url="showannouncement={$adata['announce_id']}&amp;f={$forum_data['id']}" seotitle="{$_seoTitle}" template="showannouncement" base="public"}" title='{$this->lang->words['view_announcement']}'>{$adata['announce_title']}</a>
					</h4>&nbsp;
					<span class='desc'>{$this->lang->words['posted_by']} {parse template="userHoverCard" group="global" params="$adata"}
						<if test="announcedates:|:$adata['announce_start'] AND $adata['announce_start'] != '--'">, {$adata['announce_start']}</if>
					</span>
				</td>
			</tr>
		</foreach>
	</table>
	<br />
</if>
<!-- __-SUBFORUMS-__ -->
<if test="hassubforums:|:is_array( $sub_forum_data ) AND count( $sub_forum_data )">
	<div class='category_block block_wrap'>
		<h3 class='maintitle'>{$this->lang->words['sub_forum_title']}</h3>
		<div class='ipsBox table_wrap'>
			<div class='ipsBox_container'>
				<table class='ipb_table' summary="{$this->lang->words['cat_subforums']} '{$forum_data['name']}'">
					<foreach loop="subforums:$sub_forum_data as $_data">
						<if test="subforumdata:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
							<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
								<if test="forumRedirect:|:$forum_data['redirect_on']">
									<tr class='redirect_forum' id='f_{$forum_data['id']}'>
										<td class='col_c_icon'>
											<img src='{$this->settings['img_url']}/f_redirect.png' />
										</td>
										<td <if test="canSeeLastInfoRedirect:|:$this->memberData['gbw_view_last_info']">colspan='2'</if> class='col_c_forum'>
											<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$forum_data['name']}'>{$forum_data['name']}</a></h4>
											<p class='desc'>{$forum_data['description']}</p>
										</td>
										<td class='desc'>
											<ul class='last_post ipsType_small'>
												<li class='desc lighter'><em>{parse format_number="$forum_data['redirect_hits']"} {$this->lang->words['rd_hits']}</em></li>
											</ul>
										</td>
									</tr>
								<else />
									<tr class='<if test="$forum_data['_has_unread']">unread</if>'>
										<td class='col_c_icon'>
											<if test="$forum_data['_has_unread']">
												<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=forum&amp;forumid={$forum_data['id']}&amp;returntoforumid={$this->request['f']}&amp;i=1" base="public"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><img src='{$this->settings['img_url']}/f_icon.png' /></a>
												<script type='text/javascript'>
													ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
												</script>
											<else />
												<img src='{$this->settings['img_url']}/f_icon_read.png' />
											</if>
										</td>
										<td class='col_c_forum'>
											<h4>
												<if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])">
													<a href='{parse url="showforum={$forum_data['id']}&amp;modfilter=unapproved" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['view_unapproved']}' class='ipsBadge ipsBadge_orange' data-tooltip="{parse expression="sprintf( $this->lang->words['f_queued'], $forum_data['queued_topics'], $forum_data['queued_posts'])"}" style='vertical-align: top'>{$this->lang->words['f_queued_badge']}</a>
												</if>
												<a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$forum_data['name']}'>{$forum_data['name']}</a>
											</h4>
											
											<if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
												<br />
												<ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'>
													<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
														<if test="showSubForumsLit:|:$__data[3]"><li class='unread'><else /><li></if>
															<a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$__data[1]}'>{$__data[1]}</a><if test="isNotLast:|: empty($__data[4] )">,</if>
														</li>
													</foreach>
												</ol>
											</if>
											
											<p class='desc __forum_desc ipsType_small'>{$forum_data['description']}</p>
										</td>
										<td class='col_c_stats ipsType_small'>
											<ul>
												<li><strong>{$forum_data['topics']}</strong> {$this->lang->words['topics']}</li>
												<li><strong>{$forum_data['posts']}</strong> {$this->lang->words['replies']}</li>
											</ul>
										</td>
										<if test="canSeeLastInfoSubs:|:$this->memberData['gbw_view_last_info']">
										<td class='col_c_post'>
											<if test="hideLastInfo:|:$forum_data['hide_last_info']">
												<ul class='last_post ipsType_small'>
													<li class='desc lighter'><em>{$this->lang->words['f_protected']}</em></li>
												</ul>
											<else />
												<if test="hideTopicInTitle:|:$forum_data['_hide_last_date']">
												{parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => '' )"}
												<else />
												{parse template="userSmallPhoto" group="global" params="array('member_id' => $forum_data['last_poster_id'], 'members_seo_name' => $forum_data['seo_last_name'], 'pp_small_photo' => $forum_data['pp_small_photo'], 'alt' => sprintf( $this->lang->words['bindex_userphoto_alt'], $forum_data['last_title'], $forum_data['members_display_name'] ) )"}
												</if>
												<ul class='last_post ipsType_small'>
													<if test="!$forum_data['last_id']">
														<li class='desc lighter'><em>{$this->lang->words['f_none']}</em></li>
													<else />
														<li>{$forum_data['last_topic_title']}</li>
														<if test="lastPosterID:|:$forum_data['last_poster_id']">
															<li>{$this->lang->words['by_ucfirst']} {parse template="userHoverCard" group="global" params="$forum_data"}</li>
														</if>
														<if test="hideDateUrl:|:$forum_data['_hide_last_date']">
															<li class='desc lighter blend_links'>{parse date="$forum_data['last_post']" format="DATE"}</li>
														<else />
															<li class='desc lighter blend_links'><a href='{parse url="showtopic={$forum_data['last_id']}&amp;view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="DATE"}</a></li>
														</if>
													</if>
												</ul>
											</if>
										</td>
										</if>
									</tr>
								</if>
							</foreach>
						</if>
					</foreach>
				</table>
			</div>
		</div>
	</div>
	<br /><br />
</if>
<if test="showtopics:|:$forum_data['sub_can_post']">
	<div class='topic_controls clearfix'>
		{$forum_data['SHOW_PAGES']}
		<ul class='topic_buttons'>
			<if test="usercanpost:|:$forum_data['_user_can_post']">
				<li><a href='{parse url="module=post&amp;section=post&amp;do=new_post&amp;f={$forum_data['id']}" base="publicWithApp"}' title='{$this->lang->words['topic_start']}' accesskey='s'>{$this->lang->words['topic_start']}</a></li>
			<else />
				<li class='disabled'><span><if test="isGuestPostTopicTop:|: ! $this->memberData['member_id']">{$this->lang->words['forum_no_start_topic_guest']}<else />{$this->lang->words['forum_no_start_topic']}</if></span></li>
			</if>
			<if test="moderationDropdownLink:|:$this->memberData['is_mod'] == 1">
				<li class='non_button'>
					<a href='#' id='forum_mod_options' class='ipbmenu'>{$this->lang->words['forum_management']}</a>
				</li>
			</if>
			<if test="markRead:|:$this->memberData['member_id'] || $this->settings['topic_marking_guests']">
				<li class='non_button'>
					<a data-clicklaunch="forumMarkRead" data-fid="{$forum_data['id']}" href='{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=forum&amp;forumid={$forum_data['id']}&amp;returntoforumid={$forum_data['id']}" base="public"}' title='{$this->lang->words['mark_as_read']}'><img src='{$this->settings['img_url']}/icon_check.png' /> &nbsp;{$this->lang->words['mark_as_read']}</a>
				</li>
			</if>
		</ul>
		
		
	</div>
	
	<if test="moderationDropdownMenu:|:$this->memberData['is_mod'] == 1">
		<ul class='ipbmenu_content' id='forum_mod_options_menucontent' style='display: none'>
			<li><a href='{parse url="showforum={$forum_data['id']}&amp;modfilter=unapproved" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['mod_unapproved']}'>{$this->lang->words['mod_unapproved']}</a></li>
			<li><a href='{parse url="showforum={$forum_data['id']}&amp;modfilter=hidden" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['mod_hidden']}'>{$this->lang->words['mod_hidden']}</a></li>
			<if test="$this->memberData['g_is_supmod']">
				<li><a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=prune_start&amp;f={$forum_data['id']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['mod_prumemovetopics']}'>{$this->lang->words['mod_prumemovetopics']}</a></li>
			</if>
		</ul>
	</if>
	<div class='ipsFilterbar maintitle'>
		<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
			<span class='right'>
				<input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' />
				&nbsp;
			</span>
		</if>
		
		<ul class='ipsList_inline ipsType_small'>
			<li <if test="ka_last_post:|:$this->request['sort_key'] == 'last_post' and $this->request['sort_by'] == 'Z-A'">class='active'</if>><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key=last_post&amp;sort_by=Z-A" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['sort_recent']}</a></li>
			<li <if test="ka_start_date:|:$this->request['sort_key'] == 'start_date' and $this->request['sort_by'] == 'Z-A'">class='active'</if>><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key=start_date&amp;sort_by=Z-A" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['sort_start']}</a></li>
			<li <if test="ka_replies:|:$this->request['sort_key'] == 'posts' and $this->request['sort_by'] == 'Z-A'">class='active'</if>><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key=posts&amp;sort_by=Z-A" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['sort_replies']}</a></li>
			<li <if test="ka_viewed:|:$this->request['sort_key'] == 'views' and $this->request['sort_by'] == 'Z-A'">class='active'</if>><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key=views&amp;sort_by=Z-A" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['sort_views']}</a></li>
			<li <if test="$this->request['sort_by'] == 'A-Z' or !in_array( $this->request['sort_key'], array( 'last_post', 'start_date', 'posts', 'views' ) )">class='active'</if>><a href='#forum_filter_menucontent' id='forum_filter'>{$this->lang->words['sort_custom']} <img src="{$this->settings['img_url']}/useropts_arrow.png" /></a></li>
			<if test="answerLink:|:$this->registry->class_forums->answerTopicsEnabled( $forum_data['id'] )">
				<li <if test="ka_viewed:|:isset($this->request['answered'])">class='active'</if>><a href="#filter_answered_menucontent" id='filter_answered'>{$this->lang->words['tmenu_answered_link']} <img src="{$this->settings['img_url']}/useropts_arrow.png" /></a></li>
			</if>
		</ul>
	</div>
	<if test="answerMenu:|:$this->registry->class_forums->answerTopicsEnabled( $forum_data['id'] )">
		<ul id='filter_answered_menucontent' class='ipbmenu_content' style='display: none'>
			<li><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key={$this->request['sort_key']}&amp;sort_by={$this->request['sort_by']}&amp;answered=true" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['tmenu_answered']}</a></li>
			<li><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key={$this->request['sort_key']}&amp;sort_by={$this->request['sort_by']}&amp;answered=false" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['tmenu_unanswered']}</a></li>
			<li><a href='{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;sort_key={$this->request['sort_key']}&amp;sort_by={$this->request['sort_by']}" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}' rel='nofollow'>{$this->lang->words['tmenu_show_all']}</a></li>
		</ul>
		<script type='text/javascript'>
			new ipb.Menu( $('filter_answered'), $('filter_answered_menucontent'), { stopClose: true } );
		</script>
	</if>
	<div id='forum_filter_menucontent' class='ipbmenu_content ipsPad' style='display: none'>
		<form id='filter_form' action="{parse url="showforum={$forum_data['id']}&amp;st={$this->request['st']}&amp;changefilters=1" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}" method="post">
			<strong>{$this->lang->words['filter_type']}</strong><br />
			<select name="topicfilter" id='topic_filter' class='input_select'>{$footer_filter['topic_filter']}</select>
			<br /><br />
		
			<strong>{$this->lang->words['filter_sort']}</strong><br />
			<select name="sort_key" id='sort_by' class='input_select'>{$footer_filter['sort_by']}</select>
			<br /><br />
		
			<strong>{$this->lang->words['filter_direction']}</strong><br />
			<select name="sort_by" id='direction' class='input_select'>{$footer_filter['sort_order']}</select>
			<br /><br />
		
			<strong>{$this->lang->words['filter_time']}</strong><br />
			<select name="prune_day" id='time_frame' class='input_select'>{$footer_filter['sort_prune']}</select>
			<br /><br />
		
			<input type='checkbox' value='1' name='remember' class='input_check' id='remember_filter' /> <label for='remember_filter'>{$this->lang->words['remember_options']}</label>
			<br /><br />
			
			<input type="submit" value="{$this->lang->words['sort_submit']}" class="input_submit" />
		</form>
	</div>
	<script type='text/javascript'>
		new ipb.Menu( $('forum_filter'), $('forum_filter_menucontent'), { stopClose: true } );
	</script>
	<div class='ipsBox'>
		<div class='ipsBox_container'>
			<table class='ipb_table topic_list hover_rows <if test="topicsismod:|:$this->memberData['is_mod'] == 1">is_mod</if>' summary='{$this->lang->words['forum_topic_list']} "{$forum_data['name']}"' id='forum_table'>
				<tr class='header hide'>
					<th scope='col' class='col_f_icon'>&nbsp;</th>
					<th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
					<th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>
					<th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
					<if test="canSeeLastInfoHeader:|:$this->memberData['gbw_view_last_info']"><th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th></if>
					<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
						<th scope='col' class='col_f_mod short'><input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /></th>
					</if>
				</tr>
				<!-- BEGIN TOPICS -->
				<if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">
					<foreach loop="topics:$topic_data as $tid => $data">
						{parse template="topic" group="forum" params="$data, $forum_data, $other_data, $inforum"}
					</foreach>
				<else />
					<tr>
						<if test="notopicsspan:|:$this->memberData['is_mod'] == 1">
							<td colspan='6' class='no_messages'>
						<else />
							<td colspan='5' class='no_messages'>
						</if>
							{$this->lang->words['no_topics']}
						</td>
					</tr>
				</if>
			</table>
			<if test="hastopics:|:$other_data['hasMore']">
				<div id='more_topics' style='display: none'>
					<a href='#' id='forum_load_more'>{$this->lang->words['load_more_topics']}</a>
				</div>
				<script type='text/javascript'>
					ipb.forums.fetchMore = {
						'f': parseInt("{$this->request['showforum']}")	,
						'page': parseInt("{$this->request['page']}"),
						'sort_by': "{$this->request['sort_by']}",
						'sort_key': "{$this->request['sort_key']}",
						'topicfilter': "{$this->request['topicfilter']}",
						'prune_day': "{$this->request['prune_day']}",
						'max_topics': "{$this->settings['display_max_topics']}"
					};
				</script>
			</if>
		</div>
	</div>
		
	<br />
	<div class='topic_controls clear'>
		{$forum_data['SHOW_PAGES']}
		<ul class='topic_buttons'>
			<if test="bottomusercanpost:|:$forum_data['_user_can_post']">
				<li><a href='{parse url="module=post&amp;section=post&amp;do=new_post&amp;f={$forum_data['id']}" base="publicWithApp"}' title='{$this->lang->words['topic_start']}' rel='nofollow' accesskey='s'>{$this->lang->words['topic_start']}</a></li>
			<else />
				<li class='disabled'><span><if test="isGuestPostTopic:|: ! $this->memberData['member_id']">{$this->lang->words['forum_no_start_topic_guest']}<else />{$this->lang->words['forum_no_start_topic']}</if></span></li>
			</if>
		</ul>
	</div>
	<br class='clear' />
	<div id='forum_footer' class='statistics clear clearfix'>
		<if test="hasmoderators:|:is_array( $mod_data ) AND count( $mod_data )">
			<div id='forum_led_by' class='right ipsType_small'>
				<img src='{$this->settings['img_url']}/icon_users.png' /> &nbsp;{$this->lang->words['forum_led_by']}
				<foreach loop="moderators:$mod_data as $p => $r">
					<a href='{$r[0]}' title='{$this->lang->words['view_profile']}'>{$r[1]}</a><if test="moderatorpopup:|:$r[2]"></if><if test="moderatorscomma:|:$p + 1 != count( $mod_data )">,</if>
				</foreach>
			</div>
		</if>
		<if test="showactiveusers:|:is_array( $active_user_data ) AND count( $active_user_data )">
			<div id='forum_active_users' class='active_users stats_list'>
				<h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['active_users_titlef'], $active_user_data['stats']['total'] )"}</h4>
				<p class='statistics_brief'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $active_user_data['stats']['members'], $active_user_data['stats']['guests'], $active_user_data['stats']['anon'] )"}</p>
				<br />
				<ul class='ipsList_inline'>
					<if test="hasactiveusers:|:is_array( $active_user_data['names'] ) AND count( $active_user_data['names'] )">
						{parse expression="implode( ', ', $active_user_data['names'] )"}
					</if>
				</ul>
			</div>
		</if>
	</div>
</if>
<br class='clear' />
	
<div id='delPopUp' style='display:none'>
	<h3 class='bar'>{$this->lang->words['dlt_title']}</h3>
	<div class='general_box'>
		<form action='#{removeUrl}' method='POST'>
			<strong>{$this->lang->words['dlt_remove_from_view']}</strong>
			<p class='desc'>{$this->lang->words['dlt_remove_from_view_desc']}</p>
			<p style='padding:4px 0px 4px 0px'>{$this->lang->words['dlt_reason']} <input type='text' name='deleteReason' id='delPop_reason' value='' style='width:65%' /> <input type='submit' class='input_submit' value='{$this->lang->words['dlt_remove']}' /></p>
		</form>
		<div style='#{permaDelete}padding-top:5px'>
			<strong>{$this->lang->words['dlt_delete_from_topic']}</strong>
			<p class='desc'>{$this->lang->words['dlt_delete_from_topic_desc']}</p>
			<p style='padding:4px 0px 4px 0px'><input type='button' class='input_submit' onclick="window.location='#{permaUrl}';" value='{$this->lang->words['dlt_delete_now']}' /></p>
		</div>
	</div>
</div>
<if test="moderationform:|:$this->memberData['is_mod'] == 1">
	<form id='modform' class='right' method="post" action="{parse url="" base="public"}">
		<input type="hidden" name="app" value="forums" />
		<input type="hidden" name="module" value="moderate" />
		<input type="hidden" name="section" value="moderate" />
		<input type="hidden" name="do" value="topicchoice" />
		<input type="hidden" name="st" value="{$this->request['st']}" />
		<input type="hidden" name="f" value="{$forum_data['id']}" />
		<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
		<input type="hidden" name="modfilter" value="{$this->request['modfilter']}" />
		<input type="hidden" value="{$this->request['selectedtids']}" id='selectedtids' name="selectedtids" />
		<input type="hidden" name="tact" id="tact" value="" />
	</form>
</if>
<select style='display:none' id='multiModOptions'>
<if test="hasMultiModeratorOptions:|:is_array( $multi_mod_data ) AND count( $multi_mod_data )">
	<foreach loop="mm:$multi_mod_data as $mm_data">
		<option value="t_{$mm_data[0]}">{$mm_data[1]}</option>
	</foreach>
</if>
</select>]]></template_content>
      <template_name>forumIndexTemplate</template_name>
      <template_data>$forum_data, $announce_data, $topic_data, $other_data, $multi_mod_data, $sub_forum_data, $footer_filter, $active_user_data, $mod_data, $inforum=1</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<form action="{parse url="showforum={$fid}" base="public"}" method="post" style='width: 60%; margin: 0 auto;'>
	<input type="hidden" name="L" value="1" />
	
	<h1 class='ipsType_pagetitle'>{$this->lang->words['need_password']}</h1>
	<div class='ipsType_pagedesc'>{$this->lang->words['need_password_txt']}</div>
	<br />
	<div>
		<fieldset>
			<br />
			<ul class='ipsForm ipsForm_horizontal'>
				<li class='ipsField'>
					<label for='forum_pass' class='ipsField_title'>{$this->lang->words['enter_forum_pass']}</label>
					<p class='ipsField_content'>
						<input type="password" size="40" name="f_password" id='forum_pass' class='input_text' />
					</p>
				</li>
			</ul>
			<br />
		</fieldset>
		<fieldset class='submit'>
			<input type="submit" value="{$this->lang->words['f_pass_submit']}" class="input_submit" /> {$this->lang->words['or']} <a href='{$this->settings['board_url']}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
		</fieldset>
	</div>
</form>]]></template_content>
      <template_name>forumPasswordLogIn</template_name>
      <template_data><![CDATA[$fid=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[{parse js_module="like"}
<div class='__like right' data-app="{$data['app']}" data-area="{$data['area']}" data-relid="{$relId}" data-isfave="{$data['iLike']}">
	{parse template="likeSummaryContents" group="forum" params="$data, $relId, $opts"}
</div>
<script type="text/javascript">
	var FAVE_TEMPLATE = new Template( "<h3>{parse expression="sprintf( $this->lang->words['unset_fave_title'], $this->lang->words['like_ucfirst_un' . $data['vernacular'] ])"}</h3><div class='ipsPad'><span class='desc'>{parse expression="sprintf( $this->lang->words['unset_fave_words'], $this->lang->words['like_un' . $data['vernacular'] ])"}</span><br /><p class='ipsForm_center'><input type='button' value='{parse expression="sprintf( $this->lang->words['unset_button'], $this->lang->words['like_ucfirst_un' . $data['vernacular'] ])"}' class='input_submit _funset' /></p></div>");
</script>]]></template_content>
      <template_name>likeSummary</template_name>
      <template_data>$data, $relId, $opts</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<span class='ipsButton_extra right <if test="$data['totalCount']">_fmore clickable</if>' title='{parse expression="sprintf( $this->lang->words['like_totalcount_' . $data['vernacular'] ], $data['totalCount'] )"}' data-tooltip="{parse expression="sprintf( $this->lang->words['like_totalcount_' . $data['vernacular'] ], $data['totalCount'] )"}"><img src='{$this->settings['img_url']}/icon_users.png' /> <strong>{$data['totalCount']}</strong></span>
<if test="likeOnlyMembers:|:$this->memberData['member_id']">
	<a href='#' title="<if test="$data['iLike']">{parse expression="sprintf( $this->lang->words['fave_tt_on'], $this->lang->words['like_ucfirst_un' . $data['vernacular'] ])"}<else />{parse expression="sprintf( $this->lang->words['fave_tt_off'], $this->lang->words['like_ucfirst_' . $data['vernacular'] ])"}</if>" class='ftoggle ipsButton_secondary'><if test="$data['iLike']">{parse expression="sprintf( $this->lang->words['unset_fave_button'], $this->lang->words['like_ucfirst_un' . $data['vernacular'] ])"}<else />{parse expression="sprintf( $this->lang->words['set_fave_button'], $this->lang->words['like_ucfirst_' . $data['vernacular'] ])"}</if></a>
</if>]]></template_content>
      <template_name>likeSummaryContents</template_name>
      <template_data>$data, $relId, $opts=array()</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<h2 class='ipsType_pagetitle'>{$rules['title']}</h2>
<div class='row2 ipsPad' style='line-height: 1.6'>
	{$rules['body']}
</div>
<fieldset class='submit'>
	<a href="{parse url="showforum={$rules['fid']}" base="public" seotitle="{$rules['fseo']}" template="showforum"}">{$this->lang->words['back_to_forum']}</a>
</fieldset>]]></template_content>
      <template_name>show_rules</template_name>
      <template_data><![CDATA[$rules=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<if test="queuedtopic:|:($this->memberData['is_mod'] AND ! $data['approved']) OR $data['_isDeleted']">
<tr<if test="inforumschema:|:$inforum"> itemscope itemtype="http://schema.org/Article"</if> class='__topic <if test="queuedisreadif:|:!$data['folder_img']['is_read']">unread</if> expandable moderated' id='trow_{$data['_tid']}' data-tid="{$data['_tid']}">
<else />
<tr<if test="inforumelseschema:|:$inforum"> itemscope itemtype="http://schema.org/Article"</if> class='__topic <if test="queuedisreadelse:|:!$data['folder_img']['is_read']">unread</if> expandable' id='trow_{$data['_tid']}' data-tid="{$data['_tid']}">
</if>
	<td class='col_f_icon altrow short'>
		{parse template="generateTopicIcon" group="global_other" params="$data['folder_img'], isset($data['_unreadUrl']) ? $data['_unreadUrl'] : ''"}
	</td>
	<td class='col_f_content <if test="hasmodlinks:|:$this->memberData['is_mod'] == 1 || $forum_data['permissions']['TopicSoftDelete']"> with_mod_links</if>'>
		<if test="solvedBadge:|:$data['_answeredPid'] !== false">
			<a href="{parse url="app=forums&amp;module=forums&amp;section=findpost&amp;pid={$data['_answeredPid']}" base="public"}"><span class='ipsBadge has_icon ipsBadge_green'><img class='icon' src="{$this->settings['img_url']}/icon_check_white_8px.png"> {$this->lang->words['topic_solved']}</span></a>
		</if>
		<if test="archivedBadge:|:$data['_archiveFlag'] == 'archived' && $this->lang->words['topic_is_archived']">
			<span class='ipsBadge ipsBadge_lightgrey'>{$this->lang->words['topic_is_archived']}</span>
		</if>
		<if test="archivingBadge:|:$data['_archiveFlag'] == 'working'">
			<span class='ipsBadge ipsBadge_grey'>{$this->lang->words['topic_is_beingarchived']}</span>
		</if>
		<if test="topicUnapproved:|:$data['approved'] == 0">
			<span class='ipsBadge ipsBadge_orange'>{$this->lang->words['f_queued_badge']}</span>
		<else />
			<if test="queuedpostsImg:|:($this->memberData['is_mod'] AND $data['_hasqueued'])">
				<a href='{parse url="showtopic={$data['tid']}&amp;modfilter=invisible_posts" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_uapproved_posts']}' data-tooltip="{parse expression="sprintf( $this->lang->words['topic_queued_count'], $data['topic_queuedposts'] )"}"><span class='ipsBadge ipsBadge_orange'>{$this->lang->words['f_queued_badge']}</span></a>
			</if>
		</if>
		<if test="hasPrefix:|:!empty($data['tags']['formatted']['prefix'])">
			{$data['tags']['formatted']['prefix']}
		</if>
		<if test="showForumNav:|: ! $inforum && $data['nav']">
			<foreach loop="nav:$data['nav'] as $nav">
				<a href="{parse url="$nav[1]" template="showforum" base="public" seotitle="$nav[2]"}" class="ipsText_small desc">{$nav[0]}</a> <span class="ipsText_small desc">&rarr;</span>&nbsp;
			</foreach>
		</if>
		{$data['prefix']}
		<h4>
			<a itemprop="url" id="tid-link-{$data['_tid']}" href="{$data['_url']}" title='{parse expression="strip_tags($data['title'])"} {$this->lang->words['topic_started_on']} {parse date="$data['start_date']" format="LONG"}' class='topic_title' <if test="topicDeletedReason:|:$data['_isDeleted']">data-tooltip="{parse expression="sprintf( $this->lang->words['tdb__forumindex'], $other_data['sdData'][ $data['tid'] ]['members_display_name'] )"} {parse date="$other_data['sdData'][ $data['tid'] ]['sdl_obj_date']" format="long"}
					<if test="showReason:|:$forum_data['permissions']['SoftDeleteReason']">
						<if test="$other_data['sdData'][ $data['tid'] ]['sdl_obj_reason']">{$this->lang->words['dlt_reason']} {$other_data['sdData'][ $data['tid'] ]['sdl_obj_reason']}<else />{$this->lang->words['tdb__noreasongi']}</if>
					</if>
				"</if>>
				<span itemprop="name">{parse expression="IPSText::truncate( $data['title'], 130 )"}</span>
			</a>
		</h4>
		<br />
		<span class='desc lighter blend_links'>
			{parse expression="sprintf( $this->lang->words['topic_started_by'], $data['starter'] )"} <span itemprop="dateCreated">{parse date="$data['start_date']" format="DATE"}</span>
			<if test="hasTags:|:isset($data['tags']) AND $data['tags']">
				&nbsp; <img src='{$this->settings['img_url']}/icon_tag.png' /> {$data['tags']['formatted']['truncatedWithLinks']}
			</if>
		</span>
		<if test="multipages:|:isset( $data['pages'] ) AND is_array( $data['pages'] ) AND count( $data['pages'] )">
			<ul class='mini_pagination'>
			<foreach loop="pages:$data['pages'] as $page">
					<if test="haslastpage:|:$page['last']">
						<li><a href="{parse url="showtopic={$data['tid']}&amp;page={$this->registry->getClass('topics')->stToPage($page['st'])}" seotitle="{$data['title_seo']}" template="showtopic" base="public"}" title='{$data['title']} {$this->lang->words['topic_goto_page']} {$page['page']}'>{$page['page']} {$this->lang->words['_rarr']}</a></li>
					<else />
						<li><a href="{parse url="showtopic={$data['tid']}&amp;page={$this->registry->getClass('topics')->stToPage($page['st'])}" seotitle="{$data['title_seo']}" template="showtopic" base="public"}" title='{$data['title']} {$this->lang->words['topic_goto_page']} {$page['page']}'>{$page['page']}</a></li>
					</if>
			</foreach>
			</ul>
		</if>
	</td>
	<if test="canReadPreview:|:$this->registry->permissions->check( 'read', $forum_data ) && $data['state'] != 'link'">
	<td class='col_f_preview __topic_preview'>
		<a href='{$data['_url']}' class='expander closed' title='{$this->lang->words['view_topic_preview']}'>&nbsp;</a>
	</td>
	<else />
	<td></td>
	</if>
	<td class='col_f_views desc blend_links'>
		<ul>
			<li>
				<if test="isLink:|:$data['state'] != 'link'">
					<if test="isHot:|:$data['folder_img']['is_hot']">
						<span class='ipsBadge ipsBadge_orange'>{$this->lang->words['topic_is_hot']}</span>&nbsp;
					</if>
					<if test="isMember:|:$this->memberData['member_id'] && $data['_archiveFlag'] != 'archived'"><a href="{parse url="app=forums&amp;module=extras&amp;section=stats&amp;do=who&amp;t={$data['tid']}" base="public"}" onclick="return ipb.forums.retrieveWhoPosted( {$data['tid']} );"></if>{parse format_number="$data['posts']"} <if test="replylang:|:intval($data['posts']) == 1">{$this->lang->words['reply']}<else />{$this->lang->words['replies']}</if><if test="isMemberCloseA:|:$this->memberData['member_id'] && $data['_archiveFlag'] != 'archived'"></a></if>
					<meta itemprop="interactionCount" content="UserComments:{$data['posts']}"/>
				</if>
			</li>
			<li class='views desc'>{parse format_number="$data['views']"} {$this->lang->words['views']}</li>
		</ul>
	</td>
	<if test="canSeeLastInfo:|:$this->memberData['gbw_view_last_info']">
	<td class='col_f_post'>
		{parse template="userSmallPhoto" group="global" params="array_merge( $data, array( 'alt' => sprintf( $this->lang->words['findex_userphoto_alt'], $data['title'], $data['members_display_name'] ) ) )"}
		<ul class='last_post ipsType_small'>
			<li>{$data['last_poster']}</li>
			<li>
				<a href='{parse url="showtopic={$data['tid']}&amp;view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}: {$data['title']}'>
					<if test="hasPollBump:|:$data['last_real_post']">
						{parse date="$data['last_real_post']" format="DATE"}
					<else />
						{parse date="$data['last_post']" format="DATE"}
					</if>
				</a>
			</li>
		</ul>
	</td>
	</if>
	<if test="mmicon:|:$this->memberData['is_mod'] == 1 and $inforum == 1">
		<if test="archivedCb:|:$data['_isArchived']">
			<td class='col_f_mod short'>&nbsp;</td>
		<else />
			<td class='col_f_mod short'>
				<a href='#' class='ipsModMenu' id='topic_mod_{$data['real_tid']}' title='{$this->lang->words['mod_actions']}'>&nbsp;</a>
				<if test="$data['moddable']">
					<if test="mmtidon:|:$data['tidon'] == 0">
						<input type='checkbox' class='input_check topic_mod' id='tmod_{$data['real_tid']}' data-approved="{$data['approved']}" data-open="<if test="$data['state'] == 'open'">1<else />0</if>" data-pinned="{$data['pinned']}" />
					<else />
						<input type='checkbox' class='input_check topic_mod' id='tmod_{$data['real_tid']}' checked='checked' data-approved="{$data['approved']}" data-open="<if test="$data['state'] == 'open'">1<else />0</if>" data-pinned="{$data['pinned']}" />
					</if>
				</if>
				<if test="topicIsDeleted:|:$data['_isDeleted']">
					<ul id='topic_mod_{$data['real_tid']}_menucontent' class='ipbmenu_content' style='display: none'>
						<if test="tidRestore:|:$forum_data['permissions']['TopicSoftDeleteRestore']">
							<li class='t_restore'><a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;do=sundelete" base="public"}' title='{$this->lang->words['dlt_restore_topic']}'>{$this->lang->words['dlt_restore_topic']}</a></li>
						</if>
						<if test="$this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['delete_topic']">
							<li><a class='t_delete' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=topicchoice&amp;tact=deletedo&amp;f={$forum_data['id']}&amp;st={$this->request['st']}&amp;selectedtids[{$data['real_tid']}]={$data['real_tid']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['topic_delete']}'>{$this->lang->words['topic_delete']}</a></li>
						</if>
					</ul>
				<else />
					<if test="topicmoderator:|:$this->memberData['is_mod'] == 1  || $forum_data['permissions']['TopicSoftDelete']">
						<ul id='topic_mod_{$data['real_tid']}_menucontent' class='ipbmenu_content' style='display: none'>
							<if test="isUnapproved:|:$data['approved'] == 0">
								<li><a class='t_approve' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;st={$this->request['st']}&amp;t={$data['real_tid']}&amp;auth_key={$this->member->form_hash}&amp;do=topic_approve&amp;from=forum" base="public"}' title='{$this->lang->words['topic_approve']}'>{$this->lang->words['topic_approve']}</a></li>
							</if>
							<li><a class='t_rename' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;auth_key={$this->member->form_hash}&amp;do=05" base="public"}' title='{$this->lang->words['topic_rename']}'>{$this->lang->words['topic_rename']}</a></li>
							<if test="islink:|:$data['state'] != 'link'">
								<if test="ispinned:|:$data['pinned'] && ($this->memberData['g_is_supmod'] OR $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['pin_topic'])">
									<li><a class='t_pin' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;do=16&amp;from=forum" base="public"}' title='{$this->lang->words['topic_unpin']}'>{$this->lang->words['topic_unpin']}</a></li>
								<else />
									<if test="issupermod:|:$this->memberData['g_is_supmod'] OR $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['unpin_topic']">
										<li><a class='t_pin' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;do=15&amp;from=forum" base="public"}' title='{$this->lang->words['topic_pin']}'>{$this->lang->words['topic_pin']}</a></li>
									</if>
								</if>
							</if>
							<if test="closedtopic:|:$data['state'] == 'closed' && $other_data['can_open_topics']">
								<li><a class='t_lock' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;do=01" base="public"}' title='{$this->lang->words['topic_open']}'>{$this->lang->words['topic_open']}</a></li>
							</if>
							<if test="opentopic:|:$data['state'] == 'open' && $other_data['can_close_topics']">
								<li><a class='t_lock' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;do=00&amp;_from=forum" base="public"}' title='{$this->lang->words['topic_close']}'>{$this->lang->words['topic_close']}</a></li>
							</if>
							<if test="islink2:|:$data['state'] != 'link' && $other_data['can_move_topics']">
								<li><a class='t_move' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;do=topicchoice&amp;tact=move&amp;selectedtids={$data['tid']}" base="public"}'>{$this->lang->words['topic_move']}</a></li>
							</if>
							<if test="$this->memberData['g_is_supmod'] == 1 || $forum_data['permissions']['TopicSoftDelete']">
								<li><a class='t_hide' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;st={$this->request['st']}&amp;t={$data['real_tid']}&amp;auth_key={$this->member->form_hash}&amp;do=03" base="public"}' title='{$this->lang->words['topic_hide']}'>{$this->lang->words['topic_hide']}</a></li>
							</if>
							<if test="$this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['delete_topic']">
								<li><a class='t_delete' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=topicchoice&amp;tact=deletedo&amp;f={$forum_data['id']}&amp;st={$this->request['st']}&amp;selectedtids[{$data['real_tid']}]={$data['real_tid']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['topic_delete']}'>{$this->lang->words['topic_delete']}</a></li>
							</if>
						</ul>
					</if>
				</if>
				<script type='text/javascript'>
					new ipb.Menu( $('topic_mod_{$data['real_tid']}'), $('topic_mod_{$data['real_tid']}_menucontent') );
				</script>
			</td>
		</if>
	</if>
</tr>
<if test="adCodeCheck:|:isset($data['_adCode']) AND $data['_adCode']">
<tr>
	<th scope='col' colspan='<if test="adCodeColSpan:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
		{$data['_adCode']}
	</th>
</tr>
</if>]]></template_content>
      <template_name>topic</template_name>
      <template_data>$data, $forum_data, $other_data, $inforum</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<span class='mini_rate'>
<foreach loop="ratings:array(1,2,3,4,5) as $int">
	<if test="ratinggood:|:$rating_id >= $int">
		{parse replacement="mini_rate_on"}
	<else />
		{parse replacement="mini_rate_off"}
	</if>
</foreach>
</span>]]></template_content>
      <template_name>topic_rating_image</template_name>
      <template_data>$rating_id=1</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<if test="prefix:|:$text">
	<span class='ipsBadge ipsBadge_green'>{$text}</span>&nbsp;
</if>]]></template_content>
      <template_name>topicPrefixWrap</template_name>
      <template_data>$text</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
  </templategroup>
  <templategroup group="skin_legends">
    <template>
      <template_group>skin_legends</template_group>
      <template_content><![CDATA[<h2>{$this->lang->words['bbc_title']}</h2>
<span class='desc'>{$this->lang->words['bbc_intro']}</span>
<br /><br />
<table class='ipb_table'>
	<tr class='header'>
		<th style='width: 50%'>{$this->lang->words['bbc_before']}</th>
		<th style='width: 50%'>{$this->lang->words['bbc_after']}</th>
	</tr>
	<foreach loop="bbcode:$rows as $row">
		<tr class='subhead bar altbar'>
			<th colspan='2'>{$row['title']}</th>
		</tr>
		<tr class='row1'>
			<td class='altrow'>
				{$row['before']}
			</td>
			<td>
				{$row['after']}
			</td>
		</tr>
	</foreach>
</table>
{parse template="include_highlighter" group="global" params="1"}
<script type='text/javascript'>
	try {
		ipb.delegate.register('.bbc_spoiler_show', ipb.global.toggleSpoiler);
	} catch(err) { }
</script>]]></template_content>
      <template_name>bbcodePopUpList</template_name>
      <template_data>$rows</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_legends</template_group>
      <template_content><![CDATA[<if test="!$legacy_editor">
	<script type="text/javascript">
	addEmoImage = function(elem){
		var isRte = opener.ipb.textEditor.getEditor().isRte();
		var toAdd = '';
	
		if ( isRte ){
			toAdd = elem.up('tr').down('img').readAttribute('src');
			toAdd = '<img src="' + toAdd + '" />&nbsp;';
		} else {
			toAdd = elem.up('tr').down('a').innerHTML + ' ';
		}
	
		opener.ipb.textEditor.getEditor().insert( toAdd );
	}
	</script>
<else />
	<script type='text/javascript'>
		function addEmoImage(elem){
			var code = elem.up('tr').down('a').innerHTML;
			var title = elem.up('tr').down('img').readAttribute('title');
			ipb.editors[ '{$editor_id}' ].insert_emoticon('', title, code,'');
		}
	</script>
</if>
{parse striping="emoticons" classes="row1,row2"}
<div class='full_emoticon'>
	<table class='ipb_table'>
		<foreach loop="emoticons:$rows as $row">
		<tr class='{parse striping="emoticons"}'>
			<td style='text-align: center; width: 40%;'>
				<a href="#" onclick="addEmoImage(this); return false;" title="{$row['image']}">{$row['code']}</a>
			</td>
			<td style='text-align: center; width: 60%;'>
				<img class='clickable' src="{$this->settings['emoticons_url']}/{$row['image']}" onclick="addEmoImage(this); return false;" id='smid_{$row['smilie_id']}' alt="{$row['image']}" />
			</td>
		</tr>
		</foreach>
	</table>
</div>]]></template_content>
      <template_name>emoticonPopUpList</template_name>
      <template_data>$editor_id, $rows, $legacy_editor=false</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_legends</template_group>
      <template_content><![CDATA[<div><b>{$tag}</b></div>]]></template_content>
      <template_name>wrap_tag</template_name>
      <template_data><![CDATA[$tag=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
  </templategroup>
  <templategroup group="skin_mod">
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='08' />
<input type='hidden' name='t' value='{$topic['tid']}' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<input type='hidden' name='return' value='{$this->request['return']}' />
<h2 class='maintitle'>{$this->lang->words['top_delete']}: {$forum['name']} -&gt; {$topic['title']}</h2>
<div class='generic_bar'></div>
<div class='post_form'>
	<p class='row1 field'>{$this->lang->words['delete_topic']}</p>
	<fieldset class='submit'>
		<input type="submit" class='input_submit' value="{$this->lang->words['submit_delete']}" /> {$this->lang->words['or']} <a href='{parse url="showtopic={$topic['tid']}&amp;st={$this->request['st']}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
	</fieldset>
</div>
</form>]]></template_content>
      <template_name>deleteTopicForm</template_name>
      <template_data>$forum, $topic</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='12' />
<input type='hidden' name='t' value='{$topic['tid']}' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<h2 class='maintitle'>{$this->lang->words['top_edit']}: {$forum['name']} &gt; {$topic['title']}</h2>
<div class='generic_bar'></div>
<div class='post_form'>
	<fieldset>
		<h3 class='bar'>{$this->lang->words['editing_topic_title']}</h3>
		<ul>
			<li class='field'>
				<label for='topic_title'>{$this->lang->words['edit_f_title']}</label>
				<input class='input_text' type="text" size="40" id='topic_title' maxlength="{$this->settings['topic_title_max_len']}" name="TopicTitle" value="{$topic['title']}" />
			</li>
		</ul>
	</fieldset>
	<fieldset class='submit'>
		<input type="submit" class='input_submit' value="{$this->lang->words['submit_edit']}" /> {$this->lang->words['or']} <a href='{parse url="showtopic={$topic['tid']}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
	</fieldset>
</div>
</form>
<br />]]></template_content>
      <template_name>editTopicTitle</template_name>
      <template_data>$forum, $topic</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<h1 class='ipsType_pagetitle'>{$this->lang->words['poll_merge_title']}</h1>
<br />
<div class='message'>
	{$this->lang->words['poll_merge_blurb']}
</div>
<br />
<foreach loop="$polls as $poll">
	<div class='general_box alt poll'>
		<h3>{$poll['poll_question']}</h3>
		<foreach loop="unserialize( stripslashes( $poll['choices'] ) ) as $questionID => $questionData">
			<div class='poll_question'>
				<h4 class='rounded'>{$questionData['question']}</h4>
				<ol>
					<foreach loop="$questionData['choice'] as $choiceID => $name">
						<li>
							<span class='answer'>{$name}</span>
							<span class='votes'>({$questionData['votes'][$choiceID]} {$this->lang->words['poll_votes']})</span>
						</li>	
					</foreach>
				</ol>
			</div>
		</foreach>
		<fieldset class='submit'>
			<a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=topicchoice&amp;tact=merge&amp;selectedtids={$tids}&amp;f={$this->request['f']}&amp;chosenpolltid={$poll['tid']}&amp;auth_key={$this->member->form_hash}" base="public"}' class='ipsButton'>{$this->lang->words['poll_merge_submit']}</a>
		</fieldset>
	</div>
	<br /><br />
</foreach>]]></template_content>
      <template_name>mergeMultiplePolls</template_name>
      <template_data>$polls, $tids</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[{parse js_module="moderate"}
<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='postchoice' />
<foreach loop="selectedpids:$this->request['selectedpids'] as $pid">
	<input type="hidden" name="selectedpids[{$pid}]" value="{$pid}" />
</foreach>
<if test="hasSelectedPidsJs:|:$this->request['selectedpidsJS']">
	<foreach loop="selectedpidsjs:explode( ',', $this->request['selectedpidsJS'] ) as $pid">
		<input type="hidden" name="selectedpids[{$pid}]" value="{$pid}" />
	</foreach>
</if>
<input type="hidden" name="t" value="{$this->request['t']}" />
<input type="hidden" name="f" value="{$this->request['f']}" />
<input type='hidden' name='tact' value='merge' />
<input type='hidden' name='checked' value='1' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<p class='message'>{$this->lang->words['merge_select']}</p>
<br />
<h2 class='maintitle'>{$this->lang->words['cm_title']}</h2>
<div class='generic_bar'></div>
<div class='post_form'>
	<fieldset>
		<h3 class='bar'>{$this->lang->words['post_options']}</h3>
		<ul>
			<li class='field'>
				<label for='post_date'>{$this->lang->words['cm_post']}</label>
				<select name="postdate" class="input_select" id='post_date'>
					<if test="mergepostsdates:|:is_array($dates) AND count($dates)">
						<foreach loop="dates:$dates as $date">
							<option value='{$date[0]}'>{$date[1]}</option>
						</foreach>
					</if>
				</select>
			</li>
			<li class='field'>
				<label for='post_author'>{$this->lang->words['cm_author']}</label>
				<select name="postauthor" class="input_select" id='post_author'>
					<if test="mergepostsauthors:|:is_array($authors) AND count($authors)">
						<foreach loop="authors:$authors as $author">
							<option value='{$author[0]}'>{$author[1]}</option>
						</foreach>
					</if>
				</select>
			</li>
		</ul>
		<h3 class='bar'>{$this->lang->words['post_content']}</h3>
		{$editor}
	</fieldset>
	<if test="mergepostsattachments:|:count($uploads)">
		<fieldset>
			<h3 class='bar'>{$this->lang->words['cm_attach']}</h3>
			<h4>{$this->lang->words['cm_attach2']}<h4>
			<table>
				<foreach loop="uploads:$uploads as $attach">
					<tr>
						<td width="1%">
							<select name="attach_{$attach['attach_id']}" class="input_select">
								<option value="keep">{$this->lang->words['cm_keep']}</option>
								<option value="delete">{$this->lang->words['cm_delete']}</option>
							</select>
						</td>
						<td width="1%"><img src="{$this->settings['public_dir']}{$attach['image']}" alt="{$this->lang->words['cm_attach_alt']}" /></td>
						<td width="15%" nowrap="nowrap">{$attach['size']}</td>
						<td width="95%"><a href="{parse url="app=core&amp;module=attach&amp;section=attach&amp;attach_id={$attach['attach_id']}" base="public"}" title="{$this->lang->words['cm_attach_title']}">{$attach['attach_file']}</a> #{$attach['attach_rel_id']}</td>
					</tr>
				</foreach>
			</table>
		</fieldset>
	</if>
	<fieldset class='submit'>
		<php>
			$selectedPids	= implode( ',', $this->request['selectedpids'] );
		</php>
		<input type="submit" class='input_submit' value="{$this->lang->words['cm_submit']}" /> {$this->lang->words['or']} <a href='{parse url="showtopic={$this->request['t']}&amp;selectedpids={$selectedPids}" base="public" seotitle="{$seoTitle}" template="showtopic"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
	</fieldset>
</div>
</form>]]></template_content>
      <template_name>mergePostForm</template_name>
      <template_data>$editor, $dates, $authors, $uploads, $seoTitle</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='61' />
<input type='hidden' name='t' value='{$topic['tid']}' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<h2 class='maintitle'>{$this->lang->words['mt_top']}: {$forum['name']} &gt; {$topic['title']}</h2>
<div class='generic_bar'></div>
<div class='post_form'>
	<fieldset>
		<h3 class='bar'>{$this->lang->words['merge_topic_options']}</h3>
		<ul>
			<li class='field'>
				<label for='new_title'>{$this->lang->words['mt_new_title']}</label>
				<input type="text" id='new_title' class='input_text' size="40" maxlength="250" name="title" value="{$topic['title']}" />
			</li>
			<li class='field'>
				<label for='topic_url'>{$this->lang->words['mt_tid']}</label>
				<input type="text" id='topic_url' class='input_text' size="40" name="topic_url" value="" />
				<span class='desc'>{$this->lang->words['mt_tid_desc']}</span>
			</li>
		</ul>
	</fieldset>
	<fieldset class='submit'>
		<input type="submit" class='input_submit' value="{$this->lang->words['mt_submit']}" /> {$this->lang->words['or']} <a href='{parse url="showtopic={$topic['tid']}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
	</fieldset>
</div>
</form>]]></template_content>
      <template_name>mergeTopicsForm</template_name>
      <template_data>$forum, $topic</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<if test="movepostserror:|:$error">
	<p class="message error">{$error}</p>
</if>
{parse js_module="moderate"}
<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='postchoice' />
<input type='hidden' name='t' value='{$topic['tid']}' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='tact' value='move' />
<input type='hidden' name='checked' value='1' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<h2 class='maintitle'>{$this->lang->words['cmp_title']}: {$forum['name']} -&gt; {$topic['title']}</h2>
<div class='ipsBox clearfix'>
	<div class='ipsBox_container'>
		<ul>
			<li class='field'>
				<label for='topic_url'>{$this->lang->words['cmp_topic']}</label>
				<input type="text" size="50" name="topic_url" value="" id='topic_url' class='input_text' />
				<span class='desc'>{$this->lang->words['cmp_topic2']}</span>
			</li>
		</ul>
	</div>
</div>
<br />
<h2 class='maintitle'>{$this->lang->words['move_topic_summary']}</h2>
<div class='ipsBox clearfix'>
	<div class='ipsBox_container'>
		<if test="movepostsloop:|:is_array( $posts ) AND count( $posts )">
			<foreach loop="posts:$posts as $row">
				<div class='post_block no_sidebar topic_summary'>
					<div class='post_wrap'>
						<h3 class='row2<if test="isGuest:|:empty($row['member_id'])"> guest</if>'><input type='checkbox' id='checkbox_{$row['pid']}' name='selectedpids[{$row['pid']}]' value='{$row['pid']}' class='post_mod' checked='checked' /> {$row['author_name']}</h3>
						<div class='post_body'>
							<p class='posted_info'><label for='checkbox_{$row['pid']}' class='post_mod hide'>{$this->lang->words['st_split']}</label> {$this->lang->words['move_posted']} {$row['date']}</p>
							<div class='post'>{$row['post']}</div>
						</div>
					</div>
				</div>
			</foreach>
		</if>
	</div>
</div>
<fieldset class='submit'>
	<php>
		$selectedPids	= implode( ',', $this->request['selectedpids'] );
	</php>
	<input type="submit" name="submit" class='input_submit' value="{$this->lang->words['cmp_submit']}" /> {$this->lang->words['or']} <a href='{parse url="showtopic={$topic['tid']}&amp;selectedpids={$selectedPids}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
</fieldset>
</form>]]></template_content>
      <template_name>movePostForm</template_name>
      <template_data><![CDATA[$forum, $topic, $posts, $error='']]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='14' />
<input type='hidden' name='t' value='{$topic['tid']}' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='st' value='{$this->request['st']}' />

<p class='message'>{$this->lang->words['move_exp']}</p>
<br />
<h2 class='maintitle'>{$this->lang->words['top_move']}: {$forum['name']} &gt; {$topic['title']}</h2>
<div class='generic_bar'></div>
<div class='post_form'>
	<fieldset>
		<h3 class='bar'>{$this->lang->words['move_topic_options']}</h3>
		<ul>
			<li class='field'>
				<label for='move_from'>{$this->lang->words['move_from']} <strong>{$forum['name']}</strong> {$this->lang->words['to']}</label>
				<select name="move_id" id='move_from' class='input_select'>{$forum_jump}</select>
			</li>
			<li class='field clear checkbox'>
				<input type='checkbox' id='leave_link' class='input_check' name='leave' value='y' />
				<label for='leave_link'>{$this->lang->words['leave_link']}</label>
			</li>
		</ul>
	</fieldset>
	<fieldset class='submit'>
		<input type="submit" class='input_submit' value="{$this->lang->words['submit_move']}" /> {$this->lang->words['or']} <a href='{parse url="showtopic={$topic['tid']}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
	</fieldset>
</div>
</form>]]></template_content>
      <template_name>moveTopicForm</template_name>
      <template_data>$forum, $topic, $forum_jump</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='topicchoice' />
<input type='hidden' name='tact' value='domove' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<input type='hidden' name='fromSearch' value='{$this->request['fromSearch']}' />
<input type='hidden' name='returnUrl' value='{$this->request['returnUrl']}' />
<p class='message'>{$this->lang->words['move_exp']}</p>
<br />
<h2 class='maintitle'>{$this->lang->words['cp_tmove_start']}</h2>
<div class='generic_bar'></div>
<div class='post_form' id='mod_form'>
	<fieldset class='row1'>
		<h3 class='bar'>{$this->lang->words['topics_to_move']}</h3>
		<ul>
			<if test="movetopicsloop:|:count($topics) AND is_array($topics)">
				<foreach loop="topics:$topics as $row">
					<li class='field checkbox'>
						<input class='input_check' type="checkbox" name="selectedtids[{$row['tid']}]" id='t_{$row['tid']}' value="{$row['tid']}" checked="checked" />
						<label for='t_{$row['tid']}'>{$row['title']}</label>
					</li>
				</foreach>
			</if>
		</ul>
	</fieldset>
	<fieldset class='row1'>
		<h3 class='bar'>{$this->lang->words['move_topic_options']}</h3>
		<ul>
			<li class='field'>
				<label for='move_from'>{$this->lang->words['move_from']} <strong>{$forum['name']}</strong> {$this->lang->words['to']}</label>
				<select name="df" id='move_from' class='input_select'>{$jump_html}</select>
			</li>
			<li class='field clear checkbox'>
				<input type='checkbox' id='leave_link' class='input_check' name='leave' value='y' />
				<label for='leave_link'>{$this->lang->words['leave_link']}</label>
			</li>
		</ul>
	</fieldset>
	<fieldset class='submit'>
		<input type="submit" class='input_submit' value="{$this->lang->words['submit_move']}" /> {$this->lang->words['or']} <a href='{parse url="showforum={$forum['id']}" base="public" seotitle="{$forum['name_seo']}" template="showforum"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
	</fieldset>
</div>
</form>]]></template_content>
      <template_name>moveTopicsForm</template_name>
      <template_data>$forum, $jump_html, $topics</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<if test="prunecompletehtml:|:$complete_html != ''">
	<div class='message'>{$complete_html}</div><br />
</if>
	
<h2 class='maintitle'>{$this->lang->words['cp_prune']} {$forum['name']}</h2>
<div class='generic_bar'></div>
<div class='post_form'>
	<if test="confirmprune:|:$confirm_data['show'] == 1">
		<fieldset>
			<h3 class='bar'>{$this->lang->words['mpt_confirm']}: {$this->lang->words['cp_check_result']}</h3>
			
			<ul>
				<li class='field'>
					<label>{$this->lang->words['cp_total_topics']}</label>
					{$confirm_data['tcount']}
				</li>
				<li class='field'>
					<label>{$this->lang->words['cp_total_match']}</label>
					{$confirm_data['count']}
				</li>
			</ul>
		</fieldset>
	
		<form action='{parse url="{$confirm_data['link']}" base="public"}' method="post">
		<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
		<fieldset class='submit'>
			<input type="submit" class='input_submit' value="{$confirm_data['link_text']}" />
		</fieldset>
		</form>
		
	</if>
	<form id='postingform' action="{parse url="" base="public"}" method="post">
	<input type="hidden" name="app" value="forums" />
	<input type="hidden" name="module" value="moderate" />
	<input type="hidden" name="section" value="moderate" />
	<input type="hidden" name="do" value="prune_start" />
	<input type="hidden" name="f" value="{$forum['id']}" />
	<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
	<input type="hidden" name="check" value="1" />
	<fieldset>
		<h3 class='bar'>{$this->lang->words['mpt_help']}</h3>
		<p class='ipsPad'>{$this->lang->words['cp_prune_text']}</p><br />
		<ul>
			<li class='field'>
				<label for='df'>{$this->lang->words['cp_prune_action2']}</label>
				<select class='input_select' name="df" id="df">
					<option value='prune'>{$this->lang->words['cp_ac_prune']}</option>
					{$forums_html}
				</select>
			</li>
			<li class='field'>
				<label for='pergo'>{$this->lang->words['cp_per_go']}</label>
				<input class='input_text' type="text" size="5" name="pergo" id="pergo" value="{$this->request['pergo']}" />
			</li>
			<li class='field'>
				<label for='entered_name'>{$this->lang->words['cp_prune_member']}</label>
				<input class='input_text' type="text" size="30" name="member" id='entered_name' value="{$this->request['member']}" />
			</li>
			<li class='field'>
				<label for='dateline'>{$this->lang->words['cp_prune_days2']}</label>
				<input class='input_text' type="text" size="5" name="dateline" id="dateline" value="{$this->request['dateline']}" />
			</li>
			<li class='field'>
				<label for='posts'>{$this->lang->words['cp_prune_replies']}</label>
				<input class='input_text' type="text" size="5" name="posts" id="posts" value="{$this->request['posts']}" />
			</li>
			<li class='field'>
				<label for='topic_type'>{$this->lang->words['cp_prune_type']}</label>
				<select class='input_select' name='topic_type' id="topic_type">
					<foreach loop="types:array( 'open', 'closed', 'link', 'all' ) as $type">
						<option value='{$type}'<if test="defaultselectedoption:|:$this->request['topic_type'] == $type"> selected='selected'</if>>{$this->lang->words[ 'cp_pday_' . $type ]}</option>
					</foreach>
				</select>
			</li>
			<li class='field'>
				<label for='cbox'>{$this->lang->words['mps_ignorepin']}</label>
				<input class='input_check' type="checkbox" id="cbox" name="ignore_pin" value="1" checked="checked" />
			</li>
			<li class='field'>
				<span class='desc'>{$this->lang->words['cp_optional']}</span>
			</li>
		</ul>
	</fieldset>
	<fieldset class='submit'>
		<input type="submit" class='input_submit' value="{$this->lang->words['cp_prune_sub1']}" /> {$this->lang->words['or']} <a href='{parse url="showforum={$forum['id']}" base="public" seotitle="{$forum['name_seo']}" template="showforum"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
	</fieldset>
	</form>
</div>]]></template_content>
      <template_name>pruneSplash</template_name>
      <template_data><![CDATA[$forum="", $forums_html="", $confirm_data="", $complete_html=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<strong>{$title}</strong><br /> {$msg}]]></template_content>
      <template_name>simplePage</template_name>
      <template_data><![CDATA[$title="", $msg=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[{parse js_module="moderate"}
<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' id='mmForm' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='topicchoice' />
<input type='hidden' name='fromSearch' value='{$this->request['fromSearch']}' />
<input type='hidden' name='returnUrl' value='{$this->request['returnUrl']}' />
<input type='hidden' name='return' value='{$this->request['return']}' />
<foreach loop="$tids as $t">
	<input type='hidden' name="selectedtids[$t]" value="$t" />
</foreach>
<input type='hidden' name='tact' id='mmTact' value='sdelete' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<h2 class='maintitle'>{parse expression="sprintf($this->lang->words['mm_delete_top'], count( $tids ) )"}</h2>
<div class='ipsBox clearfix'>
	<div class='ipsBox_container'>
		<div class='ipsPad'>
			{$this->lang->words['dltt_remove_from_view_desc']}<br /><br />
			<input type='text' class='input_text' name='deleteReason' id='delPop_reason' value='' style='width: 60%'  /> <input type='submit' class='input_submit' value='{$this->lang->words['topic_hide']}' />
		</div>
	</div>
</div>
</form>
<script type='text/javascript'>
$('delPop_reason').defaultize( "{$this->lang->words['topic_hide_reason_default']}" );
</script>]]></template_content>
      <template_name>softDeleteSplash</template_name>
      <template_data>$forum, $tids=array(), $canHardDelete=false</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[{parse js_module="moderate"}
<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' id='mmForm' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='postchoice' />
<input type='hidden' name='fromSearch' value='{$this->request['fromSearch']}' />
<input type='hidden' name='returnUrl' value='{$this->request['returnUrl']}' />
<input type='hidden' name='return' value='{$this->request['return']}' />
<foreach loop="$pids as $p">
	<input type='hidden' name="selectedpids[$p]" value="$p" />
</foreach>
<input type='hidden' name='tact' id='mmTact' value='sdelete' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='t' value='{$topic['tid']}' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<input type='hidden' name='page' value='{$this->request['page']}' />
<h2 class='maintitle'>{parse expression="sprintf($this->lang->words['mm_delete_top_posts'], count( $pids ) )"}</h2>
<div class='ipsBox clearfix'>
	<div class='ipsBox_container'>
		<div class='ipsPad ipsForm_center'>
			{$this->lang->words['dlp_remove_from_view_desc']}<br />
			<span class='desc lighter ipsType_smaller'>{$this->lang->words['dlp_remove_from_view_extra']}</span><br /><br />
			<input type='text' class='input_text' name='deleteReason' id='delPop_reason' value='' style='width: 60%'  /> <input type='submit' class='input_submit' value='{$this->lang->words['post_hide']}' />
		</div>
	</div>
</div>
</form>
<script type='text/javascript'>
$('delPop_reason').defaultize( "{$this->lang->words['post_hide_reason_default']}" );
</script>]]></template_content>
      <template_name>softDeleteSplashPosts</template_name>
      <template_data>$forum, $topic, $pids=array(), $canHardDelete=false</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[{parse js_module="moderate"}
<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='postchoice' />
<input type='hidden' name='t' value='{$topic['tid']}' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='tact' value='split' />
<input type='hidden' name='checked' value='1' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<p class='message'>{$this->lang->words['st_explain']}</p>
<br />
<h2 class='maintitle'>{$this->lang->words['st_top']}: {$forum['name']} &gt; {$topic['title']}</h2>
<div class='ipsBox clearfix'>
	<div class='ipsBox_container'>
		<ul>
			<li class='field'>
				<label for='new_title'>{$this->lang->words['mt_new_title']}</label>
				<input type="text" size="40" class='input_text' id='new_title' maxlength="100" name="title" value="" />
			</li>
			<li class='field'>
				<label for='new_forum'>{$this->lang->words['st_forum']}</label>
				<select name="fid" id='new_forum' class='input_select'>{$jump}</select>
			</li>
		</ul>
	</div>
</div>
<br />
<h2 class='maintitle'>{$this->lang->words['st_post']}</h2>
<div class='ipsBox clearfix'>
	<div class='ipsBox_container'>
	<if test="splitpostsloop:|:is_array( $posts ) AND count( $posts )">
		<foreach loop="split_posts:$posts as $row">
			<div class='post_block no_sidebar topic_summary'>
				<h3><input type='checkbox' id='checkbox_{$row['pid']}' name='selectedpids[{$row['pid']}]' value='{$row['pid']}' class='post_mod' checked='checked' /><label for='checkbox_{$row['pid']}' class='post_mod hide'>{$this->lang->words['st_split']}</label> {$row['author_name']}</h3>
				<div class='post_body'>
					<p class='posted_info'>{$this->lang->words['move_posted']} {$row['date']}</p>
					<div class='post'>{$row['post']}</div>
				</div>
			</div>
		</foreach>
	</if>
	</div>
</div>
<fieldset class='submit'>
	<php>
		$selectedPids	= implode( ',', $this->request['selectedpids'] );
	</php>
	<input type="submit" name="submit" class='input_submit' value="{$this->lang->words['st_submit']}" /> {$this->lang->words['or']} <a href='{parse url="showtopic={$topic['tid']}&amp;selectedpids={$selectedPids}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
</fieldset>
</form>]]></template_content>
      <template_name>splitPostForm</template_name>
      <template_data>$forum, $topic, $posts, $jump</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[{parse striping="topicHistory" classes="row1,row2"}
<h1 class='ipsType_pagetitle'>{$this->lang->words['th_title']}</h1>
<br />
<div class='ipsBox'>
	<table class='ipb_table' summary="{$this->lang->words['topic_history_summary']} '{$topic['title']}'">
		<tr class='{parse striping="topicHistory"}'>
			<td class='altrow'>{$this->lang->words['th_topic']}</td>
			<td>{$topic['title']}</td>
		</tr>
		<tr class='{parse striping="topicHistory"}'>
			<td class='altrow'>{$this->lang->words['th_start_date']}</td>
			<td>{parse date="$topic['start_date']" format="long"}</td>
		</tr>
		<tr class='{parse striping="topicHistory"}'>
			<td class='altrow'>{$this->lang->words['th_start_name']}</td>
			<td>{IPSMember::makeProfileLink( $topic['starter_name'], $topic['starter_id'], $topic['seo_first_name'] )}</td>
		</tr>
		<tr class='{parse striping="topicHistory"}'>
			<td class='altrow'>{$this->lang->words['th_last_date']}</td>
			<td>{parse date="$topic['last_post']" format="long"}</td>
		</tr>
		<tr class='{parse striping="topicHistory"}'>
			<td class='altrow'>{$this->lang->words['th_last_name']}</td>
			<td>{IPSMember::makeProfileLink( $topic['last_poster_name'], $topic['last_poster_id'], $topic['seo_last_name'] )}</td>
		</tr>
		<tr class='{parse striping="topicHistory"}'>
			<td class='altrow'>{$this->lang->words['th_avg_post']}</td>
			<td>{$avg_post}</td>
		</tr>
	</table>
</div>
<br /><br />
<h3 class='maintitle'>{$this->lang->words['ml_title']}</h3>
<table class='ipb_table' summary="{$this->lang->words['mod_logs_topic_summary']} '{$topic['title']}'">
	<tr class='header'>
		<th scope='col' style='width: 25%'>{$this->lang->words['ml_name']}</th>
		<th scope='col' style='width: 50%'>{$this->lang->words['ml_desc']}</th>
		<th scope='col' style='width: 25%'>{$this->lang->words['ml_date']}</th>
	</tr>
	<if test="topicmodlogs:|:!count($mod_logs) OR !is_array($mod_logs)">
		<tr>
			<td class="no_messages" colspan="3">{$this->lang->words['ml_none']}</td>
		</tr>
	<else />
		{parse striping="modlogs" classes="row1,row2"}
		<foreach loop="mod_logs:$mod_logs as $data">
			<tr class='{parse striping="modlogs"}'>
				<td class='altrow'>{parse template="userHoverCard" group="global" params="$data"}</td>
				<td>{$data['action']}</td>
				<td class="altrow">{parse date="$data['ctime']" format="long"}</td>
			</tr>
		</foreach>
	</if>
</table>]]></template_content>
      <template_name>topicHistory</template_name>
      <template_data>$topic, $avg_post, $mod_logs=array()</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[<form action='{parse url="app=forums&amp;module=moderate&amp;section=moderate" base="public"}' method='post'>
<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
<input type='hidden' name='do' value='31' />
<input type='hidden' name='t' value='{$topic['tid']}' />
<input type='hidden' name='f' value='{$forum['id']}' />
<input type='hidden' name='st' value='{$this->request['st']}' />
<h1 class='ipsType_pagetitle'>{$this->lang->words['ts_title']}: {$forum['name']} &gt; {$topic['title']}</h1>
<br />
<p class='message'>{$text}</p>
<br />
<fieldset class='submit'>
	<input type="submit" class='input_submit' value="{$this->lang->words['ts_submit']}" /> {$this->lang->words['or']} <a href='{parse url="showtopic={$topic['tid']}" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
</fieldset>
</form>]]></template_content>
      <template_name>unsubscribeForm</template_name>
      <template_data>$forum, $topic, $text</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
  </templategroup>
  <templategroup group="skin_post">
    <template>
      <template_group>skin_post</template_group>
      <template_content><![CDATA[<html>
<head>
	<style type="text/css">
		* {
			margin: 0px;
			padding: 0px;
		}
		
		#waitImg {
			position: relative;
			top: 4px;
		}
	</style>
	{parse template="includeRTL" group="global" params=""}
</head>
<body style='background-color: transparent;'>
<form id='iframeUploadForm' method='post' enctype="multipart/form-data" action=''>
<script type='text/javascript'>
	parent.ipb.attach._jsonPass( $id, $JSON );
</script>
<input type='file' id='iframeUploadBox_{$id}' style='display: inline' name='FILE_UPLOAD' /> <input type='reset' value='{$this->lang->words['clear_selection']}' style='display: inline' />
<img src="{$this->settings['img_url']}/loading.gif" style='display: none' id="waitImg" />
</form>
</body>
</html>]]></template_content>
      <template_name>attachiFrame</template_name>
      <template_data>$JSON, $id</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_post</template_group>
      <template_content><![CDATA[<p class='message error'>
	{$data}
</p>
<br />]]></template_content>
      <template_name>errors</template_name>
      <template_data><![CDATA[$data=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_post</template_group>
      <template_content><![CDATA[{parse js_module="poll"}
<script type='text/javascript'>
//<!#^#|CDATA|
	ipb.poll.maxQuestions = parseInt( {$data['max_poll_questions']} );
	ipb.poll.maxChoices = parseInt( {$data['max_poll_choices']} );
	ipb.poll.isPublicPoll = parseInt( {$data['poll_view_voters']} );
	ipb.poll.showOnLoad = {$data['show_open']};
	ipb.poll.isMod = {$data['is_mod']};
	
	ipb.poll.questions = \$H(
		<if test="hasPollQuestions:|:$data['poll_questions'] != '[]'">{$data['poll_questions']}</if>
	);
	
	ipb.poll.choices = \$H(
		<if test="hasPollChoices:|:$data['poll_choices'] != '[]'">{$data['poll_choices']}</if>
	);
	
	ipb.poll.votes = \$H(
		<if test="hasPollVotes:|:$data['poll_votes'] != '[]'">{$data['poll_votes']}</if>
	);
	
	ipb.poll.multi = \$H(
		<if test="hasPollMulti:|:$data['poll_multi'] != '[]'">{$data['poll_multi']}</if>
	);
	
	ipb.templates['poll_question'] = 	new Template("<li class='ipsBox_container question' id='question_#{qid}_wrap' style='display: none'>" +
											"<a href='#' class='ipsPad right' id='remove_question_#{qid}' title='{$this->lang->words['remove_question']}'>{parse replacement="remove_poll_question"}</a>" +
											"	<ul class='ipsForm ipsForm_vertical question_title ipsPad'>"+
											"		<li class='ipsField'>" + 
											" 			<label for='#{qid}' class='ipsType_subtitle'>{$this->lang->words['question_title']} #{qid}</label>"+
											"			<p class='ipsField_content'>" +
											" 				<input type='text' class='input_text' id='#{qid}' value='#{value}' size='62' maxlength='254' name='question[#{qid}]' style='max-width: 70%' /></span> <input type='checkbox' class='input_check' value='1' name='multi[#{qid}]' id='multi_#{qid}'/> <label for='multi_#{qid}'><span class='desc lighter'>{$this->lang->words['poll_multichoice']}</span></label>" +
											"			</p>" +
											"		</li>"+
											"	</ul>" + 
											"	<div class='wrap ipsPad'>" + 
											"		<ol id='choices_for_#{qid}'></ol>" + 
											"		<p class='ipsPad poll_control'><a href='#' class='ipsType_small' id='add_choice_#{qid}' title='{$this->lang->words['add_poll_choice']}'>{parse replacement="add_poll_choice"} {$this->lang->words['add_another_choice']}</a></p>" +
											"	</div>" +
											"</li>");
	ipb.templates['poll_choice'] = 		new Template("<li id='poll_#{qid}_#{cid}_wrap' style='display: none'><input type='text' id='poll_#{qid}_#{cid}' name='choice[#{qid}_#{cid}]' class='input_text' value='#{choice}' size='66' maxlength='254' /> <input type='text' id='poll_#{qid}_#{cid}_votes' name='votes[#{qid}_#{cid}]' value='#{votes}' class='input_text' size='5' title='{$this->lang->words['poll_votes_desc']}' /> <a href='#' id='remove_#{qid}_#{cid}' title='{$this->lang->words['remove_choice']}'>{parse replacement="remove_poll_choice"}</a></li>");
//|#^#]>
</script>

<div class='post_form poll_form' id='poll_form'>
	<a href='#' id='add_poll' class='ipsType_small'><img src='{$this->settings['img_url']}/bullet_toggle_plus.png' /> {$this->lang->words['poll_manage_link']}</a>
	
	<div id='poll_popup_content' style='display: none'>
		<div id='poll_wrap'>
			<h3>{$this->lang->words['poll_manager']}</h3>
			<div class='ipsBox_container ipsPad'>
				<label for='poll_title'><strong>{$this->lang->words['poll_fs_title']}</strong></label>&nbsp;&nbsp;
				<input type='text' class='input_text ipsForm_primary' name='poll_question' id='poll_title' size='40' value='{$data['poll_question']}' />&nbsp;&nbsp;&nbsp;&nbsp;
				<if test="allowPublicPoll:|:$this->settings['poll_allow_public'] AND ! $data['poll_total_votes']">
					<span class='ipsType_small' id='check_public_poll' data-tooltip="{$this->lang->words['poll_public_warning']}">
						<input type='checkbox' class='input_check' name='poll_view_voters' id='poll_view_voters' value='1' <if test="viewPollVoters:|:$data['poll_view_voters']">checked='checked'</if> />
						<label for='poll_view_voters'>{$this->lang->words['poll_fs_public']}</label>
					</span>
				</if>
				&nbsp;&nbsp;
				<if test="makePollOnly:|:$this->settings['ipb_poll_only']">
					<span class='ipsType_small' id='check_poll_only' data-tooltip="{$this->lang->words['poll_only_desc']}">
						<input type='checkbox' class='input_check' name='poll_only' id='poll_only' value='1' <if test="pollOnlyChecked:|:$data['poll_only']">checked='checked'</if> />
						<label for='poll_only'>{$this->lang->words['poll_only_title']}</label>
					</span>
				</if>
			</div>
			<div class='ipsBox fixed_inner' id='poll_container_wrap'>
				<ul id='poll_container'></ul>
			</div>
			<div id='poll_footer' class='ipsForm_submit clearfix' style='margin-top: 0;'>
				<a id='add_new_question' class='ipsButton left'>{parse replacement="add_poll_question"} {$this->lang->words['add_another_question']}</a> <span class='desc ipsType_smaller left ipsPad' id='poll_stats'></span>
				<a id='close_poll' class='ipsButton no_width right'>{parse replacement="close_poll_form"} {$this->lang->words['close_poll_form']}</a>
			</div>
		</div>
	</div>
</div>]]></template_content>
      <template_name>pollBox</template_name>
      <template_data>$data</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_post</template_group>
      <template_content><![CDATA[<if test="open_close_perm:|:$formData['modOptionsData']['canSetOpenTime'] == 1 || $formData['modOptionsData']['canSetCloseTime'] == 1">
	{parse addtohead="{$this->settings['public_dir']}style_css/{$this->registry->output->skin['_csscacheid']}/calendar_select.css" type="css"}
	<script type='text/javascript' src='{$this->settings['public_dir']}js/3rd_party/calendar_date_select/calendar_date_select.js'></script>
	<script type='text/javascript' src='{$this->settings['public_dir']}js/3rd_party/calendar_date_select/format_american.js'></script>
</if>
{parse js_module="post"}
{parse striping="post_stripe" classes="row1,row2"}
<h1 class='ipsType_pagetitle'>{$formData['title']}</h1>
<br />
<!--FORUM RULES-->
<form id='postingform' action='{$this->settings['base_url']}' method='post' enctype='multipart/form-data'>
	<div class='ipsBox ipsForm_vertical ipsLayout ipsLayout_withright ipsPostForm clearfix'>
	    <div class='ipsBox_container ipsLayout_right ipsPostForm_sidebar'>
			<if test="pollboxHtml:|:$formData['pollBoxHTML']">
				<h3 class='bar'>{$this->lang->words['post_poll']}</h3>
				<fieldset id='poll_fieldset' class='ipsPad' style='display: none'>
					{$formData['pollBoxHTML']}
				</fieldset>
				<script type='text/javascript'>
					$('poll_fieldset').show();
				</script>
			</if>
			<div class='ipsPostForm_sidebar_block'>
				<h3 class='bar'>{$this->lang->words['post_options']}</h3>
				<ul class='ipsPad ipsForm ipsForm_vertical ipsType_small'>
				<if test="htmlstatus:|:$formData['checkBoxes']['html'] !== null">
					<li class='ipsField ipsField_checkbox'>
						<input type="checkbox" name="post_htmlstatus" class="input_check" value="1" id='post_htmlstatus' {$formData['checkBoxes']['html']} />
						<p class='ipsField_content'>
							<label for='post_htmlstatus' data-tooltip='{$this->lang->words['pp_html_tooltip']}'>{$this->lang->words['pp_html']}</label>
						</p>
					</li>
				</if>
					<li class='ipsField ipsField_checkbox'>
						<input type="checkbox" name="enableemo" class="input_check" value="yes" id='enable_emo' {$formData['checkBoxes']['emo']} />
						<p class='ipsField_content'>
							<label for='enable_emo'>{$this->lang->words['enable_emo']}</label>
						</p>
					</li>
				<if test="enablesig:|:$this->memberData['member_id']">
					<li class='ipsField ipsField_checkbox'>
						<input type="checkbox" name="enablesig" class="input_check" value="yes" id='enable_sig' {$formData['checkBoxes']['sig']} />
						<p class='ipsField_content'>
							<label for='enable_sig'>{$this->lang->words['enable_sig']}</label>
						</p>
					</li>
					<li class='ipsField ipsField_checkbox'>
						<input type="checkbox" name="enabletrack" class="input_check" id='enable_track' value="1" {$formData['checkBoxes']['tra']} <if test="tracking:|:$formData['checkBoxes']['tra'] == '-tracking-'">checked='checked'</if> />
						<p class='ipsField_content'>
							<label for='enable_track'>{$this->lang->words['enable_track']}</label>
						</p>
					</li>
				</if>
				</ul>
			</div>
			<if test="showModOptions:|:$formData['modOptionsData']['dropDownOptions'] || $formData['modOptionsData']['canSetOpenTime'] || $formData['modOptionsData']['canSetCloseTime']">
				<div class='ipsPostForm_sidebar_block'>
					<h3 class='bar'>{$this->lang->words['moderator_options']}</h3>
					<ul class='ipsPad ipsForm ipsForm_vertical'>
						<if test="mod_options_check:|:$formData['modOptionsData']['dropDownOptions'] != """>
							<li class='ipsField'>
								<label for='forminput'><strong>{$this->lang->words['after_posting_pf']}</strong></label>
								<p class='ipsField_content'>
									{$formData['modOptionsData']['dropDownOptions']}</select>
								</p>
							</li>
						</if>
						<if test="open_time_check:|:$formData['modOptionsData']['canSetOpenTime'] == 1 ">
							<li class='ipsField'>
								<label for='mod_open_date'><strong>{$this->lang->words['mod_open_time']}</strong></label>
								<p class='ipsField_content'>
									<input type='text' size='7' name='open_time_time' id='mod_open_time' class='date input_text' value='{$formData['modOptionsData']['myTimes']['open_time']}' tabindex='62' />&nbsp;
									<input type='text' size='16' name='open_time_date' id='mod_open_date' class='input_text date' value='{$formData['modOptionsData']['myTimes']['open_date']}' tabindex='63' />
									<img src='{$this->settings['img_url']}/date.png' alt='{$this->lang->words['generic_date']}' id='mod_open_date_icon' class='clickable' />
								</p>
							</li>
						</if>
						<if test="close_time_check:|:$formData['modOptionsData']['canSetCloseTime'] == 1">
							<li class='ipsField'>
								<label for='mod_close_date'><strong>{$this->lang->words['mod_close_time']}</strong></label>
								<p class='ipsField_content'>
									<input type='text' size='7' name='close_time_time' id='mod_close_time' class='date input_text' value='{$formData['modOptionsData']['myTimes']['close_time']}' tabindex='64' />&nbsp;
									<input type='text' size='16' name='close_time_date' id='mod_close_date' class='date input_text' value='{$formData['modOptionsData']['myTimes']['close_date']}' tabindex='65' />
									<img src='{$this->settings['img_url']}/date.png' alt='{$this->lang->words['generic_date']}' id='mod_close_date_icon' class='clickable' />
							</li>
						</if>
					</ul>
					<script type='text/javascript'>
						document.observe("dom:loaded", function(){
							if( $('mod_open_time') ){ $('mod_open_time').defaultize( "{$this->lang->words['mod_time_format']}" ); }
							if( $('mod_open_date') ){ $('mod_open_date').defaultize( "{$this->lang->words['mod_date_format']}" ); }
							if( $('mod_close_time') ){ $('mod_close_time').defaultize( "{$this->lang->words['mod_time_format']}" ); }
							if( $('mod_close_date') ){ $('mod_close_date').defaultize( "{$this->lang->words['mod_date_format']}" ); }
						});
					</script>
				</div>
			</if>
			<if test="edit_options_check:|:$formData['extraData']['showEditOptions']">
				<div class='ipsPostForm_sidebar_block'>
					<h3 class='bar'>{$this->lang->words['edit_options']}</h3>
					<ul class='ipsPad ipsForm ipsForm_vertical'>
						<if test="showappendedit:|:$formData['extraData']['showAppendEdit']">
							<li class='ipsField ipsField_checkbox'>
								<input type="checkbox" name="add_edit" value="1" id='append_edit' <if test="checkShowEdit:|:$formData['extraData']['checked']">checked="checked"</if> class="input_check" />
								<p class='ipsField_content'>
									<label for='append_edit'>{$this->lang->words['append_edit']}</label>
								</p>
								
							</li>
						</if>
						<if test="showeditreason:|:$formData['extraData']['showReason']">
							<li class='ipsField'>
								<label for='post_edit_reason'><strong>{$this->lang->words['preason_for_edit']}</strong></label>
								<p class='ipsField_content'>
									<input type="text" name="post_edit_reason" id='post_edit_reason' value="{$formData['extraData']['reasonForEdit']}" size='30' maxlength='250' class='input_text' />
								</p>
							</li>
						</if>
					</ul>
				</div>
			</if>
		</div>
		<div class='ipsBox_container ipsLayout_content'>
			<ul class='ipsForm ipsForm_vertical ipsPad'>
				<if test="logged_in_check:|:!$this->memberData['member_id']">
					<li class='ipsField'>
						<label for='username' class='ipsField_title'>{$this->lang->words['guest_name']}</label>
						<p class='ipsField_content'>
							<input type='text' name='UserName' id='username' size='50' value='{$this->request['UserName']}' maxlength="{$this->settings['max_user_name_length']}" class='input_text' tabindex='1' />
						</p>
					</li>
					<if test="guestCaptcha:|:$formData['captchaHTML']">
						{$formData['captchaHTML']}
					</if>
				</if>
				<if test="edit_title_check:|:$formData['formType'] == 'new' OR ( $formData['formType'] == 'edit' AND $formData['canEditTitle'] )">
					<li class='ipsField ipsField_primary'>
						<label for='topic_title' class='ipsField_title'>{$this->lang->words['topic_title']}</label>
						<p class='ipsField_content'>
							<input id='topic_title' class='input_text' type="text" size="60" maxlength="{$this->settings['topic_title_max_len']}" name="TopicTitle" value="{$formData['topicTitle']}" tabindex="2" />
						</p>
					</li>
				</if>
				<if test="edit_tags_check:|:$formData['formType'] == 'new' OR ( $formData['formType'] == 'edit')">
					<if test="hazTag:|:$formData['tagBox']">
						<li class='ipsField tag_field'>
							<label for='ipbTags' class='ipsField_title'>{$this->lang->words['topic_tags']}</label>
							<p class='ipsField_content'>{$formData['tagBox']}</p>
						</li>
					</if>
				</if>
		
				<li class='ipsField ipsField_editor'>
					<if test="statusMsgs:|:is_array($formData['statusMsg']) AND count($formData['statusMsg']) AND strlen($formData['statusMsg'][0])">
						<div class='message'>{parse expression="implode( '<br />', $formData['statusMsg'])"}</div>
					</if>
					{$formData['editor']}
				</li>				
			</ul>
			<if test="upload_form_check:|:$formData['uploadForm']">
				<fieldset class='attachments'>
					{$formData['uploadForm']}
				</fieldset>
			</if>
			
		</div>
		<if test="shareEnabled:|: ! $formData['socialShareOff']">
			{parse template="socialSharePostStrip" group="global_other"}
		</if>
	</div>	
	<fieldset class='submit clear'>
		<input type='hidden' name='st' value='{$this->request['st']}' />
		<input type='hidden' name='app' value='forums' />
		<input type='hidden' name='module' value='post' />
		<input type='hidden' name='section' value='post' />
		<input type='hidden' name='do' value='{$form['doCode']}' />
		<input type='hidden' name='s' value='{$this->member->session_id}' />
		<input type='hidden' name='p' value='{$form['p']}' />
		<input type='hidden' name='t' value='{$form['t']}' />
		<input type='hidden' name='f' value='{$form['f']}' />
		<input type='hidden' name='parent_id' value='{$form['parent']}' />
		<input type='hidden' name='attach_post_key' value='{$form['attach_post_key']}' />
		<input type='hidden' name='auth_key' value='{$this->member->form_hash}' />
		<input type='hidden' name='removeattachid' value='0' />
		<input type='hidden' name='return' value='{$this->request['return']}' />
		<input type='hidden' name='_from' value='{$this->request['_from']}' />
		<input type="submit" name="dosubmit" value="{$formData['buttonText']}" tabindex="50" class="input_submit" accesskey="s"  />&nbsp;
		<input type="submit" name="preview" value="{$this->lang->words['button_preview']}" class="input_submit alt" />
		{$this->lang->words['or']}
		<if test="$this->request['return'] == 'modcp:unapproved'">
			<a href='{parse url="app=core&module=modcp&fromapp=forums&tab=unapprovedposts" base="public"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
		<else />
			<if test="cancelposting:|:$form['t']">
				<a href='{parse url="showtopic={$form['t']}" template="showtopic" seotitle="{$formData['seoTopic']}" base="public"}' title='{$this->lang->words['cancel']}' class='cancel' tabindex='52'>{$this->lang->words['cancel']}</a>
			<else />
				<a href='{parse url="showforum={$form['f']}" template="showforum" seotitle="{$formData['seoForum']}" base="public"}' title='{$this->lang->words['cancel']}' class='cancel' tabindex='52'>{$this->lang->words['cancel']}</a>
			</if>
		</if>
	</fieldset>
</form>
{$formData['topicSummary'][0]['html']}]]></template_content>
      <template_name>postFormTemplate</template_name>
      <template_data>$formData=array(), $form = array()</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_post</template_group>
      <template_content><![CDATA[<if test="postpreview:|:$data AND trim($data) != '<br />' AND trim($data) != '<br>'">
	<if test="disablelightbox:|:!$this->settings['disable_lightbox']">
		{parse template="include_lightbox" group="global" params=""}
	</if>
	<h2 class='maintitle'>{$this->lang->words['post_preview']}</h2>
	<div class='post_block no_sidebar'>
		<div class='post_wrap ipsBox' id='post_preview'>
			<div class='ipsBox_container ipsPad'>
				<div class='post_body'>
					<div class='post entry-content'>{$data}</div>
				</div>
			</div>
		</div>
	</div>
	<br />
</if>]]></template_content>
      <template_name>preview</template_name>
      <template_data><![CDATA[$data=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_post</template_group>
      <template_content><![CDATA[{parse js_module="topic"}
{parse template="include_highlighter" group="global" params=""}
<br /><br />
<h3 class='maintitle'>{$this->lang->words['topic_summary']}</h3>
<div class='generic_bar'></div>
<div id='topic_summary'>
<if test="topicsummaryposts:|:is_array( $posts ) AND count( $posts )">
	<foreach loop="posts:$posts as $pid => $data">
		<div class='post_block no_sidebar topic_summary'>
			<div class='post_wrap'>
				<h3 class='row2<if test="isGuest:|:empty($data['member_id'])"> guest</if>'>{parse template="userHoverCard" group="global" params="$data"}</h3>
				<div class='post_body'>
					<p class='posted_info'>{$this->lang->words['summary_posted']} {$data['date']}</p>
					<if test="ignoringpost:|:isset( $data['_ignored'] ) && $data['_ignored'] == 1">
						<div class='post'>{$this->lang->words['ignore_first_line']} {$data['members_display_name']}.</div>
					<else />
						<div class="post">{$data['post']}</div>
					</if>
				</div>
			</div>
			<br />
		</div>
	</foreach>
</if>
<p class='submit'>
	<a href='{parse url="showtopic={$this->request['t']}" base="public"}' title='{$this->lang->words['review_topic']}' id='review_topic'>{$this->lang->words['review_topic']}</a>
</p>
</div>]]></template_content>
      <template_name>topicSummary</template_name>
      <template_data>$posts=array()</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_post</template_group>
      <template_content><![CDATA[<if test="$this->memberData['member_uploader'] == 'flash'">
	<script type='text/javascript' src='{$this->settings['public_dir']}js/3rd_party/swfupload/swfupload.js'></script>
	<script type='text/javascript' src='{$this->settings['public_dir']}js/3rd_party/swfupload/plugins/swfupload.swfobject.js'></script>
	<script type='text/javascript' src='{$this->settings['public_dir']}js/3rd_party/swfupload/plugins/swfupload.cookies.js'></script>
	<script type='text/javascript' src='{$this->settings['public_dir']}js/3rd_party/swfupload/plugins/swfupload.queue.js'></script>
</if>
<script type='text/javascript'>
//<!#^#|CDATA|
	ipb.lang['used_space'] = "{parse expression="sprintf( $this->lang->words['used_space_js'], "{$stats['max_single_upload_human']}" )"}";
//|#^#]>
</script>
{parse js_module="attach"}
<div class='ipsPad'>
	<div id='attach_error_box' class='message error' style='display:none'></div>
	<input type='file' id='nojs_attach_{$id}_1' class='input_upload' name='FILE_UPLOAD' tabindex='-1' />
	<input type='file' id='nojs_attach_{$id}_2' class='input_upload' name='FILE_UPLOAD' tabindex='-1' />
	
	<ul id='attachments'><li style='display: none'></li></ul>
	
	<div class='attach_controls'>
		<h2 class='ipsType_subtitle'>{$this->lang->words['attach_header']}</h2>
		<span id='buttonPlaceholder'></span>
		<input type='button' id='add_files_attach_{$id}' class='ipsType_small ipsButton_secondary attach_button' value='{$this->lang->words['attach_selected']}' style='display: none; clear: both' tabindex='75' />
		&nbsp;&nbsp;
		<span class='desc ipsType_small' id='space_info_attach_{$id}'>
			<if test="attachNotAllowed:|:$stats['space_left_human'] == $this->lang->words['attach_notallowed']">
				{$this->lang->words['used_space_exceeded']}
			<else />
				<if test="unlimitedSpace:|:$stats['space_left_human'] == $this->lang->words['attach_unlimited']">
					{parse expression="sprintf( $this->lang->words['used_space_unlimited'], "{$stats['max_single_upload_human']}")"}
				<else />
					{parse expression="sprintf( $this->lang->words['used_space'], "{$stats['space_left_human']}", "{$stats['max_single_upload_human']}")"}
				</if>
			</if>
		</span>
		<if test="helpMessage:|:!IN_ACP AND $this->settings['uploadFormType']">
			<p class='desc lighter ipsType_smaller' id='help_msg'>
				<if test="flashuploadhelp:|:$this->memberData['member_uploader'] == 'flash'">
					 {$this->lang->words['trouble_uploading']} <a href='#' data-switch='default' title='{$this->lang->words['switch']}' tabindex='-1'>{$this->lang->words['switch_to_basic']}</a>
				<else />
					<if test="canUseFlash:|:$this->memberData['member_id']">
						<a href='#' data-switch='flash' title='{$this->lang->words['switch']}' tabindex='-1'>{$this->lang->words['switch_to_advanced']}</a>
					</if>
				</if>
			</p>
		</if>
	</div>
	
</div>
<script type='text/javascript'>
//<!#^#|CDATA|
	ipb.delegate.register("[data-switch]", function(e, elem){
		ipb.attach.switchUploadType( elem.readAttribute('data-switch') );
	});
	
	// Show the button and info
	$('add_files_attach_{$id}').show();
	$('space_info_attach_{$id}').show();
	
	var useType = 'default';
	var uploadURL = ipb.vars['base_url'] + "app=core&module=attach&section=attach&do=attachiFrame&attach_rel_module={$type}&attach_rel_id={$id}&attach_post_key={$post_key}&forum_id={$forum_id}&attach_id=attach_{$id}&fetch_all=1";
	if ( ipb.vars['use_swf_upload'] && ( jimAuld.utils.flashsniffer.meetsMinVersion( 9 ) && ( ipb.vars['swfupload_enabled'] ) ) )
	{
		useType = 'swf';
		var uploadURL = ipb.vars['base_url'] + "app=core&module=attach&section=attach&do=attach_upload_process&attach_rel_module={$type}&attach_rel_id={$id}&attach_post_key={$post_key}&forum_id={$forum_id}&_nsc=1";
	}
	
	ipb.attach.template = "<li id='ali_[id]' class='attach_row' style='display: none'><div><h4 class='attach_name'>[name]</h4><p class='info'>[info]</p><span class='img_holder'></span><p class='progress_bar'><span style='width: 0%'>0%</span></p><p class='links'><a href='#' class='add_to_post' title='{$this->lang->words['attach_button_title']}' tabindex='-1'>{$this->lang->words['attach_button']}</a> | <a href='#' class='cancel delete' title='{$this->lang->words['attach_delete_title']}' tabindex='-1'>{$this->lang->words['attach_delete']}</a></p></div></li>"; 
	document.observe('dom:loaded', function(){
		ipb.attach.registerUploader( 'attach_{$id}', useType, 'attachments', {
			'upload_url': uploadURL,
			'attach_rel_module': "{$type}",
			'attach_rel_id': "{$id}",
			'attach_post_key': "{$post_key}",
			'forum_id': "{$forum_id}",
			'file_size_limit': "{$stats['max_single_upload']}"
		} )});
//|#^#]>
</script>]]></template_content>
      <template_name>uploadForm</template_name>
      <template_data><![CDATA[$post_key="",$type="",$stats=array(),$id="",$forum_id=0]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
  </templategroup>
  <templategroup group="skin_topic">
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<h3>{$this->lang->words['dlp_title']}</h3>
<div class='ipsBox'>
	<div class='ipsBox_container'>
		<div class='ipsPad ipsForm_center'>
			{$this->lang->words['dlp_remove_from_view_desc']}<br />
			<span class='desc lighter ipsType_smaller'>{$this->lang->words['dlp_remove_from_view_extra']}</span><br /><br />
			<form action='#{removeUrl}' method='POST'>
				<input type='text' name='deleteReason' id='delPop_reason' value='' class='input_text' style='width: 60%' /> <input type='submit' class='input_submit' value='{$this->lang->words['post_hide']}' />
			</form>
		</div>
	</div>
</div>
<script type='text/javascript'>
$('delPop_reason').defaultize( "{$this->lang->words['post_hide_reason_default']}" );
</script>]]></template_content>
      <template_name>ajax__deletePost</template_name>
      <template_data/>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<h3>{$this->lang->words['post_delete']}</h3>
<div class='ipsBox'>
	<div class='ipsBox_container'>
		<div class='ipsPad ipsForm_center'>
			{$this->lang->words['post_delete_confirm']}<br />
			<br />
			<form action='#{permaUrl}' method='POST'>
				<input type='submit' class='input_submit' id='delPush' value='{$this->lang->words['post_delete']}' />
			</form>
		</div>
	</div>
</div>]]></template_content>
      <template_name>ajax__doDeletePost</template_name>
      <template_data/>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<h3>{$this->lang->words['drestore_title']}</h3>
<div class='ipsBox'>
	<div class='ipsBox_container ipsPad'>
		{$this->lang->words['drestore_text']}
		<br />
		<br />
		<a href='#' class='ipsButton_secondary important' data-clicklaunch="restoreTopicDialogGo" data-scope="topic">{$this->lang->words['drestore_title']}</a>
	</div>
</div>]]></template_content>
      <template_name>ajax__restoreTopicDialog</template_name>
      <template_data/>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<h3>{parse expression="sprintf( $this->lang->words['share_post'], $post['post_count'] )"}</h3>
<div class='ipsBox'>
	<div class='ipsBox_container'>
		<div class='ipsPad ipsForm_center'>
			<input type='text' class='input_text' id='postShareUrl' value='$url' />
			<if test="shareLinksStrip:|:$sharelinks">
				<div id='postShareStrip'>{$sharelinks}</div>
			</if>
		</div>
	</div>
</div>
<script type="text/javascript">
<if test="shareLinksJS:|:$sharelinks">
	FB.XFBML.parse();
	gapi.plusone.go();
</if>
	$('postShareUrl').on('click', function(e) { $('postShareUrl').focus(); $('postShareUrl').select(); } );
</script>]]></template_content>
      <template_name>ajaxSharePost</template_name>
      <template_data>$topic, $post, $url, $sharelinks</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<ul class='ipbmenu_content'>
	<li class='clearfix'>
		<a href='#' data-clicklaunch='ignoreUsersSig' data-scope='ipb.topic' data-id="{$post['member_id']}">{parse expression="sprintf( $this->lang->words['ignore_userx_signature'], $post['members_display_name'] )"}</a>
	</li>
	<li class='clearfix'>
		<a href='#' data-clicklaunch='ignoreUsersSig' data-scope='ipb.topic' data-id="all">{$this->lang->words['ignore_all_signatures']}</a>
	</li>
</ul>]]></template_content>
      <template_name>ajaxSigCloseMenu</template_name>
      <template_data>$post</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[{parse js_module="topic"}
<h1 class='ipsType_pagetitle'>{$this->lang->words['announce_title']}: {$announce['announce_title']}</h1>
<br />
<h2 class='maintitle'>{$this->lang->words['posted_by']} {parse template="userHoverCard" group="global" params="$author"}</h2>
<div class='post_block first hentry announcement' id='announce_id_{$announce['announce_id']}'>
	<div class='post_wrap'>
		<br />
		<div class='author_info'>
			{parse template="userInfoPane" group="global" params="$author, 'announcement', array( 'id2' => $announce['announce_id'] )"}
		</div>
		<div class='post_body'>
			<div class='post entry-content'>
				{$announce['announce_post']}
			</div>
			<ul class='post_controls clear clearfix'>
				<if test="canmanage:|:$this->memberData['g_is_supmod'] == 1">
					<li class='post_edit'><a class='ipsButton_secondary' href='{parse url="app=core&amp;module=modcp&amp;tab=announcements&amp;fromapp=forums&amp;_do=edit&amp;announce_id={$announce['announce_id']}" base="public"}' title='{$this->lang->words['post_edit_announce']}' class='edit_post'>{$this->lang->words['post_edit_announce']}</a></li>
				</if>
			</ul>
		</div>
	</div>
</div>
<if test="disablelightbox:|:!$this->settings['disable_lightbox']">
{parse template="include_lightbox" group="global" params=""}
</if>
{parse template="include_highlighter" group="global" params="1"}]]></template_content>
      <template_name>announcement_show</template_name>
      <template_data><![CDATA[$announce="",$author=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<if test="isRestoring:|:$this->registry->class_forums->fetchArchiveTopicType($topic) == 'restore'">
	<div class='message unspecific'>
		<if test="isAdminArchivedTop:|:$this->memberData['g_access_cp']">{$this->lang->words['top_archived_topic_restore']}<else />{$this->lang->words['top_archived_topic']}</if>
	</div>
</if>
<if test="isWorking:|:$this->registry->class_forums->fetchArchiveTopicType($topic) == 'working'">
	<div class='message unspecific'>
		{$this->lang->words['top_archive_topic_working']}
	</div>
</if>
<if test="isArchivedDone:|:$this->registry->class_forums->fetchArchiveTopicType( $topic ) == 'archived'">
	<div class='message unspecific'>
		{$this->lang->words['top_archived_topic']}
		<if test="isModArchived:|:$this->memberData['is_mod']">{$this->lang->words['top_archived_topic_mod']}</if>
		<if test="isAdminArchived:|:$this->memberData['g_access_cp']">
			<br />
			<a href='#' class='ipsButton_secondary' data-clicklaunch="restoreTopicDialog" data-scope="topic">{$this->lang->words['top_archived_topic_admin']}</a>
			<a href='#' class='ipsButton_secondary important' data-clicklaunch="deleteTopicDialog" data-scope="topic">{$this->lang->words['tarchived_delete']}</a>
		</if>
	</div>
</if>]]></template_content>
      <template_name>archiveStatusMessage</template_name>
      <template_data>$topic, $forum</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<if test="fbAppIdPresent:|:$this->settings['fbc_appid']">
<if test="checkAccess:|:$this->registry->getClass('class_forums')->guestCanSeeTopic($this->request['f'], $this->settings['fbc_bot_group'])">
<br />
<div class='left facebook-like'>
	<fb:like href="{$this->registry->getClass('output')->fetchRootDocUrl()}" layout="standard" show_faces="false" width="450" action="like" colorscheme="light" />
</div>
<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({appId: '{$this->settings['fbc_appid']}', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/{$this->settings['fb_locale']}/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
</script>
</if>
</if>]]></template_content>
      <template_name>hookFacebookLike</template_name>
      <template_data/>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[{parse js_module="like"}
<div class='__like right' data-app="{$data['app']}" data-area="{$data['area']}" data-relid="{$relId}" data-isfave="{$data['iLike']}">
	{parse template="likeSummaryContents" group="topic" params="$data, $relId, $opts"}
</div>
<script type="text/javascript">
	var FAVE_TEMPLATE = new Template( "<h3>{parse expression="sprintf( $this->lang->words['unset_fave_title'], $this->lang->words['like_ucfirst_un' . $data['vernacular'] ])"}</h3><div class='ipsPad'><span class='desc'>{parse expression="sprintf( $this->lang->words['unset_fave_words'], $this->lang->words['like_un' . $data['vernacular'] ])"}</span><br /><p class='ipsForm_center'><input type='button' value='{parse expression="sprintf( $this->lang->words['unset_button'], $this->lang->words['like_ucfirst_un' . $data['vernacular'] ])"}' class='input_submit _funset' /></p></div>");
</script>]]></template_content>
      <template_name>likeSummary</template_name>
      <template_data>$data, $relId, $opts</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<span class='ipsButton_extra right <if test="$data['totalCount']">_fmore clickable</if>' title='{parse expression="sprintf( $this->lang->words['like_totalcount_' . $data['vernacular'] ], $data['totalCount'] )"}' data-tooltip="{parse expression="sprintf( $this->lang->words['like_totalcount_' . $data['vernacular'] ], $data['totalCount'] )"}"><img src='{$this->settings['img_url']}/icon_users.png' /> <strong>{$data['totalCount']}</strong></span>
<if test="likeOnlyMembers:|:$this->memberData['member_id']">
	<a href='#' title="<if test="$data['iLike']">{parse expression="sprintf( $this->lang->words['fave_tt_on'], $this->lang->words['like_ucfirst_un' . $data['vernacular'] ])"}<else />{parse expression="sprintf( $this->lang->words['fave_tt_off'], $this->lang->words['like_ucfirst_' . $data['vernacular'] ])"}</if>" class='ftoggle ipsButton_secondary'><if test="$data['iLike']">{parse expression="sprintf( $this->lang->words['unset_fave_button'], $this->lang->words['like_ucfirst_un' . $data['vernacular'] ])"}<else />{parse expression="sprintf( $this->lang->words['set_fave_button'], $this->lang->words['like_ucfirst_' . $data['vernacular'] ])"}</if></a>
</if>]]></template_content>
      <template_name>likeSummaryContents</template_name>
      <template_data>$data, $relId, $opts=array()</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<script type='text/javascript'>
//<!#^#|CDATA|
	ipb.templates['poll_voters'] = new Template("<h3 class='bar'>{$this->lang->words['poll_voted_for']} #{title}</h3><div class='ipsPad'>#{content}</div>");
//|#^#]>
</script>
<div class='general_box alt poll' id='poll_{$poll['pid']}'>
	<form action="{parse url="app=forums&amp;module=extras&amp;section=vote&amp;t={$topicData['tid']}&amp;page={$this->request['page']}&amp;do=add&amp;secure_key={$this->member->form_hash}" base="public"}" name='pollForm' method="post">
		<h3>{$this->lang->words['poll']} {$poll['poll_question']}<if test="showPollResults:|:$showResults"> <span class='desc'>({$poll['_totalVotes']} {$this->lang->words['poll_vote_casted']})</span></if></h3>
		<if test="publicPollNotice:|:$this->settings['poll_allow_public'] AND $poll['poll_view_voters'] AND ! $showResults">
			<div class='message unspecified'>{$this->lang->words['poll_public_notice']}</div>
		</if>
		<foreach loop="poll_questions:$pollData as $questionID => $questionData">
			<div class='poll_question<if test="votedClass:|:$showResults"> voted</if>'>
				<h4 class='rounded'>{$pollData[ $questionID ]['question']}</h4>
				<if test="noGuestVote:|:! $this->settings['allow_result_view'] AND ! $this->memberData['member_id']">
					{$this->lang->words['poll_noview_guest']}
				<else />
					<ol>
						<foreach loop="poll_choices:$pollData[ $questionID ]['choices'] as $choiceID => $choiceData">
							<if test="showingResults:|:$showResults">
								<li>
									<span class='answer'><if test="hasVoters:|:is_array( $choiceData['voters'] ) AND in_array( $this->memberData['member_id'], array_keys( $choiceData['voters'] ) )"> {parse replacement="your_vote"} </if>{$choiceData['choice']}</span>
									<if test="viewVoters:|:$poll['poll_view_voters'] AND is_array( $choiceData['voters'] ) AND $this->settings['poll_allow_public'] AND $choiceData['votes']">
										<a href='#' class='votes' id='l_voters_{$questionID}_{$choiceID}' title='{$this->lang->words['poll_view_voters']}'>({$choiceData['votes']} {$this->lang->words['poll_votes']} [{$choiceData['percent']}%] - <strong>{$this->lang->words['poll_view']}</strong>)</a>
									<else />
										<span class='votes'> ({$choiceData['votes']} {$this->lang->words['poll_votes']} [{$choiceData['percent']}%])</span>
									</if>
									<if test="votersJs:|:$poll['poll_view_voters'] AND is_array( $choiceData['voters'] ) AND $this->settings['poll_allow_public'] AND $choiceData['votes']">
										<script type='text/javascript'>
											$('l_voters_{$questionID}_{$choiceID}').observe('click', ipb.topic.showVoters.bindAsEventListener( this, {$questionID}, {$choiceID} ) );
											if( Object.isUndefined( ipb.topic.poll[ $questionID ] ) ){
												ipb.topic.poll[ $questionID ] = [];
											}
											
											var users = "";
											
											<foreach loop="poll_voters:$choiceData['voters'] as $id => $member">
												users += "<a href='{parse url="showuser={$member['member_id']}" base="public" seotitle="{$member['members_seo_name']}" template="showuser"}'>{$member['members_colored_name']}</a><if test="lastVoter:|:$member['_last'] == 0">, </if>";
											</foreach>
											ipb.topic.poll[ $questionID ][ $choiceID ] = { name: "{$choiceData['choice']}", users: users};
										</script>
									</if>
									<p class='progress_bar topic_poll' title='{$this->lang->words['poll_percent_of_vote']} {$choiceData['percent']}%'>
										<span style='width: {$choiceData['percent']}%'><span>{$this->lang->words['poll_percent_of_vote']} {$choiceData['percent']}%</span></span>
									</p>
								</li>
							<else />
								<if test="multiVote:|:$choiceData['type'] == 'multi'">
									<li><input type='checkbox' id='choice_{$questionID}_{$choiceID}' name='choice_{$questionID}_{$choiceID}' value='1' class='input_check' /> <label for='choice_{$questionID}_{$choiceID}'>{$choiceData['choice']}</label></li>
								<else />
									<li><input type='radio' name='choice[{$questionID}]' id='choice_{$questionID}_{$choiceID}' class='input_radio' value='{$choiceID}' /> <label for='choice_{$questionID}_{$choiceID}'>{$choiceData['choice']}</label></li>
								</if>
							</if>
						</foreach>
					</ol>
				</if>
			</div>
		</foreach>
		<fieldset class='submit'>
			<legend>{$this->lang->words['poll_vote']}</legend>
			<if test="voteButton:|:$topicData['state'] != 'closed'">
				<if test="voteButtonMid:|:$this->memberData['member_id']">
					<if test="voteButtonVoted:|:$poll['_memberVoted']">
						<if test="deleteVote:|:$this->settings['poll_allow_vdelete'] OR $this->memberData['g_is_supmod']">
							<a href='{parse url="app=forums&amp;module=extras&amp;section=vote&amp;t={$topicData['tid']}&amp;page={$this->request['page']}&amp;do=delete&amp;secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['poll_delete_vote']}' id='poll_deletevote' class='input_submit alt'>{$this->lang->words['poll_delete_vote']}</a>
						<else />
							{$this->lang->words['poll_you_voted']}
						</if>
					<else />
						<if test="youCreatedPoll:|:($poll['starter_id'] == $this->memberData['member_id']) and ($this->settings['allow_creator_vote'] != 1)">
							{$this->lang->words['poll_you_created']}
						<else />
							<!-- VOTE Button -->
							<if test="cast:|:$this->request['mode'] != 'show'">
								<input class='input_submit' type="submit" name="submit" value="{$this->lang->words['poll_add_vote']}" title="{$this->lang->words['tt_poll_vote']}" />
							</if>
							<!-- SHOW Button -->
							<if test="displayVotes:|:$this->settings['allow_result_view'] == 1">
								<if test="alreadyDisplayVotes:|:$this->request['mode'] == 'show'">
									<if test="viewVotersLink:|:! $poll_view_voters">
										<a href='{parse url="showtopic={$topicData['tid']}&amp;page={$this->request['page']}" base="public" seotitle="{$topicData['title_seo']}" template="showtopic"}' title='{$this->lang->words['tt_poll_svote']}' id='poll_nullvote' class='input_submit alt'>{$this->lang->words['pl_show_vote']}</a>
									</if>
								<else />
									<a href='{parse url="showtopic={$topicData['tid']}&amp;mode=show&amp;page={$this->request['page']}" base="public" seotitle="{$topicData['title_seo']}" template="showtopic"}' title='{$this->lang->words['tt_poll_show']}' id='poll_showresults' class='input_submit alt'>{$this->lang->words['pl_show_results']}</a>
								</if>
							<else />
								<input class='input_submit' type="submit" name="nullvote" value="{$this->lang->words['poll_null_vote']}" title="{$this->lang->words['tt_poll_null']}" />
							</if>
						</if>
					</if>
				<else />
					{$this->lang->words['poll_no_guests']}
				</if>
			</if>
			<if test="editPoll:|:$editPoll">
				<a href='{parse url="app=forums&amp;module=post&amp;section=post&amp;do=edit_post&amp;f={$poll['forum_id']}&amp;t={$poll['tid']}&amp;p={$topicData['topic_firstpost']}" base="publicWithApp"}' title='{$this->lang->words['poll_edit']}' class='input_submit alt' >{$this->lang->words['poll_edit']}</a>
			</if>
		</fieldset>
	</form>
</div>]]></template_content>
      <template_name>pollDisplay</template_name>
      <template_data>$poll, $topicData, $forumData, $pollData, $showResults, $editPoll=1</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<!--post:{$post['post']['pid']}-->
<if test="sDeleted:|:$post['post']['_isDeleted'] AND $post['post']['_softDeleteSee']">
	{parse template="softDeletedPostBit" group="topic" params="$post, $displayData['sdData'], $topic"}
</if>
<if test="sDeletedNot:|:! $post['post']['_isDeleted']">
	<div class='post_block hentry clear clearfix <if test="isSolvedCss:|:$post['post']['_isMarkedAnswered']">solved</if> <if test="postQueued:|:$post['post']['_isHidden']">moderated</if>' id='post_id_{$post['post']['pid']}'>
		<a id='entry{$post['post']['pid']}'></a>
		<if test="repIgnored:|:!empty( $post['post']['_repignored'] ) AND $post['post']['_repignored'] == 1 && $post['post']['_ignored'] != 1">
			<div class='post_ignore'>
				<if test="noRep:|:$post['post']['rep_points'] == 0">
					<span class='reputation zero' title='{$this->lang->words['top_rep']}'>
				</if>
				<if test="posRep:|:$post['post']['rep_points'] > 0">
					<span class='reputation positive' title='{$this->lang->words['top_rep']}'>
				</if>
				<if test="negRep:|:$post['post']['rep_points'] < 0">
					<span class='reputation negative' title='{$this->lang->words['top_rep']}' >
				</if>
						{$post['post']['rep_points']}</span> {$this->lang->words['top_this_post_by']} {parse template="userHoverCard" group="global" params="$post['author']"} {$this->lang->words['top_below_thresh']}. <a href='#' title='{$this->lang->words['ignore_view_post']}' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>
			</div>
		</if>
	
		<if test="userIgnored:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">
			<div class='post_ignore'>
				<if test="userIgnoredLang:|:$post['post']['_repignored'] == 1">{$this->lang->words['post_ignored_rep']}<else />{$this->lang->words['post_ignored']}</if> {parse template="userHoverCard" group="global" params="$post['author']"}. <a href='#entry{$post['post']['pid']}' title='{$this->lang->words['ignore_view_post']}' style='display: none' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>
				<if test="userIgnoredLangTwo:|:$this->settings['reputation_enabled'] AND $post['post']['_repignored'] == 1"><div><a href="{parse url="showtopic={$post['post']['topic_id']}&amp;page={$this->request['page']}&amp;rep_filter_set=*&amp;rep_filter=update&amp;secure_key={$this->member->form_hash}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}">{$this->lang->words['post_ignore_reset_rep']}</a></div></if>
			</div>
		</if>
		<div class='post_wrap' <if test="isNotIgnoring:|:$post['post']['_ignored'] == 1 || $post['post']['_repignored'] == 1">style='display: none'</if>>
			<if test="postMid:|:$post['author']['member_id']">
				<h3 class='row2'>
			<else />
				<h3 class='guest row2'>
			</if>
				<span class='post_id right ipsType_small desc blend_links'>
					<if test="hasPages:|:$this->request['page']">
						<a itemprop="replyToUrl" data-entry-pid='{$post['post']['pid']}' href='{parse url="showtopic={$post['post']['topic_id']}&amp;page={$this->request['page']}{$post['post']['PermalinkUrlBit']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
					<else />
						<a itemprop="replyToUrl" data-entry-pid='{$post['post']['pid']}' href='{parse url="showtopic={$post['post']['topic_id']}{$post['post']['PermalinkUrlBit']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
					</if>
					#{$post['post']['post_count']}
					<img src='{$this->settings['img_url']}/icon_share.png' class='small' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}' />
					</a>
				</span>
				<if test="postModCheckbox:|:$post['post']['moddable'] && ! $topic['_isArchived']">
					<span class='right'>
						<label for='checkbox_{$post['post']['pid']}' class='post_mod hide'>{$this->lang->words['mod_select_post']}</label><input type='checkbox' id='checkbox_{$post['post']['pid']}' name='selectedpids[]' value='{$post['post']['pid']}' class='post_mod right'<if test="postModSelected:|:!empty( $post['post']['_pid_selected'] )"> checked='checked'</if> data-status='{$post['post']['queued']}' />
					</span>
				</if>
				<if test="postMember:|:$post['author']['member_id']">
					<span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$post['author']"}</span>
				<else />
					{parse template="userHoverCard" group="global" params="$post['author']"}
				</if>
			
				<if test="postIp:|:$post['post']['_show_ip']">
					<span class='ip right ipsType_small'>({$this->lang->words['ip']}:
					<if test="postAdmin:|:$post['author']['g_access_cp']">
						<em>{$this->lang->words['ip_private']}</em>
					<else />
						<if test="accessModCP:|:$this->memberData['g_is_supmod']"><a href="{parse url="app=core&amp;module=modcp&amp;fromapp=members&amp;tab=iplookup&amp;ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a><else />{$post['post']['ip_address']}</if>
					</if>)
					</span>
				</if>
			</h3>
			<div class='author_info'>
				{parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array( 'isTopicView' => true, 'wl_id' => $post['post']['wl_id'] )"}
			</div>
			<div class='post_body'>
				<p class='posted_info desc lighter ipsType_small'>
					{$this->lang->words['posted']} <abbr class="published" itemprop="commentTime" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr>
					<if test="isSolvedSausage:|:$post['post']['_isMarkedAnswered']">&nbsp; <span class='ipsBadge ipsBadge_green'>{$this->lang->words['topic_best_answer']}</span></if>
				</p>
				<if test="repHighlight:|:$this->settings['reputation_highlight'] AND $post['post']['rep_points'] >= $this->settings['reputation_highlight']">
					<p class='rep_highlight'>{parse replacement="popular_post"}<br />{$this->lang->words['popular_post']}</p>
				</if>
				<div itemprop="commentText" class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'>
					{$post['post']['post']}
					{$post['post']['attachmentHtml']}
					<br />
					<if test="postEditBy:|:$post['post']['edit_by']">
						<p class='edit'>
							{$post['post']['edit_by']}
							<if test="postEditByReason:|:$post['post']['post_edit_reason'] != ''">
								<br />
								<span class='reason'>{$post['post']['post_edit_reason']}</span>
							</if>
						</p>
					</if>
				</div>
				
				<if test="repButtonsLike:|: ! $topic['_isArchived']">
				{parse template="repButtons" group="global_other" params="$post['author'], array_merge( array( 'primaryId' => $post['post']['pid'], 'domLikeStripId' => 'like_post_' . $post['post']['pid'], 'domCountId' => 'rep_post_' . $post['post']['pid'], 'app' => 'forums', 'type' => 'pid', 'likeFormatted' => $post['post']['like']['formatted'] ), $post['post'] )"}
				</if>
								
				<if test="postSignature:|:$post['post']['signature']">
					{$post['post']['signature']}
				</if>
				
				<if test="controlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">
					<ul id='postControlsUnapproved_{$post['post']['pid']}' class='post_controls clear clearfix'>
						<if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">
							<li class='post_del'>
								<a class='ipsButton_secondary' href='{parse url="module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=deletedo&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;selectedpids[]={$post['post']['pid']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' onclick='if( !confirm("{$this->lang->words['post_delete_confirm']}") ){ return false; }' >{$this->lang->words['post_delete']}</a>
							</li>
						</if>
						<li class='post_toggle toggle_post' id='toggle_post_{$post['post']['pid']}' style='display: none'>
							<a class='ipsButton_secondary' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=<if test="!$post['post']['queued']">unapprove<else />approve</if>&amp;selectedpids[{$post['post']['pid']}]={$post['post']['pid']}&amp;t={$topic['tid']}&amp;f={$forum['id']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['post_toggle_visible']}'><span id='toggletext_post_{$post['post']['pid']}'><if test="approveUnapprove:|:$post['post']['queued']==1">{$this->lang->words['post_approve']}<else />{$this->lang->words['post_unapprove']}</if></span></a>
						</li>
						<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">
							<li class='post_edit'><a href='{parse url="module=post&amp;section=post&amp;do=edit_post&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;p={$post['post']['pid']}&amp;page={$this->request['page']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='ipsButton_secondary edit_post' id='edit_post_{$post['post']['pid']}'>{$this->lang->words['post_edit']}</a></li>
						</if>
					</ul>
				</if>
			
				<ul id='postControlsNormal_{$post['post']['pid']}' class='post_controls clear clearfix' <if test="hideNormalControlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">style='display:none'</if>>
					<li class='top hide'><a href='#ipboard_body' class='top' title='{$this->lang->words['back_top']}'>{$this->lang->words['back_top']}</a></li>
					<if test="canAnswerTopic:|:$topic['Perms']['canAnswerTopic'] && $post['post']['post_count'] > 1">
						<if test="isAnswered:|:$post['post']['_isMarkedAnswered']">
							<if test="canUnanswer:|:$post['post']['_canMarkUnanswered']">
								<li><a href="{parse url="module=extras&amp;section=answer&amp;do=unanswer&amp;t={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}"  data-post-button="unanswer" class='ipsButton_secondary important' data-pid="{$post['post']['pid']}"><img class='icon' src="{$this->settings['img_url']}/cross_white_10px.png">{$this->lang->words['topic_mark_unsolved']}</a></li>
							</if>
						<else />
							<if test="notAnswered:|:$post['post']['_canAnswer'] && $topic['topic_firstpost'] != $post['post']['pid']">
								<li><a href="{parse url="module=extras&amp;section=answer&amp;do=answer&amp;t={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}"  data-post-button="answer" class='ipsButton_secondary' data-pid="{$post['post']['pid']}"><img class='icon' src="{$this->settings['img_url']}/tick_10px.png">{$this->lang->words['topic_mark_solved']}</a></li>
							</if>
						</if>
					</if>
					<if test="replyButtonWarn:|:!$this->memberData['unacknowledged_warnings'] && !$this->memberData['restrict_post']">
						<if test="replyButton:|:$post['post']['_canReply']">
							<li><a href="{parse url="module=post&amp;section=post&amp;do=reply_post&amp;f={$this->request['f']}&amp;t={$this->request['t']}&amp;qpid={$post['post']['pid']}" base="publicWithApp"}"  class='_ips_trigger_quote ipsButton_secondary' pid="{$post['post']['pid']}" title="{$this->lang->words['tt_reply_to_post']}">{$this->lang->words['post_reply']}</a></li>
							<if test="multiquote:|:!empty( $post['post']['_mq_selected'] )">
								<li class='selected multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>
							<else />
								<li class='multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>
							</if>
								<a href="{parse url="module=post&amp;section=post&amp;do=reply_post&amp;f={$this->request['f']}&amp;t={$this->request['t']}&amp;qpid={$post['post']['pid']}" base="publicWithApp"}" title="{$this->lang->words['quote_with_mq']}" class='ipsButton_secondary'>{$this->lang->words['mq']}</a>
							</li>
						</if>
					</if>
					<if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">
						<li id='del_post_{$post['post']['pid']}' class='post_del'>
							<a href='{parse url="module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=deletedo&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;selectedpids[]={$post['post']['pid']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' class='delete_post' onclick='return false;' >{$this->lang->words['post_delete']}</a>
						</li>
					</if>
					<if test="canHide:|:$post['post']['_softDelete'] && ! $topic['_isArchived']">
						<li id='hide_post_{$post['post']['pid']}'>
							<a href='{parse url="module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=delete&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;selectedpids[]={$post['post']['pid']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}' class='hide_post'>{$this->lang->words['post_hide']}</a>
						</li>
					</if>
					<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">
						<li class='post_edit'><a href='{parse url="module=post&amp;section=post&amp;do=edit_post&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;p={$post['post']['pid']}&amp;page={$this->request['page']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='edit_post' id='edit_post_{$post['post']['pid']}'>{$this->lang->words['post_edit']}</a></li>
					</if>
					<if test="canReportPost:|:$topic['_canReport'] and ! $topic['_isArchived']">						<li class='report'>
							<a href='{parse url="app=core&amp;module=reports&amp;rcom=post&amp;tid={$this->request['t']}&amp;pid={$post['post']['pid']}&amp;page={$this->request['page']}" base="public"}'>{$this->lang->words['report']}</a>
						</li>
						<if test="postIsReported:|:$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">
							<li class='report'>
								<a href="{$this->settings['base_url']}app=core&amp;module=reports&amp;section=reports&amp;do=show_report&amp;rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}" id='post-report-{$post['post']['pid']}' class='ipbmenu'> <span id="rstat-{$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}"><img src="{$this->settings['img_url']}/reports/post_alert_{$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['gfx']}.png" alt="" /></span> </a>
							</li>
						</if>
					</if>
				</ul>
				<if test="reportedPostData:|:! $topic['_isArchived'] AND $this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">
					<ul id='post-report-{$post['post']['pid']}_menucontent' class='ipbmenu_content report_menu'>
						<li><a href="{parse url="app=core&amp;module=reports&amp;do=show_report&amp;rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}" base="public"}" id='report_mark_{$post['post']['pid']}'><img src='{$this->settings['img_url']}/reports/mark_complete.png' alt='' /> {$this->lang->words['report_menu_mark_complete']}</a></li>
						<li><a href="{$this->settings['base_url']}app=core&amp;module=reports&amp;section=reports&amp;do=show_report&amp;rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}"><img src='{$this->settings['img_url']}/reports/view_report.png' alt='' /> {$this->lang->words['report_menu_view_report']}</a></li>
					</ul>
					<script type="text/javascript">
						$('report_mark_{$post['post']['pid']}').observe('click',
						 	ipb.global.updateReportStatus.bindAsEventListener(
								this, {$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']},2,2
							)
						);
					</script>
				</if>
			</div>
		</div>
	</div>
</if>
		
		<if test="initIgnoredPost:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">
			<script type='text/javascript'>
				ipb.topic.setPostHidden( {$post['post']['pid']} );
				$('unhide_post_{$post['post']['pid']}').show();
			</script>
		</if>
		<hr />
		
		<if test="adCodeCheck:|:$post['post']['_adCode']">
			{$post['post']['_adCode']}
		</if>
<script type="text/javascript">
var pid = parseInt({$post['post']['pid']});
if ( pid > ipb.topic.topPid ){
	ipb.topic.topPid = pid;
}
<if test="sDeletedNotMQ:|:! $post['post']['_isDeleted']">
	// Show multiquote for JS browsers
	if ( $('multiq_{$post['post']['pid']}') )
	{
		$('multiq_{$post['post']['pid']}').show();
	}
	
	if( $('toggle_post_{$post['post']['pid']}') )
	{
		$('toggle_post_{$post['post']['pid']}').show();
	}
	
	// Add perm data
	ipb.topic.deletePerms[{$post['post']['pid']}] = { 'canDelete' : {parse expression="intval($post['post']['_can_delete'])"}, 'canSoftDelete' : {parse expression="intval($post['post']['_softDelete'])"} };
</if>
</script>]]></template_content>
      <template_name>post</template_name>
      <template_data>$post, $displayData, $topic, $forum=array()</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[{$post['post']}
    {$post['attachmentHtml']}
	<br />
	<if test="editByQe:|:$post['edit_by']">
		<p class='edit'>
			{$post['edit_by']}
			<if test="editReasonQe:|:$post['post_edit_reason'] != ''">
				<br />
				<span class='reason'>{$post['post_edit_reason']}</span>
			</if>
		</p>
	</if>]]></template_content>
      <template_name>quickEditPost</template_name>
      <template_data>$post</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<div id='attach_wrap' class='clearfix'>
	<h4>{$title}</h4>
	<ul>
		<foreach loop="attach:$data as $file">
			<li class='<if test="attachType:|:$type == 'attach'">attachment</if>'>
				{$file}
			</li>
		</foreach>
	</ul>
</div>]]></template_content>
      <template_name>show_attachment_title</template_name>
      <template_data><![CDATA[$title="",$data="",$type=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<a href="{parse url="app=core&amp;module=attach&amp;section=attach&amp;attach_id={$data['attach_id']}" base="current"}" title="{$this->lang->words['attach_dl']}"><img src="{$this->settings['public_dir']}<if test="hasmime:|:$data['mime_image']">{$data['mime_image']}<else />style_extra/mime_types/unknown.gif</if>" alt="{$this->lang->words['attached_file']}" /></a>
&nbsp;<a href="{parse url="app=core&amp;module=attach&amp;section=attach&amp;attach_id={$data['attach_id']}" base="current"}" title="{$this->lang->words['attach_dl']}"><strong>{$data['attach_file']}</strong></a> &nbsp;&nbsp;<span class='desc'><strong>{$data['file_size']}</strong></span>
&nbsp;&nbsp;<span class="desc lighter">{$data['attach_hits']} {$this->lang->words['attach_hits']}</span>]]></template_content>
      <template_name>Show_attachments</template_name>
      <template_data><![CDATA[$data=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<a class='resized_img' rel='lightbox[{$data['attach_rel_id']}]' id='ipb-attach-url-{$data['_attach_id']}' href="{$this->settings['upload_url']}/{$data['o_location']}" title="{$data['location']} - {$this->lang->words['attach_size']} {$data['file_size']}"><img itemprop="image" src="{$this->settings['upload_url']}/{$data['o_location']}" class='bbc_img linked-image' alt="{$data['location']}" /></a>
<if test="$parse_og">
	{parse expression="$this->registry->output->addMetaTag( 'og:image', "{$this->settings['upload_url']}/{$data['o_location']}", false )"}
</if>]]></template_content>
      <template_name>Show_attachments_img</template_name>
      <template_data><![CDATA[$data=array(), $parse_og=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<a class='resized_img' rel='lightbox[{$data['attach_rel_id']}]' id='ipb-attach-url-{$data['_attach_id']}' href="{$this->settings['upload_url']}/{$data['a_location']}" title="{$data['location']} - {$this->lang->words['attach_size']} {$data['file_size']}"><img itemprop="image" src="{$this->settings['upload_url']}/{$data['t_location']}" id='ipb-attach-img-{$data['_attach_id']}' style='width:{$data['t_width']};height:{$data['t_height']}' class='attach' width="{$data['t_width']}" height="{$data['t_height']}" alt="{$data['location']}" /></a>
<if test="$parse_og">
	{parse expression="$this->registry->output->addMetaTag( 'og:image', "{$this->settings['upload_url']}/{$data['t_location']}", false )"}
</if>]]></template_content>
      <template_name>Show_attachments_img_thumb</template_name>
      <template_data><![CDATA[$data=array(), $parse_og=""]]></template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<php>
	$_sD = $sdData[ $post['post']['pid'] ];
	$_sM = $_sD;
</php>
<div class='post_block hentry clear moderated' id='post_id_{$post['post']['pid']}'>
	<a id='entry{$post['post']['pid']}'></a>
	<div class='post_wrap'>
		<if test="postMid:|:$post['author']['member_id']">
			<h3 class='row2'>
		<else />
			<h3 class='row2 guest'>
		</if>
			<if test="postModCheckbox:|:$post['post']['moddable']">
				<span class='post_id right'>
					<a data-entry-pid='{$post['post']['pid']}' style='display:none'>#{$post['post']['post_count']}</a>
					<label for='checkbox_{$post['post']['pid']}' class='post_mod hide'>{$this->lang->words['mod_select_post']}</label><input type='checkbox' id='checkbox_{$post['post']['pid']}' name='selectedpids[]' value='{$post['post']['pid']}' class='post_mod'<if test="postModSelected:|:!empty( $post['post']['_pid_selected'] )"> checked='checked'</if> data-status='{$post['post']['queued']}' />
				</span>
			</if>
				<if test="postMember:|:$post['author']['member_id']">
						<span class="author vcard">{parse template="userHoverCard" group="global" params="$post['author']"}</span>
				<else />
					{parse template="userHoverCard" group="global" params="$post['author']"}
				</if>
				<if test="postIp:|:$post['post']['_show_ip']">
					<span class='ip right ipsType_small'>({$this->lang->words['ip']}:
					<if test="postAdmin:|:$post['author']['g_access_cp']">
						<em>{$this->lang->words['ip_private']}</em>
					<else />
						<a href="{parse url="app=core&amp;module=modcp&amp;fromapp=members&amp;tab=iplookup&amp;ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a>
					</if>
					)</span>
				</if>
			</h3>
		<div class='post_body' id='postsDelete_{$post['post']['pid']}' style='margin-left: 0;'>
			<div class='post entry-content' style='padding:10px'>
				{$this->lang->words['post_deleted_by']} {parse template="userHoverCard" group="global" params="$_sD"} {parse date="$_sD['sdl_obj_date']" format="long"}.
				<if test="showReason:|:$post['post']['_softDeleteReason']">
					<p class='desc'><if test="$_sD['sdl_obj_reason']">{$_sD['sdl_obj_reason']}<else />{$this->lang->words['no_reason_given']}</if></p>
				</if>
			</div>
		</div>
		<if test="showPost:|:$post['post']['_softDeleteContent']">
		<div id='postsDeleteShow_{$post['post']['pid']}' style='display:none'>
			<div class='author_info'>
				{parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array()"}
			</div>
			<div class='post_body'>
				<p class='posted_info'>
					{$this->lang->words['posted']} <abbr class="published" title="{parse expression="@date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr>
				</p>
				<div class='post entry-content'>
					{$post['post']['post']}
					{$post['post']['attachmentHtml']}
					<br />
					<if test="postEditBy:|:$post['post']['edit_by']">
						<p class='edit'>
							{$post['post']['edit_by']}
							<if test="postEditByReason:|:$post['post']['post_edit_reason'] != ''">
								<br />
								<span class='reason'>{$post['post']['post_edit_reason']}</span>
							</if>
						</p>
					</if>
				</div>
				<if test="postSignature:|:$post['post']['signature']">
					{$post['post']['signature']}
				</if>
			</div>
		</div>
		</if>
		<if test="sdOptions:|:$post['post']['_softDeleteContent'] OR $post['post']['_softDeleteRestore']">
			<ul class='post_controls clear clearfix'>
				<if test="$post['post']['_can_delete']">
					<li>
						<a class='ipsButton_secondary' href='{parse url="module=moderate&amp;section=moderate&amp;do=04&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;p={$post['post']['pid']}&amp;pid={$post['post']['pid']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;nr=1" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' class='sd_remove' onclick='if( !confirm("{$this->lang->words['post_delete_confirm']}") ){ return false; }'>{$this->lang->words['post_delete']}</a>
					</li>
				</if>
				<if test="$post['post']['_softDeleteRestore'] AND !$topic['_isArchived']">
					<li class='post_toggle sd_restore' id='restoreContent_{$post['post']['pid']}'>
						<a class='ipsButton_secondary' href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=postchoice&amp;tact=sundelete&amp;selectedpids[{$post['post']['pid']}]={$post['post']['pid']}&amp;pid={$post['post']['pid']}&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;auth_key={$this->member->form_hash}&amp;nr=1" base="public"}'><span>{$this->lang->words['sdpost_restore']}</span></a>
					</li>
				</if>
				<if test="$post['post']['_softDeleteContent']">
					<li class='post_toggle sd_content' id='seeContent_{$post['post']['pid']}'>
						<a href='#'><span>{$this->lang->words['togglepostcontent']}</span></a>
					</li>
				</if>
			</ul>
		</if>
	</div>
</div>]]></template_content>
      <template_name>softDeletedPostBit</template_name>
      <template_data>$post, $sdData, $topic</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<foreach loop="$posts as $t => $post">
	{parse template="userSmallPhoto" group="global" params="array_merge( $post, array( 'pp_small_photo' => $post['pp_thumb_photo'], '_customClass' => 'ipsUserPhoto_medium' ) )"}
	<div class='preview_col'>
		<p class='preview_info'>
			<strong><if test="$post['members_display_name']">{parse template="userHoverCard" group="global" params="$post"}<else />{$this->settings['guest_name_pre']}{$post['author_name']}{$this->settings['guest_name_suf']}</if></strong> <if test="$t != 'search'">{$this->lang->words['tg_madethe']} <a href="{parse url="showtopic={$topic['tid']}&amp;findpost={$post['pid']}" seotitle="{$topic['title_seo']}" template="showtopic" base="public"}">{$this->lang->words['tg_'.$t]}</a><else />{$this->lang->words['tg_'.$t]}</if>
		</p>
		{$post['post']}
	</div>
	<br class='clear' />
</foreach>
<br class='clear' />
<a href='{parse url="showtopic={$topic['tid']}" base="public" template="showtopic" seotitle="{$topic['title_seo']}"}' class='ipsButton'>{$this->lang->words['tg_gototopic']}</a>
<if test="! $topic['_lastRead'] OR $topic['_unreadPosts']">
	&nbsp;&nbsp;<span class='desc'>
		<if test="$topic['_unreadPosts']">
			{$topic['_unreadPosts']} {$this->lang->words['newpoststp']}
			&middot; <a href='{parse url="showtopic={$topic['tid']}&amp;view=getnewpost" base="public" template="showtopic" seotitle="{$topic['title_seo']}"}'>{$this->lang->words['tg_go_last_post']}</a>
		</if>
		<a data-clicklaunch="topicMarkRead" data-tid="{$topic['tid']}" href="{parse url="showtopic={$topic['tid']}&amp;view=getnewpost" base="public" template="showtopic" seotitle="{$topic['title_seo']}"}"><if test="$topic['_unreadPosts']">&middot; </if>{$this->lang->words['mark_topic_read']}</a>
	</span>
</if>]]></template_content>
      <template_name>topicPreview</template_name>
      <template_data>$topic, $posts</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<if test="allowRating:|:$forum['forum_allow_rating']">
{parse js_module="rating"}
</if>
{parse js_module="topic"}
<script type="text/javascript">
//<!#^#|CDATA|
	ipb.topic.inSection    = 'topicview';
	ipb.topic.topic_id     = {$topic['tid']};
	ipb.topic.forum_id     = {$forum['id']};
	ipb.topic.redirectPost = 1;
	ipb.topic.start_id     = {parse expression="$this->registry->getClass('topics')->pageToSt( intval($this->request['page']) )"};
	ipb.topic.page_id      = {parse expression="intval($this->request['page'])"};
	ipb.topic.topPid       = 0;
	ipb.topic.counts       = { postTotal: {parse expression="intval($topic['posts']+1)"},
							  curStart:  ipb.topic.start_id,
							  perPage:   {parse expression="intval($this->settings['display_max_posts'])"} };
	//Search Setup
	ipb.vars['search_type']			= 'forum';
	ipb.vars['search_type_id']		= {$forum['id']};
	ipb.vars['search_type_2']		= 'topic';
	ipb.vars['search_type_id_2']	= {$topic['tid']};
	
	<if test="canDeleteUrls:|:!$this->member->is_not_human">
	// Delete stuff set up
	ipb.topic.deleteUrls['hardDelete'] = new Template( ipb.vars['base_url'] + "app=forums&module=moderate&section=moderate&do=04&f={$forum['id']}&t={$topic['tid']}&page={$this->request['page']}&auth_key={$this->member->form_hash}&p=#{pid}" );
	ipb.topic.deleteUrls['softDelete'] = new Template( ipb.vars['base_url'] + "app=forums&module=moderate&section=moderate&do=postchoice&tact=sdelete&t={$topic['tid']}&f={$forum['id']}&auth_key={$this->member->form_hash}&selectedpids[#{pid}]=#{pid}&pid=#{pid}" );
	</if>
	
	ipb.topic.modPerms	  = [];
	<if test="$this->memberData['g_is_supmod']">
		ipb.topic.modPerms['approve'] = 1;
		ipb.topic.modPerms['delete'] = 1;
		ipb.topic.modPerms['hide'] = 1;
		ipb.topic.modPerms['unhide'] = 1;
		ipb.topic.modPerms['merge'] = 1;
		ipb.topic.modPerms['split'] = 1;
		ipb.topic.modPerms['move'] = 1;
	<else />
		<if test="isset( $this->memberData['forumsModeratorData'][ $forum['id'] ] )">
			ipb.topic.modPerms['approve'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['post_q']};
			ipb.topic.modPerms['delete'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['delete_post']};
			ipb.topic.modPerms['hide'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['bw_mod_soft_delete']};
			ipb.topic.modPerms['unhide'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['bw_mod_un_soft_delete']};
			ipb.topic.modPerms['merge'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['split_merge']};
			ipb.topic.modPerms['split'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['split_merge']};
			ipb.topic.modPerms['move'] = {$this->memberData['forumsModeratorData'][ $forum['id'] ]['split_merge']};
		</if>
	</if>
	
	ipb.templates['post_moderation'] = new Template("<div id='comment_moderate_box' class='ipsFloatingAction' style='display: none'><span class='desc'>{$this->lang->words['comment_action_count']} </span><select id='tactInPopup' class='input_select'><option value='approve'>{$this->lang->words['cpt_approve']}</option><option value='delete'>{$this->lang->words['cpt_hide']}</option><option value='sundelete'>{$this->lang->words['cpt_undelete']}</option><option value='deletedo'>{$this->lang->words['cpt_delete']}</option><option value='merge'>{$this->lang->words['cpt_merge']}</option><option value='split'>{$this->lang->words['cpt_split']}</option><option value='move'>{$this->lang->words['cpt_move']}</option></select>&nbsp;&nbsp;<input type='button' class='input_submit' id='submitModAction' value='{$this->lang->words['comments_act_go']}' /></div>");
	
//|#^#]>
</script>
<if test="disablelightbox:|:!$this->settings['disable_lightbox']">
{parse template="include_lightbox" group="global" params=""}
</if>
<if test="followsismember:|:$this->memberData['member_id']">
{$displayData['follow_data']}
</if>
{parse template="userSmallPhoto" group="global" params="array_merge( $topic['_starter'], array( '_customClass' => 'ipsUserPhoto_medium' ) )"}
<div itemscope itemtype="http://schema.org/Article" class='ipsBox_withphoto'>
	<if test="topicRating:|:$forum['forum_allow_rating']">
		<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" class='rating ipsType_smaller'>
			<if test="$topic['_allow_rate']">
				<strong>{$this->lang->words['js_rate_me']}</strong>&nbsp;&nbsp;
			</if>
			<if test="$topic['_allow_rate']">
				<a href='{parse url="app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=1&amp;secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_1' title='{$this->lang->words['top_js_1star']}'>
			</if>
			<if test="rate1:|:$topic['_rate_int'] >= 1">
				{parse replacement="rate_on"}
			<else />
				{parse replacement="rate_off"}
			</if>
			<if test="$topic['_allow_rate']">
				</a><a href='{parse url="app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=2&amp;secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_2' title='{$this->lang->words['top_js_2star']}'>
			</if>
			<if test="rate2:|:$topic['_rate_int'] >= 2">
				{parse replacement="rate_on"}
			<else />
				{parse replacement="rate_off"}
			</if>
			<if test="$topic['_allow_rate']">
				</a><a href='{parse url="app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=3&amp;secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_3' title='{$this->lang->words['top_js_3star']}'>
			</if>
			<if test="rate3:|:$topic['_rate_int'] >= 3">
				{parse replacement="rate_on"}
			<else />
				{parse replacement="rate_off"}
			</if>
			<if test="$topic['_allow_rate']">
				</a><a href='{parse url="app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=4&amp;secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_4' title='{$this->lang->words['top_js_4star']}'>
			</if>
			<if test="rate4:|:$topic['_rate_int'] >= 4">
				{parse replacement="rate_on"}
			<else />
				{parse replacement="rate_off"}
			</if>
			<if test="$topic['_allow_rate']">
				</a><a href='{parse url="app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=5&amp;secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_5' title='{$this->lang->words['top_js_5star']}'>
			</if>
			<if test="rate5:|:$topic['_rate_int'] >= 5">
				{parse replacement="rate_on"}
			<else />
				{parse replacement="rate_off"}
			</if>
			<if test="$topic['_allow_rate']">
				</a>
			</if>
			<span id='rating_text'>
				<if test="hasRates:|:$topic['topic_rating_hits'] > 0">
					<span itemprop="ratingCount" id='rating_hits'>{$topic['topic_rating_hits']}</span> <span>{$this->lang->words['poll_s_votes']}</span>
					<meta itemprop="ratingValue" content="{parse expression="floor($topic['_rate_int'])"}" />
				</if>
			</span>
			<if test="$topic['_allow_rate']">
				<script type='text/javascript'>
				//<!#^#|CDATA|
					rating = new ipb.rating( 'topic_rate_', {
										url: ipb.vars['base_url'] + 'app=forums&module=ajax&section=topics&do=rateTopic&t={$topic['tid']}&md5check=' + ipb.vars['secure_hash'],
										cur_rating: {$topic['_rate_int']},
										rated: <if test="jsHasRates:|:$topic['_rating_value'] != -1">1<else />0</if>,
										allow_rate: {$topic['_allow_rate']},
										multi_rate: 1,
										show_rate_text: true
									  } );
				//|#^#]>
				</script>
			</if>
		</span>
	</if>
	<h1 itemprop="name" class='ipsType_pagetitle'>{$topic['title']}</h1>
	<div class='desc lighter blend_links'>
		 {$this->lang->words['started_by']} <span itemprop="creator">{parse template="userHoverCard" group="global" params="$topic['_starter']"}</span>, <span itemprop="dateCreated" datetime="{parse date="$topic['start_date']" format="YMD" relative="false"}">{parse date="$topic['start_date']" format="SHORT"}</span>
	</div>
	<if test="hasTags:|:is_array($topic['tags'])">
		{$topic['tags']['formatted']['parsedWithoutComma']}
		<br />
	</if>
	<meta itemprop="interactionCount" content="UserComments:{parse expression="intval($topic['posts'] + 1)"}" />
</div>
<if test="bestAnswer:|:$displayData['best_answer_post_data']">
<br />
<div class='post post_block feature_box entry-content'>
	<if test="canSeeProfiles1:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $displayData['best_answer_post_data']['author'] ) )">
	<a itemprop="url" href="{parse url="showuser={$displayData['best_answer_post_data']['author']['member_id']}" template="showuser" seotitle="{$displayData['best_answer_post_data']['author']['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$displayData['best_answer_post_data']['author']['members_display_name']}" class='ipsUserPhotoLink'>
	</if>
	<img itemprop="image" src='{$displayData['best_answer_post_data']['author']['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_medium left' />
	<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $displayData['best_answer_post_data']['author'] ) )">
	</a>
	</if>
	<div class="ipsBox_withphoto">
	<p class='ipsType_sectiontitle'>
		<span class='ipsBadge ipsBadge_green'>{$this->lang->words['topic_best_answer']}</span>
		{parse template="userHoverCard" group="global" params="$displayData['best_answer_post_data']['author']"},
		<if test="samePageBA:|:isset($post_data[ $displayData['best_answer_post_data']['post']['pid'] ])">
			<if test="hasPagesBA:|:$this->request['page']">
				<a href='{parse url="showtopic={$topic['tid']}&amp;page={$this->request['page']}{$post_data[ $displayData['best_answer_post_data']['post']['pid'] ]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}'>{parse date="$displayData['best_answer_post_data']['post']['post_date']" format="long"}</a>
			<else />
				<a href='{parse url="showtopic={$topic['tid']}{$post_data[ $displayData['best_answer_post_data']['post']['pid'] ]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}'>{parse date="$displayData['best_answer_post_data']['post']['post_date']" format="long"}</a>
			</if>
		<else />
			<a href="{parse url="app=forums&amp;module=forums&amp;section=findpost&amp;pid={$displayData['best_answer_post_data']['post']['pid']}" base="public"}">{parse date="$displayData['best_answer_post_data']['post']['post_date']" format="long"}</a>
		</if>
	</p>
	<p class='ipsPad_top desc'>
		{$displayData['best_answer_post_data']['post']['post']}
		<if test="samePageBA2:|:isset($post_data[ $displayData['best_answer_post_data']['post']['pid'] ])">
			<if test="hasPagesBA2:|:$this->request['page']">
				<a href='{parse url="showtopic={$topic['tid']}&amp;page={$this->request['page']}{$post_data[ $displayData['best_answer_post_data']['post']['pid'] ]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}'>
			<else />
				<a href='{parse url="showtopic={$topic['tid']}{$post_data[ $displayData['best_answer_post_data']['post']['pid'] ]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}'>
			</if>
		<else />
			<a href="{parse url="app=forums&amp;module=forums&amp;section=findpost&amp;pid={$displayData['best_answer_post_data']['post']['pid']}" base="public"}">
		</if>
			<span class='ipsBadge has_icon ipsBadge_lightgrey'>{$this->lang->words['answer_gotopost']} <img class='icon' src="{$this->settings['img_url']}/right_white_10px.png"></span></a>
	</p>
	</div>
</div>
</if>
<if test="topicHasBeenHidden:|:$topic['approved'] == -1">
	<br />
	<div class='message error'>
		{parse expression="sprintf( $this->lang->words['tdb__forumindex'], $this->registry->output->getTemplate('global')->userHoverCard($topic['sdData']) )"} {parse date="$topic['sdData']['sdl_obj_date']" format="long"}
		<if test="showReason:|:$this->registry->getClass('class_forums')->canSeeSoftDeleteReason( $forum['id'] )">
			<br /><span><if test="$topic['sdData']['sdl_obj_reason']">{$topic['sdData']['sdl_obj_reason']}<else />{$this->lang->words['tdb__noreasongi']}</if></span>
		</if>
		<br /><br />
		<if test="tbdSoftRestore:|:$this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][ $forum['id'] ]['bw_mod_un_soft_delete_topic']">
			<a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum['id']}&amp;t={$topic['tid']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;do=sundelete" base="public"}' title='{$this->lang->words['dl_ths_restore']}' class='ipsButton_secondary'>{$this->lang->words['dl_ths_restore']}</a>
		</if>
		<if test="tbdRestore:|:$this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][ $forum['id'] ]['delete_topic']">
			<a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum['id']}&amp;page={$this->request['page']}&amp;t={$topic['tid']}&amp;auth_key={$this->member->form_hash}&amp;do=08" base="public"}' title='{$this->lang->words['dl_ths_delete']}' class='ipsButton_secondary important'>{$this->lang->words['dl_ths_delete']}</a>
		</if>
	</div>
</if>
<if test="topicHasBeenDeleted:|:$topic['approved'] == 2">
	<br />
	<div class='message error'>
		{$this->lang->words['topic_deleted']}
		<br /><br />
		<a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=topic_restore&amp;t={$topic['tid']}&amp;f={$forum['id']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['dl_ths_restore']}' class='ipsButton_secondary'>{$this->lang->words['restore_post']}</a>
		<a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;do=09&amp;t={$topic['tid']}&amp;f={$forum['id']}&amp;auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['dl_ths_delete']}' class='ipsButton_secondary'>{$this->lang->words['perm_delete_post']}</a>
	</div>
</if>
<br />
<div class='topic_controls'>
	{$topic['SHOW_PAGES']}
	{parse template="archiveStatusMessage" group="topic" params="$topic,$forum"}
	<if test="isArchivedPostBox:|:!$topic['_isArchived']">
		<ul class='topic_buttons'>
			<if test="closedButton:|:$displayData['reply_button']['image'] == 'locked'">
				<li class='important'>
					<if test="pollOnly:|:isset($displayData['poll_data']['poll']['poll_only']) && $displayData['poll_data']['poll']['poll_only']">
						<if test="closedButtonLink:|:$displayData['reply_button']['url']">
							<a href='{$displayData['reply_button']['url']}' accesskey='r'>{parse replacement="lock_icon"} {$this->lang->words['top_poll_only_reply']}</a>
						<else />
							<span>{parse replacement="lock_icon"} {$this->lang->words['top_poll_only']}</span>
						</if>
					<else />
						<if test="closedButtonLink:|:$displayData['reply_button']['url']">
							<a href='{$displayData['reply_button']['url']}' accesskey='r'>{parse replacement="lock_icon"} {$this->lang->words['top_locked_reply']}</a>
						<else />
							<span>{parse replacement="lock_icon"} {$this->lang->words['top_locked']}</span>
						</if>
					</if>
				</li>
			<else />
				<if test="replyButton:|:$displayData['reply_button']['image']">
					<if test="replyButtonLink:|:$displayData['reply_button']['url']">
						<li><a href='{$displayData['reply_button']['url']}' title='{$this->lang->words['topic_add_reply']}' accesskey='r'>{$this->lang->words['topic_add_reply']}</a></li>
					<else />
						<li class='disabled'><span><if test="isMemberTop:|: ! $this->memberData['member_id']">{$this->lang->words['topic_no_reply_guest']}<else />{$this->lang->words['top_cannot_reply']}</if></span></li>
					</if>
				</if>
			</if>
			<if test="topicDescription:|:$topic['hasUnreadPosts'] AND ( $topic['posts'] + 1 ) > $this->settings['display_max_posts']">
				<li class='non_button'><a href='{parse url="showtopic={$topic['tid']}&amp;view=getnewpost" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' title='{$this->lang->words['first_unread_post']}'>{$this->lang->words['go_to_first_unread']}</a></li>
			</if>
			<if test="modOptions:|:$displayData['mod_links'] AND ( $this->memberData['is_mod'] OR $this->memberData['member_id'] == $topic['starter_id'] )">
				<li class='non_button'><a href='#' id='topic_mod_options' title='{$this->lang->words['topic_moderation']}'>{$this->lang->words['topic_moderation']}</a></li>
			</if>
		</ul>
	</if>
</div>
<if test="modOptionsDropdown:|:$displayData['mod_links'] AND ( $this->memberData['is_mod'] OR $this->memberData['member_id'] == $topic['starter_id'] )">
<ul class='ipbmenu_content' id='topic_mod_options_menucontent'  style='display:none'>
	<foreach loop="mod_links:$displayData['mod_links'] as $_mod_link">
		<li><a <if test="isDelete:|:$_mod_link['option'] == '08'"> data-confirmaction="true"</if> href="{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;_fromTopic=1&amp;do={$_mod_link['option']}" base="public"}" class='modlink_{$_mod_link['option']}'>{$_mod_link['value']}</a></li>
	</foreach>
	<if test="$topic['topic_queuedposts'] AND $this->registry->class_forums->canQueuePosts( $forum['id'] )">
		<li><a href="{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;_fromTopic=1&amp;do=p_approve" base="public"}">{parse expression="sprintf( $this->lang->words['nmo_p_approve'], $topic['topic_queuedposts'])"}</a></li>
	</if>
	<if test="$topic['topic_queuedposts'] AND $this->registry->class_forums->canHardDeletePosts( $forum['id'], $topic )">
		<li><a href="{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;_fromTopic=1&amp;do=p_delete_approve" base="public"}">{parse expression="sprintf( $this->lang->words['nmo_p_delete_approve'], $topic['topic_queuedposts'])"}</a></li>
	</if>
	<if test="$this->registry->class_forums->can_Un_SoftDeletePosts( $forum['id'] ) AND $topic['topic_deleted_posts']">
		<li><a href="{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;_fromTopic=1&amp;do=p_restore" base="public"}">{parse expression="sprintf( $this->lang->words['nmo_p_restore'], $topic['topic_deleted_posts'])"}</a></li>
	</if>
	<if test="$topic['topic_deleted_posts'] AND $this->registry->class_forums->canHardDeletePosts( $forum['id'], $topic )">
		<li><a href="{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;_fromTopic=1&amp;do=p_delete_softed" base="public"}">{parse expression="sprintf( $this->lang->words['nmo_p_delete_softed'], $topic['topic_deleted_posts'])"}</a></li>
	</if>
	<if test="mmModOptions:|:is_array( $displayData['multi_mod'] ) AND count( $displayData['multi_mod'] )">
		<foreach loop="mm:$displayData['multi_mod'] as $mm_data">
			<li><a href="{parse url="app=forums&amp;module=moderate&amp;section=multimod&amp;t={$topic['tid']}&amp;mm_id={$mm_data[0]}" base="public"}">{$mm_data[1]}</a></li>
		</foreach>
	</if>
</ul>
<script type='text/javascript'>
	document.observe("dom:loaded", function()
	{
		new ipb.Menu( $('topic_mod_options'), $('topic_mod_options_menucontent') );
	} );
</script>
</if>
<div class='maintitle clear clearfix'>
	<span class='ipsType_small'>
		<if test="$topic['posts']">
			{parse expression="sprintf( ( $topic['posts'] > 1 ) ? $this->lang->words['x_replies_to_topic'] : $this->lang->words['x_reply_to_topic'], $topic['posts'] )"}
		<else />
			{$this->lang->words['no_replies_to_topic']}
		</if>
	</span>
	<if test="reputationFilter:|:$this->settings['reputation_enabled'] && $this->settings['reputation_point_types'] != 'like' && $this->settings['reputation_show_content'] && $this->memberData['member_id'] != 0 && is_array($this->caches['reputation_levels'])">
		<a href='#rep_filter_menucontent' id='rep_filter' class='right ipsType_smaller'>
			<if test="repFilterDefault:|:$this->memberData['_members_cache']['rep_filter'] && $this->memberData['_members_cache']['rep_filter'] === '*'">
				{$this->lang->words['rep_f_viewing_all']}
			<else />
				{parse expression="sprintf( $this->lang->words['rep_f_hiding'], $this->memberData['_members_cache']['rep_filter'] )"}
			</if>
			<img src='{$this->settings['img_url']}/useropts_arrow.png' />
		</a>
	</if>
</div>
<if test="reputationFilter:|:$this->settings['reputation_enabled'] && $this->settings['reputation_point_types'] != 'like' && $this->settings['reputation_show_content'] && $this->memberData['member_id'] != 0 && is_array($this->caches['reputation_levels'])">
	<ul id='rep_filter_menucontent' class='ipbmenu_content with_checks' style='display: none'>
		<li <if test="optSelectStar:|:isset( $this->memberData['_members_cache']['rep_filter'] ) AND $this->memberData['_members_cache']['rep_filter'] === '*'">class='selected'</if>>
			<a href='{parse url="app=forums&amp;module=forums&amp;section=topics&amp;rep_filter=update&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;secure_key={$this->member->form_hash}&amp;page={$this->request['page']}&amp;rep_filter_set=*" base="public"}'>{$this->lang->words['rep_f_all_posts']}</a>
		</li>
		<if test="repFilterOptions:|:is_array($this->caches['reputation_levels'])">
			<foreach loop="reputation_levels:$this->caches['reputation_levels'] as $k => $v">
				<li <if test="optRepFilterSelected:|:isset( $this->memberData['_members_cache']['rep_filter'] ) AND $v['level_points'] == $this->memberData['_members_cache']['rep_filter']">class='selected'</if>>
					<a href='{parse url="app=forums&amp;module=forums&amp;section=topics&amp;rep_filter=update&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;secure_key={$this->member->form_hash}&amp;page={$this->request['page']}&amp;rep_filter_set={$v['level_points']}" base="public"}' rel='nofollow'>
						{$this->lang->words['rep_f_hide']} <strong>{$v['level_points']} {$this->lang->words['rep_f_points']}</strong>
					</a>
				</li>
			</foreach>
		</if>
	</ul>
	<script type='text/javascript'>
		new ipb.Menu( $('rep_filter'), $('rep_filter_menucontent') );
	</script>
</if>
<div class='topic hfeed clear clearfix'>
	
	{$displayData['poll_data']['html']}
<if test="hasPosts:|:is_array( $post_data ) AND count( $post_data )">
	<div class='ipsBox'>
		<div class='ipsBox_container' id='ips_Posts'>
			<foreach loop="post_data:$post_data as $post">
				{parse template="post" group="topic" params="$post, $displayData, $topic, $forum"}
			</foreach>
		</div>
	</div>
</if>
<hr />
<div class='topic_controls clear ipsPad_top_bottom_half'>
	<if test="$topic['SHOW_PAGES']">
		<div class='left'>{$topic['SHOW_PAGES']}</div>
	</if>
	<div class='ipsPad_top_slimmer right'>
		<if test="modOptions2:|:$displayData['mod_links'] AND ( $this->memberData['is_mod'] OR $this->memberData['member_id'] == $topic['starter_id'] )">
			<a href='#' id='topic_mod_options_alt'  class="ipsType_small desc" title='{$this->lang->words['topic_moderation']}'>{$this->lang->words['topic_moderation']}</a> &middot;
		</if>
		<a href='{parse url="showforum={$forum['id']}" template="showforum" seotitle="{$forum['name_seo']}" base="public"}' class="ipsType_small desc">{parse expression="sprintf( $this->lang->words['go_back_to'], $forum['name'] )"}</a>
		<if test="hasUnreadNext:|:$forum['_hasUnreadTopics']">
			&middot; <a href='{parse url="showtopic={$topic['tid']}&amp;view=getnextunread" template="showtopicnextunread" seotitle="{$topic['title_seo']}" base="public"}' rel="nofollow" class="ipsType_small desc">{$this->lang->words['goto_next_unread_topic']}</a>
		</if>
	</div>
</div>
<if test="fastReply:|:$displayData['fast_reply'] && $displayData['reply_button']['url']">
<hr />
<div class='ipsBox' id='fast_reply_wrapper'>
	<div class='ipsBox_container ipsPad'>
		<h1 class='ipsType_subtitle'>{$this->lang->words['topic_add_reply']}</h1>
		<if test="isLockedFR:|:$topic['state'] == 'closed'"><span class='error'>{$this->lang->words['locked_reply_fr']}</span><br /></if>
		<br />
		<if test="isMember:|:$this->memberData['member_id']">
			<a href="{parse url="showuser={$this->memberData['member_id']}" seotitle="{$this->memberData['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['your_profile']}' class='ipsUserPhotoLink left'><img src='{$this->memberData['pp_small_photo']}' alt="{parse expression="sprintf($this->lang->words['users_photo'],$this->memberData['members_display_name'])"}" class='ipsUserPhoto ipsUserPhoto_medium' /></a>
		<else />
			<div class='left'>{IPSMember::buildNoPhoto(0, 'small' )}</div>
		</if>
		<div class='ipsBox_withphoto clearfix'>
			<form action="{parse url="" base="public"}" method="post" id='ips_fastReplyForm'>
				<input type="hidden" name="app" value="forums" />
				<input type="hidden" name="module" value="post" />
				<input type="hidden" name="section" value="post" />
				<input type="hidden" name="do" value="reply_post_do" />
				<input type="hidden" name="f" value="{$forum['id']}" />
				<input type="hidden" name="t" value="{$topic['tid']}" />
				<input type="hidden" name="st" value="{$this->request['st']}" />
				<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
				<input type="hidden" name="fast_reply_used" value="1" />
				<input type="hidden" name="enableemo" value="yes" />
				<input type="hidden" name="enablesig" value="yes" />
				<if test="$this->memberData['auto_track']">
					<input type="hidden" name="enabletrack" value="1" />
				<else />
					<input type="hidden" name="enabletrack" value="{$topic['_isLiked']}" />
				</if>
				<if test="is_array($topic['_fastReplyStatusMessage']) AND count($topic['_fastReplyStatusMessage']) AND strlen($topic['_fastReplyStatusMessage'][0])">
					<div class='message'>{parse expression="implode( '<br />', $topic['_fastReplyStatusMessage'] )"}</div>
				</if>
				{parse editor="Post" options="array( 'type' => 'full', 'minimize' => 1, 'isTypingCallBack' => 'ipb.topic.isTypingCallBack', 'height' => 180, 'legacyMode' => 'off', 'autoSaveKey' => 'reply-' . $topic[tid], 'warnInfo' => 'fastReply', 'modAll' => $topic['_fastReplyModAll'] )"}
				<br />
				
				<fieldset class='right' id='fast_reply_controls'>
					<input type='submit' name="submit" class='input_submit' value='{$this->lang->words['qr_post']}' tabindex='50' accesskey='s' id='submit_post' />&nbsp;&nbsp;<input type='submit' name="preview" class='input_submit alt' value='{$this->lang->words['qr_more_opts']}' tabindex='51' id='full_compose' />
				</fieldset>
			</form>
		</div>
		<div id='ips_HasReplies'></div>
	</div>
</div>
<script type='text/javascript'>
	ipb.topic.fastReplyId	= '{$this->settings['_lastEditorId']}';
</script>
<else />
	<if test="loadJsManually:|:$displayData['load_editor_js']">
		{parse template="editorLoadJs" group="editors" params="array( 'smilies' => $displayData['smilies'] )"}
	</if>
</if>
<!-- Close topic -->
</div>
<!-- BOTTOM BUTTONS -->
<if test="canShare:|:!$forum['disable_sharelinks'] AND $this->settings['sl_enable']">
	<br />
	<div class='clear clearfix left'>
		{IPSLib::shareLinks( $topic['title'], $topic['posts'] > 300 ? array( 'skip' => array( 'print', 'download' ) ) : array() )}
	</div>
	<br />
</if>
<!-- SAME TAGGED -->
<if test="sameTagged:|:is_array( $displayData['same_tagged'] ) and count( $displayData['same_tagged'] )">
	<br />
	<div class='ipsBox'>
		<h3 class='maintitle'>{parse expression="sprintf( $this->lang->words['topic_same_tagged_as'], $topic['tags']['formatted']['string'] )"}</h3>
		<div class='ipsBox_container'>
			<table class='ipb_table topic_list'>
			<foreach loop="topics:$displayData['same_tagged'] as $tid => $tdata">
				{parse template="topic" group="forum" params="$tdata, $forum, array(), false"}
			</foreach>
			</table>
		</div>
	</div>
</if>
<!-- ACTIVE USERS -->
<if test="topicActiveUsers:|:is_array( $displayData['active_users'] ) AND count( $displayData['active_users'] )">
	<div id='topic_stats' class='statistics clear clearfix'>
		<div id='topic_active_users' class='active_users'>
			<h4 class='statistics_head'>{parse expression="sprintf( $this->lang->words['active_users_title'], $displayData['active_users']['stats']['total'] )"}</h4>
			<p class='statistics_brief desc'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $displayData['active_users']['stats']['members'], $displayData['active_users']['stats']['guests'], $displayData['active_users']['stats']['anon'] )"}</p>
			<if test="auNames:|:is_array( $displayData['active_users']['names'] ) AND count( $displayData['active_users']['names'] )">
				<br />
				<ul class='ipsList_inline'>
					{parse expression="implode( ', ', $displayData['active_users']['names'] )"}
				</ul>
			</if>
		</div>
	</div>
</if>
<if test="scrollToPost:|:$this->request['gopid']">
<script type='text/javascript'>
	var gopid = "{$this->request['gopid']}".replace(/&amp;/g, '');
	ipb.topic.scrollToPost( parseInt( gopid ) );
</script>
</if>
{parse template="include_highlighter" group="global" params="1"}
<div id='multiQuoteInsert' style='display: none;' class='ipsFloatingAction'>
	<span class='ipsButton no_width' id='mqbutton'>{$this->lang->words['mq_reply_quoted_posts']}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='#' id='multiQuoteClear' class='ipsType_smaller desc' title='{$this->lang->words['mq_clear_desc']}'>{$this->lang->words['mq_clear']}</a> &nbsp;&nbsp;&nbsp;
</div>
<form id="modform" method="post" action="{parse url="" base="public"}">
	<input type="hidden" name="app" value="forums" />
	<input type="hidden" name="module" value="moderate" />
	<input type="hidden" name="section" value="moderate" />
	<input type="hidden" name="do" value="postchoice" />
	<input type="hidden" name="f" value="{$topic['forum_id']}" />
	<input type="hidden" name="t" value="{$topic['tid']}" />
	<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
	<input type="hidden" name="st" value="{$this->request['st']}" />
	<input type="hidden" name="page" value="{$this->request['page']}" />
	<input type="hidden" value="{$this->request['selectedpids']}" name="selectedpidsJS" id='selectedpidsJS' />
	<input type="hidden" name="tact" id="tact" value="" />
</form>]]></template_content>
      <template_name>topicViewTemplate</template_name>
      <template_data>$forum, $topic, $post_data, $displayData</template_data>
      <template_removable>0</template_removable>
      <template_user_added>0</template_user_added>
      <template_user_edited>0</template_user_edited>
      <template_master_key>root</template_master_key>
    </template>
  </templategroup>
</templates>
