D
Deleted member 10469
Guest
Hello, is it possible with hook system XenForo, do this:
And is there something similar but with the id and class ?
example:
<div id="myId" class="myClass">
My goal is to add/delete code into templates without modification.
Thank
// Place my code here
<xen:hook name="header_logo">
<a href="{$logoLink}">LogoTexte</a></xen:hook>
<xen:hook name="header_logo">
// Place my code here
<a href="{$logoLink}">LogoTexte</a></xen:hook>
<xen:hook name="header_logo">
<a href="{$logoLink}">LogoTexte</a>// Place my code here
</xen:hook>
<xen:hook name="header_logo">
<a href="{$logoLink}">LogoTexte</a></xen:hook>
// Place my code here
<xen:hook name="header_logo">
<a href="{$logoLink}">LogoTexte</a></xen:hook>
==>
<xen:hook name="header_logo">
// My remplacement code here</xen:hook>
And is there something similar but with the id and class ?
example:
<div id="myId" class="myClass">
<!-- ... -->
</div>
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
switch ($DivId){case 'myId':{// ...}}switch ($DivClass){case 'myClass':{// ...}}}
My goal is to add/delete code into templates without modification.
Thank