{$currentPage = $smarty.const.THIS_PAGE|lower} {if $currentPage == 'view_channel' || $currentPage == 'channels'} {$currentPage = 'channels'} {$toSearch = 'channels'} {elseif $currentPage == 'view_item' || $currentPage == 'photos'} {$currentPage = 'photos'} {$toSearch = 'photos'} {elseif $currentPage == 'collections' || $currentPage == 'view_collection'} {$currentPage = 'collections'} {$toSearch = 'collections'} {elseif $currentPage == 'watch_video' || $currentPage == 'videos'} {$currentPage = 'videos'} {$toSearch = 'videos'} {elseif $currentPage == 'list'} {$currentPage = 'audios'} {/if} {$vidMode = {lang code="videos"}} {$photoMode = {lang code="photos"}} {$channelsMode = {lang code="channels"}} {$pageType = $smarty.get.type|lower}
{$searchPage = $smarty.get.query}