Created my function in custom.php. I am trying to display it in a template with this line
<xsl:value-of select="document('udata://custom/gettimedata/')/udata" disable-output-escaping="yes"/> If I prescribe this, for example, in the xslt / blocks / footer.xsl file, then the function displays everything as it should. But if you register in xslt / layouts / default.xsl, where I need it, it does not display anything. How to display the result of the function in the default template?