From fe6a7a28367888adeeb16ee4202fd95e08731fc1 Mon Sep 17 00:00:00 2001 From: Kanti Date: Mon, 25 Aug 2014 11:47:12 +0200 Subject: [PATCH] Added Custom ImgDir for Themes. --- system/includes/functions.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/system/includes/functions.php b/system/includes/functions.php index c828d5b..caff264 100644 --- a/system/includes/functions.php +++ b/system/includes/functions.php @@ -852,31 +852,36 @@ function base64_encode_image($filename = string, $filetype = string) { } // Social links -function social() { +function social($imgDir = null) { $twitter = config('social.twitter'); $facebook = config('social.facebook'); $google = config('social.google'); $tumblr = config('social.tumblr'); $rss = site_url() . 'feed/rss'; + + if($imgDir === null) + { + $imgDir = "default/img/"; + } if (!empty($twitter)) { - echo 'Twitter'; + echo 'Twitter'; } if (!empty($facebook)) { - echo 'Facebook'; + echo 'Facebook'; } if (!empty($google)) { - echo 'Google+'; + echo 'Google+'; } if (!empty($tumblr)) { - echo 'Tumblr'; + echo 'Tumblr'; } - echo 'RSS Feed'; + echo 'RSS Feed'; } // Copyright