|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
mario118 Smarty n00b
Joined: 29 Mar 2007 Posts: 2
|
Posted: Thu Mar 29, 2007 6:08 am Post subject: Disign bloka v Avalonshop |
|
|
Dobriy den! Ne mogu izmenit background (001.gif) soderjania levih i pravih blokov v Avalonshop. Podskajite gde oshibka. Vot kod:
{* Shablon levih blokov *}
{section name=r loop=$left_blocks}
{if $left_blocks[r][4] eq 1}{if $main_content_template eq "home.tpl.html"}{assign var="gofleft" value=1}{else}{assign var="gofleft" value=0}{/if}
{else}
{if $left_blocks[r][4] eq 2}{if $main_content_template ne "home.tpl.html"}{assign var="gofleft" value=1}{else}{assign var="gofleft" value=0}{/if}
{else}
{assign var="gofleft" value=1}{/if}{/if}
{if $left_blocks[r][8] eq 1}{if !$admlink}{assign var="gofleft" value=0}{/if}{/if}
{if $left_blocks[r][7] eq "filter.tpl.html"}
{if $main_content_template eq "category.tpl.html" or $main_content_template eq "category_search_result.tpl.html"}
{if $categories_to_select}{assign var="gofleft" value=0}{/if}
{if !$categoryID}{assign var="gofleft" value=0}{/if}
{if !$allow_products_search}{assign var="gofleft" value=0}{/if}
{else}{assign var="gofleft" value=0}{/if}{/if}
{if $gofleft eq 1}
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="indexblock" style="background: url(design/user/{$smarty.const.CONF_DEFAULT_TEMPLATE_GO}/images/001.gif) repeat-y top left;"><table width="104%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" class="blockhead3" style="background: url(design/user/{$smarty.const.CONF_DEFAULT_TEMPLATE_GO}/images/002.gif) no-repeat left top;">{$left_blocks[r][1]} <a href="admin.php?dpt=conf&sub=blocks_edit&edit={$left_blocks[r][0]}" title="{$smarty.const.EDIT_BUTTON}"><img src="./design/user/{$smarty.const.CONF_DEFAULT_TEMPLATE_GO}/images/edt.gif" border="0" alt="{$smarty.const.EDIT_BUTTON}" title="{$smarty.const.EDIT_BUTTON}" /></a></td>
<table width="100%" cellpadding="0" cellspacing="0"></td>
<tr>
{if $admlink}
<td align="right" valign="middle" style="padding-top: 2px;"><a href="admin.php?dpt=conf&sub=blocks_edit&edit={$left_blocks[r][0]}" title="{$smarty.const.EDIT_BUTTON}"></a></td>
{/if}
</tr>
</table></td>
</tr>
<tr>
<td class="block">{if $left_blocks[r][6] eq 1}
{include file="./blocks/$left_blocks[r][7]"}
{else}
{$left_blocks[r][2]}
{/if}</td>
</tr>
</table>
{/if}
{/section} |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|