function smartyLoadUrlInEl($params, $smarty)
{
// Required Params
if (!isset($params['el'])) {
$smarty->trigger_error("el parameter is missing from load_url_in_el");
}
if (!isset($params['url'])) {
$smarty->trigger_error("url parameter is missing from load_url_in_el");
}
if (!isset($params['id'])) {
$smarty->trigger_error("id parameter is missing from load_url_in_el");
}
$this->assign(array('inEl' => $params['el'], 'inElUrl' => $params['url'], 'inElElId' => $params['id'], 'inElClass' => isset($params['class']) ? $params['class'] : null));
if (isset($params['placeholder'])) {
$this->assign('inElPlaceholder', $params['placeholder']);
} elseif (isset($params['loadMessageId'])) {
$loadMessageId = $params['loadMessageId'];
$this->assign('inElPlaceholder', __($loadMessageId, $params));
} else {
$this->assign('inElPlaceholder', $this->fetch('common/loadingContainer.tpl'));
}
return $this->fetch('common/urlInEl.tpl');
}