1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

added templating to individual site links

This commit is contained in:
sweetas
2007-06-25 15:00:58 +00:00
parent 51d21e87a6
commit d93723cf09

View File

@@ -12,8 +12,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $
| $Revision: 1.8 $
| $Date: 2007-06-11 09:26:06 $
| $Revision: 1.9 $
| $Date: 2007-06-25 15:00:58 $
| $Author: sweetas $
+---------------------------------------------------------------+
*/
@@ -255,8 +255,23 @@ class sitelinks
}
$_link = $linkstart.$indent.$_link;
global $SITELINKSTYLE;
if(!$SITELINKSTYLE)
{
$SITELINKSTYLE = "{LINK}";
}
return $_link.$style['linkend']."\n";
$search[0] = "/\{LINK\}(.*?)/si";
$replace[0] = $_link.$style['linkend']."\n";
$search[1] = "/\{LINK_DESCRIPTION\}(.*?)/si";
$replace[1] = $tp -> toHTML($linkInfo['link_description'],"","value, emotes_off, defs, no_hook");
$text = preg_replace($search, $replace, $SITELINKSTYLE);
return $text;
}