diff --git a/plugins/system/core/helix3.php b/plugins/system/core/helix3.php index 381f532..820ff3f 100644 --- a/plugins/system/core/helix3.php +++ b/plugins/system/core/helix3.php @@ -1119,7 +1119,15 @@ function ($matches) $base = dirname($base); $url = substr($url, 3); } - $url = $base . '/' . $url; + + // If the base is always /, it shouldn't be adding another / + $default = $base . '/' . $url; + + if ($base === '/') { + $default = '/' . $url; + } + + $url = $default; return "url('$url')"; }, $compressed); diff --git a/template/en-GB.tpl_shaper_helix3.ini b/template/en-GB.tpl_shaper_helix3.ini index 7aa3d77..e71d5d4 100755 --- a/template/en-GB.tpl_shaper_helix3.ini +++ b/template/en-GB.tpl_shaper_helix3.ini @@ -95,6 +95,8 @@ HELIX_SOCIAL_ICON_VK="VK Username" HELIX_SOCIAL_ICON_VK_DESC="Input the full URL to your VK profile page." HELIX_SOCIAL_ICON_CUSTOM="Custom" HELIX_SOCIAL_ICON_CUSTOM_DESC="Insert your custom url with fontawesome icon, eg. fa-facebook http://joomshaper.com" +HELIX_SOCIAL_ICON_INSTAGRAM="Instagram URL" +HELIX_SOCIAL_ICON_INSTAGRAM_DESC="Input the full URL to your Instagram page." ;Contact Info HELIX_CONTACT_INFO="Contact Information" diff --git a/template/features/social.php b/template/features/social.php index ecbb6ee..ef9ef9c 100755 --- a/template/features/social.php +++ b/template/features/social.php @@ -34,6 +34,7 @@ public function renderFeature() { $flickr = $this->helix3->getParam('flickr'); $vk = $this->helix3->getParam('vk'); $custom = $this->helix3->getParam('custom'); + $instagram = $this->helix3->getParam('instagram'); if( $this->helix3->getParam('show_social_icons') && ( $facebook || $twitter || $googleplus || $pinterest || $youtube || $linkedin || $dribbble || $behance || $skype || $flickr || $vk ) ) { $html = '