Skip to content

Commit 1444c11

Browse files
committed
Added Social Media icons to footer and .env files as variables.
1 parent 9facafc commit 1444c11

File tree

3 files changed

+137
-2
lines changed

3 files changed

+137
-2
lines changed

config/.env.default

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,34 @@ export STORE_CURRENCY='$'
4141
# export DB_USERNAME='root'
4242
# export DB_PASSWORD=''
4343
# export DB_DATABASE='ecomphp'
44+
45+
# Social Media Profiles
46+
#######################
47+
# NB: Only add your username in the values below. The URLs are already set up in
48+
# the template file. The examples next to each social media platform show you
49+
# where the word USERNAME will be replaced with the value you enter in the URL.
50+
export SOCIAL_FACEBOOK='' # https://www.facbook.com/USERNAME
51+
export SOCIAL_TWITTER='' # https://twitter.com/USERNAME
52+
export SOCIAL_LINKEDIN='' # https://linkedin.com/in/USERNAME
53+
export SOCIAL_YOUTUBE='' # https://youtube.com/USERNAME
54+
export SOCIAL_GOOGLE_PLUS='' # https://plus.google.com/USERNAME
55+
export SOCIAL_PINTEREST='' # https://pinterest.com/USERNAME
56+
export SOCIAL_INSTAGRAM='' # https://instagram.com/USERNAME
57+
export SOCIAL_FLICKR='' # https://flickr.com/USERNAME
58+
export SOCIAL_VIMEO='' # https://vimeo.com/USERNAME
59+
export SOCIAL_REDDIT='' # https://reddit.com/USERNAME
60+
export SOCIAL_SLACK='' # https://USERNAME.slack.com/
61+
export SOCIAL_GITHUB='' # https://github.com/USERNAME
62+
export SOCIAL_BITBUCKET='' # https://bitbucket.com/USERNAME
63+
# For WhatsApp, add your WhatsApp telephone number using the international
64+
# dialing code but DO NOT include the + sign. For example, 447245590848 (UK) or
65+
# 15058873345 (USA).
66+
export SOCIAL_WHATSAPP='' # https://api.whatsapp.com/send?phone=PHONENUMBER
67+
export SOCIAL_SKYPE='' # https://skype.com/USERNAME
68+
export SOCIAL_WECHAT='' # https://wechat.com/USERNAME
69+
export SOCIAL_SLIDESHARE='' # https://www.slideshare.net/USERNAME
70+
export SOCIAL_TUMBLR='' # https://USERNAME.tumblr.com/
71+
export SOCIAL_WORDPRESS='' # https://USERNAME.wordpress.com/
72+
export SOCIAL_MEDIUM='' # https://medium.com/USERNAME
73+
export SOCIAL_YELP='' # https://yelp.com/biz/USERNAME
74+
export SOCIAL_FOURSQUARE='' # https://foursquare.com/USERNAME

config/.env.prod

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,34 @@ export STORE_CURRENCY='$'
4141
# export DB_USERNAME='root'
4242
# export DB_PASSWORD=''
4343
# export DB_DATABASE='ecomphp'
44+
45+
# Social Media Profiles
46+
#######################
47+
# NB: Only add your username in the values below. The URLs are already set up in
48+
# the template file. The examples next to each social media platform show you
49+
# where the word USERNAME will be replaced with the value you enter in the URL.
50+
export SOCIAL_FACEBOOK='' # https://www.facbook.com/USERNAME
51+
export SOCIAL_TWITTER='' # https://twitter.com/USERNAME
52+
export SOCIAL_LINKEDIN='' # https://linkedin.com/in/USERNAME
53+
export SOCIAL_YOUTUBE='' # https://youtube.com/USERNAME
54+
export SOCIAL_GOOGLE_PLUS='' # https://plus.google.com/USERNAME
55+
export SOCIAL_PINTEREST='' # https://pinterest.com/USERNAME
56+
export SOCIAL_INSTAGRAM='' # https://instagram.com/USERNAME
57+
export SOCIAL_FLICKR='' # https://flickr.com/USERNAME
58+
export SOCIAL_VIMEO='' # https://vimeo.com/USERNAME
59+
export SOCIAL_REDDIT='' # https://reddit.com/USERNAME
60+
export SOCIAL_SLACK='' # https://USERNAME.slack.com/
61+
export SOCIAL_GITHUB='' # https://github.com/USERNAME
62+
export SOCIAL_BITBUCKET='' # https://bitbucket.com/USERNAME
63+
# For WhatsApp, add your WhatsApp telephone number using the international
64+
# dialing code but DO NOT include the + sign. For example, 447245590848 (UK) or
65+
# 15058873345 (USA).
66+
export SOCIAL_WHATSAPP='' # https://api.whatsapp.com/send?phone=PHONENUMBER
67+
export SOCIAL_SKYPE='' # https://skype.com/USERNAME
68+
export SOCIAL_WECHAT='' # https://wechat.com/USERNAME
69+
export SOCIAL_SLIDESHARE='' # https://www.slideshare.net/USERNAME
70+
export SOCIAL_TUMBLR='' # https://USERNAME.tumblr.com/
71+
export SOCIAL_WORDPRESS='' # https://USERNAME.wordpress.com/
72+
export SOCIAL_MEDIUM='' # https://medium.com/USERNAME
73+
export SOCIAL_YELP='' # https://yelp.com/biz/USERNAME
74+
export SOCIAL_FOURSQUARE='' # https://foursquare.com/USERNAME

inc/footer.php

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,82 @@
44
<div class="footer-bottom container">
55
<div class="row">
66
<div class="col-md-6">
7-
<p>Copyright &copy; 2018 Copyright Holder All Rights Reserved.</p>
7+
<p><?php echo getenv('STORE_FOOTER'); ?></p>
8+
</div>
9+
<div class="col-md-6 text-right">
10+
<?php
11+
// Setup the social media variables for the if
12+
// statements and echos.
13+
$fab = getenv('SOCIAL_FACEBOOK', null);
14+
$twt = getenv('SOCIAL_TWITTER', null);
15+
$lin = getenv('SOCIAL_LINKEDIN', null);
16+
$you = getenv('SOCIAL_YOUTUBE', null);
17+
$goo = getenv('SOCIAL_GOOGLE_PLUS', null);
18+
$pin = getenv('SOCIAL_PINTEREST', null);
19+
$ins = getenv('SOCIAL_INSTAGRAM', null);
20+
$fli = getenv('SOCIAL_FLICKR', null);
21+
$vim = getenv('SOCIAL_VIMEO', null);
22+
$red = getenv('SOCIAL_REDDIT', null);
23+
$slk = getenv('SOCIAL_SLACK', null);
24+
$git = getenv('SOCIAL_GITHUB', null);
25+
$bit = getenv('SOCIAL_BITBUCKET', null);
26+
$wha = getenv('SOCIAL_WHATSAPP', null);
27+
$sky = getenv('SOCIAL_SKYPE', null);
28+
$wch = getenv('SOCIAL_WECHAT', null);
29+
$sli = getenv('SOCIAL_SLIDESHARE', null);
30+
$tum = getenv('SOCIAL_TUMBLR', null);
31+
$wor = getenv('SOCIAL_WORDPRESS', null);
32+
$med = getenv('SOCIAL_MEDIUM', null);
33+
$yel = getenv('SOCIAL_YELP', null);
34+
$fsq = getenv('SOCIAL_FOURSQUARE', null);
35+
// Start the if statments to echo the social
36+
// profiles that have been set in .env.
37+
if (!empty($fab)) : ?>
38+
<a href="https://www.facebook.com/<?php echo $fab; ?>"><i class="fa fa-2x fa-facebook-square"></i></a>
39+
<?php endif; if (!empty($twt)) : ?>
40+
<a href="https://twitter.com/<?php echo $twt; ?>"><i class="fa fa-2x fa-twitter-square"></i></a>
41+
<?php endif; if (!empty($lin)) : ?>
42+
<a href="https://linkedin.com/in/<?php echo $lin; ?>"><i class="fa fa-2x fa-linkedin-square"></i></a>
43+
<?php endif; if (!empty($you)) : ?>
44+
<a href="https://youtube.com/<?php echo $you; ?>"><i class="fa fa-2x fa-youtube-square"></i></a>
45+
<?php endif; if (!empty($goo)) : ?>
46+
<a href="https://plus.google.com/<?php echo $goo; ?>"><i class="fa fa-2x fa-google-plus-square"></i></a>
47+
<?php endif; if (!empty($pin)) : ?>
48+
<a href="https://pinterest.com/<?php echo $pin; ?>"><i class="fa fa-2x fa-pinterest-square"></i></a>
49+
<?php endif; if (!empty($ins)) : ?>
50+
<a href="https://instagram.com/<?php echo $ins; ?>"><i class="fa fa-2x fa-instagram"></i></a>
51+
<?php endif; if (!empty($fli)) : ?>
52+
<a href="https://flickr.com/<?php echo $fli; ?>"><i class="fa fa-2x fa-flickr"></i></a>
53+
<?php endif; if (!empty($vim)) : ?>
54+
<a href="https://vimeo.com/<?php echo $vim; ?>"><i class="fa fa-2x fa-vimeo-square"></i></a>
55+
<?php endif; if (!empty($red)) : ?>
56+
<a href="https://reddit.com/<?php echo $red; ?>"><i class="fa fa-2x fa-reddit-square"></i></a>
57+
<?php endif; if (!empty($slk)) : ?>
58+
<a href="https://<?php echo $slk; ?>.slack.com/"><i class="fa fa-2x fa-slack"></i></a>
59+
<?php endif; if (!empty($git)) : ?>
60+
<a href="https://github.com/<?php echo $git; ?>"><i class="fa fa-2x fa-github-square"></i></a>
61+
<?php endif; if (!empty($bit)) : ?>
62+
<a href="https://bitbucket.com/<?php echo $bit; ?>"><i class="fa fa-2x fa-bitbucket-square"></i></a>
63+
<?php endif; if (!empty($wha)) : ?>
64+
<a href="https://api.whatsapp.com/send?phone=<?php echo $wha; ?>"><i class="fa fa-2x fa-whatsapp"></i></a>
65+
<?php endif; if (!empty($sky)) : ?>
66+
<a href="https://skype.com/<?php echo $sky; ?>"><i class="fa fa-2x fa-skype"></i></a>
67+
<?php endif; if (!empty($wch)) : ?>
68+
<a href="https://wechat.com/<?php echo $wch; ?>"><i class="fa fa-2x fa-weixin"></i></a>
69+
<?php endif; if (!empty($sli)) : ?>
70+
<a href="https://www.slideshare.net/<?php echo $sli; ?>"><i class="fa fa-2x fa-slideshare"></i></a>
71+
<?php endif; if (!empty($tum)) : ?>
72+
<a href="https://<?php echo $tum; ?>.tumblr.com/"><i class="fa fa-2x fa-tumblr-square"></i></a>
73+
<?php endif; if (!empty($wor)) : ?>
74+
<a href="https://<?php echo $wor; ?>.wordpress.com/"><i class="fa fa-2x fa-wordpress"></i></a>
75+
<?php endif; if (!empty($med)) : ?>
76+
<a href="https://medium.com/<?php echo $med; ?>"><i class="fa fa-2x fa-medium"></i></a>
77+
<?php endif; if (!empty($yel)) : ?>
78+
<a href="https://yelp.com/biz/<?php echo $yel; ?>"><i class="fa fa-2x fa-yelp"></i></a>
79+
<?php endif; if (!empty($fsq)) : ?>
80+
<a href="https://foursquare.com/<?php echo $fsq; ?>"><i class="fa fa-2x fa-foursquare"></i></a>
81+
<?php endif; ?>
882
</div>
9-
<div class="col-md-6"></div>
1083
</div>
1184
</div>
1285
</footer>

0 commit comments

Comments
 (0)