[UPHPU] Smarty's playing with my mind... and my end tags (Actual code)

Velda Christensen velda at novapages.com
Sun May 13 22:17:08 MDT 2007


Alvaro Carrasco wrote:
>>
> Do you have any smarty tags on your template? I'm pretty sure that 
> smarty won't touch any of your code unless you tell it to. Can you 
> post the entire template?
>
> Alvaro
>
>
Sure.  I can post all three templates involved (X-cart is templated to 
death; someday I'll make my own skin that involves far fewer, simpler, 
xhtml strict compliant templates) Might be sloppy, sorry.

--- start youtuber.tpl  ---

{capture name=youtube_url}
http://www.youtube.com/watch?v=Dx0qGJCm-qU
{/capture}

{capture name=youtube_desc}
Mandela on Ubuntu
{/capture}

{capture name=menu}
'
{include file="youtube.tpl" youtube_url=$smarty.capture.youtube_url 
youtube_desc=$smarty.capture.youtube_desc}

{include file="buttons/button.tpl" button_title=Archives 
href="pages.php?pageid=1" image_menu=true}

{/capture}

{ include file="menu.tpl" menu_title="Videos" 
menu_content=$smarty.capture.menu link_href="pages.php?pageid=1"}
<br />

--- end youtuber.tpl ---

--- start youtube.tpl ---

<object width="200" height="165">
<param name="movie" value="{$youtube_url}"></param>
<param name="wmode" value="transparent"></param>
<embed src="{$youtube_url}" type="application/x-shockwave-flash" 
wmode="transparent" width="200" height="165"></embed>
</object>

--- end youtube.tpl ---

--- menu.tpl ---

{if $usertype eq "A" or ($usertype eq "P" and 
$active_modules.Simple_Mode ne "")}

{if $dingbats ne ''}{$link_begin}<IMG src="{$ImagesDir}/{$dingbats}  
/>{$link_end}{else}{/if}

<div class="menutitle">
{if $link_href}
<a href="{$link_href}">{$menu_title}</a>
{else}
{$menu_title}
{/if}
</div>

<div class="menucontent">
{$menu_content}
</div>

{else}

<div class="menutitle">{$menu_title}</div>

<div class="menucontent">{$menu_content}</div>

{/if}

--- end menu.tpl ---




More information about the UPHPU mailing list