search($_GET['query'], $_GET['tab']); /* assign variables */ $smarty->assign('query', htmlentities($_GET['query'], ENT_QUOTES, 'utf-8')); $smarty->assign('hashtag', (isset($_GET['hashtag']) && $_GET['hashtag'] == '1') ? true : false); $smarty->assign('results', $results); } $smarty->assign('tab', $_GET['tab']); // get ads campaigns $ads_campaigns = $user->ads_campaigns(); /* assign variables */ $smarty->assign('ads_campaigns', $ads_campaigns); // get ads $ads = $user->ads('search'); /* assign variables */ $smarty->assign('ads', $ads); // get widgets $widgets = $user->widgets('search'); /* assign variables */ $smarty->assign('widgets', $widgets); } catch (Exception $e) { _error(__("Error"), $e->getMessage()); } // page header page_header(__("Search") . ' | ' . __($system['system_title'])); // page footer page_footer('search');