Refactor home page form and add new cennik page hero section
This commit is contained in:
14
templates_user/cennik-page-hero.php
Normal file
14
templates_user/cennik-page-hero.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<h2><img alt="" src="/upload/filemanager/new-2024/assets/Star.svg" /> Skorzystaj z ofert</h2>
|
||||||
|
|
||||||
|
<h1>Otrzymaj ofertę dostosowaną do Twojego biznesu</h1>
|
||||||
|
|
||||||
|
<p><strong>Użyj suwaków aby dostosować ofertę do Twojego biznesu, wpisz swojego maila i otrzymaj wycenę!</strong></p>
|
||||||
|
<img alt="" src="/upload/filemanager/new-2024/cennik/users.png" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-6"><? include 'templates_user/home-page-form.php';?></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
if (\S::get('action') == 'home_page_form_send') {
|
if ( \S::get('action') == 'home_page_form_send' )
|
||||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
{
|
||||||
|
if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||||
|
{
|
||||||
$recaptchaSecret = '6Le9GhEqAAAAAKUCOPR9QGXs4G81OGZ2CxUOu7rW';
|
$recaptchaSecret = '6Le9GhEqAAAAAKUCOPR9QGXs4G81OGZ2CxUOu7rW';
|
||||||
$recaptchaResponse = $_POST['g-recaptcha-response'];
|
$recaptchaResponse = $_POST['g-recaptcha-response'];
|
||||||
|
|
||||||
@@ -100,7 +102,7 @@ if (\S::get('action') == 'home_page_form_send') {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form method="POST" action="/" id="custom-form">
|
<form method="POST" action="" id="custom-form">
|
||||||
<input type="hidden" name="action" value="home_page_form_send">
|
<input type="hidden" name="action" value="home_page_form_send">
|
||||||
|
|
||||||
<div class="f-row">
|
<div class="f-row">
|
||||||
@@ -139,11 +141,11 @@ if (\S::get('action') == 'home_page_form_send') {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="checkbox-row">
|
<div class="checkbox-row">
|
||||||
<input type="checkbox" name="" id="checkbox-1" required>
|
<input type="checkbox" name="zgoda_inne_powiadomienia" id="checkbox-1" required>
|
||||||
<label for="checkbox-1">*Wyrażam zgodę na otrzymywanie innych powiadomień od firmy ... <a href="#" id="info-for-checkbox-1">Więcej</a></label>
|
<label for="checkbox-1">*Wyrażam zgodę na otrzymywanie innych powiadomień od firmy ... <a href="#" id="info-for-checkbox-1">Więcej</a></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="checkbox-row">
|
<div class="checkbox-row">
|
||||||
<input type="checkbox" name="" id="checkbox-2" required>
|
<input type="checkbox" name="zgoda_przetwarzanie_danych" id="checkbox-2" required>
|
||||||
<label for="checkbox-2">*Wyrażam zgodę na przechowywanie i przetwarzanie moich danych ... <a href="#" id="info-for-checkbox-2">Więcej</a></label>
|
<label for="checkbox-2">*Wyrażam zgodę na przechowywanie i przetwarzanie moich danych ... <a href="#" id="info-for-checkbox-2">Więcej</a></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -151,7 +153,7 @@ if (\S::get('action') == 'home_page_form_send') {
|
|||||||
<button type="submit" class="btn1">Otrzymaj wycenę</button>
|
<button type="submit" class="btn1">Otrzymaj wycenę</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<style>
|
<style type="text/css">
|
||||||
.checkbox-rows{
|
.checkbox-rows{
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
@@ -167,6 +169,7 @@ if (\S::get('action') == 'home_page_form_send') {
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||||
<script class="footer">
|
<script class="footer">
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('body').on('click', '#info-for-checkbox-1', function (e) {
|
$('body').on('click', '#info-for-checkbox-1', function (e) {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<div id="hero-slider">
|
<div id="hero-slider">
|
||||||
<div class="container big ">
|
<div class="container big ">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Reference in New Issue
Block a user