<xen:title>{xen:phrase permalink_for_post_x, 'position={xen:calc '{$post.position} + 1'}'}</xen:title>
<xen:require css="permalink.css" />
<form class="section permalinkInfo">
<h3 class="subHeading">{xen:phrase thread}: <a href="{xen:link threads/post-permalink, $thread, 'post={$post}'}">{$thread.title}</a></h3>
<div class="primaryContent">
<input type="url" dir="ltr" class="textCtrl fillSpace permalink" value="{xen:link full:threads/post-permalink, $thread, 'post={$post}'}" autofocus="on" />
<ul class="Tabs tabs" data-panes="#IpPanes{$post.post_id} > li">
<li><a>{xen:phrase bb_code_link_snippet}</a></li>
<li><a>{xen:phrase html_link_code}</a></li>
</ul>
<ul id="IpPanes{$post.post_id}">
<li><label><input type="text" dir="ltr" class="textCtrl fillSpace" id="bb_code_link_snippet" value="[URL="{xen:link full:threads/post-permalink, $thread, 'post={$post}'}"]{$thread.title}[/URL]" />
<span class="explain">{xen:phrase bb_code_link_snippet_explain}</span></label></li>
<li><label><input type="text" dir="ltr" class="textCtrl fillSpace" id="html_link_code" value="<a href="{xen:link full:threads/post-permalink, $thread, 'post={$post}'}">{$thread.title}</a>" />
<span class="explain">{xen:phrase html_link_code_explain}</span></label></li>
</ul>
</div>
<xen:if hascontent="true">
<div class="secondaryContent">
<h4 class="textHeading">{xen:phrase share_this_page}</h4>
<xen:contentcheck>
<xen:hook name="share_page_options">
<xen:include template="addthis_ajax">
<xen:set var="$url">{xen:link full:threads/post-permalink, $thread, 'post={$post}'}</xen:set>
</xen:include>
</xen:hook>
</xen:contentcheck>
</div>
</xen:if>
<div class="sectionFooter overlayOnly"><a class="button primary OverlayCloser">{xen:phrase close}</a></div>
</form>