1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +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). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/sitelinks_class.php,v $
| $Revision: 1.8 $ | $Revision: 1.9 $
| $Date: 2007-06-11 09:26:06 $ | $Date: 2007-06-25 15:00:58 $
| $Author: sweetas $ | $Author: sweetas $
+---------------------------------------------------------------+ +---------------------------------------------------------------+
*/ */
@@ -256,7 +256,22 @@ class sitelinks
$_link = $linkstart.$indent.$_link; $_link = $linkstart.$indent.$_link;
return $_link.$style['linkend']."\n";
global $SITELINKSTYLE;
if(!$SITELINKSTYLE)
{
$SITELINKSTYLE = "{LINK}";
}
$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;
} }