![Smarty Forum Index Smarty Forum Index](templates/smarty/images/phpbb2_logo.gif) |
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 |
Arif Smarty n00b
Joined: 16 Dec 2011 Posts: 3
|
Posted: Fri Dec 16, 2011 8:57 am Post subject: Bedah code |
|
|
{block group="top" assign="top"}
{block group="left" assign="left"}
{block group="right" assign="right"}
{block group="bottom" assign="bottom"}
......
......
{if $left|trim}
<div class="left-column">
{$left}
</div>
{/if}
Hallo master master smarty yang dah jadi dewa...saya nubitol mw nanya nih...ntu kan da code diatas......nah yang mw saya tanyakan.... Variable $left dibwah class =>left-column itu asalnya darimana... nah yang paling atas kan dia ada block dengan group bla bla... dan memiliki assign bla bla...nah itu dari mana yah...bisa tinggal panggil code itu ($left)
code lengkap
{* $Id: main.tpl 10618 2010-09-13 11:50:51Z alexions $ *}
{block group="top" assign="top"}
{block group="left" assign="left"}
{block group="right" assign="right"}
{block group="bottom" assign="bottom"}
<div id="container" class="container{if !$left|trim && !$right|trim}-long{elseif !$left|trim}-left{elseif !$right|trim}-right{/if}">
{hook name="index:main_content"}
<div id="header">{include file="top.tpl"}</div>
{/hook}
<div id="content">
<div class="content-helper clear">
{if $top|trim}
<div class="header">
{$top}
</div>
{/if}
{hook name="index:columns"}
<div class="central-column">
<div class="central-content">
{include file="common_templates/breadcrumbs.tpl"}
{include file="common_templates/notification.tpl"}
{block group="central"}
</div>
</div>
{if $left|trim}
<div class="left-column">
{$left}
</div>
{/if}
{if $right|trim}
<div class="right-column">
{$right}
</div>
{/if}
{/hook}
{if $bottom|trim}
<div class="bottom clear-both">
{$bottom}
</div>
{/if}
</div>
</div>
<div id="footer">
<div class="footer-helper-container">
<div class="footer-top-helper"><span class="float-left"> </span><span class="float-right"> </span></div>
{include file="bottom.tpl"}
<div class="footer-bottom-helper"><span class="float-left"> </span><span class="float-right"> </span></div>
</div>
</div>
</div>[/quote] |
|
Back to top |
|
Arif Smarty n00b
Joined: 16 Dec 2011 Posts: 3
|
Posted: Fri Dec 16, 2011 8:58 am Post subject: up |
|
|
pliss bantu...baru belajar nih sama smarty..yang punya waktu dan ilmu berlebih boleh dong share...tqs |
|
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
|