Esempio n. 1
0
/**
 * 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());
}
Esempio n. 2
0
 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)));
 }
Esempio n. 3
0
/**
 * 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());
}