mail send upgrade

This commit is contained in:
sHa
2019-10-07 23:18:20 +03:00
parent b2f0562603
commit bb3fbc62d2
11 changed files with 1311 additions and 1761 deletions

7
.env Normal file
View File

@@ -0,0 +1,7 @@
SMTP_SERVER=smtp.mailgun.org
SMTP_USER=site@mg.slavforest.com.ua
SMTP_PASSWORD=bec5494ae5dd629663b3150237e6f361-af6c0cec-6f6edfe8
SMTP_RECEIVER=slavforest@gmail.com
SENDER_NAME='Site form slavforest.com.ua'
SENDER_EMAIL=site@mg.slavforest.com.ua

7
.env.example Normal file
View File

@@ -0,0 +1,7 @@
SMTP_SERVER=smtp.mailgun.org
SMTP_USER=site@mg.slavforest.com.ua
SMTP_PASSWORD=bec5494ae5dd629663b3150237e6f361-af6c0cec-6f6edfe8
SMTP_RECEIVER=test2@shadoll.com
SENDER_NAME=Site form slavforest.com.ua
SENDER_EMAIL=site@mg.slavforest.com.ua

View File

@@ -1,7 +1,8 @@
{
"name": "shadoll/slavforest",
"description": "Slav forest site",
"require": {
"slim/slim": "^3.0",
"mailgun/mailgun-php": "^2.6",
"slim/php-view": "^2.2"
"vlucas/phpdotenv": "^3.6",
"phpmailer/phpmailer": "^6.1"
}
}

View File

@@ -1,86 +0,0 @@
<?php
$sendfrom = "site@slavforest.com.ua";
$sendto = "sha@shadoll.work; info@slavforest.com.ua";
$subject = "📨 Повідомлення з сайту slavforest.com.ua";
$username = !empty($_POST['name'])?trim(stripslashes($_POST['name'])):'';
$userphone = !empty($_POST['phone'])?trim(stripslashes($_POST['phone'])):'';
$usermail = !empty($_POST['email'])?trim(stripslashes($_POST['email'])):'';
$order = !empty($_POST['order'])?trim(stripslashes($_POST['order'])):'';
$subj = !empty($_POST['subject'])?trim(stripslashes($_POST['subject'])):'';
$message = !empty($_POST['message'])?trim(stripslashes($_POST['message'])):'';
$referer = !empty($_POST['referer'])?trim(stripslashes($_POST['referer'])):'';
$ip = $_SERVER['REMOTE_ADDR']; // the IP address to query
$query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip));
if($query && $query['status'] == 'success') {
$detect = true;
$country_code = $query['countryCode'];
$country = $query['country'];
$region = $query['regionName'];
$city = $query['city'];
$provider = $query['isp'];
}
else
$detect = false;
$headers = "From:".strip_tags($sendfrom)."\r\n";
if(!empty($usermail))
$headers .= "Reply-To: ".strip_tags($usermail)."\r\n";
else
$headers .= "Reply-To: ".strip_tags($sendto)."\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html;charset=utf-8 \r\n";
$msg = "<html><body style='font-family:Arial,sans-serif;'>";
$msg .= '<img src="https://zebnits.com/images/logo_black.png" alt="logo">';
$msg .= "<h2 style='font-weight:bold;border-bottom:1px dotted #ccc;'>".$subject."</h2>\r\n";
$msg .= "<p><strong>Від кого:</strong> ".$username."</p>\r\n";
if(!empty($userphone))
$msg .= "<p><strong>Телефон:</strong> ".$userphone."</p>\r\n";
if(!empty($usermail))
$msg .= "<p><strong>Email:</strong> ".$usermail."</p>\r\n";
$msg .= "<hr>\r\n";
if(!empty($subj))
$msg .= "<p><strong>Тема:</strong>\r\n".$subj."</p>\r\n";
if(!empty($order))
$msg .= "<p><strong>Заказ:</strong>\r\n".$order."</p>\r\n";
if(!empty($message))
$msg .= "<p><strong>Повідомлення:</strong>\r\n".$message."</p>\r\n";
$msg .= "<hr>\r\n";
$msg .= "<p><strong>Реферал:</strong> ".$referer."</p>\r\n";
$msg .= "<p><strong>IP-адреса відправника:</strong> ".$ip."</p>\r\n";
if($detect){
$msg .= "<p><strong>Провайдер:</strong> ".$provider."</p>\r\n";
$msg .= "<p><strong>Країна:</strong> ".$country." <img style='height:14px; width:auto' src='http://www.geognos.com/api/en/countries/flag/".$country_code.".png'></p>\r\n";
$msg .= "<p><strong>Регіон:</strong> ".$region."</p>\r\n";
$msg .= "<p><strong>Населений пункт:</strong> ".$city."</p>\r\n";
}
$msg .= "</body></html>";
if(empty($username)){
echo json_encode([
'message'=>'Please enter your name.',
'callback'=>'error',
'focus'=>'name'
]);
}
elseif(empty($usermail)){
echo json_encode([
'message'=>'Please enter valid e-mail.',
'callback'=>'error',
'focus'=>'email'
]);
}
else{
$success = @mail($sendto, $subject, $msg, $headers);
echo json_encode([
'html'=>'our message has been sent. We will reply soon. Thank you!',
'target'=>".response",
'callback'=>"message_send"
]);
}

90
contactengine.php.bak Normal file
View File

@@ -0,0 +1,90 @@
<?php
$sendfrom = "site@slavforest.com.ua";
$sendto = "sha@shadoll.work; info@slavforest.com.ua";
$subject = "📨 Повідомлення з сайту slavforest.com.ua";
$username = !empty($_POST['name'])?trim(stripslashes($_POST['name'])):'';
$userphone = !empty($_POST['phone'])?trim(stripslashes($_POST['phone'])):'';
$usermail = !empty($_POST['email'])?trim(stripslashes($_POST['email'])):'';
$order = !empty($_POST['order'])?trim(stripslashes($_POST['order'])):'';
$subj = !empty($_POST['subject'])?trim(stripslashes($_POST['subject'])):'';
$message = !empty($_POST['message'])?trim(stripslashes($_POST['message'])):'';
$referer = !empty($_POST['referer'])?trim(stripslashes($_POST['referer'])):'';
$ip = $_SERVER['REMOTE_ADDR']; // the IP address to query
$query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip));
if ($query && $query['status'] == 'success') {
$detect = true;
$country_code = $query['countryCode'];
$country = $query['country'];
$region = $query['regionName'];
$city = $query['city'];
$provider = $query['isp'];
} else {
$detect = false;
}
$headers = "From:".strip_tags($sendfrom)."\r\n";
if (!empty($usermail)) {
$headers .= "Reply-To: ".strip_tags($usermail)."\r\n";
} else {
$headers .= "Reply-To: ".strip_tags($sendto)."\r\n";
}
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html;charset=utf-8 \r\n";
$msg = "<html><body style='font-family:Arial,sans-serif;'>";
$msg .= '<img src="https://zebnits.com/images/logo_black.png" alt="logo">';
$msg .= "<h2 style='font-weight:bold;border-bottom:1px dotted #ccc;'>".$subject."</h2>\r\n";
$msg .= "<p><strong>Від кого:</strong> ".$username."</p>\r\n";
if (!empty($userphone)) {
$msg .= "<p><strong>Телефон:</strong> ".$userphone."</p>\r\n";
}
if (!empty($usermail)) {
$msg .= "<p><strong>Email:</strong> ".$usermail."</p>\r\n";
}
$msg .= "<hr>\r\n";
if (!empty($subj)) {
$msg .= "<p><strong>Тема:</strong>\r\n".$subj."</p>\r\n";
}
if (!empty($order)) {
$msg .= "<p><strong>Заказ:</strong>\r\n".$order."</p>\r\n";
}
if (!empty($message)) {
$msg .= "<p><strong>Повідомлення:</strong>\r\n".$message."</p>\r\n";
}
$msg .= "<hr>\r\n";
$msg .= "<p><strong>Реферал:</strong> ".$referer."</p>\r\n";
$msg .= "<p><strong>IP-адреса відправника:</strong> ".$ip."</p>\r\n";
if ($detect) {
$msg .= "<p><strong>Провайдер:</strong> ".$provider."</p>\r\n";
$msg .= "<p><strong>Країна:</strong> ".$country." <img style='height:14px; width:auto' src='http://www.geognos.com/api/en/countries/flag/".$country_code.".png'></p>\r\n";
$msg .= "<p><strong>Регіон:</strong> ".$region."</p>\r\n";
$msg .= "<p><strong>Населений пункт:</strong> ".$city."</p>\r\n";
}
$msg .= "</body></html>";
if (empty($username)) {
echo json_encode([
'message'=>'Please enter your name.',
'callback'=>'error',
'focus'=>'name'
]);
} elseif (empty($usermail)) {
echo json_encode([
'message'=>'Please enter valid e-mail.',
'callback'=>'error',
'focus'=>'email'
]);
} else {
$success = @mail($sendto, $subject, $msg, $headers);
echo json_encode([
'html'=>'our message has been sent. We will reply soon. Thank you!',
'target'=>".response",
'callback'=>"message_send"
]);
}

67
contactform.php Normal file
View File

@@ -0,0 +1,67 @@
<?php
require __DIR__.'/sender.php';
$username = !empty($_POST['name'])?trim(stripslashes($_POST['name'])):'';
$userphone = !empty($_POST['phone'])?trim(stripslashes($_POST['phone'])):'';
$usermail = !empty($_POST['email'])?trim(stripslashes($_POST['email'])):'';
$subject = !empty($_POST['subject'])?trim(stripslashes($_POST['subject'])):'';
$message = !empty($_POST['message'])?trim(stripslashes($_POST['message'])):'';
$referer = !empty($_POST['referer'])?trim(stripslashes($_POST['referer'])):'';
if (!empty($_SERVER) && array_key_exists('REMOTE_ADDR', $_SERVER)) {
$ip = $_SERVER['REMOTE_ADDR']; // the IP address to query
$query = @unserialize(file_get_contents('http://ip-api.com/php/'.$ip));
if ($query && $query['status'] == 'success') {
$detect = true;
$country_code = $query['countryCode'];
$country = $query['country'];
$region = $query['regionName'];
$city = $query['city'];
$provider = $query['isp'];
} else {
$detect = false;
}
} else {
$ip = 'no IP';
$detect = false;
}
$msg = "<html><body style='font-family:Arial,sans-serif;'>";
$msg .= '<img style="height:60px; widht:auto" src="http://slavforest.com.ua/images/logo_w.png" alt="logo">';
$msg .= "<h2 style='font-weight:bold;border-bottom:1px dotted #ccc;'>".$subject."</h2>\r\n";
$msg .= "<p><strong>Від кого:</strong> ".$username."</p>\r\n";
if (!empty($userphone)) {
$msg .= "<p><strong>Телефон:</strong> ".$userphone."</p>\r\n";
}
if (!empty($usermail)) {
$msg .= "<p><strong>Email:</strong> ".$usermail."</p>\r\n";
}
$msg .= "<hr>\r\n";
if (!empty($subj)) {
$msg .= "<p><strong>Тема:</strong>\r\n".$subj."</p>\r\n";
}
if (!empty($message)) {
$msg .= "<p><strong>Повідомлення:</strong>\r\n".$message."</p>\r\n";
}
$msg .= "<hr>\r\n";
$msg .= "<p><strong>Реферал:</strong> ".$referer."</p>\r\n";
$msg .= "<p><strong>IP-адреса відправника:</strong> ".$ip."</p>\r\n";
if ($detect) {
$msg .= "<p><strong>Провайдер:</strong> ".$provider."</p>\r\n";
$msg .= "<p><strong>Країна:</strong> ".$country." <img style='height:14px; width:auto' src='http://www.geognos.com/api/en/countries/flag/".$country_code.".png'></p>\r\n";
$msg .= "<p><strong>Регіон:</strong> ".$region."</p>\r\n";
$msg .= "<p><strong>Населений пункт:</strong> ".$city."</p>\r\n";
}
$msg .= "</body></html>";
$data = (object)[
'name' => $username,
'email' => $usermail,
'subject' => "📨 Повідомлення з сайту slavforest.com.ua",
'body' => $msg,
];
$sender = (new sender)->send($data);

View File

@@ -1,43 +1,30 @@
<!DOCTYPE html>
<html lang="uk">
<head>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Slav Forest - виготовлення високоякісних пиломатеріалів</title>
<link
href="https://fonts.googleapis.com/css?family=Raleway:500,600,700,800,900,400,300"
rel="stylesheet"
type="text/css"
/>
<link
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900,300italic,400italic"
rel="stylesheet"
type="text/css"
/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap.min.css"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/css?family=Raleway:500,600,700,800,900,400,300" rel="stylesheet"
type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900,300italic,400italic"
rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap.min.css"
rel="stylesheet" />
<!-- Owl Carousel Assets -->
<link href="css/owl.carousel.css" rel="stylesheet" />
<link href="css/owl.theme.css" rel="stylesheet" />
<!-- Pixeden Icon Font -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/pixeden-stroke-7-icon@1.2.3/pe-icon-7-stroke/dist/pe-icon-7-stroke.min.css"
/>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/pixeden-stroke-7-icon@1.2.3/pe-icon-7-stroke/dist/pe-icon-7-stroke.min.css" />
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous" />
<!-- PrettyPhoto -->
<link href="css/prettyPhoto.css" rel="stylesheet" />
@@ -57,9 +44,9 @@
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
</head>
<body>
<body>
<div class="spn_hol">
<div class="logo"><img src="images/logo_w.png" alt="" /></div>
<div class="spinner">
@@ -75,18 +62,11 @@
<div class="language">
українською | <a href="index_en.html">english</a>
</div>
<nav
class="navbar navbar-default navbar-fixed-top"
role="navigation"
>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button
type="button"
class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1"
>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
@@ -96,10 +76,7 @@
<img src="images/logo_w.png" alt="Logo" />
</a>
</div>
<div
class="collapse navbar-collapse"
id="bs-example-navbar-collapse-1"
>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="#HOME">Домівка</a></li>
<li><a href="#ABOUT">Про компанію</a></li>
@@ -130,12 +107,8 @@
<div class="download-btn">
<!-- <a class="btn home-btn wow fadeInLeft" href="#DOWNLOAD">Download</a> -->
<a
class="tuor btn wow fadeInRight"
href="#ABOUT"
>ДЕТАЛЬНІШЕ
<i class="fa fa-angle-down"></i
></a>
<a class="tuor btn wow fadeInRight" href="#ABOUT">ДЕТАЛЬНІШЕ
<i class="fa fa-angle-down"></i></a>
</div>
</div>
</div>
@@ -166,21 +139,14 @@
<div class="container">
<div class="row">
<div class="col-md-12 about_desc">
<div
class="about_image wow fadeInLeft"
data-wow-duration="1s"
data-wow-delay=".5s"
>
<div class="about_image wow fadeInLeft" data-wow-duration="1s" data-wow-delay=".5s">
<!-- <img src="images/about1.jpg" alt=""> -->
<div class="video-container">
<iframe
width="560"
height="315"
<iframe width="560" height="315"
src="https://www.youtube.com/embed/wv_TNGLzF8I?cc_load_policy=1&controls=0&enablejsapi=1&hl=uk&modestbranding=1&playsinline=1&iv_load_policy=3&rel=0&showinfo=0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
allowfullscreen></iframe>
</div>
</div>
</div>
@@ -194,10 +160,7 @@
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div
class="section_title wow fadeIn"
data-wow-duration="1s"
>
<div class="section_title wow fadeIn" data-wow-duration="1s">
<h2>Наші досягнення</h2>
<p></p>
</div>
@@ -245,10 +208,7 @@
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div
class="section_title wow fadeIn"
data-wow-duration="1s"
>
<div class="section_title wow fadeIn" data-wow-duration="1s">
<h2>Продукція</h2>
<p>
Продукція яку ми пропонуємо та потужності
@@ -261,10 +221,7 @@
<div class="feature_inner">
<div class="row">
<div
class="col-md-12 spotlight wow bounceInLeft"
data-wow-duration="1s"
>
<div class="col-md-12 spotlight wow bounceInLeft" data-wow-duration="1s">
<div class="image fit">
<img src="images/prod1.jpg" alt="" />
</div>
@@ -276,10 +233,7 @@
</p>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInRight"
data-wow-duration="2s"
>
<div class="col-md-12 spotlight wow bounceInRight" data-wow-duration="2s">
<div class="image fit">
<img src="images/prod2.jpg" alt="" />
</div>
@@ -291,10 +245,7 @@
</p>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInLeft"
data-wow-duration="3s"
>
<div class="col-md-12 spotlight wow bounceInLeft" data-wow-duration="3s">
<div class="image fit">
<img src="images/prod3.jpg" alt="" />
</div>
@@ -307,10 +258,7 @@
<p></p>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInRight"
data-wow-duration="4s"
>
<div class="col-md-12 spotlight wow bounceInRight" data-wow-duration="4s">
<div class="image fit">
<img src="images/prod4.jpg" alt="" />
</div>
@@ -356,10 +304,7 @@
</p>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInLeft"
data-wow-duration="3s"
>
<div class="col-md-12 spotlight wow bounceInLeft" data-wow-duration="3s">
<div class="image fit">
<img src="images/prod5.jpg" alt="" />
</div>
@@ -392,10 +337,7 @@
</ul>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInRight"
data-wow-duration="4s"
>
<div class="col-md-12 spotlight wow bounceInRight" data-wow-duration="4s">
<div class="image fit">
<img src="images/prod6.jpg" alt="" />
</div>
@@ -427,9 +369,7 @@
дають приємний запах
</li>
<li>
Паливні брикети з тирси виділяють СО<sup
>2</sup
>
Паливні брикети з тирси виділяють СО<sup>2</sup>
в десять разів менше, ніж природний газ і в
п&#39;ятдесят разів менше, ніж вугілля.
</li>
@@ -450,10 +390,7 @@
<section class="apps_screen page" id="LOGISTICS">
<div class="container">
<div class="row">
<div
class="col-md-10 col-md-offset-1 wow fadeInBig"
data-wow-duration="1s"
>
<div class="col-md-10 col-md-offset-1 wow fadeInBig" data-wow-duration="1s">
<div class="section_title">
<h2>Логістика</h2>
<p>
@@ -474,47 +411,23 @@
</div>
<div class="screen_slider">
<div
id="logist"
class="wow bounceInRight"
data-wow-duration="1s"
>
<div id="logist" class="wow bounceInRight" data-wow-duration="1s">
<div id="owl-logist-" class="owl-carousel">
<div class="item">
<a href="images/logist_01.jpg" rel="logist"
><img
src="images/logist_01.jpg"
width="80"
height="60"
alt=""
/></a>
<a href="images/logist_01.jpg" rel="logist"><img src="images/logist_01.jpg" width="80"
height="60" alt="" /></a>
</div>
<div class="item">
<a href="images/logist_02.jpg" rel="logist"
><img
src="images/logist_02.jpg"
width="80"
height="60"
alt=""
/></a>
<a href="images/logist_02.jpg" rel="logist"><img src="images/logist_02.jpg" width="80"
height="60" alt="" /></a>
</div>
<div class="item">
<a href="images/logist_01.jpg" rel="logist"
><img
src="images/logist_01.jpg"
width="80"
height="60"
alt=""
/></a>
<a href="images/logist_01.jpg" rel="logist"><img src="images/logist_01.jpg" width="80"
height="60" alt="" /></a>
</div>
<div class="item">
<a href="images/logist_02.jpg" rel="logist"
><img
src="images/logist_02.jpg"
width="80"
height="60"
alt=""
/></a>
<a href="images/logist_02.jpg" rel="logist"><img src="images/logist_02.jpg" width="80"
height="60" alt="" /></a>
</div>
</div>
</div>
@@ -564,7 +477,9 @@
<div class="section_title">
<h2>Сертифікати</h2>
<p>
Наше підприємство сертифіковане за системою <a href="https://info.fsc.org/details.php?id=a023300000gPuZmAAK&type=certificate">FSC® (FSC-С135534)</a>, стандарту ланцюжка постачання FSC-STD-40-004.
Наше підприємство сертифіковане за системою <a
href="https://info.fsc.org/details.php?id=a023300000gPuZmAAK&type=certificate">FSC®
(FSC-С135534)</a>, стандарту ланцюжка постачання FSC-STD-40-004.
</p>
</div>
</div>
@@ -572,29 +487,15 @@
</div>
<div class="available_store">
<div
class="container wow bounceInBottom"
data-wow-duration="1s"
>
<div class="container wow bounceInBottom" data-wow-duration="1s">
<div class="col-md-6 col-md-offset-3">
<div
class="cert_screen text-center wow fadeInUp"
data-wow-duration="1s"
>
<a
href="images/cert_1.png"
rel="prettyPhoto[cert_gal]"
class="cert1 wow bounceInLeft"
data-wow-duration="4s"
>
<div class="cert_screen text-center wow fadeInUp" data-wow-duration="1s">
<a href="images/cert_1.png" rel="prettyPhoto[cert_gal]" class="cert1 wow bounceInLeft"
data-wow-duration="4s">
<img src="images/cert_1.png" alt="" />
</a>
<a
href="images/cert_2.png"
rel="prettyPhoto[cert_gal]"
class="cert2 wow bounceInRight"
data-wow-duration="4s"
>
<a href="images/cert_2.png" rel="prettyPhoto[cert_gal]" class="cert2 wow bounceInRight"
data-wow-duration="4s">
<img src="images/cert_2.png" alt="" />
</a>
</div>
@@ -610,26 +511,14 @@
<div class="section_title">
<h2>Контактна інформація</h2>
<p>
<span class="cnt_email"
><i class="far fa-envelope"></i>
<a href="mailto:slavforest@gmail.com"
>slavforest@gmail.com</a
></span
>
<span class="cnt_email"><i class="far fa-envelope"></i>
<a href="mailto:slavforest@gmail.com">slavforest@gmail.com</a></span>
<br />
<span class="cnt_phone"
><i class="fas fa-phone"></i>
<a href="tel:+380465734110"
>+380 4657 34 110</a
></span
>
<span class="cnt_phone"><i class="fas fa-phone"></i>
<a href="tel:+380465734110">+380 4657 34 110</a></span>
<br />
<span class="cnt_phone"
><i class="fas fa-mobile-alt"></i>
<a href="tel:+380952858202"
>+380 95 285 82 02</a
></span
>
<span class="cnt_phone"><i class="fas fa-mobile-alt"></i>
<a href="tel:+380952858202">+380 95 285 82 02</a></span>
</p>
</div>
</div>
@@ -669,41 +558,18 @@
</div>
<div class="Sucess"></div>
<form role="form" action="contactengine.php">
<form role="form" action="contactform.php">
<div class="row">
<div class="col-md-4">
<input
type="text"
class="form-control"
id="name"
placeholder="Ім'я"
/>
<input
type="email"
class="form-control"
id="email"
placeholder="Email"
/>
<input
type="text"
class="form-control"
id="subject"
placeholder="Тема"
/>
<input type="text" class="form-control" id="name" placeholder="Ім'я" />
<input type="email" class="form-control" id="email" placeholder="Email" />
<input type="text" class="form-control" id="subject" placeholder="Тема" />
</div>
<div class="col-md-8">
<textarea
class="form-control"
id="message"
rows="25"
cols="10"
placeholder="Зміст повідомлення..."
></textarea>
<button
type="button"
class="btn btn-default submit-btn form_submit"
>
<textarea class="form-control" id="message" rows="25" cols="10"
placeholder="Зміст повідомлення..."></textarea>
<button type="button" class="btn btn-default submit-btn form_submit">
Надіслати повідомлення
</button>
</div>
@@ -716,7 +582,10 @@
<section class="map">
<div class="row ">
<div class="col-md-12"><div id="map"></div></div>
<div class="col-md-12">
<iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
src="https://www.openstreetmap.org/export/embed.html?bbox=32.246516738086946%2C51.76255256365215%2C32.257524523884065%2C51.7682695097955&amp;layer=mapnik&amp;marker=51.76541112722293%2C32.2520206309855"></iframe>
</div>
</div>
</section>
@@ -726,7 +595,7 @@
<div class="row">
<div class="col-md-6">
<div class="copy_right_text">
<p>Copyright &copy; 2018. Slav Forest</p>
<p>Copyright &copy; 2019. Slav Forest</p>
<p>
Розробка
<a href="https://web.shadoll.com/">shadoll</a>
@@ -757,169 +626,8 @@
<script src="js/jquery.counterup.min.js"></script>
<script src="js/script.js"></script>
<script
type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAhdArtaaWedoUxQY4e35HFFWIgd6L1ibs"
></script>
<script type="text/javascript">
google.maps.event.addDomListener(window, "load", init);
function init() {
var mapOptions = {
zoom: 13,
center: new google.maps.LatLng(51.765435, 32.2519384),
styles: [
{
featureType: "all",
elementType: "labels",
stylers: [{ visibility: "on" }]
},
{
featureType: "all",
elementType: "labels.text.fill",
stylers: [
{ saturation: 36 },
{ color: "#000000" },
{ lightness: 40 }
]
},
{
featureType: "all",
elementType: "labels.text.stroke",
stylers: [
{ visibility: "on" },
{ color: "#000000" },
{ lightness: 16 }
]
},
{
featureType: "all",
elementType: "labels.icon",
stylers: [{ visibility: "off" }]
},
{
featureType: "administrative",
elementType: "geometry.fill",
stylers: [{ color: "#000000" }, { lightness: 20 }]
},
{
featureType: "administrative",
elementType: "geometry.stroke",
stylers: [
{ color: "#000000" },
{ lightness: 17 },
{ weight: 1.2 }
]
},
{
featureType: "administrative.country",
elementType: "labels.text.fill",
stylers: [{ color: "#e5c163" }]
},
{
featureType: "administrative.locality",
elementType: "labels.text.fill",
stylers: [{ color: "#c4c4c4" }]
},
{
featureType: "administrative.neighborhood",
elementType: "labels.text.fill",
stylers: [{ color: "#e5c163" }]
},
{
featureType: "landscape",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 20 }]
},
{
featureType: "poi",
elementType: "geometry",
stylers: [
{ color: "#000000" },
{ lightness: 21 },
{ visibility: "on" }
]
},
{
featureType: "poi.business",
elementType: "geometry",
stylers: [{ visibility: "on" }]
},
{
featureType: "road.highway",
elementType: "geometry.fill",
stylers: [{ color: "#e5c163" }, { lightness: "0" }]
},
{
featureType: "road.highway",
elementType: "geometry.stroke",
stylers: [{ visibility: "off" }]
},
{
featureType: "road.highway",
elementType: "labels.text.fill",
stylers: [{ color: "#ffffff" }]
},
{
featureType: "road.highway",
elementType: "labels.text.stroke",
stylers: [{ color: "#e5c163" }]
},
{
featureType: "road.arterial",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 18 }]
},
{
featureType: "road.arterial",
elementType: "geometry.fill",
stylers: [{ color: "#575757" }]
},
{
featureType: "road.arterial",
elementType: "labels.text.fill",
stylers: [{ color: "#ffffff" }]
},
{
featureType: "road.arterial",
elementType: "labels.text.stroke",
stylers: [{ color: "#2c2c2c" }]
},
{
featureType: "road.local",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 16 }]
},
{
featureType: "road.local",
elementType: "labels.text.fill",
stylers: [{ color: "#999999" }]
},
{
featureType: "transit",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 19 }]
},
{
featureType: "water",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 17 }]
}
]
};
var mapElement = document.getElementById("map");
var map = new google.maps.Map(mapElement, mapOptions);
var marker = new google.maps.Marker({
position: new google.maps.LatLng(51.765435, 32.2519384),
map: map,
title: "Slav Forest"
});
}
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-125391384-1"
></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-125391384-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
@@ -929,5 +637,6 @@
gtag("config", "UA-125391384-1");
</script>
</body>
</body>
</html>

View File

@@ -1,43 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Slav Forest - Production of High-Quality Timber Products</title>
<link
href="https://fonts.googleapis.com/css?family=Raleway:500,600,700,800,900,400,300"
rel="stylesheet"
type="text/css"
/>
<link
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900,300italic,400italic"
rel="stylesheet"
type="text/css"
/>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap.min.css"
rel="stylesheet"
/>
<link href="https://fonts.googleapis.com/css?family=Raleway:500,600,700,800,900,400,300" rel="stylesheet"
type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900,300italic,400italic"
rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/css/bootstrap.min.css"
rel="stylesheet" />
<!-- Owl Carousel Assets -->
<link href="css/owl.carousel.css" rel="stylesheet" />
<link href="css/owl.theme.css" rel="stylesheet" />
<!-- Pixeden Icon Font -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/pixeden-stroke-7-icon@1.2.3/pe-icon-7-stroke/dist/pe-icon-7-stroke.min.css"
/>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/pixeden-stroke-7-icon@1.2.3/pe-icon-7-stroke/dist/pe-icon-7-stroke.min.css" />
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous" />
<!-- PrettyPhoto -->
<link href="css/prettyPhoto.css" rel="stylesheet" />
@@ -57,9 +44,9 @@
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
</head>
<body>
<body>
<div class="spn_hol">
<div class="logo"><img src="images/logo_w.png" alt="" /></div>
<div class="spinner">
@@ -75,18 +62,11 @@
<div class="language">
<a href="index.html">українською</a> | english
</div>
<nav
class="navbar navbar-default navbar-fixed-top"
role="navigation"
>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button
type="button"
class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1"
>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
@@ -96,10 +76,7 @@
<img src="images/logo_w.png" alt="Logo" />
</a>
</div>
<div
class="collapse navbar-collapse"
id="bs-example-navbar-collapse-1"
>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="#HOME">Home</a></li>
<li><a href="#ABOUT">About Us</a></li>
@@ -132,12 +109,8 @@
<div class="download-btn">
<!-- <a class="btn home-btn wow fadeInLeft" href="#DOWNLOAD">Download</a> -->
<a
class="tuor btn wow fadeInRight"
href="#ABOUT"
><i class="fa fa-angle-down"></i> More
<i class="fa fa-angle-down"></i
></a>
<a class="tuor btn wow fadeInRight" href="#ABOUT"><i class="fa fa-angle-down"></i> More
<i class="fa fa-angle-down"></i></a>
</div>
</div>
</div>
@@ -168,21 +141,14 @@
<div class="container">
<div class="row">
<div class="col-md-12 about_desc">
<div
class="about_image wow fadeInLeft"
data-wow-duration="1s"
data-wow-delay=".5s"
>
<div class="about_image wow fadeInLeft" data-wow-duration="1s" data-wow-delay=".5s">
<!-- <img src="images/about1.jpg" alt=""> -->
<div class="video-container">
<iframe
width="560"
height="315"
<iframe width="560" height="315"
src="https://www.youtube.com/embed/B7yXW0_-Rgw?cc_load_policy=1&controls=0&enablejsapi=1&hl=en&modestbranding=1&playsinline=1&iv_load_policy=3&rel=0&showinfo=0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
allowfullscreen></iframe>
</div>
</div>
</div>
@@ -196,10 +162,7 @@
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div
class="section_title wow fadeIn"
data-wow-duration="1s"
>
<div class="section_title wow fadeIn" data-wow-duration="1s">
<h2>Our achievements</h2>
<p></p>
</div>
@@ -247,10 +210,7 @@
<div class="container">
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div
class="section_title wow fadeIn"
data-wow-duration="1s"
>
<div class="section_title wow fadeIn" data-wow-duration="1s">
<h2>Products</h2>
<p>Annual production capacity.</p>
</div>
@@ -260,10 +220,7 @@
<div class="feature_inner">
<div class="row">
<div
class="col-md-12 spotlight wow bounceInLeft"
data-wow-duration="1s"
>
<div class="col-md-12 spotlight wow bounceInLeft" data-wow-duration="1s">
<div class="image fit">
<img src="images/prod1.jpg" alt="" />
</div>
@@ -273,10 +230,7 @@
<p></p>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInRight"
data-wow-duration="2s"
>
<div class="col-md-12 spotlight wow bounceInRight" data-wow-duration="2s">
<div class="image fit">
<img src="images/prod2.jpg" alt="" />
</div>
@@ -286,10 +240,7 @@
<p></p>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInLeft"
data-wow-duration="3s"
>
<div class="col-md-12 spotlight wow bounceInLeft" data-wow-duration="3s">
<div class="image fit">
<img src="images/prod3.jpg" alt="" />
</div>
@@ -301,10 +252,7 @@
<p></p>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInRight"
data-wow-duration="4s"
>
<div class="col-md-12 spotlight wow bounceInRight" data-wow-duration="4s">
<div class="image fit">
<img src="images/prod4.jpg" alt="" />
</div>
@@ -349,10 +297,7 @@
</p>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInLeft"
data-wow-duration="3s"
>
<div class="col-md-12 spotlight wow bounceInLeft" data-wow-duration="3s">
<div class="image fit">
<img src="images/prod5.jpg" alt="" />
</div>
@@ -378,10 +323,7 @@
</ul>
</div>
</div>
<div
class="col-md-12 spotlight wow bounceInRight"
data-wow-duration="4s"
>
<div class="col-md-12 spotlight wow bounceInRight" data-wow-duration="4s">
<div class="image fit">
<img src="images/prod6.jpg" alt="" />
</div>
@@ -436,10 +378,7 @@
<section class="apps_screen page" id="LOGISTICS">
<div class="container">
<div class="row">
<div
class="col-md-10 col-md-offset-1 wow fadeInBig"
data-wow-duration="1s"
>
<div class="col-md-10 col-md-offset-1 wow fadeInBig" data-wow-duration="1s">
<div class="section_title">
<h2>Logistics</h2>
<p>
@@ -455,47 +394,23 @@
</div>
<div class="screen_slider">
<div
id="logist"
class="wow bounceInRight"
data-wow-duration="1s"
>
<div id="logist" class="wow bounceInRight" data-wow-duration="1s">
<div id="owl-logist" class="owl-carousel">
<div class="item">
<a href="images/logist_01.jpg" rel="logist"
><img
src="images/logist_01.jpg"
width="80"
height="60"
alt=""
/></a>
<a href="images/logist_01.jpg" rel="logist"><img src="images/logist_01.jpg" width="80"
height="60" alt="" /></a>
</div>
<div class="item">
<a href="images/logist_02.jpg" rel="logist"
><img
src="images/logist_02.jpg"
width="80"
height="60"
alt=""
/></a>
<a href="images/logist_02.jpg" rel="logist"><img src="images/logist_02.jpg" width="80"
height="60" alt="" /></a>
</div>
<div class="item">
<a href="images/logist_01.jpg" rel="logist"
><img
src="images/logist_01.jpg"
width="80"
height="60"
alt=""
/></a>
<a href="images/logist_01.jpg" rel="logist"><img src="images/logist_01.jpg" width="80"
height="60" alt="" /></a>
</div>
<div class="item">
<a href="images/logist_02.jpg" rel="logist"
><img
src="images/logist_02.jpg"
width="80"
height="60"
alt=""
/></a>
<a href="images/logist_02.jpg" rel="logist"><img src="images/logist_02.jpg" width="80"
height="60" alt="" /></a>
</div>
</div>
</div>
@@ -537,7 +452,9 @@
<div class="section_title">
<h2>Sertificates</h2>
<p>
The company was certified according to <a href="https://info.fsc.org/details.php?id=a023300000gPuZmAAK&type=certificate">FSC® (FSC-С135534)</a>, Standard FSC-STD-40-004.
The company was certified according to <a
href="https://info.fsc.org/details.php?id=a023300000gPuZmAAK&type=certificate">FSC®
(FSC-С135534)</a>, Standard FSC-STD-40-004.
</p>
</div>
</div>
@@ -545,29 +462,15 @@
</div>
<div class="available_store">
<div
class="container wow bounceInBottom"
data-wow-duration="1s"
>
<div class="container wow bounceInBottom" data-wow-duration="1s">
<div class="col-md-6 col-md-offset-3">
<div
class="cert_screen text-center wow fadeInUp"
data-wow-duration="1s"
>
<a
href="images/cert_1.png"
rel="prettyPhoto[cert_gal]"
class="cert1 wow bounceInLeft"
data-wow-duration="4s"
>
<div class="cert_screen text-center wow fadeInUp" data-wow-duration="1s">
<a href="images/cert_1.png" rel="prettyPhoto[cert_gal]" class="cert1 wow bounceInLeft"
data-wow-duration="4s">
<img src="images/cert_1.png" alt="" />
</a>
<a
href="images/cert_2.png"
rel="prettyPhoto[cert_gal]"
class="cert2 wow bounceInRight"
data-wow-duration="4s"
>
<a href="images/cert_2.png" rel="prettyPhoto[cert_gal]" class="cert2 wow bounceInRight"
data-wow-duration="4s">
<img src="images/cert_2.png" alt="" />
</a>
</div>
@@ -583,26 +486,14 @@
<div class="section_title">
<h2>Contacts</h2>
<p>
<span class="cnt_email"
><i class="far fa-envelope"></i>
<a href="mailto:slavforest@gmail.com"
>slavforest@gmail.com</a
></span
>
<span class="cnt_email"><i class="far fa-envelope"></i>
<a href="mailto:slavforest@gmail.com">slavforest@gmail.com</a></span>
<br />
<span class="cnt_phone"
><i class="fas fa-phone"></i>
<a href="tel:+380465734110"
>+380 4657 34 110</a
></span
>
<span class="cnt_phone"><i class="fas fa-phone"></i>
<a href="tel:+380465734110">+380 4657 34 110</a></span>
<br />
<span class="cnt_phone"
><i class="fas fa-mobile-alt"></i>
<a href="tel:+380952858202"
>+380 95 285 82 02</a
></span
>
<span class="cnt_phone"><i class="fas fa-mobile-alt"></i>
<a href="tel:+380952858202">+380 95 285 82 02</a></span>
</p>
</div>
</div>
@@ -642,41 +533,18 @@
</div>
<div class="Sucess"></div>
<form role="form" action="contact.php">
<form role="form" action="contactform.php">
<div class="row">
<div class="col-md-4">
<input
type="text"
class="form-control"
id="name"
placeholder="Name"
/>
<input
type="email"
class="form-control"
id="email"
placeholder="Email"
/>
<input
type="text"
class="form-control"
id="subject"
placeholder="Subject"
/>
<input type="text" class="form-control" id="name" placeholder="Name" />
<input type="email" class="form-control" id="email" placeholder="Email" />
<input type="text" class="form-control" id="subject" placeholder="Subject" />
</div>
<div class="col-md-8">
<textarea
class="form-control"
id="message"
rows="25"
cols="10"
placeholder="Message content..."
></textarea>
<button
type="button"
class="btn btn-default submit-btn form_submit"
>
<textarea class="form-control" id="message" rows="25" cols="10"
placeholder="Message content..."></textarea>
<button type="button" class="btn btn-default submit-btn form_submit">
Send message
</button>
</div>
@@ -689,7 +557,10 @@
<section class="map">
<div class="row ">
<div class="col-md-12"><div id="map"></div></div>
<div class="col-md-12">
<iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
src="https://www.openstreetmap.org/export/embed.html?bbox=32.246516738086946%2C51.76255256365215%2C32.257524523884065%2C51.7682695097955&amp;layer=mapnik&amp;marker=51.76541112722293%2C32.2520206309855"></iframe>
</div>
</div>
</section>
@@ -699,7 +570,7 @@
<div class="row">
<div class="col-md-6">
<div class="copy_right_text">
<p>Copyright &copy; 2018. Slav Forest</p>
<p>Copyright &copy; 2019. Slav Forest</p>
<p>
Devolopment
<a href="https://web.shadoll.com/">shadoll</a>
@@ -730,169 +601,8 @@
<script src="js/jquery.counterup.min.js"></script>
<script src="js/script.js"></script>
<script
type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAhdArtaaWedoUxQY4e35HFFWIgd6L1ibs&language=en"
></script>
<script type="text/javascript">
google.maps.event.addDomListener(window, "load", init);
function init() {
var mapOptions = {
zoom: 13,
center: new google.maps.LatLng(51.765435, 32.2519384),
styles: [
{
featureType: "all",
elementType: "labels",
stylers: [{ visibility: "on" }]
},
{
featureType: "all",
elementType: "labels.text.fill",
stylers: [
{ saturation: 36 },
{ color: "#000000" },
{ lightness: 40 }
]
},
{
featureType: "all",
elementType: "labels.text.stroke",
stylers: [
{ visibility: "on" },
{ color: "#000000" },
{ lightness: 16 }
]
},
{
featureType: "all",
elementType: "labels.icon",
stylers: [{ visibility: "off" }]
},
{
featureType: "administrative",
elementType: "geometry.fill",
stylers: [{ color: "#000000" }, { lightness: 20 }]
},
{
featureType: "administrative",
elementType: "geometry.stroke",
stylers: [
{ color: "#000000" },
{ lightness: 17 },
{ weight: 1.2 }
]
},
{
featureType: "administrative.country",
elementType: "labels.text.fill",
stylers: [{ color: "#e5c163" }]
},
{
featureType: "administrative.locality",
elementType: "labels.text.fill",
stylers: [{ color: "#c4c4c4" }]
},
{
featureType: "administrative.neighborhood",
elementType: "labels.text.fill",
stylers: [{ color: "#e5c163" }]
},
{
featureType: "landscape",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 20 }]
},
{
featureType: "poi",
elementType: "geometry",
stylers: [
{ color: "#000000" },
{ lightness: 21 },
{ visibility: "on" }
]
},
{
featureType: "poi.business",
elementType: "geometry",
stylers: [{ visibility: "on" }]
},
{
featureType: "road.highway",
elementType: "geometry.fill",
stylers: [{ color: "#e5c163" }, { lightness: "0" }]
},
{
featureType: "road.highway",
elementType: "geometry.stroke",
stylers: [{ visibility: "off" }]
},
{
featureType: "road.highway",
elementType: "labels.text.fill",
stylers: [{ color: "#ffffff" }]
},
{
featureType: "road.highway",
elementType: "labels.text.stroke",
stylers: [{ color: "#e5c163" }]
},
{
featureType: "road.arterial",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 18 }]
},
{
featureType: "road.arterial",
elementType: "geometry.fill",
stylers: [{ color: "#575757" }]
},
{
featureType: "road.arterial",
elementType: "labels.text.fill",
stylers: [{ color: "#ffffff" }]
},
{
featureType: "road.arterial",
elementType: "labels.text.stroke",
stylers: [{ color: "#2c2c2c" }]
},
{
featureType: "road.local",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 16 }]
},
{
featureType: "road.local",
elementType: "labels.text.fill",
stylers: [{ color: "#999999" }]
},
{
featureType: "transit",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 19 }]
},
{
featureType: "water",
elementType: "geometry",
stylers: [{ color: "#000000" }, { lightness: 17 }]
}
]
};
var mapElement = document.getElementById("map");
var map = new google.maps.Map(mapElement, mapOptions);
var marker = new google.maps.Marker({
position: new google.maps.LatLng(51.765435, 32.2519384),
map: map,
title: "Slav Forest"
});
}
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-125391384-1"
></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-125391384-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
@@ -902,5 +612,6 @@
gtag("config", "UA-125391384-1");
</script>
</body>
</body>
</html>

View File

@@ -273,7 +273,7 @@ $(document).ready(function() {
}
if (name && emaild && message) {
$.ajax({
url: 'contactengine.php',
url: 'contactform.php',
data: {
name: name,
email: emaild,

44
sender.php Normal file
View File

@@ -0,0 +1,44 @@
<?php
require __DIR__.'/vendor/autoload.php';
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
class sender
{
public function send($data)
{
$dotenv = \Dotenv\Dotenv::create(__DIR__);
$dotenv->load();
$mail = new PHPMailer(true);
try {
$mail->isSMTP();
$mail->CharSet = 'UTF-8';
$mail->Host = getenv('SMTP_SERVER');
$mail->SMTPAuth = true;
$mail->Username = getenv('SMTP_USER');
$mail->Password = getenv('SMTP_PASSWORD');
$mail->SMTPSecure = 'tls';
$mail->From = getenv('SENDER_EMAIL');
$mail->FromName = getenv('SENDER_NAME');
$mail->addAddress(getenv('SMTP_RECEIVER'));
$mail->isHTML(true);
$mail->Subject = $data->subject;
$mail->Body = $data->body;
$mail->send();
echo 'Message has been sent';
return true;
} catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
return false;
}
}
}