-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DiwaDental is a Modern Responsive template for Dentist & Dental Clini…
…c website.This is built with Bootstrap 5.x and Sass. Any health-related website such as dentist clinic, dental practices, doctors clinic, hospital, doctor consultation center, cosmetic surgery center, medical laboratory, dental clinic, centenary clinic, pharmacy, etc. For healthcare professionals like a general practitioner, surgeon, dentist, veterinarian, psychiatrist, psychologist, ophthalmologist, physiotherapist, or gynecologist website, the template will be a great fit. Fully responsive design layouts with visitor-centric stunning look and feel will help reach the business’s target audience.
- Loading branch information
1 parent
be2e1c3
commit 6e64469
Showing
137 changed files
with
28,480 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
// Only process POST reqeusts. | ||
if ($_SERVER["REQUEST_METHOD"] == "POST") { | ||
// Get the form fields and remove whitespace. | ||
$name = strip_tags(trim($_POST["name"])); | ||
$name = str_replace(array("\r", "\n"), array(" ", " "), $name); | ||
$email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL); | ||
$message = trim($_POST["message"]); | ||
|
||
// Check that data was sent to the mailer. | ||
if (empty($name) OR empty($message) OR !filter_var($email, FILTER_VALIDATE_EMAIL)) { | ||
// Set a 400 (bad request) response code and exit. | ||
http_response_code(400); | ||
echo "Please complete the form and try again."; | ||
exit; | ||
} | ||
|
||
// Set the recipient email address. | ||
// FIXME: Update this to your desired email address. | ||
$recipient = "hello@gridtemplate.com"; | ||
|
||
// Set the email subject. | ||
$subject = "New contact from $name"; | ||
|
||
// Build the email content. | ||
$email_content = "First Name: $name\n"; | ||
$email_content .= "Email: $email\n\n"; | ||
$email_content .= "Message:\n$message\n"; | ||
|
||
// Build the email headers. | ||
$email_headers = "From: $name <$email>"; | ||
|
||
// Send the email. | ||
if (mail($recipient, $email_content, $email_headers)) { | ||
// Set a 200 (okay) response code. | ||
http_response_code(200); | ||
echo "Thank You! Your message has been sent."; | ||
} else { | ||
// Set a 500 (internal server error) response code. | ||
http_response_code(500); | ||
echo "Oops! Something went wrong and we couldn't send your message."; | ||
} | ||
|
||
} else { | ||
// Not a POST request, set a 403 (forbidden) response code. | ||
http_response_code(403); | ||
echo "There was a problem with your submission, please try again."; | ||
} | ||
|
||
?> | ||
|
||
|
||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
@font-face { | ||
font-family: "flaticon"; | ||
src: url("../../fonts/flaticon.ttf?de907dc9386223b9df052a84d5235c1b") format("truetype"), | ||
url("../../fonts/flaticon.woff?de907dc9386223b9df052a84d5235c1b") format("woff"), | ||
url("../../fonts/flaticon.woff2?de907dc9386223b9df052a84d5235c1b") format("woff2"), | ||
url("../../fonts/flaticon.eot?de907dc9386223b9df052a84d5235c1b#iefix") format("embedded-opentype"), | ||
url("../../fonts/flaticon.svg?de907dc9386223b9df052a84d5235c1b#flaticon") format("svg"); | ||
} | ||
@font-face { | ||
font-family: "flaticon"; | ||
src: url("../../fonts/flaticon.ttf?ef40d1771f4317873ca461c9ee78e047") format("truetype"), | ||
url("../../fonts/flaticon.woff?ef40d1771f4317873ca461c9ee78e047") format("woff"), | ||
url("../../fonts/flaticon.woff2?ef40d1771f4317873ca461c9ee78e047") format("woff2"), | ||
url("../../fonts/flaticon.eot?ef40d1771f4317873ca461c9ee78e047#iefix") format("embedded-opentype"), | ||
url("../../fonts/flaticon.svg?ef40d1771f4317873ca461c9ee78e047#flaticon") format("svg"); | ||
} | ||
|
||
i[class^="flaticon-"]:before, i[class*=" flaticon-"]:before { | ||
font-family: flaticon !important; | ||
font-style: normal; | ||
font-weight: normal !important; | ||
font-variant: normal; | ||
text-transform: none; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
|
||
|
||
.flaticon-health-check:before { | ||
content: "\f101"; | ||
} | ||
.flaticon-medicine:before { | ||
content: "\f102"; | ||
} | ||
.flaticon-ambulance:before { | ||
content: "\f103"; | ||
} | ||
.flaticon-doctor:before { | ||
content: "\f104"; | ||
} | ||
.flaticon-microscope:before { | ||
content: "\f105"; | ||
} | ||
.flaticon-surgery-room:before { | ||
content: "\f106"; | ||
} | ||
.flaticon-user:before { | ||
content: "\f107"; | ||
} | ||
.flaticon-message:before { | ||
content: "\f108"; | ||
} | ||
.flaticon-phone-call:before { | ||
content: "\f109"; | ||
} | ||
.flaticon-schedule:before { | ||
content: "\f10a"; | ||
} | ||
.flaticon-right-quotation-mark:before { | ||
content: "\f10b"; | ||
} | ||
.flaticon-add-user:before { | ||
content: "\f10c"; | ||
} | ||
.flaticon-calendar:before { | ||
content: "\f10d"; | ||
} | ||
.flaticon-emergency-call:before { | ||
content: "\f10e"; | ||
} | ||
.flaticon-medical-report:before { | ||
content: "\f10f"; | ||
} | ||
.flaticon-quotation-marks:before { | ||
content: "\f110"; | ||
} | ||
.flaticon-chat:before { | ||
content: "\f111"; | ||
} | ||
.flaticon-chat-1:before { | ||
content: "\f112"; | ||
} | ||
.flaticon-reply:before { | ||
content: "\f113"; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.