создаём public_html/published/SC/html/scripts/smarty/plugins/function.sape.php
в нём
Код:
<?php
function smarty_function_showsape($params, &$smarty)
{
if (!defined('_SAPE_USER')){
define('_SAPE_USER', 'ххххххххххххххххххххх');
}
require_once($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php');
$sape = new SAPE_client();
echo $sape->return_links();
}
?>
Вывод в шаблонах: {showsape}




