/** * Smarty function to display a drop down list of languages. * * This plugin as been superceded by html_select_languages. * * @deprecated * @param array $params All attributes passed to this function from the template. * @param object $smarty Reference to the Smarty object. * * @return string The value of the last status message posted, or void if no status message exists. */ function smarty_function_languagelist($params, $smarty) { LogUtil::log(__f('Warning! Template plugin {%1$s} is deprecated, please use {%2$s} instead.', array('languagelist', 'html_select_languages')), E_USER_DEPRECATED); require_once $smarty->_get_plugin_filepath('function','html_select_languages'); return smarty_function_html_select_languages($params, $smarty); }
/** * Campsite url function plugin * * Type: function * Name: url * Purpose: * * @param array $p_params * @param object $p_smarty * The Smarty object * * @return string $urlString * The full URL string */ function smarty_function_url($p_params, &$p_smarty) { $context = $p_smarty->get_template_vars('gimme'); // gets the URL base $urlString = $context->url->base; // includes the smarty camp uri plugin require_once($p_smarty->_get_plugin_filepath('function', 'uri')); // appends the URI path and query values to the base $urlString .= smarty_function_uri($p_params, $p_smarty); return $urlString; } // fn smarty_function_url