first commit

This commit is contained in:
2024-10-25 23:02:37 +02:00
commit faeb2e52e8
7653 changed files with 1095335 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<div id="banners-container">
<ul class="rslides">
<? if ( is_array( $this -> banners ) ): foreach ( $this -> banners as $banner ):?>
<li>
<? if ( $banner['languages']['url'] ):?><a href="<?= $banner['languages']['url'];?>"><? endif;?>
<img src="<?= $banner['languages']['src'];?>">
<? if ( $banner['languages']['url'] ):?></a><? endif;?>
</li>
<? endforeach; endif;?>
</ul>
<? if ( is_array( $this -> banners ) ): foreach ( $this -> banners as $banner ):?>
<? if ( $banner['languages']['html'] ): $banner['languages']['html']; endif;?>
<? if ( $banner['languages']['text'] ): $banner['languages']['text']; endif;?>
<? endforeach; endif;?>
</div>
<link class="footer" rel="stylesheet" href="/plugins/responsive-slides/responsiveslides.css">
<script class="footer" type="text/javascript" src="/plugins/responsive-slides/responsiveslides.js"></script>
<script class="footer" type="text/javascript">
$( function ()
{
$( ".rslides" ).responsiveSlides({
speed: 800,
pager: true,
nav: true,
prevText: '<i class="fa fa-chevron-left"><\/i>',
nextText: '<i class="fa fa-chevron-right"><\/i>'
});
});
</script>

View File

@@ -0,0 +1,38 @@
<?
$image = getimagesize( substr( $this -> banner['languages']['src'], 1, strlen( $this -> banner['languages']['src'] ) ) );
?>
<div id="popup-bg" onClick="popup_close(); return false;">
<div id="popup-content"
<? if ( $this -> banner['languages']['url'] ):?>onClick="document.location.href='<?= $this -> banner['languages']['url'];?>'; return false;"<? endif;?>">
<? if ( $this -> banner['languages']['src'] ):?>
<img src="<?= $this -> banner['languages']['src'];?>" style="<? if ( $image[0] ):?> max-width: height: <?= $image[0];?>px;<? endif;?>;<? if ( $image[1] ):?>max-height: <?= $image[1];?>px;<? endif;?>">
<? 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 class="footer" type="text/javascript">
$( function()
{
$( 'body' ).addClass( 'no-scroll' );
});
function popup_close()
{
$.ajax(
{
type: 'POST',
cache: false,
url: 'ajax.php',
data:
{
a: 'banner_close'
},
success: function( data )
{
jQuery( "#popup-bg" ).remove();
$( 'body' ).removeClass( 'no-scroll' );
}
});
}
</script>