public static function getAttachUrl($url, $echo = true) { if ($echo) { echo LuLu::getWebUrl() . '/data/attachment/' . $url; } return LuLu::getWebUrl() . '/data/attachment/' . $url; }
<?php $dataSource = DataSource::getContentByChannel($channelIds); ?> <li><a href="http://2014.sina.com.cn/news/uru/2014-06-27/202016127.shtml" mon="ct=1&a=2&c=top&pn=8" target="_blank">苏亚雷斯归国总统亲自欢迎</a> <a href="http://2014.sina.com.cn/news/uru/2014-06-27/192516118.shtml" mon="ct=1&a=2&c=top&pn=8" target="_blank">意大利被咬大将:禁令过重</a></li> <li><a href="http://2014.sina.com.cn/news/por/2014-06-27/235716162.shtml" mon="ct=1&a=2&c=top&pn=9" target="_blank">C罗世界杯惊魂!房间藏男人</a> <a href="http://2014.sina.com.cn/news/arg/2014-06-28/035316240.shtml" mon="ct=1&a=2&c=top&pn=9" target="_blank">梅西太强!对手自嘲是坨屎</a></li> <li><a href="http://2014.sina.com.cn/news/ger/2014-06-28/031016229.shtml" mon="ct=1&a=2&c=top&pn=10" target="_blank">德媒曝国脚家属团险遭空难</a> <a href="http://2014.sina.com.cn/news/nig/2014-06-27/184616110.shtml" mon="ct=1&a=2&c=top&pn=10" target="_blank">未收到奖金!非洲雄鹰罢训</a></li> <li><a href="http://2014.sina.com.cn/news/mex/2014-06-28/015016181.shtml" mon="ct=1&a=2&c=top&pn=11" target="_blank">世界杯5大女神</a> <a href="http://2014.sina.com.cn/news/arg/2014-06-27/173216097.shtml" mon="ct=1&a=2&c=top&pn=11" target="_blank">最佳阵容:梅西内马尔</a> <a href="http://2014.sina.com.cn/news/fra/2014-06-28/000016163.shtml" mon="ct=1&a=2&c=top&pn=11" target="_blank">八大争议</a></li> <li><a href="http://2014.sina.com.cn/news/spa/2014-06-28/021116187.shtml" mon="ct=1&a=2&c=top&pn=12" target="_blank">数据析最大冷门非西班牙</a> <a href="http://2014.sina.com.cn/news/eng/2014-06-28/002016164.shtml" mon="ct=1&a=2&c=top&pn=12" target="_blank">英媒抨击杰拉德:就不该入选</a></li> </ul> </div> </div> </div> <div class="tbox ad"> <img src="<?php echo LuLu::getWebUrl(); ?> /images/ad680.gif" border="0" /> </div> <?php $index = 0; foreach ($dataList as $id => $value) { $channel = $this->params['cachedChannels'][$id]; $index += 1; $style = ' floatLeft'; if ($index % 2 == 0) { $style = ' floatRight'; } ?> <div class="tbox w335 border<?php echo $style;