<?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[<if test="$this->settings['_onIndex'] = 1"></if>
<div class='master_list' id='board_index'>
	<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'] )">
				<h3 id="cat-{$_data['cat_data']['id']}">{$_data['cat_data']['name']}</h3>
				<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
					<if test="forumRedirect:|:$forum_data['redirect_on']">
						<div class='row touch-row' id="forum-{$forum_data['id']}">
							<div class='icon'>{parse replacement="f_redirect"}</div>
							<div class='rowContent'>
								<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'] ) )"}' class='title'>{$forum_data['name']}</a>
								<br /><span class='desc'>{$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}</span>
							</div>
						</div>
					<else />
						<div class='row touch-row' id="forum-{$forum_data['id']}">
							<div class='icon'>
								<if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
									<a 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"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>
										{parse replacement="f_unread"}
									</a>
								<else />
									{parse replacement="f_read"}
								</if>
							</div>
							<div class='rowContent'>
								<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'] ) )"}' class='title'>{$forum_data['name']}</a>
								<br />
								<span class='desc'>
									<span class='number'>{$forum_data['topics']}</span> {$this->lang->words['topics']}
									<if test="hideDateUrl:|:! $forum_data['hide_last_info']">
										&middot; {$this->lang->words['last_post']} {parse date="$forum_data['last_post']" format="SHORT"}
									</if>
								</span>
							</div>
						</div>
					</if>
				</foreach>
			</if>
		</foreach>
	</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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_boards</template_group>
      <template_content><![CDATA[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_boards</template_group>
      <template_content><![CDATA[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<h2>{parse expression="IPSText::truncate( $forum_data['name'] )"}</h2>
<if test="hassubforums:|:is_array( $sub_forum_data ) AND count( $sub_forum_data )">
	<div class='master_list' id='board_index'>
		<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']">
						<div id="forum-{$forum_data['id']}" class='row touch-row'>
							<div class='icon'>{parse replacement="f_redirect"}</div>
							<a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$forum_data['name']}' class='title'>{$forum_data['name']}</a>
							<br /><span class='desc'>{$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}</span>
						</div>
					<else />
						<div id="forum-{$forum_data['id']}" class='row touch-row'>
							<div class='icon'>
								<if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
									<a 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"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>
										{parse replacement="f_unread"}
									</a>
								<else />
									{parse replacement="f_read"}
								</if>
							</div>
							<a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$forum_data['name']}' class='title'>{$forum_data['name']}</a>
							<br /><span class='desc'>{$forum_data['topics']} {$this->lang->words['topics']}<if test="hideDateUrl:|:! $forum_data['hide_last_info']"> &middot; {$this->lang->words['last_post']} {parse date="$forum_data['last_post']" format="SHORT"}</if></span>
						</div>
					</if>
				</foreach>
			</if>
		</foreach>
	</div>
</if>
<div class='master_list'>
	<if test="showtopics:|:$forum_data['sub_can_post']">
		
		<!--<h2>{$forum_data['name']}</h2>-->
		<div class='controls'>
			<div class='buttons'>
				<if test="usercanpost:|:$forum_data['_user_can_post']">
					<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' class='button'>{$this->lang->words['topic_start']}</a>
				</if>
				{$forum_data['SHOW_PAGES']}
			</div>
		</div>
		
		<if test="hasannouncements:|:is_array( $announce_data ) AND count( $announce_data )">
			<foreach loop="announcements:$announce_data as $aid => $adata">
				<div class='row touch-row' id="ann-{$adata['announce_id']}">
					<div class='icon'>{parse replacement="t_announcement"}</div>
					<div class='rowContent'>
						<strong><a href="{parse url="showannouncement={$adata['announce_id']}&amp;f={$forum_data['id']}" seotitle="%%{$adata['announce_title']}%%" template="showannouncement" base="public"}" title='{$this->lang->words['view_announcement']}' class='title'>{$adata['announce_title']}</a></strong>
					</div>
				</div>
			</foreach>
		</if>
		
		<if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">
			<h3>{$this->lang->words['forum_topic_list']}</h3>
			<foreach loop="topics:$topic_data as $tid => $data">
				<if test="queuedtopic:|:$data['approved']">
					<div class='row touch-row <if test="$data['_unreadUrl']">unread</if> <if test="$data['_isDeleted']">moderated</if>' id="topic-{$data['tid']}">
						<div class='icon'>
							{parse template="generateTopicIcon" group="global_other" params="$data['folder_img'], $data['_unreadUrl']"}
						</div>
						<div class='rowContent'>
							<if test="topichasattach:|:$data['topic_hasattach']">
								{parse replacement="t_attach"}
							</if>
							<a href="{parse url="showtopic={$data['tid']}&amp;view=getnewpost" base="public" template="showtopic" seotitle="{$data['title_seo']}"}" class='topic_title title'>{$data['title']}</a>
							{$data['prefix']}
							<if test="multipages:|:isset( $data['pages'] ) AND is_array( $data['pages'] ) AND count( $data['pages'] )">
								<span class='mini_pagination'>
									{parse expression="sprintf( $this->lang->words['mini_page_count'], $data['pages'][0]['total'] )"}
								</span>
							</if>
							
							<br />
							<span class='subtext'>
								{parse format_number="$data['posts']"} <if test="replylang:|:intval($data['_posts']) == 1">{$this->lang->words['reply']}<else />{$this->lang->words['replies']}</if>: {$this->lang->words['lastby']} {$data['last_poster_name']}, {parse date="$data['last_post']" format="SHORT"}
							</span>
						</div>
					</div>
				</if>
			</foreach>
		<else />
			<div class='row no_messages'>
				{$this->lang->words['no_topics']}
			</div>
		</if>
		<div class='controls'>
			<div class='buttons'>
				<if test="usercanpost:|:$forum_data['_user_can_post']">
					<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' class='button'>{$this->lang->words['topic_start']}</a>
				</if>
				{$forum_data['SHOW_PAGES']}
			</div>
		</div>
	</if>	
</div>]]></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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<div class='master_list'>
	<div class='message'>{$this->lang->words['need_password_txt']}</div>
	
	<form action="{parse url="showforum={$fid}" base="public"}" method="post">
		<input type="hidden" name="L" value="1" />
	
		<h2>{$this->lang->words['need_password']}</h2>
		<div class='row'>
			{$this->lang->words['enter_forum_pass']}<br />
			<input type="password" size="30" name="f_password" id='forum_pass' class='input_text' />
		</div>
		<div class='submit'>
			<input type="submit" value="{$this->lang->words['f_pass_submit']}" class="input_submit" /> {$this->lang->words['or']} <a href='{parse url="" base="public"}' title='{$this->lang->words['cancel']}' class='cancel'>{$this->lang->words['cancel']}</a>
		</div>
	</form>
</div>]]></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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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>{$rules['title']}</h2>
<div class='general_box'>
	<h3>{$this->lang->words['forum_rules']}</h3>
	<p><br />{$rules['body']}</p>
</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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<!--no data in this master skin-->]]></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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_forum</template_group>
      <template_content><![CDATA[<if test="prefix:|:$text">
	<span class='topic_prefix'>{$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>mobile</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>mobile</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>mobile</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>mobile</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>mobile</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='ipsForm_vertical'>
		<div class='ipsField'>
			<label for='topic_title' class='ipsField_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']}" />
		</div>
	</div>
	<div class='submit'>
		<input type="submit" class='button' 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>
	</div>
</form>]]></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>mobile</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>mobile</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>mobile</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='ipsForm_vertical'>
		<div class='ipsField'>
			<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']}" />
		</div>
		<div class='ipsField'>
			<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>
		</div>
	</div>
			
	<div class='submit'>
		<input type="submit" class='button' 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>
	</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>mobile</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='generic_bar'></div>
<div class='post_form'>
	<fieldset class='row1'>
		<h3 class='bar'>{$this->lang->words['move_posts_option']}</h3>
		<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>
	</fieldset>
</div>
<br />
<h2 class='maintitle'>{$this->lang->words['move_topic_summary']}</h2>
<div class='generic_bar'></div>
<if test="movepostsloop:|:is_array( $posts ) AND count( $posts )">
	<foreach loop="posts:$posts as $row">
		<div class='post_block topic_summary'>
			<h3>{$row['author_name']}</h3>
			<p class='posted_info'>{$this->lang->words['move_posted']} {$row['date']}</p>
			<label for='checkbox_{$row['pid']}' class='post_mod hide'>{$this->lang->words['st_split']}</label>
			<input type='checkbox' id='checkbox_{$row['pid']}' name='selectedpids[{$row['pid']}]' value='{$row['pid']}' class='post_mod' checked='checked' />
			<div class='post_body'>
				<div class='post'>{$row['post']}</div>
			</div>
		</div>
	</foreach>
</if>
<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>mobile</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']}' />
	<h2 class='maintitle'>{$this->lang->words['top_move']}: {$forum['name']} &gt; {$topic['title']}</h2>
	<div class='ipsForm_vertical'>
		<div class='ipsField ipsField_select'>
			<label for='move_from'>{$this->lang->words['move_from']} <strong>{$forum['name']}</strong> {$this->lang->words['to']}</label><br />
			<select name="move_id" id='move_from' class='input_select'>{$forum_jump}</select>
		</div>
		<div class='ipsField'>
			<input type='checkbox' id='leave_link' class='input_check' name='leave' value='y' />
			<label for='leave_link'>{$this->lang->words['leave_link']}</label>
		</div>
	</div>
	<div class='submit'>
		<input type="submit" class='button' 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>
	</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>mobile</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>mobile</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>mobile</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>mobile</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>
	<h3>{$this->lang->words['dltt_remove_from_view_desc']}</h3>
	
	<div class='ipsForm_vertical'>
		<div class='ipsField'>
			<label for='delPop_reason'>{$this->lang->words['topic_hide_reason_default']}</label><br />
			<input type='text' class='input_text' name='deleteReason' id='delPop_reason' value='' style='width: 60%'  />
		</div>
	</div>
	
	<div class='submit'>
		<input type='submit' class='button' value='{$this->lang->words['topic_hide']}' />
	</div>
</form>]]></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>mobile</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']}' />
<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>mobile</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>
<h2 class='maintitle'>{$this->lang->words['st_top']}: {$forum['name']} &gt; {$topic['title']}</h2>
<div class='generic_bar'></div>
<div class='post_form'>
	<fieldset>
		<h3 class='bar'>{$this->lang->words['st_new_topic']}</h3>
		<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_desc'>{$this->lang->words['mt_new_desc']}</label>
				<input type="text" size="40" class='input_text' id='new_desc' maxlength="100" name="desc" 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>
	</fieldset>
</div>
<br />
<h2 class='maintitle'>{$this->lang->words['st_post']}</h2>
<div class='generic_bar'></div>
<if test="splitpostsloop:|:is_array( $posts ) AND count( $posts )">
	<foreach loop="split_posts:$posts as $row">
		<div class='post_block topic_summary'>
			<h3>{$row['author_name']}</h3>
			<p class='posted_info'>{$this->lang->words['move_posted']} {$row['date']}</p>
			<label for='checkbox_{$row['pid']}' class='post_mod hide'>{$this->lang->words['st_split']}</label>
			<input type='checkbox' id='checkbox_{$row['pid']}' name='selectedpids[{$row['pid']}]' value='{$row['pid']}' class='post_mod' checked='checked' />
			<div class='post_body'>
				<div class='post'>{$row['post']}</div>
			</div>
		</div>
	</foreach>
</if>
<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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_mod</template_group>
      <template_content><![CDATA[{parse striping="topicHistory" classes="row1,row2"}
<h2 class='maintitle'>{$this->lang->words['th_title']}</h2>
<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_desc']}</td>
		<td>{$topic['description']}</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>
			<if test="historystarter:|:$topic['starter_id']">
				<a href='{parse url="showuser={$topic['starter_id']}" base="public" seotitle="{$topic['seo_first_name']}" template="showuser"}' title='{$this->lang->words['view_profile']}'>{$topic['starter_name']}</a>
			<else />
				{$topic['starter_name']}
			</if>
		</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>
			<if test="historylastposter:|:$topic['last_poster_id']">
				<a href='{parse url="showuser={$topic['last_poster_id']}" base="public" seotitle="{$topic['seo_last_name']}" template="showuser"}' title='{$this->lang->words['view_profile']}'>{$topic['last_poster_name']}</a>
			<else />
				{$topic['last_poster_name']}
			</if>
		</td>
	</tr>
	<tr class='{parse striping="topicHistory"}'>
		<td class='altrow'>{$this->lang->words['th_avg_post']}</td>
		<td>{$avg_post}</td>
	</tr>
</table>
<br />
<h2 class='maintitle'>{$this->lang->words['ml_title']}</h2>
<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>mobile</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']}' />
<h2>{$this->lang->words['ts_title']}: {$forum['name']} &gt; {$topic['title']}</h2>
<div class='master_list'>
	<div class='row'>
		<div class='rowContent'>
			{$text}
		</div>
	</div>
</div>
<div class='submit'>
	<input type="submit" class='button full_width' value="{$this->lang->words['ts_submit']}" />
</div>
</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>mobile</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>mobile</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>mobile</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='field question' id='question_#{qid}_wrap' style='display: none'>" +
											"	<label for='#{qid}'><strong>{$this->lang->words['question_title']}</strong></label>" +
											"	<div class='wrap rounded'>" + 
											" 		<input type='text' class='input_text question_title' id='#{qid}' value='#{value}' size='40' maxlength='254' name='question[#{qid}]' />" +
											"		<input type='checkbox' class='input_check' value='1' name='multi[#{qid}]' id='multi_#{qid}'/> <label for='multi_#{qid}'><span class='desc'>{$this->lang->words['poll_multichoice']}</span></label>" + 
											"		<ol id='choices_for_#{qid}'></ol>" + 
											"		<ul class='post_controls'>" +
											"			<li><a href='#' id='add_choice_#{qid}' title='{$this->lang->words['add_poll_choice']}'>{parse replacement="add_poll_choice"} {$this->lang->words['add_another_choice']}</a></li>" +
											"			<li><a href='#' id='remove_question_#{qid}' title='{$this->lang->words['remove_question']}'>{parse replacement="remove_poll_question"} {$this->lang->words['remove_question']}</a></li>" +
											"		</ul>" +
											"	</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'>
	<div class='topic_controls' id='add_poll' style='display: none'>
		<ul class='topic_buttons'>
			<li><a href='#'>{parse replacement="show_poll_form"} {$this->lang->words['poll_manage_link']}</a></li>
		</ul>
	</div>
	<fieldset id='poll_wrap' style='display: none' class='clear'>
		<ul id='poll_container'>
			<li class='field'>
				<label for='poll_title'>{$this->lang->words['poll_fs_title']}</label>
				<input type='text' class='input_text' name='poll_question' id='poll_title' size='40' value='{$data['poll_question']}' />
			</li>
			<if test="allowPublicPoll:|:$this->settings['poll_allow_public'] AND ! $data['poll_votes']">
				<li class='field checkbox'>
					<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 class='desc'>{$this->lang->words['poll_public_warning']}</span>
				</li>
			</if>
			<if test="makePollOnly:|:$this->settings['ipb_poll_only']">
				<li class='field checkbox'>
					<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 class='desc'>{$this->lang->words['poll_only_desc']}</span>
				</li>
			</if>
		</ul>
		<span class='desc' id='poll_stats'></span>
		<div class='topic_controls'>
			<ul class='topic_buttons'>
				<li id='add_new_question'><a href='#'>{parse replacement="add_poll_question"} {$this->lang->words['add_another_question']}</a></li>
				<li id='close_poll'><a href='#'>{parse replacement="close_poll_form"} {$this->lang->words['close_poll_form']}</a></li>
			</ul>
		</div>
	</fieldset>
</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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_post</template_group>
      <template_content><![CDATA[<div class='master_list'>
	<form id='postingform' action='{$this->settings['base_url']}' method='post' enctype='multipart/form-data'>
	<h2>{$formData['title']}</h2>
	<div class='ipsForm_vertical'>
	<if test="logged_in_check:|:! $this->memberData['member_id']">
		<div class='ipsField'>
			<label for='username' class='ipsField_title'>{$this->lang->words['guest_name']}</label>
			<input type='text' name='UserName' id='username' size='30' value='{$this->request['UserName']}' maxlength="{$this->settings['max_user_name_length']}" class='input_text' tabindex='0' />
		</div>
		<div class='ipsField ipsField_captcha'>
			{$formData['captchaHTML']}
		</div>
	</if>
	
	<if test="edit_title_check:|:$formData['formType'] == 'new' OR ( $formData['formType'] == 'edit' AND $formData['canEditTitle'] )">
		<div class='ipsField'>
			<label for='topic_title' class='ipsField_title'>{$this->lang->words['topic_title']}</label>
			<input id='topic_title' class='input_text' type="text" size="30" maxlength="{$this->settings['topic_title_max_len']}" name="TopicTitle" value="{$formData['topicTitle']}" tabindex="0" />
		</div>
	</if>
	
	<div class='ipsField'>
		<label class='ipsField_title'>{$this->lang->words['topic']}</label>
		<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']}
	</div>
	<if test="edit_tags_check:|:$formData['formType'] == 'new' OR ( $formData['formType'] == 'edit')">
		<if test="hazTag:|:$formData['tagBox']">
			<div class='ipsField tag_field'>
				{$formData['tagBox']}
			</div>
		</if>
	</if>
	
		<if test="htmlstatus:|:is_array( $formData['checkBoxes']['html'] ) AND count( $formData['checkBoxes']['html'] )">
			<div class='ipsField'>
				<label for='post_htmlstatus' class='ipsField_title'>{$this->lang->words['pp_htmlstatus']}</label>
				<select name="post_htmlstatus" class="input_select">
					<option value="0"{$formData['checkBoxes']['html'][0]}>{$this->lang->words['pp_nohtml']}</option>
					<option value="1"{$formData['checkBoxes']['html'][1]}>{$this->lang->words['pp_html1']}</option>
					<option value="2"{$formData['checkBoxes']['html'][2]}>{$this->lang->words['pp_html2']}</option>
				</select>
			</div>
		</if>
		<input type='hidden' name='enableemo' value='yes' />
		<input type='hidden' name='enablesig' value='yes' />
		<if test="enablesig:|:$this->memberData['member_id']">
			<div class='ipsField ipsField_checkbox'>
				<if test="tracking:|:$formData['checkBoxes']['tra'] == '-tracking-'">
					<span class='desc'>{$this->lang->words['already_sub']}</span>
					<input type="hidden" name="enabletrack" id='enable_track' value="1" {$formData['checkBoxes']['tra']} />
				<else />
					<input type="checkbox" name="enabletrack" class="input_check" id='enable_track' value="1" {$formData['checkBoxes']['tra']} />
					<p class='ipsField_content'><label for='enable_track'>{$this->lang->words['enable_track']}</label></p>
				</if>
			</div>
		</if>
	</div>
	
	<div class='submit'>
		<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="submit" name="dosubmit" style='width:200px' value="{$formData['buttonText']}" tabindex="0" class="button" accesskey="s"  />
	</div>
	</form>
</div>]]></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>mobile</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>'">
	<h2 class='maintitle'>{$this->lang->words['post_preview']}</h2>
	<div class='post_wrap' id='post_preview'>
		<div class='row2' style='padding:8px'>
			<div class='post entry-content'>{$data}</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>mobile</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 />
<h2 class='maintitle'>{$this->lang->words['topic_summary']}</h2>
<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 topic_summary'>
			<h3>{parse template="userHoverCard" group="global" params="$data"}</h3>
			<p class='posted_info'>{$this->lang->words['summary_posted']} {$data['date']}</p>
			<div class='post_body'>
				<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>
	</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>mobile</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"}
<h3 class='bar'>{$this->lang->words['upload_title']}</h3>
<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>
<br />
<span id='buttonPlaceholder'></span>
<input type='button' id='add_files_attach_{$id}' class='input_submit' value='{$this->lang->words['attach_selected']}' style='display: none; clear: both' tabindex='1' /> <span class='desc' id='space_info_attach_{$id}'>{parse expression="sprintf( $this->lang->words['used_space'], "{$stats['space_used_human']}", "{$stats['total_space_allowed_human']}", "{$stats['max_single_upload_human']}")"}</span>
<if test="uploadformhelp:|:$this->settings['uploadFormType']">
	<div class='message unspecific' style='margin: 15px 15px 0 15px'>
		<h4>{$this->lang->words['attach_files_help']}</h4>
		<p class='desc' id='help_msg'>		
			<if test="flashuploadhelp:|:$this->memberData['member_uploader'] == 'flash'">
				{$this->lang->words['select_several']}<br />
				{$this->lang->words['trouble_uploading']} <a href='{parse url="app=core&amp;module=usercp&amp;hl=true" base="public"}' title='{$this->lang->words['switch']}' tabindex='1'>{$this->lang->words['switch_to_basic']}</a>
			<else />
				<if test="canUseFlash:|:$this->memberData['member_id']">
					<a href='{parse url="app=core&amp;module=usercp&amp;hl=true" base="public"}' title='{$this->lang->words['switch']}' tabindex='1'>{$this->lang->words['switch_to_advanced']}</a>
				</if>
			</if>
		</p>
	</div>
</if>
<script type='text/javascript'>
//<!#^#|CDATA|
	// Show the button and info
	$('add_files_attach_{$id}').show();
	$('space_info_attach_{$id}').show();
	
	var useType = 'simple';
	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( jimAuld.utils.flashsniffer.meetsMinVersion(9) && ( ipb.vars['swfupload_enabled'] && ipb.vars['use_swf_upload'] ) )
	{
		useType = 'swf';
		var uploadURL = "{parse 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}" base="public"}";
		
		$('add_files_attach_{$id}').observe('mouseover', function(e){  } );
	}
	
	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>mobile</template_master_key>
    </template>
  </templategroup>
  <templategroup group="skin_topic">
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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[<div class='master_list'>
	
	<h2>{parse expression="IPSText::truncate( $announce['announce_title'], 45 )"}</h2>
	<div class='topic_reply'>
		<h2 class='secondary' style='padding-left: 10px;'><a class="url fn" href='{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}'>{$author['members_display_name']}</a></h2>
		<div class='post'>
			{$announce['announce_post']}
		</div>
	</div>
</div>]]></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>mobile</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>
<else />
	<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 />
			<if test="isArchivedDone:|:$this->registry->class_forums->fetchArchiveTopicType( $topic ) == 'archived'">
				<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>
		</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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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[<!--no data in this master skin-->]]></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[<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='<if test="votedClass:|:$showResults"> voted</if>'>
				<h2 class='secondary'>{$pollData[ $questionID ]['question']}</h2>
				<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 class='row'>
									<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>
									<span class='votes'> ({$choiceData['votes']} {$this->lang->words['poll_votes']} [{$choiceData['percent']}%])</span>
									<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 class='row'><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 class='row'><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='button secondary'>{$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='button secondary' 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='button secondary'>{$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='button secondary'>{$this->lang->words['pl_show_results']}</a>
								</if>
							<else />
								<input class='button secondary' 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>mobile</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"}
<else />
	<if test="deleted:|:!$post['post']['_isDeleted']">
		<div class='topic_reply <if test="isSolvedCss:|:$post['post']['_isMarkedAnswered']">solved</if>' id='entry{$post['post']['pid']}'>
			<h2 class='secondary'>
				{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 test="isSolvedSausage:|:$post['post']['_isMarkedAnswered']"><span class='ipsBadge ipsBadge_default right' style='margin-right: 20px;'>{$this->lang->words['topic_best_answer']}</span></if>
				<if test="postMember:|:$post['author']['member_id']">
					<img src='{$post['author']['pp_thumb_photo']}' alt="{parse expression="sprintf($this->lang->words['users_photo'],$post['author']['members_display_name'])"}" class='photo' />
				</if>
				{parse template="userHoverCard" group="global" params="$post['author']"}
				<span class='subtext'>{parse date="$post['post']['post_date']" format="DATE"}</span>
			</h2>
			<div id="post-{$post['post']['pid']}" class='post line_spacing'>
				<if test="userIgnored:|:($post['post']['_repignored'] == 1 || $post['post']['_ignored']) AND $this->request['view_ignored'] != $post['post']['pid']">
					<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='{parse url="showtopic={$post['post']['topic_id']}&amp;page={$this->request['page']}&amp;view_ignored={$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}#entry{$post['post']['pid']}' title='{$this->lang->words['ignore_view_post']}' 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" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}">{$this->lang->words['post_ignore_reset_rep']}</a></div></if>
					</div>
				<else />
					{$post['post']['post']}
					{$post['post']['attachmentHtml']}
					
					<if test="postEditBy:|:$post['post']['edit_by']">
						<br />
						<strong>{$post['post']['edit_by']}</strong>
						<if test="postEditByReason:|:$post['post']['post_edit_reason'] != ''">
							<br />
							<span class='subtext'>{$post['post']['post_edit_reason']}</span>
						</if>
					</if>
				</if>
			</div>
			<div id="post-{$post['post']['pid']}-controls" class='post_controls'>
				<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['tt_reply_to_post']}">{$this->lang->words['post_reply']}</a>
				<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">
					<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>
				</if>
				<if test="canDelete:|:$post['post']['_can_delete'] === TRUE">
					<a 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;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' class='delete_post'>{$this->lang->words['post_delete']}</a>
				</if>
				<if test="$topic['Perms']['canAnswerTopic'] && $post['post']['post_count'] > 1">
					<if test="$post['post']['_isMarkedAnswered']">
						<if test="$post['post']['_canMarkUnanswered']">
							<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']}">{$this->lang->words['topic_mark_unsolved']}</a>
						</if>
					<else />
						<if test="$post['post']['_canAnswer']">
							<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']}">{$this->lang->words['topic_mark_solved']}</a>
						</if>
					</if>
				</if>
			</div>
		</div>
	</if>
</if>]]></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>mobile</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>mobile</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>mobile</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="public"}" 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="public"}" 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>mobile</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']}, {$this->lang->words['attach_ahits']} {$data['attach_hits']}"><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>mobile</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']}, {$this->lang->words['attach_ahits']} {$data['attach_hits']}"><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>mobile</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='topic_reply moderated' id='entry{$post['post']['pid']}'>
		<h2 class='secondary'>
			<if test="postMember:|:$post['author']['member_id']">
				<img src='{$post['author']['pp_thumb_photo']}' alt="{parse expression="sprintf($this->lang->words['users_photo'],$post['author']['members_display_name'])"}" class='photo' />
			</if>
			{parse template="userHoverCard" group="global" params="$post['author']"}
			<span class='subtext'>{parse date="$post['post']['post_date']" format="DATE"}</span>
		</h2>
		<div id='postsDelete-{$post['post']['pid']}'>
			<div class='padding'>
				<strong>{$this->lang->words['post_deleted_by']} <a href='{parse url="showuser={$_sD['sdl_obj_member_id']}" base="public" template="showuser" seotitle="{$_sM['members_seo_name']}"}'>{$_sM['members_display_name']}</a> {$this->lang->words['on']} {parse date="$_sD['sdl_obj_date']" format="long"}.</strong>
				<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>
				
				<if test="sdOptions:|:$post['post']['_softDeleteContent'] OR $post['post']['_softDeleteRestore']">
					<if test="$post['post']['_softDeleteContent']">
						<br />
						<span class='post_toggle sd_content' id='seeContent_{$post['post']['pid']}'>
							<a class='button secondary' href='#'><span>{$this->lang->words['togglepostcontent']}</span></a>
						</span>
					</if>
				</if>
			</div>
		</div>
		<div id="post-{$post['post']['pid']}" class='post line_spacing' style='display: none'>
			<if test="userIgnored:|:($post['post']['_repignored'] == 1 || $post['post']['_ignored']) AND $this->request['view_ignored'] != $post['post']['pid']">
				<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='{parse url="showtopic={$post['post']['topic_id']}&amp;page={$this->request['page']}&amp;view_ignored={$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}#entry{$post['post']['pid']}' title='{$this->lang->words['ignore_view_post']}' 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" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}">{$this->lang->words['post_ignore_reset_rep']}</a></div></if>
				</div>
			<else />
				{$post['post']['post']}
				{$post['post']['attachmentHtml']}
				<if test="postEditBy:|:$post['post']['edit_by']">
					<br />
					<strong>{$post['post']['edit_by']}</strong>
					<if test="postEditByReason:|:$post['post']['post_edit_reason'] != ''">
						<br />
						<span class='subtext'>{$post['post']['post_edit_reason']}</span>
					</if>
				</if>
			</if>
		</div>
		<div id="post-{$post['post']['pid']}-controls" class='post_controls'>
			<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['tt_reply_to_post']}">{parse replacement="reply_post_icon"} {$this->lang->words['post_reply']}</a>
			<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">
				<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']}'>{parse replacement="edit_post_icon"} {$this->lang->words['post_edit']}</a>
			</if>
			<if test="canDelete:|:$post['post']['_can_delete'] === TRUE">
				<a 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;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' class='delete_post'>{parse replacement="delete_post_icon"} {$this->lang->words['post_delete']}</a>
			</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>mobile</template_master_key>
    </template>
    <template>
      <template_group>skin_topic</template_group>
      <template_content><![CDATA[<!--no data in this master skin-->]]></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="$this->settings['_mobile_back_nav'] = 1"></if>
<div class='master_list'>
	<h2>
		{parse expression="IPSText::truncate( $topic['title'], 45 )"}
	</h2>
	<if test="bestAnswer:|:$displayData['best_answer_post_data']">
		<br />
		<div class='topic_reply feature_box'>
			<h2 class='secondary'>
				<img src='{$displayData['best_answer_post_data']['author']['pp_thumb_photo']}' class='photo' />
				<span class='ipsBadge ipsBadge_default right' style='margin-right: 10px;'>{$this->lang->words['topic_best_answer']}</span>
				{parse template="userHoverCard" group="global" params="$displayData['best_answer_post_data']['author']"}
				<span class='subtext'>{parse date="$displayData['best_answer_post_data']['post']['post_date']" format="long"}</span>
			</h2>
			<div class='post line_spacing'>
				{$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_light'>{$this->lang->words['answer_gotopost']} <img class='icon' src="{$this->settings['img_url']}/right_white_10px.png"></span></a>
			</div>
		</div>
	</if>
	<div class='controls'>
		<div class='buttons'>
			<if test="closedButton:|:$displayData['reply_button']['image'] == 'locked'">
				<if test="closedButtonLink:|:$displayData['reply_button']['url']">
					<a href='{$displayData['reply_button']['url']}' accesskey='r' class='button locked'>{$this->lang->words['mobile_top_locked_reply']}</a>
				<else />
					<span class='button locked'>{$this->lang->words['mobile_top_locked']}</span>
				</if>
			<else />
				<if test="replyButton:|:$displayData['reply_button']['image']">
					<if test="replyButtonLink:|:$displayData['reply_button']['url']">
						<a href='{$displayData['reply_button']['url']}' title='{$this->lang->words['mobile_topic_add_reply']}' accesskey='r' class='button'>{$this->lang->words['mobile_topic_add_reply']}</a>
					</if>
				</if>
			</if>
		{$topic['SHOW_PAGES']}
		</div>
	</div>
	
	{$displayData['poll_data']['html']}
	
	<if test="hasPosts:|:is_array( $post_data ) AND count( $post_data )">
		<foreach loop="post_data:$post_data as $post">
			{parse template="post" group="topic" params="$post, $displayData, $topic, $forum"}
		</foreach>
	</if>
	<if test="canShare:|:!$forum['disable_sharelinks'] AND $this->settings['sl_enable']">
		<div id='shareStrip'>
			<a class='button secondary' id='share_facebook_trigger' href='#'>{$this->lang->words['share']} <img src="{$this->settings['public_dir']}style_extra/sharelinks/facebook.png" /></a>
			<a class='button secondary' id='share_twitter_trigger' href='#'>{$this->lang->words['share']} <img src="{$this->settings['public_dir']}style_extra/sharelinks/twitter.png" /></a>
		</div>
	</if>
		<if test="modOptionsDropdown:|:$displayData['mod_links'] AND ( $this->memberData['is_mod'] OR $this->memberData['member_id'] == $topic['starter_id'] )">
		<div style='text-align:center'>
			<div id='mobileModShowButton' style='margin: 2px'>
				<a class='button secondary' onclick="$('mobileModOptions').show(); $('mobileModShowButton').hide();">{$this->lang->words['show_moderation_tools']}</a>
			</div>
			<div id='mobileModOptions' style='display:none'>
				<foreach loop="mod_links:$displayData['mod_links'] as $_mod_link">
					<if test="in_array( $_mod_link['option'], array( '05', '15', '16', '00', '01', '02', '03', 'sundelete', '08' ) )">
						<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={$_mod_link['option']}" base="public"}" class='button secondary' style='margin:2px'>{$_mod_link['value']}</a>
					</if>
				</foreach>
			</div>
		</div>
	</if>
	<div class='controls'>
		<div class='buttons'>
			<if test="closedButton:|:$displayData['reply_button']['image'] == 'locked'">
				<if test="closedButtonLink:|:$displayData['reply_button']['url']">
					<a href='{$displayData['reply_button']['url']}' accesskey='r' class='button locked'>{$this->lang->words['mobile_top_locked_reply']}</a>
				<else />
					<span class='button locked'>{$this->lang->words['mobile_top_locked']}</span>
				</if>
			<else />
				<if test="replyButton:|:$displayData['reply_button']['image']">
					<if test="replyButtonLink:|:$displayData['reply_button']['url']">
						<a href='{$displayData['reply_button']['url']}' title='{$this->lang->words['mobile_topic_add_reply']}' accesskey='r' class='button'>{$this->lang->words['mobile_topic_add_reply']}</a>
					</if>
				</if>
			</if>
		{$topic['SHOW_PAGES']}
		</div>
	</div>
	<if test="fastReply:|:$displayData['fast_reply'] && $displayData['reply_button']['url']">
		<h2>{$this->lang->words['qr_title']}</h2>
		<div class='row'>
			<form action="{parse url="" base="public"}" method="post">
				<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, 'autoSaveKey' => 'reply-' . $topic[tid], 'warnInfo' => 'fastReply', 'modAll' => $topic['_fastReplyModAll'] )"}
				<div class="buttons"><input type='submit' name="submit" class='button page-button' value='{$this->lang->words['qr_post']}' tabindex='0' accesskey='s' id='submit_post' /></div>
			</form>
		</div>
	</if>
</div>
<script type="text/javascript">
	document.observe("dom:loaded", function(){
				  	
		<if test="!$forum['disable_sharelinks'] AND $this->settings['sl_enable']">
			/* Facebook */
			if ( $('share_facebook_trigger') )
			{
				$('share_facebook_trigger').on('click', _fireFacebook );
			}
			
			/* Twitter */
			if ( $('share_twitter_trigger') )
			{
				$('share_twitter_trigger').on('click', _fireTwitter );
			}
		</if>
		
	function _fireTwitter(e)
	{
		Event.stop(e);
				
		_url   = '{parse expression="$this->registry->output->getCanonicalUrl()"}';
		_title = $$('meta[property~="og:title"]').first().readAttribute('content');
		
		window.open('http://twitter.com/intent/tweet?url=' +  encodeURIComponent( _url ) + '&text=' + encodeURIComponent( _title ) );
	}
	
	function _fireFacebook(e)
	{
		Event.stop(e);
		
		_url   = '{parse expression="$this->registry->output->getCanonicalUrl()"}';
		_title = $$('meta[property~="og:title"]').first().readAttribute('content');
		window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent( _url ) + '&t=' + encodeURIComponent( _title ) );
	}
	
	<if test="scrollToPost:|:$this->request['gopid']">
		var gopid = "{$this->request['gopid']}".replace(/&amp;/g, '');
		window.location.hash = "entry" + gopid;
	</if>
	<if test="scrollToPost2:|:$this->request['p']">
		<if test="notexist:|:!isset($post_data[$this->request['p']])">
			window.location = ipb.vars['board_url'] + '/index.php?app=forums&module=forums&section=findpost&pid={$this->request['p']}&t={$topic['tid']}';
		<else />
			window.location.hash = "entry{$this->request['p']}";
		</if>
	</if>
	});
</script>]]></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>mobile</template_master_key>
    </template>
  </templategroup>
</templates>
