Lack of interest Event inside XenForo_Phrase

  • Thread starter Thread starter ragtek
  • Start date Start date
This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.
R

ragtek

Guest
It would be nice, if there would be event, so we could add "global variables/phrases" to the phrases.

E.g. i'd like to add 5 "sub phrases":D which i'd like to use inside of other Phrases


$globalPhrases = array();

if (...){
$globalPhrases['joinPremium'] = '<a href=".">' . new XFPHrase('join_premium');
}

...

so i could just add sub texts which i need often to the phrase
phrase_foo would then be:
Bla bla... lonf text
{joinPremium}

ATM there's no way to do this, because there's no factorymethod and no event...

I could use placeholders and then change them before the ouput ( template_post_render ), but this would IMO waste unnecessary reccources...[/quote]
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Top Bottom