تفضل
CODE
{template}address_bar_part1{/template}
<div>
<a href="{$Adress}</div>
<div>
index.php?page=portal">{$_CONF['info_row']['title_portal']}</a></div>
<div>
{template}address_bar_part2{/template}</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
<table width="100%" border="0" cellspacing="4" align="center"></div>
<div>
<tr align="center"></div>
<div>
{if {$active_right}}</div>
<div>
<td width="20%" valign="top"></div>
<div>
<?php</div>
<div>
</div>
<div>
$right_blocks_info = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->prefix."blocks" . " WHERE place_block = 'right' AND active = '1' ORDER BY sort ASC");</div>
<div>
while ($get_right_blocks_row = $PowerBB->DB->sql_fetch_array($right_blocks_info))</div>
<div>
{</div>
<div>
$right_blocks = $get_right_blocks_row['text'];</div>
<div>
?></div>
<div>
<table width="100%" border="0" cellspacing="1" class="border_radius"></div>
<div>
<tr></div>
<div>
<tr align="center"></div>
<div>
<td class="tcat" width="20%"></div>
<div>
<?php echo $get_right_blocks_row['title'] ?></td></div>
<div>
</tr></div>
<div>
<td class="blocks_info"></div>
<div>
<?php</div>
<div>
if (strstr($right_blocks,"{template}"))</div>
<div>
<span class=\"Apple-tab-span\" style=\"white-space:pre\"> </span>{</div>
<div>
<span class=\"Apple-tab-span\" style=\"white-space:pre\"> </span>$right_blocks = str_replace('{template}',"",$right_blocks);</div>
<div>
<span class=\"Apple-tab-span\" style=\"white-space:pre\"> </span>$right_blocks = str_replace('{/template}',"",$right_blocks);</div>
<div>
<span class=\"Apple-tab-span\" style=\"white-space:pre\"> </span>$PowerBB->template->display($right_blocks);</div>
<div>
// eval($right_blocks);</div>
<div>
<span class=\"Apple-tab-span\" style=\"white-space:pre\"> </span>}</div>
<div>
<span class=\"Apple-tab-span\" style=\"white-space:pre\"> </span>else</div>
<div>
<span class=\"Apple-tab-span\" style=\"white-space:pre\"> </span>{</div>
<div>
echo($right_blocks);</div>
<div>
<span class=\"Apple-tab-span\" style=\"white-space:pre\"> </span>}</div>
<div>
<span class=\"Apple-tab-span\" style=\"white-space:pre\"> </span>?></div>
<div>
</td></div>
<div>
</tr></div>
<div>
</table> </div>
<div>
</div>
<div>
<?php</div>
<div>
}</div>
<div>
?></div>
<div>
</td></div>
<div>
{/if}</div>
<div>
<td width="{$columns}" valign="top"></div>
<div>
<?php</div>
<div>
</div>
<div>
$center_blocks_info = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->prefix."blocks" . " WHERE place_block = 'center' AND active = '1' ORDER BY sort ASC");</div>
<div>
while ($get_center_blocks_row = $PowerBB->DB->sql_fetch_array($center_blocks_info))</div>
<div>
{</div>
<div>
$center_blocks = $get_center_blocks_row['text'];</div>
<div>
?></div>
<div>
<table width="100%" border="0" cellspacing="1" class="border_radius"></div>
<div>
<tr></div>
<div>
<tr align="center"></div>
<div>
<td class="tcat" width="{$columns}"></div>
<div>
<?php echo $get_center_blocks_row['title'] ?></td></div>
<div>
</tr></div>
<div>
<td class="blocks_info" valign="top"></div>
<div>
<?php</div>
<div>
if (strstr($center_blocks,"{template}"))</div>
<div>
{</div>
<div>
$center_blocks = str_replace('{template}',"",$center_blocks);</div>
<div>
$center_blocks = str_replace('{/template}',"",$center_blocks);</div>
<div>
$PowerBB->template->display($center_blocks);</div>
<div>
//eval($center_blocks);</div>
<div>
}</div>
<div>
else</div>
<div>
{</div>
<div>
echo($center_blocks);</div>
<div>
}</div>
<div>
?></div>
<div>
</td></div>
<div>
</tr></div>
<div>
</table> </div>
<div>
</div>
<div>
<?php</div>
<div>
}</div>
<div>
?></div>
<div>
</div>
<div>
</td></div>
<div>
{if {$active_left}}</div>
<div>
<td width="20%" valign="top"></div>
<div>
<?php</div>
<div>
</div>
<div>
$left_blocks_info = $PowerBB->DB->sql_query("SELECT * FROM " . $PowerBB->prefix."blocks" . " WHERE place_block = 'left' AND active = '1' ORDER BY sort ASC");</div>
<div>
while ($get_left_blocks_row = $PowerBB->DB->sql_fetch_array($left_blocks_info))</div>
<div>
{</div>
<div>
$left_blocks = $get_left_blocks_row['text'];</div>
<div>
?></div>
<div>
<table width="100%" border="0" cellspacing="1" class="border_radius"></div>
<div>
<tr></div>
<div>
<tr align="center"></div>
<div>
<td class="tcat" width="20%"></div>
<div>
<?php echo $get_left_blocks_row['title'] ?></td></div>
<div>
</tr></div>
<div>
</div>
<div>
<td class="blocks_info"></div>
<div>
<?php</div>
<div>
if (strstr($left_blocks,"{template}"))</div>
<div>
{</div>
<div>
$left_blocks = str_replace('{template}',"",$left_blocks);</div>
<div>
$left_blocks = str_replace('{/template}',"",$left_blocks);</div>
<div>
$PowerBB->template->display($left_blocks);</div>
<div>
</div>
<div>
//eval($left_blocks);</div>
<div>
}</div>
<div>
else</div>
<div>
{</div>
<div>
echo($left_blocks);</div>
<div>
}</div>
<div>
</div>
<div>
?></div>
<div>
</td></div>
<div>
</tr></div>
<div>
</table> </div>
<div>
</div>
<div>
<?php</div>
<div>
}</div>
<div>
?></div>
<div>
</div>
<div>
</td></div>
<div>
{/if}</div>
<div>
</tr></div>
<div>
</table></div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>