[UPHPU] Smarty's playing with my mind... and my end tags (Actual
code)
Ken Snyder
ksnyder at coremr.com
Mon May 14 08:20:56 MDT 2007
The only block level function in there is capture, but capture should
not alter the content. Do you get any results if you search all the
x-cart files for register_prefilter register_postfilter or
register_outputfilter? x-cart could potentially run the template output
through some function before outputing to the browser.
--Ken
Velda Christensen wrote:
> 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 ---
>
>
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
>
>
More information about the UPHPU
mailing list