<!-- action_find_addons_1 -->
<?php
$subject_title = $PowerBB->_CONF['template']['subject_title'];
$subject_title = str_replace(' ', '_', $subject_title);
$subject_title = str_replace("/", "", $subject_title);
$subject_title = str_replace("'", "", $subject_title);
$subject_title = str_replace('"', "", $subject_title);
$subject_title = str_replace("*", "", $subject_title);
$subject_title = str_replace("%", "", $subject_title);
$subject_title = str_replace(">", "", $subject_title);
$subject_title = str_replace("<", "", $subject_title);
$subject_title = str_replace(":", "", $subject_title);
$subject_title = str_replace("|", "", $subject_title);
$subject_title = str_replace(".", "", $subject_title);
$subject_title = str_replace("\\_", "", $subject_title);
$subject_title = str_replace("__", "", $subject_title);
$subject_title = str_replace("quot;", "", $subject_title);
$subject_title = str_replace(";#39;", "", $subject_title);
$subject_title = stripslashes($subject_title);
?>
{template}show_subject_information{/template}
<table align="center" border="0" cellspacing="1" class="border" width="98%" onclick="switchBlock('Options_mods')">
<tr align="center">
<td class="thead" width="18%">
{$lang['information_writer']}
</td>
<td class="thead" width="82%" align="right">
<div class="r-right">
<img src="{$Info['icon']}" alt="subject icon" />
<span dir="{$_CONF['info_row']['content_dir']}">
{$Info['prefix_subject']}
</span>
<a href="index.php?page=topic&show=1&id={$subject_id}-<?php echo $subject_title ?>">
{$subject_title}</a>
</div>
<div class="l-left">
{$Info['native_write_time']}
</div>
</td>
</tr>
<tr align="center">
<td class="tbar_writer_info" width="18%" valign="top">
<div onclick="switchBlock('menu_{$Info['id']}');">
{template}writer_info{/template}
</div>
<br/>
<?php $PowerBB->functions->get_hooks_template("show_subject_text")?>
</br>
<?php
$pub_no = "1362444345";
$membeads = $PowerBB->_CONF['rows']['member_row']['extrafield_1'];
?>
{if is_array({$while['extrafield']})==true }
{Des::while}{extrafield}
<?php if( $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ]!='' ){ ?>
<?php $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] = $PowerBB->functions->CleanVariable($PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ],'html'); ?>
<?php $membeads = $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] ?>
<?php }else{ $membeads = $pub_no;?>
<?php } ?>
{/Des::while}
{/if}
<?php $membeads2 = preg_replace('/\\s+/', '', $membeads); ?>
</td>
<td
{if {$Info['special']} == '1'}
id="layerspecial" class="td_special" width="82%" valign="top" align="right"
{else}
class="{$class_subject}" width="82%" valign="top" align="right"
{/if}
onclick="switchBlock('subject_rating');">
{template}add_this{/template}
{if !{$STOP_ADSENSES_TEMPLATE}}
{template}adsense_topic{/template}
{/if}
{if {$MemberInfo['user_info']} !=''}
<tr>
<td width="100%" class="row1" align="right">
<fieldset>
<legend>{$lang['information_About']}
{$MemberInfo['username']}</legend>
</fieldset>
</td>
</tr>
{/if}
</br>
<br/>
<div class="text">{$Info['text']}</div>
<br/>
<div style="margin:auto;text-align:center;"><br/>
:. كاتب الموضوع
<a href="<?php echo $PowerBB->functions->GetForumAdress().$PowerBB->functions->rewriterule('index.php?page=profile&show=1&username=');?>{$Info['username']}" target="_blank">
{$Info['username']}
</a>
، المصدر:
<a href="<?php echo $PowerBB->functions->GetForumAdress().$PowerBB->functions->rewriterule('index.php?page=topic&show=1&id=');?>{$subject_id}-<?php echo $subject_title ?>" target="_blank">
{$subject_title}
</a>
.:</div>
<?php
$thread_title = trim($PowerBB->_CONF['template']['subject_title']);
$thread_title = str_replace(',',' ', $thread_title);
$aMatches = preg_split('//u', $thread_title, -1, PREG_SPLIT_NO_EMPTY);
$count = count($aMatches);
$en = str_split('{}DFL:"ZCV<>`qwertyuiop[]asdfghjkl;\\'zxcvnm,./~QWERYIOPASHJKXNM?');
$ar = preg_split('//u','<>][/:"~}{,.ذضصثقفغعهخحجدشسيبلاتنمكطئءؤرىةوزظًٌَُّإ÷×؛ٍِأـ،ْآ’؟', -1, PREG_SPLIT_NO_EMPTY);
for ($i =0;$i<$count;$i++){
$inv_tmp = str_replace($ar,$en,$aMatches[$i]);
$inv_ar_tmp [] = str_replace(array('لا','لآ','لأ','لإ','‘' ),array('b','B','G','T','U'),$inv_tmp );
}
$invtag = implode("",$inv_ar_tmp);
echo $invtag = '<hr size="1" style="color:#D1D1E1; background-color:#D1D1E1" />'."<p class=\\"alt2\\" dir=\\"ltr\\" style=\\"margin: 1px auto; padding: 6px;border: 1px inset; width: 640px;height: 34px;text-align: left;overflow: auto\\">".$invtag."</p>\\n";
?>
{if {$Info['close_reason']} != '' and {$Info['close']} }
<i><font color="#FF0000">
{$lang['reason_for_closure']}
{$Info['close_reason']}</font></i>
{/if}
{if {$Info['attach_subject']}}
{template}attach_show{/template}
{/if}
{if {$_CONF['group_info']['view_action_edit']}}
{if {$Info['action_by']} != ''}
<div align="center">
<i>
{$lang['action_by_subject']}
{$Info['action_by']}
{$lang['last_date']}
{$Info['actiondate']}
</i>
</div>
{/if}
{/if}
{if {$Info['reason_edit']} != ''}
<div align="center">
<b>{$lang['reason_edit']}
{$Info['reason_edit']}</b>
</div>
{/if}
<?php $PowerBB->functions->get_hooks_template("show_subject_down_text")?>
{if {$Info['user_sig']} != ''}
{template}signature_show{/template}
{/if}
</td>
</tr>
<tr align="center">
<td class="row1" width="18%">
{if {$_CONF['member_permission']}}
{if {$ReplierInfo['username']}}
{if {$_CONF['member_row']['username']} != {$ReplierInfo['username']}}
{if {$_CONF['info_row']['reputationallw']} == 1}
<a href="javascript:switchMenuNone('{$subject_id}reputation')"
title="{$lang['add_reputation_to']}
{$ReplierInfo['username']}">
<img border="0" alt="{$lang['add_reputation_to']}
{$ReplierInfo['username']}"
src="{$image_path}/reputation.gif" />
</a>
{template}subject_reputation{/template}
{/if}
{/if}
{/if}
<a title="{$lang['reporting_for_post']}"
href="index.php?page=report&index=1&subject_id={$subject_id}-<?php echo $subject_title ?>">
<img alt="{$lang['reporting_for_post']}"
border="0" src="{$image_path}/report.gif" /></a>
{/if}
</td>
<td colspan="2" class="row1" width="82%">
<table border="0" width="100%" cellpadding="0" style="border-collapse: collapse">
<tr>
<td>
<div class="r-right">
<!-- like facebook -->
{if {$_CONF['info_row']['active_like_facebook']} == '1'}
<div class="addthis_toolbox addthis_default_style">
<a style="border-bottom:none" class="addthis_button_facebook_like"></a>
<a style="border-bottom:none" class="addthis_button_tweet"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="includes/js/addthis_widget.js#username={$_CONF['info_row']['use_list']}"></script>
{/if}
<!-- / like facebook -->
<!-- action_find_addons_2 -->
</div>
<div class="l-left">
<!-- action_find_addons_3 -->
<ul class="post_controls">
{if {$_CONF['member_permission']}}
{if !{$mod_toolbar}}
<li>
<a title="{$lang['edit_subject']}"
href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}-<?php echo $subject_title ?>&operator=edit"
title="{$lang['edit_subject']}" class="Button_secondary">
{$lang['edit_subject']}</a>
</li>
<li>
<a href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}-<?php echo $subject_title ?>&operator=delete"
title="{$lang['delete_subject']}" class="Button_secondary">
{$lang['delete_subject']}</a>
</li>
{else}
{if {$Info['close']} == '0'}
{if {$timeout}}
{if {$_CONF['member_row']['username']} == {$Info['username']}}
{if {$_CONF['group_info']['edit_own_subject']}}
<li>
<a title="{$lang['edit_subject']}"
href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}-<?php echo $subject_title ?>&operator=edit" class="Button_secondary">
{$lang['edit_subject']}</a>
</li>
{/if}
{if {$_CONF['group_info']['del_own_subject']}}
<li>
<a href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}-<?php echo $subject_title ?>&operator=delete"
title="{$lang['delete_subject']}" class="Button_secondary">
{$lang['delete_subject']}</a>
</li>
{/if}
{/if}
{/if}
{/if}
{/if}
{/if}
<li>
<a href="index.php?page=new_reply&index=1&id={$subject_id}-<?php echo $subject_title ?>{$password}
&qu_Subject={$subject_id}-<?php echo $subject_title ?>&
user={$Info['username']}" title="{$lang['qu_subject']}" class="Button_secondary">
{$lang['quote']}</a>
</li>
<li>
<?php $post_id = $PowerBB->_CONF['template']['subject_id']; ?>
<a class="img-submit" id="mad_<?php echo "$post_id"; ?>" name="mad_<?php echo "$post_id"; ?>" onclick="multiquote_add(<?php echo "$post_id"; ?>); return false;" href="#">{$lang['multiquote']}</a>
</li>
<!-- action_find_addons_4 -->
</ul>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
{Des::while}{AdsensesList}
{if {$AdsensesList['down_topic']} == '1'}
<div align="center">
{$AdsensesList['adsense']}
</div>
{/if}
{/Des::while}
<!-- action_find_addons_5 -->