Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Bedah code

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Indonesian
View previous topic :: View next topic  
Author Message
Arif
Smarty n00b


Joined: 16 Dec 2011
Posts: 3

PostPosted: Fri Dec 16, 2011 8:57 am    Post subject: Bedah code Reply with quote

{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">&nbsp;</span><span class="float-right">&nbsp;</span></div>
{include file="bottom.tpl"}
<div class="footer-bottom-helper"><span class="float-left">&nbsp;</span><span class="float-right">&nbsp;</span></div>
</div>
</div>
</div>[/quote]
Back to top
View user's profile Send private message
Arif
Smarty n00b


Joined: 16 Dec 2011
Posts: 3

PostPosted: Fri Dec 16, 2011 8:58 am    Post subject: up Reply with quote

pliss bantu...baru belajar nih sama smarty..yang punya waktu dan ilmu berlebih boleh dong share...tqs
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Indonesian All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP