Forums / National / Russian / Тех. поддержка / Параметры для cot_rc_link_footer

Есть ли возможность ?

Dr2005alex
#40044 2014-10-05 16:10

Я не вижу других вариантов.

Можно создать свою функцию. ПРимер

function cot_rc_link_footer_custom($path,$param)
{
	global $out;
	$type = preg_match('#\.(js|css)$#i', $path, $m) ? strtolower($m[1]) : 'js';
	$out['footer_rc'] .= cot_rc("code_rc_{$type}_file", array('url' => $path,'param'=>$param));
}

а resources.php добавить $param..

$R['code_rc_js_file'] = '<script type="text/javascript" src="{$url}" {$param} ></script>';

И пользоваться...

WebKaa.ru - Cotonti Relax