Thanks for the link, but it is beyond my knowledge ??
to the file I put em-functions.php
function filterEventOutputCondition($replacement, $condition, $match, $EM_Event){
if (is_object($EM_Event)) {
switch ($condition) {
// replace LF with HTML line breaks
case 'nl2br':
$replacement = nl2br(preg_replace('/\{\/?nl2br\}/', '', $match));
break;
// #_LATT{Web}
case 'has_latt_web':
if (is_array($EM_Event->event_attributes) && !empty($EM_Event->event_attributes['Web']))
$replacement = preg_replace('/\{\/?has_latt_web\}/', '', $match);
else
$replacement = '';
break;
case 'has_latt_facebook':
if (is_array($EM_Event->event_attributes) && !empty($EM_Event->event_attributes['Facebook']))
$replacement = preg_replace('/\{\/?has_latt_facebook\}/', '', $match);
else
$replacement = '';
break;
case 'has_latt_twitter':
if (is_array($EM_Event->event_attributes) && !empty($EM_Event->event_attributes['Twitter']))
$replacement = preg_replace('/\{\/?has_latt_twitter\}/', '', $match);
else
$replacement = '';
break;
}
}
return $replacement;
}
add_filter('em_event_output_condition', 'filterEventOutputCondition', 10, 4);
I do not know how to create #_ATT{WebsiteText}, #_ATT{FacebookText}, #_ATT{TwitterText} text and assign it “Website”, “Facebook” and “Twitter”. So I have not got great knowledge. Can you please help?