/** * Generates news page URL * * @param array $params * @param Smarty $smarty * @return string * * @package application.helper.smarty * @author Integry Systems */ function smarty_function_newsUrl($params, LiveCartSmarty $smarty) { return createNewsPostUrl($params, $smarty->getApplication()); }
private function getNewsPostEntry($row, $params) { $row['title'] = unserialize($row['title']); $row = MultilingualObject::transformArray($row, ActiveRecord::getSchemaInstance('NewsPost')); return array('loc' => $this->router->createFullUrl(createNewsPostUrl(array('news' => $row), $this->application))); }
/** * Generates news page URL * * @param array $params * @param Smarty $smarty * @return string * * @package application.helper.smarty * @author Integry Systems */ function smarty_function_newsUrl($params, Smarty_Internal_Template $smarty) { return createNewsPostUrl($params, $smarty->getApplication()); }