You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can the parseCodes function handle sc functions and at the same time eVars to be substitued by shortcodes, as per function definition?
Parse the shortcodes in some text
*
* @param string $text - the text containing the shortcodes
* @param boolean $useSCFiles - if TRUE, all currently registered shortcodes can be used.
* - if FALSE, only those passed are used.
* @param array|object|null $extraCodes - if passed, defines additional shortcodes:
* - if an object or an array, the shortcodes defined by the class of the object are available for this parsing only.
* @param array|object|null $eVars - if defined, details values to be substituted for shortcodes. Array key (lower case) is shortcode name (upper case)
*
* @return string with shortcodes substituted
I'm not managing to do it with a single parseTemplate, right now i have to do two parses, like this: $tp->parseTemplate($tp->simpleParse($euser_template['friends_caption'], array('COUNT'=>($num>0?$num:((strpos( e_PAGE, "settings")!==false)?$num:NULL)))), TRUE, $this)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Can the parseCodes function handle sc functions and at the same time eVars to be substitued by shortcodes, as per function definition?
I'm not managing to do it with a single parseTemplate, right now i have to do two parses, like this:
$tp->parseTemplate($tp->simpleParse($euser_template['friends_caption'], array('COUNT'=>($num>0?$num:((strpos( e_PAGE, "settings")!==false)?$num:NULL)))), TRUE, $this)
Beta Was this translation helpful? Give feedback.
All reactions