{foreach from=$Cbucket->JSArray item=type} {foreach from=$type item=scope key=file} {include_js type=$scope file=$file} {/foreach} {/foreach} {foreach key=file item=type from=$Cbucket->header_files} {include_header file=$file type=$type} {/foreach} {if $smarty.const.THIS_PAGE == 'upload'} {else} {/if} {if $smarty.const.THIS_PAGE == 'photo_upload'} {/if} {if $smarty.const.THIS_PAGE == 'view_item'} {/if} {if $smarty.const.THIS_PAGE=='watch_video' || $object.videoid} {if $object.videoid}{assign var=vdo value=$object} {/if} {/if} {if $object.photo_id} {/if} {literal} {/literal}