public static function getPlanetInfoToolTip($info) { $html = array(); $html[] = sprintf('<span class="planet_tooltip">%s</span>', $info['planet']); $html[] = '<div class="tooltip">'; $html[] = sprintf('<div class="tooltip_title">%s - %s</div>', $info['planet'], $info['longitude']); $html[] = '<div class="tooltip_content"><table margin="0">'; $html[] = sprintf('<tr><td class="firstcell">Position: </td><td class="datacell">%d<sup>%s</sup> House</td></tr>', $info['position'], jQuery::ordinal($info['position'])); if (count($info['lordship']) == 1) { $html[] = sprintf('<tr><td class="firstcell">Lord: </td><td class="datacell">%d<sup>%s</sup> House</td></tr>', $info['lordship'][0], jQuery::ordinal($info['lordship'][0])); } else { $html[] = sprintf('<tr><td class="firstcell">Lord: </td><td class="datacell">%d<sup>%s</sup> and %d<sup>%s</sup> Houses</td></tr>', $info['lordship'][0], jQuery::ordinal($info['lordship'][0]), $info['lordship'][1], jQuery::ordinal($info['lordship'][1])); } $html[] = sprintf('<tr><td class="firstcell">Potency: </td><td class="datacell">%s</td></tr>', $info['potency']); $html[] = sprintf('<tr><td class="firstcell"></td><td class="firstcell"><a target="_blank" href="%s#%s">more info »</a></td></tr>', get_linkTO('birth-chart/report/'), $info['planet']); $html[] = '</table></div></div>'; $html = join('', $html); return $html; }
public function paymentNotification($args) { global $wpdb; $template_id = get_option('tpl_pay_notification', 6); $sql = "SELECT content FROM {$wpdb->prefix}wpmlthemes where id = {$template_id}"; $template = $wpdb->get_var($sql); $amount = '$' . $args['amount']; switch ($args['item_type']) { case "MR": $product_name = 'When Will You Marry Report'; $product_url = get_linkTO('when-marry/'); break; case "FR": $product_name = 'Future Predictions - General Trends and Analysis Report'; $product_url = get_linkTO('birth-chart/future/'); break; } $subject = 'Payment Received. Your Report is Ready!'; $message = sprintf(__('Dear %s'), $args['name']) . "\r\n\r\n"; $message .= "Thank you for your order. We've received your payment of {$amount} for {$product_name}. \r\n\r\n"; $message .= "Your report is ready and can be accessed here - {$product_url} \r\n\r\n"; $message .= sprintf(__('Login ID: %s'), $args['user_login']) . "\r\n\r\n"; $message .= "To generate your report, please follow these easy steps: \r\n"; $message .= "1) Log into your Ask-Oracle.com account - " . wp_login_url() . " \r\n"; $message .= "2) Save and Generate your birth chart - " . get_linkTO('birth-chart/') . " \r\n"; $message .= "3) When it shows your birth chart, you can see your report online here - {$product_url} \r\n\r\n"; // $message .= 'If you want to reset your password, click "Account Settings" in "My Account," and then "Account Security Information."\r\n\r\n'; // $message .= 'To reset your password, click the "Forgot Password?" link in the login area on the home page."\r\n\r\n'; $message .= "Please let us know if you have any further questions, comments, or concerns by replying to this email.\r\n\r\n"; $message .= "Wishes,\r\n"; $message .= "Ask-Oracle.com"; $this->_subject = $subject; $this->_message = str_replace('[wpmlcontent]', $message, $template); }