<?php
	/**
	 * 专题banner模块
	 * 需要参数参见component_13_pls
	 * @version $Id: component_13.tpl.php 10890 2011-02-28 11:06:34Z yaoying $
	 */
if(!defined('IN_APPLICATION')){
	exit('ACCESS DENIED!');
}


?>

<div class="custom-banner">
	<?php if(isset($mod['param']['link'])): ?><a href="<?php echo $mod['param']['link']; ?>"><?php endif; ?>
	<img
	    src="<?php echo strlen(W_BASE_URL_PATH) > 1 ? W_BASE_URL_PATH.$mod['param']['src'] : $mod['param']['src'];?>"
	    alt="<?php echo F('escape', $mod['title']);?>"
	    <?php if(isset($mod['param']['height']) && (int)$mod['param']['height'] > 0): ?>height="<?php echo (int)$mod['param']['height']; ?>"<?php endif; ?>
	    <?php if(isset($mod['param']['width']) && (int)$mod['param']['width'] > 0): ?>width="<?php echo (int)$mod['param']['width']; ?>"<?php endif; ?>
	/>
	<?php if(isset($mod['param']['link'])): ?></a><?php endif; ?>
</div>