<?php if (!defined('THINK_PATH')) exit(); if(!empty($ad_list)): ?><div class="top_bar"><ul id="banner_list" class="banner"><?php if(is_array($ad_list)): $i = 0; $__LIST__ = $ad_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$ad): $mod = ($i % 2 );++$i;?><li style="display: list-item;"><a style="background:url(<?php echo attach($ad['content'],'advert');?>) no-repeat center center;" target="_blank" href="<?php echo ($ad["url"]); ?>" class="pic"></a></li><?php endforeach; endif; else: echo "" ;endif; ?></ul></div><?php endif; ?>