www.gusucode.com > ShopEx481 & PHPWind 整合版码程序 > plugins/widgets/ad/widget_ad.php
<?php function widget_ad(&$setting,&$system){ $output = &$system->loadModel('system/frontend'); $theme_dir = $system->base_url().'themes/'.$output->theme; foreach($setting['ad'] as $ad){ $ad['link'] = str_replace('%THEME%',$theme_dir,$ad['link']); $data[] = $ad; } return $data; } ?>