first commit

This commit is contained in:
2025-03-06 19:27:29 +01:00
commit f2698d53d0
6352 changed files with 822401 additions and 0 deletions

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

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

188
templates/site/calendar.php Normal file
View File

@@ -0,0 +1,188 @@
<?php
$date = mktime( 12, 0, 0, $this -> month, 1, $this -> year );
$daysInMonth = date( "t", $date );
$offset = date( "w", $date ) - 1; if ( $offset < 0 ) $offset = 6;
$rows = 1;
$prev_month = $this -> month - 1;
$prev_year = $this -> year;
if ( $this -> month == 1 )
{
$prev_month = 12;
$prev_year = $this -> year - 1;
}
$next_month = $this -> month + 1;
$next_year = $this -> year;
if ( $this -> month == 12 )
{
$next_month = 1;
$next_year = $this -> year + 1;
}
?>
<? if ( !$this -> ajax ):?>
<div id="calendar-container">
<? endif;?>
<div class='panel-heading text-center'>
<div class='row'>
<div class='col-md-3 col-xs-4'>
<a class='month-prev btn btn-light btn-sm active' title="Poprzedni miesiąc" month="<?= $prev_month;?>" year="<?= $prev_year;?>">
<span class='glyphicon glyphicon-arrow-left'></span>
</a>
</div>
<div class='col-md-6 col-xs-4'>
<strong><?= $this -> months[ $this -> month ] . ' ' . $this -> year;?></strong>
</div>
<div class='col-md-3 col-xs-4 '>
<a class='month-next btn btn-light btn-sm active' title="Następny miesiąc" month="<?= $next_month;?>" year="<?= $next_year;?>">
<span class='glyphicon glyphicon-arrow-right'></span>
</a>
</div>
</div>
</div>
<table class='table table-bordered'>
<tr>
<th>Pn</th>
<th>Wt</th>
<th>Śr</th>
<th>Cz</th>
<th>Pt</th>
<th>Sb</th>
<th>Nd</th>
</tr>
<tr>
<? for ( $i = 1; $i <= $offset; $i++ ):?>
<td></td>
<? endfor;?>
<?
for ( $day = 1; $day <= $daysInMonth; $day++ )
{
if ( ( $day + $offset - 1 ) % 7 == 0 && $day != 1 )
{
echo "</tr><tr>";
$rows++;
}
echo "<td class='";
if ( date( 'w', strtotime( $day . '-' . $this -> month . '-' . $this -> year ) ) == 6 )
echo 'sb ';
if ( date( 'w', strtotime( $day . '-' . $this -> month . '-' . $this -> year ) ) == 0 )
echo 'nd ';
$class = '';
$out_list = '';
if ( is_array( $this -> articles ) ) foreach ( $this -> articles as $article )
{
$date_tmp = date( 'Y-m-d', strtotime( $day . '-' . $this -> month . '-' . $this -> year ) );
if ( $date_tmp >= $article['date_start'] and $date_tmp <= $article['date_end'] )
{
$class = 'event ';
if ( !$out_list )
$out_list = '<ul id="events-' . $date_tmp . '">';
$article['language']['seo_link'] ? $url = $article['language']['seo_link'] : $url = 'a-' . $article['id'] . '-' . \S::seo( $article['language']['title'] );
$out_list .= '<li>';
$out_list .= '<a href="/' . $url . '" title="' . $article['language']['title'] . '"';
if ( $this -> article['language']['noindex'] )
$out_list .= 'rel="nofollow"';
$out_list .= '>' . $article['language']['title'] . '</a>';
$out .= '</li>';
}
}
if ( $out_list )
$out_list .= '</ul>';
$out .= $out_list;
echo $class;
echo "' date='" . $date_tmp . "'>" . $day . "</td>";
}
while ( ($day + $offset) <= $rows * 7 )
{
echo "<td></td>";
$day++;
}
?>
</tr>
</table>
<?= $out;?>
<a href="#" id="event-back">Wstecz</a>
<? if ( !$this -> ajax ):?>
</div>
<script type="text/javascript">
$( document ).ready( function()
{
$( 'body' ).on( 'click', '.event', function()
{
var date = $( this ).attr( 'date' );
$( '#calendar-container .panel-heading, #calendar-container table, #calendar-container ul' ).hide();
$( '#events-' + date + ', #event-back' ).show();
});
$( 'body' ).on( 'click', '#event-back', function()
{
var date = $( this ).attr( 'date' );
$( '#calendar-container .panel-heading, #calendar-container table' ).show();
$( '#calendar-container ul, #event-back' ).hide();
});
$( 'body' ).on( 'click', '.month-next.active', function()
{
$( '.month-next' ).removeClass( 'active' );
$( '#calendar-container' ).addClass( 'disable' );
$.ajax(
{
type: 'POST',
cache: false,
url: '/ajax.php',
data:
{
a: 'calendar',
month: $( '.month-next' ).attr( 'month' ),
year: $( '.month-next' ).attr( 'year' )
},
success: function( data )
{
$( '#calendar-container' ).html( data );
$( '.month-next' ).addClass( 'active' );
$( '#calendar-container' ).removeClass( 'disable' );
}
});
});
$( 'body' ).on( 'click', '.month-prev.active', function()
{
$( '.month-prev' ).removeClass( 'active' );
$( '#calendar-container' ).addClass( 'disable' );
$.ajax(
{
type: 'POST',
cache: false,
url: '/ajax.php',
data:
{
a: 'calendar',
month: $( '.month-prev' ).attr( 'month' ),
year: $( '.month-prev' ).attr( 'year' )
},
success: function( data )
{
$( '#calendar-container' ).html( data );
$( '.month-prev' ).addClass( 'active' );
$( '#calendar-container' ).removeClass( 'disable' );
}
});
});
});
</script>
<? endif;?>

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

@@ -0,0 +1,264 @@
<? global $settings, $lang, $config;?>
<? if ( $settings['google_maps'] and $settings['firm_adress'] ):?>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false&key=<?=$settings['google_map_key']?>"></script>
<script 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="col-xs-12 col-md-6">
<div id="contact-additional-info"><?= $settings['additional_info'];?></div>
</div>
<div class="col-xs-12 col-md-6">
<? if ( $settings['contact_form'] ):?>
<form class="form-horizontal" id="contact-form">
<div id="contact-form">
<div class="form-group">
<label for="email" class="col-xs-12"><?= ucfirst( $lang['email'] );?> <span class='red'>*</span>:</label>
<div class="col-xs-12">
<input type='text' id="email" name="email" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="phone" class="col-xs-12"><?= ucfirst( $lang['nr-telefonu'] );?> <span class='red'>*</span>:</label>
<div class="col-xs-12">
<input type='text' id="phone" name="phone" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="subject" class="col-xs-12"><?= ucfirst( $lang['temat'] );?>:</label>
<div class="col-xs-12">
<input type='text' id="subject" name="subject" value="Zapytanie ze strony <?= preg_replace( '#^(http(s)?://)?w{3}\.#', '$1', $_SERVER['SERVER_NAME'] );?>" class="form-control" />
</div>
</div>
<div class="form-group">
<label for="text" class="col-xs-12"><?= ucfirst( $lang['wiadomosc'] );?>:</label>
<div class="col-xs-12">
<textarea id="text" name="text" class="form-control"></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>
<? if ( $settings['contact_form_captcha'] ):?>
<div class="form-group">
<div class="col-xs-12 small">
<div class="captcha">
<div class="check"> </div> <span>Nie jestem robotem</span>
</div>
</div>
</div>
<? endif;?>
<div class="form-group">
<div class="col-xs-12">
<a class='btn btn-success' id="contact-form-send" onclick="send_message(); return false;"><?= $lang['wyslij'];?></a>
</div>
</div>
</div>
</form>
<? endif;?>
</div>
<? if ( $settings['contact_form_captcha'] ):?>
<link href="/libraries/jquery/captcha.css" rel="stylesheet" type="text/css">
<script class="footer" type="text/javascript" src="/libraries/jquery/captcha.js"></script>
<? endif;?>
<script class="footer" type="text/javascript">
<? if ( $settings['contact_form_captcha'] ):?>
$( function()
{
$( '#contact-form' ).captcha();
});
<? endif;?>
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: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'col-sm-6 offset-sm-3',
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: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'col-sm-6 offset-sm-3',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
return false;
}
<? if ( $settings['contact_form_captcha'] ):?>
if ( !verifyCaptcha( '#contact-form' ) )
{
$.alert(
{
title: '<?= ucfirst( $lang['blad'] );?>',
content: 'Proszę uzupełnić captchę',
type: 'orange',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'col-sm-6 offset-sm-3',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
return false;
}
<? endif;?>
$.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: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|60000',
columnClass: 'col-sm-6 offset-sm-3',
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: 'blue',
closeIcon: true,
closeIconClass: 'fa fa-close',
typeAnimated: true,
animation: 'opacity',
autoClose: 'confirm|10000',
columnClass: 'col-sm-6 offset-sm-3',
buttons:
{
confirm:
{
text: '<?= $lang['zamknij'];?>',
btnClass: 'btn-blue',
keys: ['enter'],
action: function() {}
}
}
});
}
});
}
</script>

View File

@@ -0,0 +1,27 @@
<div id="contrast">
<a href="#">
<i class="fa fa-adjust"></i>
</a>
</div>
<script type="text/javascript">
$( function()
{
$( 'body' ).on( 'click', '#contrast a', function()
{
$.ajax(
{
type: 'POST',
cache: false,
url: '/ajax.php',
data:
{
a: 'contrast'
},
success: function( data )
{
location.reload();
}
});
});
});
</script>

View File

@@ -0,0 +1,34 @@
<!-- <div id="cookie-information">
<div class="container">
<div class="row">
<div class="col-12 py-3">
As part of our website, we use cookies to provide you with services at the highest level, including in a manner tailored to individual needs.
Using the website without changing the settings for cookies means accepting the fact that they will be placed on your end device.
You can change your cookie settings at any time. <a href="#" onclick="cookie_close(); return false;">[I accept]</a>
</div>
</div>
</div>
</div>
<script 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,3 @@
<div id="copyright">
Realizacja: <a href="http://www.project-pro.pl/" title="Project-Pro">Project-Pro</a> - <a href="http://www.project-pro.pl/" title="projektowanie stron www">projektowanie stron www</a>
</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 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'], $lg['domain'], $this -> default_domain );?>" 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>

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

@@ -0,0 +1,44 @@
<?
global $lang;
$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>
<a href="/<?= $link;?>"><?= $lang['pierwsza'];?></a>
</li>
<li>
<? if ( $this -> bs - 1 > 1 ):?>
<a href="/<?= $link;?>-s-<?= $this -> bs - 1;?>"><?= $lang['poprzednia'];?></a>
<? else:?>
<a href="/<?= $link;?>"><?= $lang['poprzednia'];?></a>
<? endif;?>
</li>
<? else:?>
<li>
<a href="#" class="inactive"><?= $lang['pierwsza'];?></a>
</li>
<li>
<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>
<a href="/<?= $link;?>-s-<?= $this -> bs + 1;?>"><?= $lang['nastepna'];?></a>
</li>
<li>
<a href="/<?= $link;?>-s-<?= $this -> ls;?>"><?= $lang['ostatnia'];?></a>
</li>
<? else:?>
<li>
<a href="#" class="inactive"><?= $lang['nastepna'];?></a>
</li>
<li>
<a href="#" class="inactive"><?= $lang['ostatnia'];?></a>
</li>
<? endif;?>
</ul>

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

@@ -0,0 +1,3 @@
<h1 class="site-title">
<?= $this -> title;?>
</h1>

View File

@@ -0,0 +1,4 @@
<div id="visit-counter">
Odwiedziło nas: <span><?= $this -> visit_counter;?></span> osób.
</div>