first commit

This commit is contained in:
2024-11-21 14:26:28 +01:00
commit 78fe46c8a7
2082 changed files with 158662 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<div id="banners-container">
<? if ( is_array( $this -> banners ) ): foreach ( $this -> banners as $banner ):?>
<div class="mini-banner" <? if ( $banner['languages']['url'] ):?>onClick="document.location.href='<?= $banner['languages']['url'];?>'; return false;"<? endif;?> <? if ( $banner['languages']['src'] ):?>style="background-image: url( '<?= $banner['languages']['src'];?>' );"<? endif;?>>
<? if ( $banner['languages']['html'] ): echo $banner['languages']['html']; endif;?>
<? if ( $banner['languages']['text'] ): echo $banner['languages']['text']; endif;?>
</div>
<? endforeach; endif;?>
</div>

View File

@@ -0,0 +1,25 @@
<div id="banner-bg" onClick="banner_close(); return false;">
<div id="banner" <? if ( $this -> banner['languages']['url'] ):?>onClick="document.location.href='<?= $this -> banner['languages']['url'];?>'; return false;"<? endif;?> <? if ( $this -> banner['languages']['src'] ):?>style="background-image: url( '<?= $this -> banner['src'];?>' );"<? endif;?>>
<? if ( $this -> banner['languages']['html'] ): echo $this -> banner['languages']['html']; endif;?>
<? if ( $this -> banner['languages']['text'] ): echo $this -> banner['languages']['text']; endif;?>
</div>
</div>
<script type="text/javascript">
function banner_close()
{
$.ajax(
{
type: 'POST',
cache: false,
url: 'ajax.php',
data:
{
a: 'banner_close'
},
success: function( data )
{
jQuery( "#banner-bg" ).remove();
}
});
}
</script>