예제 #1
0
파일: email.php 프로젝트: RA2WP/RA2WP
 function generateEmails($inputStr, $parseShortcodes = true)
 {
     $parser = new fm_custom_shortcode_parser($this->shortcodeList, array($this, 'emailShortcodeCallback'));
     if ($parseShortcodes) {
         $shortCoded = $parser->parse($inputStr);
     } else {
         $shortCoded = $inputStr;
     }
     //split into multiple definitions
     $definitions = $this->splitIntoDefinitions($shortCoded);
     return $definitions;
 }
예제 #2
0
파일: helpers.php 프로젝트: RA2WP/RA2WP
function fm_getSubmissionDataShortcoded($inputStr, &$formInfo, &$subData)
{
    $email = new fm_advanced_email_class($formInfo, $subData);
    $parser = new fm_custom_shortcode_parser($email->shortcodeList, array($email, 'emailShortcodeCallback'));
    $shortCoded = $parser->parse($inputStr);
    return $shortCoded;
}