<?php
function widget_ad_pic(&$setting,&$smarty) {
    /*
    if($smarty->theme){
        $theme_dir = kernel::base_url().'themes/'.$smarty->theme;
    }else{
        $theme_dir = kernel::base_url().'themes/'.app::get('site')->getConf('system.ui.current_theme');
    }
    $setting['ad_pic'] = str_replace('%THEME%',$theme_dir,$setting['ad_pic']);
    */
    return $setting;
}

?>
