mirror of
https://github.com/e107inc/e107.git
synced 2025-08-08 07:36:32 +02:00
Sitelinks image-path issue fixed.
This commit is contained in:
@@ -321,8 +321,16 @@ class sitelinks
|
||||
if ($linkInfo['link_button'])
|
||||
{
|
||||
$linkstart = preg_replace('/\<img.*\>/si', '', $linkstart);
|
||||
|
||||
if($linkInfo['link_button'][0]=='{')
|
||||
{
|
||||
$linkstart .= "<img src='".$tp->replaceConstants($linkInfo['link_button'],'abs')."' alt='' style='vertical-align:middle' />";
|
||||
}
|
||||
else
|
||||
{
|
||||
$linkstart .= "<img src='".e_IMAGE_ABS."icons/".$linkInfo['link_button']."' alt='' style='vertical-align:middle' />";
|
||||
}
|
||||
}
|
||||
|
||||
// mobile phone support.
|
||||
$accesskey = (isset($style['accesskey']) && $style['accesskey']==TRUE) ? " accesskey='".$linkInfo['link_order']."' " : "";
|
||||
|
Reference in New Issue
Block a user