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

3
templates/site/alert.php Normal file
View File

@@ -0,0 +1,3 @@
<div class="alert alert-success">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a><?= $this -> alert;?>
</div>

221
templates/site/contact.php Normal file
View File

@@ -0,0 +1,221 @@
<? global $settings, $lang, $config;?>
<? if ( $settings['google_maps'] and $settings['firm_adress'] ):?>
<script class="footer" type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&key=<?=$settings['google_map_key']?>"></script>
<script class="footer" type="text/javascript">
google.maps.event.addDomListener(window, 'load', init);
function init() {
var mapOptions = {
zoom: 14,
scrollwheel: false,
styles: [{"elementType":"geometry","stylers":[{"hue":"#ff4400"},{"saturation":-68},{"lightness":-4},{"gamma":0.72}]},{"featureType":"road","elementType":"labels.icon"},{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"hue":"#0077ff"},{"gamma":3.1}]},{"featureType":"water","stylers":[{"hue":"#00ccff"},{"gamma":0.44},{"saturation":-33}]},{"featureType":"poi.park","stylers":[{"hue":"#44ff00"},{"saturation":-23}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"hue":"#007fff"},{"gamma":0.77},{"saturation":65},{"lightness":99}]},{"featureType":"water","elementType":"labels.text.stroke","stylers":[{"gamma":0.11},{"weight":5.6},{"saturation":99},{"hue":"#0091ff"},{"lightness":-86}]},{"featureType":"transit.line","elementType":"geometry","stylers":[{"lightness":-48},{"hue":"#ff5e00"},{"gamma":1.2},{"saturation":-23}]},{"featureType":"transit","elementType":"labels.text.stroke","stylers":[{"saturation":-64},{"hue":"#ff9100"},{"lightness":16},{"gamma":0.47},{"weight":2.7}]}]
};
var mapElement = document.getElementById('google-map');
var map = new google.maps.Map(mapElement, mapOptions);
var geocoder = new google.maps.Geocoder();
var address = '<?= preg_replace( '/\s+/', ' ', $settings['firm_adress'] );?>';
geocoder.geocode({'address': address}, function(results, status) {
if (status === google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
} else {
alert('Geocode was not successful for the following reason: ' + status);
}
});
}
</script>
<div id='google-map'></div>
<? endif;?>
<div class="row">
<div class="col-12 col-md-6">
<div id="contact-additional-info"><?= $settings['additional_info'];?></div>
</div>
<div class="col-12 col-md-6">
<? if ( $settings['contact_form'] ):?>
<form class="form-horizontal" id="contact-form">
<div id="contact-form">
<div class="form-group row">
<div class="col-12">
<input type='email' id="email" name="email" class="form-control" placeholder="<?= ucfirst( $lang['email'] );?> *" />
</div>
</div>
<div class="form-group row">
<div class="col-12">
<input type='text' id="phone" name="phone" class="form-control" placeholder="<?= ucfirst( $lang['nr-telefonu'] );?> *" />
</div>
</div>
<div class="form-group row">
<div class="col-12">
<input type='text' id="subject" name="subject" placeholder="<?= ucfirst( $lang['temat'] );?>" value="Zapytanie ze strony <?= preg_replace( '#^(http(s)?://)?w{3}\.#', '$1', $_SERVER['SERVER_NAME'] );?>" class="form-control" />
</div>
</div>
<div class="form-group row">
<div class="col-12">
<textarea id="text" name="text" class="form-control" placeholder="<?= ucfirst( $lang['wiadomosc'] );?>"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-xs-12 small">
<input type="checkbox" id="agreement" name="agreement" required="required" style="position: relative; top: 2px;" /> <?= $lang['kontakt-zgoda-checkbox'];?>
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<a href="#" class='btn btn-success' id="contact-form-send" onclick="send_message(); return false;"><span class="text"><?= $lang['wyslij'];?></span></a>
</div>
</div>
</div>
</form>
<? endif;?>
</div>
</div>
<script type="text/javascript">
function send_message()
{
var email = $.trim( $( '#contact-form #email' ).val() );
var phone = $.trim( $( '#contact-form #phone' ).val() );
var subject = $.trim( $( '#contact-form #subject' ).val() );
var text = $.trim( $( '#contact-form #text' ).val() );
if ( email === '' && phone === '' )
{
$.alert(
{
title: '<?= ucfirst( $lang['blad'] );?>',
content: '<?= $lang['prosze-uzupelnic-email-i-telefon'];?>',
type: 'orange',
closeIcon: true,
closeIconClass: 'fas fa-close',
typeAnimated: true,
animation: 'opacity',
useBootstrap: false,
theme: 'modern',
autoClose: 'confirm|10000',
icon: 'fas fa-exclamation',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
return false;
}
if ( !$( '#contact-form #agreement' ).is( ':checked' ) )
{
$.alert(
{
title: '<?= ucfirst( $lang['blad'] );?>',
content: '<?= $lang['prosze-zaznaczyc-zgode'];?>',
type: 'orange',
closeIcon: true,
closeIconClass: 'fas fa-close',
typeAnimated: true,
animation: 'opacity',
useBootstrap: false,
theme: 'modern',
autoClose: 'confirm|10000',
icon: 'fas fa-exclamation',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
return false;
}
$.ajax(
{
type: 'POST',
cache: false,
url: 'ajax.php',
data:
{
a: 'contact_form',
email: email,
phone: phone,
subject: subject,
text: text
},
beforeSend: function()
{
alert1 = $.alert(
{
title: '<?= ucfirst( $lang['informacja'] );?>',
content: '<?= $lang['prosze-czekac'];?>',
type: 'orange',
closeIcon: true,
closeIconClass: 'fas fa-close',
typeAnimated: true,
animation: 'opacity',
useBootstrap: false,
theme: 'modern',
autoClose: 'confirm|10000',
icon: 'fas fa-info',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
},
success: function( data )
{
response = jQuery.parseJSON( data );
if ( response.status === 'ok' )
var msg = '<?= $lang['wiadomosc-zostala-wyslana'];?>';
else
var msg = '<?= $lang['wiadomosc-niezostala-wyslana'];?>';
alert1.close();
$( '#contact-formp-big #email, #contact-form-big #text' ).val( '' );
$.alert(
{
title: '<?= ucfirst( $lang['informacja'] );?>',
content: msg,
type: 'orange',
closeIcon: true,
closeIconClass: 'fas fa-close',
typeAnimated: true,
animation: 'opacity',
useBootstrap: false,
theme: 'modern',
autoClose: 'confirm|10000',
icon: 'fas fa-info',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
}
});
}
</script>

View File

@@ -0,0 +1,34 @@
<div id="cookie-information">
<div class="container">
<div class="row">
<div class="col-xs-12">
W ramach naszej witryny stosujemy pliki cookies w celu świadczenia Państwu usług na najwyższym poziomie, w tym w sposób dostosowany do indywidualnych potrzeb.
Korzystanie z witryny bez zmiany ustawień dotyczących cookies oznacza akceptację faktu będą one zamieszczane w Państwa urządzeniu końcowym.
Możecie Państwo dokonać w każdym czasie zmiany ustawień dotyczących cookies. <a href="#" onclick="cookie_close(); return false;">[akceptuję]</a>
</div>
</div>
</div>
</div>
<script class="footer" type="text/javascript">
function cookie_close()
{
$.ajax(
{
type: 'POST',
cache: false,
url: '/ajax.php',
data:
{
a: 'cookie_close'
},
beforeSend: function()
{
$( '#cookie-information' ).remove();
},
success: function( data )
{
$( '#cookie-information' ).remove();
}
});
}
</script>

View File

@@ -0,0 +1,4 @@
<div id="copyright">
Copyright © 2019 - <?= date('Y');?> by Marianek.
Realizacja: Project-Pro <a href="https://www.project-pro.pl">sklepy internetowe</a>
</div>

3
templates/site/error.php Normal file
View File

@@ -0,0 +1,3 @@
<div class="alert alert-danger">
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a><?= $this -> error;?>
</div>

View File

@@ -0,0 +1,48 @@
<div id="facebook">
<div id="facebook-toggle"></div>
<iframe src="//www.facebook.com/plugins/likebox.php?href=<?= urlencode( $this -> facebook_link );?>&amp;width=292&amp;height=558&amp;show_faces=true&amp;colorscheme=light&amp;stream=true&amp;border_color=%23FFF&amp;header=false&amp;appId=194295077275888" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:558px;" allowTransparency="true"></iframe>
</div>
<style type="text/css">
#facebook {
position: fixed;
top: 50%;
margin-top: -277px;
background: #FFF;
z-index: 10;
border: 1px solid #3B5998;
border-left: 0px;
width: 292px;
height: 558px;
left: -293px;
-webkit-box-shadow: 1px 0px 3px 1px rgba(0, 0, 0, 0.3);
box-shadow: 1px 0px 3px 1px rgba(0, 0, 0, 0.3);
}
#facebook-toggle {
background: url( '/images/system/facebook.jpg' ) no-repeat center;
height: 133px;
width: 50px;
position: relative;
z-index: 12;
float: right;
right: -50px;
top: -1px;
-webkit-box-shadow: 1px 0px 3px 1px rgba(0, 0, 0, 0.3);
box-shadow: 1px 0px 3px 1px rgba(0, 0, 0, 0.3);
cursor: pointer;
}
#facebook iframe {
margin-top: -133px;
}
</style>
<script class="footer" type="text/javascript">
$( function()
{
$( '#facebook-toggle' ).click( function()
{
if ( !$( '#facebook' ).hasClass( 'show' ) )
$( '#facebook' ).addClass( 'show' ).animate({ left: -1 }, 1000 );
else
$( '#facebook' ).removeClass( 'show' ).animate({ left: -293 }, 500 );
});
});
</script>

View File

@@ -0,0 +1,20 @@
<? global $lang_id, $page;?>
<div id="languages">
<div class="container">
<div class="row">
<div class="col-xs-12">
<? if ( is_array( $this -> languages ) ):?>
<ul>
<? foreach ( $this -> languages as $lg ):?>
<li <? if ( $lang_id == $lg['id'] ) echo 'class="active"';?>>
<a href="<?= \front\factory\Pages::lang_url( $page['id'], $lg['id'] );?>" title="Język: <?= $lg['name'];?>">
<img src="/admin/css/lang-<?= $lg['id'];?>.jpg" alt="Język: <?= $lg['name'];?>">
</a>
</li>
<? endforeach;?>
</ul>
<? endif;?>
</div>
</div>
</div>
</div>

65
templates/site/loader.php Normal file
View File

@@ -0,0 +1,65 @@
<div id="loader">
<div class="lds-ripple"><div></div><div></div></div>
</div>
<style type="text/css">
#loader {
background: #77cdd1;
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 100;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
align-items: center;
-webkit-justify-content: center;
-moz-justify-content: center;
-ms-justify-content: center;
justify-content: center;
-ms-flex-pack: center;
}
.lds-ripple {
display: inline-block;
position: relative;
width: 64px;
height: 64px;
}
.lds-ripple div {
position: absolute;
border: 4px solid #fff;
opacity: 1;
border-radius: 50%;
animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
animation-delay: -0.5s;
}
@keyframes lds-ripple {
0% {
top: 28px;
left: 28px;
width: 0;
height: 0;
opacity: 1;
}
100% {
top: -1px;
left: -1px;
width: 58px;
height: 58px;
opacity: 0;
}
}
</style>
<script class="footer" type="text/javascript">
$( function() {
$( '#loader' ).fadeOut( 500, function() { $( this ).remove(); });
});
</script>

45
templates/site/pager.php Normal file
View File

@@ -0,0 +1,45 @@
<?
global $lang;
if ( $this -> link )
$link = $this -> link;
else
{
$this -> page['language']['seo_link'] ? $link = $this -> page['language']['seo_link'] : $link = 's-' . $this -> page['id'] . '-' . \S::seo( $this -> page['language']['title'] );
}
?>
<ul class="pager">
<? if ( $this -> bs > 1 ):?>
<li class="first">
<a href="/<?= $link;?>"><?= $lang['pierwsza'];?></a>
</li>
<li class="previous">
<a href="/<?= $link;?><?= ( $this -> bs - 1 > 1 ) ? '/' . ( $this -> bs - 1 ) : '';?>"><?= $lang['poprzednia'];?></a>
</li>
<? else:?>
<li class="first">
<a href="#" class="inactive"><?= $lang['pierwsza'];?></a>
</li>
<li class="previous">
<a href="#" class="inactive"><?= $lang['poprzednia'];?></a>
</li>
<? endif;?>
<li>
<span><?= $this -> bs ;?> <?= $lang['z'];?> <?= $this -> ls;?></span>
</li>
<? if ( $this -> bs < $this -> ls ):?>
<li class="next">
<a href="/<?= $link;?>/<?= $this -> bs + 1;?>"><?= $lang['nastepna'];?></a>
</li>
<li class="last">
<a href="/<?= $link;?>/<?= $this -> ls;?>"><?= $lang['ostatnia'];?></a>
</li>
<? else:?>
<li class="next">
<a href="#" class="inactive"><?= $lang['nastepna'];?></a>
</li>
<li class="last">
<a href="#" class="inactive"><?= $lang['ostatnia'];?></a>
</li>
<? endif;?>
</ul>

5
templates/site/title.php Normal file
View File

@@ -0,0 +1,5 @@
<? if ( $this -> show_title ):?>
<h1 class="site-title">
<?= $this -> page_title ? $this -> page_title : $this -> title;?>
</h1>
<? endif;?>