ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 28,777
- Points
- 823
Reputation:
Hello all,
I am working on a simple add-on that intercepts phrase rendering and does some logic. I've currently got the following code which works:
Code:
Read more
Continue reading...
I am working on a simple add-on that intercepts phrase rendering and does some logic. I've currently got the following code which works:
Code:
Code:
<?php
namespace AddonName\XF;
class Language extends XFCP_Language
{
public function renderPhrase($name, array $params = [], $context = 'html', array $options = [])
{
// Call the parent method to get the original phrase
$phrase = parent::renderPhrase($name, $params, $context, $options);
// Apply custom...
Read more
Continue reading...