Skip to content

Commit

Permalink
added templating to individual site links
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetas committed Jun 25, 2007
1 parent 51d21e8 commit d93723c
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions e107_handlers/sitelinks_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 $
+---------------------------------------------------------------+
*/
Expand Down Expand Up @@ -255,8 +255,23 @@ function makeLink($linkInfo, $submenu = FALSE, $style='', $css_class = false)
}

$_link = $linkstart.$indent.$_link;



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 $_link.$style['linkend']."\n";
return $text;
}


Expand Down

0 comments on commit d93723c

Please sign in to comment.