Completato sistema di banner e rotazioni Inserito sistema per ricerca full text
23 lines
536 B
PHP
23 lines
536 B
PHP
<?php
|
|
/*
|
|
Author: Riccardo Di Dato
|
|
Creation Date: 11/mar/2016
|
|
*/
|
|
|
|
class BannerHelper{
|
|
private static $INTERNAL_COUNT = 1;
|
|
|
|
public static function printBanner($position = BannerModel::POSITION_HEAD){
|
|
$cur = self::getPlaceholderId();
|
|
?>
|
|
<div id="<?php echo $cur;?>"><script type="text/javascript">$(document).ready(function () {bannerRoll('<?php echo $cur;?>',<?php echo $position;?>);});</script></div>
|
|
<?php
|
|
}
|
|
|
|
private static function getPlaceholderId(){
|
|
return 'banPlaceholder_'.(self::$INTERNAL_COUNT++);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|