本文整理汇总了PHP中SendPress_Option::email_get方法的典型用法代码示例。如果您正苦于以下问题:PHP SendPress_Option::email_get方法的具体用法?PHP SendPress_Option::email_get怎么用?PHP SendPress_Option::email_get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SendPress_Option
的用法示例。
在下文中一共展示了SendPress_Option::email_get方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: html
function html($sp)
{
global $is_IE;
global $post_ID, $post;
/*
if ( wp_is_mobile() &&
! ( $is_IE && preg_match( '/MSIE [5678]/', $_SERVER['HTTP_USER_AGENT'] ) ) ) {
wp_enqueue_script('editor-expand');
$_wp_autoresize_on = true;
}
*/
$view = isset($_GET['view']) ? $_GET['view'] : '';
if (isset($_GET['emailID'])) {
$emailID = $_GET['emailID'];
$post = get_post($_GET['emailID']);
$post_ID = $post->ID;
}
if ($post->post_type !== 'sp_newsletters') {
SendPress_Admin::redirect('Emails');
}
$options = SendPress_Option::email_get('autoresponder_' . $post_ID);
?>
<form method="post" id="post" role="form">
<input type="hidden" name="post_ID" id="post_ID" value="<?php
echo $post->ID;
?>
" />
<input type="hidden" name="action" id="action" value="save-email" />
<div >
<div style="float:right;" class="btn-toolbar">
<div id="sp-cancel-btn" class="btn-group">
<?php
if ($post->post_status != 'sp-autoresponder') {
?>
<a href="?page=<?php
echo $_GET['page'];
?>
" id="cancel-update" class="btn btn-default"><?php
echo __('Cancel', 'sendpress');
?>
</a>
<?php
} else {
?>
<a href="<?php
echo SendPress_Admin::link('Emails_Autoresponder');
?>
" id="cancel-update" class="btn btn-default"><?php
echo __('Cancel', 'sendpress');
?>
</a>
<?php
}
?>
</div>
<div class="btn-group">
<button class="btn btn-primary " type="submit" value="save-next" name="submit"><i class="icon-envelope icon-white"></i> <?php
echo __('Save', 'sendpress');
?>
</button>
</div>
</div>
</div>
<h2>Autoresponder Settings</h2>
<br>
<h4>Subject: <?php
echo esc_attr(htmlspecialchars(get_post_meta($post->ID, '_sendpress_subject', true)));
?>
</h4>
<div class="sp-row">
<div class="sp-75 sp-first">
<br>
<select name="sp-autoresponder-type" id="params-auto" >
<option value="subscribe" <?php
if ($options['type'] == 'subscribe') {
echo "selected";
}
?>
>When someone subscribes to the list...</option>
<!--<option value="user-new" <?php
if ($options['type'] == 'user-new') {
echo "selected";
}
?>
>When a new WordPress user is added to your site...</option>-->
</select>
<select name="" id="params-list">
<?php
$post_args = array('post_type' => 'sendpress_list', 'numberposts' => -1, 'offset' => 0, 'orderby' => 'post_title', 'order' => 'DESC');
$current_lists = get_posts($post_args);
foreach ($current_lists as $list) {
$t = '';
$tlist = '';
//.........这里部分代码省略.........