I have tried following this:
https://vborg.vbsupport.ru/showthread.php?t=228078 but no luck with what I am trying to do.
Most probably it will be simple solution but I can not get it to work. (I am new to writing plugins etc ...)
What I am trying to do is:
I have template name "TEST" with just simple HTML code
<div>Some text</div>
And I just want this HTML to be inserted into e.g. footer template.
I have tried this in global_start plugin.
PHP Code:
$templater = vB_Template::create('TEST');
$test = $templater ->render();
vB_Template::preRegister('footer',array('test' => $test));
or
PHP Code:
$templater = vB_Template::create('TEST');
$templatevalues['test'] = $templater->render();
vB_Template::preRegister('footer', $test);
And this in footer template.
But that template does not show in footer template.
Thanks
.