本文整理汇总了PHP中mailusers_get_default_mail_format函数的典型用法代码示例。如果您正苦于以下问题:PHP mailusers_get_default_mail_format函数的具体用法?PHP mailusers_get_default_mail_format怎么用?PHP mailusers_get_default_mail_format使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mailusers_get_default_mail_format函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
<td><b><?php
_e('Subject', MAILUSERS_I18N_DOMAIN);
?>
</b></td>
<td><?php
echo mailusers_get_default_mail_format() == 'html' ? $subject : '<pre>' . format_to_edit($subject) . '</pre>';
?>
</td>
</tr>
<tr>
<td><b><?php
_e('Message', MAILUSERS_I18N_DOMAIN);
?>
</b></td>
<td><?php
echo mailusers_get_default_mail_format() == 'html' ? $mail_content : '<pre>' . wordwrap(strip_tags($mail_content), 80, "\n") . '</pre>';
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<form name="SendTestEmail" action="" method="post">
<p class="submit">
<input type="hidden" name="sendtestemail" value="true" />
<input class="button-primary" type="submit" name="Submit" value="<?php
_e('Send Test Notification to Yourself', MAILUSERS_I18N_DOMAIN);
?>
»" />
示例2: array
if (!isset($_POST['from_sender']) || trim($_POST['from_sender']) == '') {
$from_sender = 0;
} else {
$from_sender = $_POST['from_sender'];
}
if (!isset($_POST['group_mode']) || trim($_POST['group_mode']) == '') {
$group_mode = $mailusers_send_to_group_mode;
} else {
$group_mode = $_POST['group_mode'];
}
}
if (!isset($send_targets)) {
$send_targets = array();
}
if (!isset($mail_format)) {
$mail_format = mailusers_get_default_mail_format();
}
if (!isset($subject)) {
$subject = '';
}
if (!isset($mail_content)) {
$mail_content = '';
}
if (!isset($group_mode)) {
$group_mode = $mailusers_send_to_group_mode;
}
// Override the send from address?
if ($from_sender == 1 && !empty($override_address) && is_email($override_address)) {
$from_address = $override_address;
if (!empty($override_name)) {
$from_name = $override_name;
示例3: get_post
$post = get_post($post_id);
setup_postdata($post);
$post_title = $post->post_title;
$post_url = get_permalink($post_id);
$post_content = explode('<!--more-->', $post->post_content, 2);
//$post_excerpt = get_the_excerpt() ;
$post_excerpt = $post->post_excerpt;
$post_author = get_userdata($post->post_author)->display_name;
if (empty($post_excerpt)) {
$post_excerpt = $post_content[0];
}
// Deal with post content in array form
if (is_array($post_content)) {
$post_content = $post_content[0];
}
if (mailusers_get_default_mail_format() == 'html') {
$post_excerpt = wpautop($post_excerpt);
}
// Process short codes?
if (mailusers_get_shortcode_processing() == 'true') {
//error_log(print_r(htmlentities($post_content), true)) ;
$post_content = do_shortcode($post_content);
//error_log(print_r(htmlentities($post_content), true)) ;
$post_excerpt = do_shortcode($post_excerpt);
}
// Replace the template variables concerning the blog details
// unless content has already been sent and comes back through a POST
// --
if (!isset($subject)) {
$subject = mailusers_get_default_subject();
$subject = mailusers_replace_blog_templates($subject);