1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

Renamed {LINK_IMAGE} to {LINK_ICON} - more consistent with description in admin -> Site links.

This commit is contained in:
Cameron
2013-07-12 07:50:25 -07:00
parent b896227ab8
commit 475e46e748
3 changed files with 31 additions and 24 deletions

View File

@@ -1609,12 +1609,21 @@ class navigation_shortcodes extends e_shortcode
return e107::getParser()->replaceConstants($url, 'full', TRUE);
}
/**
* Return the link image of the current link
* @return string
* @Deprecated - Use {LINK_ICON} instead.
*/
function sc_link_image($parm='')
{
e107::getMessage()->addDebug("Using deprecated shortcode: {LINK_IMAGE} - use {LINK_ICON} instead.");
return $this->sc_link_icon($parm);
}
/**
* Return the link icon of the current link
* @return string
*/
function sc_link_icon($parm='')
{
$tp = e107::getParser();
@@ -1627,11 +1636,9 @@ class navigation_shortcodes extends e_shortcode
else
{
$path = e107::getParser()->replaceConstants($this->var['link_button'], 'full', TRUE);
return "<img src='".$path."' alt='' />";
return "<img class='icon' src='".$path."' alt='' />";
}
}