Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
Website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linisha Siriwardana
Website
Commits
fe34709b
Commit
fe34709b
authored
Oct 27, 2020
by
I.K Seneviratne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Committing the addition of email address in the 'Contact Us' section in the home page.
parent
91dbcffd
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
160 additions
and
128 deletions
+160
-128
assets/css/style.css
assets/css/style.css
+2
-2
forms/contact.php
forms/contact.php
+0
-41
index.html
index.html
+158
-85
No files found.
assets/css/style.css
View file @
fe34709b
...
@@ -1404,7 +1404,7 @@ section {
...
@@ -1404,7 +1404,7 @@ section {
#footer
.copyright
,
#footer
.credits
{
#footer
.copyright
,
#footer
.credits
{
padding
:
5px
;
padding
:
5px
;
float
:
none
;
float
:
none
;
text-align
:
cen
e
ter
;
text-align
:
center
;
}
}
}
}
.card-doc
{
.card-doc
{
...
@@ -1482,7 +1482,7 @@ section {
...
@@ -1482,7 +1482,7 @@ section {
.carousel-control-next-icon
{
.carousel-control-next-icon
{
background-image
:
url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E")
!important
;
background-image
:
url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E")
!important
;
}
}
lex-direction
:
column
;
lex-direction
,
column
{
}
}
.btn
{
.btn
{
...
...
forms/contact.php
deleted
100644 → 0
View file @
91dbcffd
<?php
/**
* Requires the "PHP Email Form" library
* The "PHP Email Form" library is available only in the pro version of the template
* The library should be uploaded to: vendor/php-email-form/php-email-form.php
* For more info and help: https://bootstrapmade.com/php-email-form/
*/
// Replace contact@example.com with your real receiving email address
$receiving_email_address
=
'contact@example.com'
;
if
(
file_exists
(
$php_email_form
=
'../assets/vendor/php-email-form/php-email-form.php'
))
{
include
(
$php_email_form
);
}
else
{
die
(
'Unable to load the "PHP Email Form" Library!'
);
}
$contact
=
new
PHP_Email_Form
;
$contact
->
ajax
=
true
;
$contact
->
to
=
$receiving_email_address
;
$contact
->
from_name
=
$_POST
[
'name'
];
$contact
->
from_email
=
$_POST
[
'email'
];
$contact
->
subject
=
$_POST
[
'subject'
];
// Uncomment below code if you want to use SMTP to send emails. You need to enter your correct SMTP credentials
/*
$contact->smtp = array(
'host' => 'example.com',
'username' => 'example',
'password' => 'pass',
'port' => '587'
);
*/
$contact
->
add_message
(
$_POST
[
'name'
],
'From'
);
$contact
->
add_message
(
$_POST
[
'email'
],
'Email'
);
$contact
->
add_message
(
$_POST
[
'message'
],
'Message'
,
10
);
echo
$contact
->
send
();
?>
index.html
View file @
fe34709b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment