本文整理汇总了PHP中ym_box_top函数的典型用法代码示例。如果您正苦于以下问题:PHP ym_box_top函数的具体用法?PHP ym_box_top怎么用?PHP ym_box_top使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ym_box_top函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ym_fbook_admin
//.........这里部分代码省略.........
// echo '<p style="text-align: right;"><a href="#nowhere" id="tabkiller">Remove Tabs/All Settings on a single page</a></p>';
echo '<div id="ym_fbook_tabs">';
echo '<form action="" method="post" enctype="multipart/form-=data" id="ym_fb">';
$credits = FALSE;
global $ym_active_modules;
if (in_array('ym_facebook_credits', $ym_active_modules)) {
// if (get_option('ym_facebook_credits')) {
$credits = TRUE;
}
echo '
<ul>
<li><a href="#guide">Guide</a></li>
<li><a href="#facebook_settings">Facebook</a></li>
<li><a href="#settings_settings">Settings</a></li>
<li><a href="';
if ($credits) {
echo '#facebook_credits';
}
echo '">Facebook Credits</a></li>
<li><a href="';
if ($credits) {
echo '#facebook_pricing';
}
echo '">Facebook Pricing</a></li>
<li><a href="#share_control">Like/Share</a></li>
<li><a href="#open_graph">Open Graph</a></li>
<li><a href="';
if ($credits) {
echo '#transaction_logging';
}
echo '">Transaction Log</a></li>
</ul>';
echo '<div id="guide">';
ym_box_top('Guide');
echo '<div id="message" class="updated">';
echo '<p>We have written a guide that should help you get Your Members Facebook Integration Up and Running, you can read it <a href="http://www.yourmembers.co.uk/the-support/guides-tutorials/your-members-facebook-integration/" target="_blank">here</a></p>';
echo '</div>';
ym_box_bottom();
echo '</div>';
echo '<div id="facebook_settings" class="subtabs">';
echo '
<ul>
<li><a href="#master_enable">Master Enable</a></li>
<li><a href="#keys_settings">Application Keys</a></li>
<li><a href="#canvas_settings">Canvas Settings</a></li>
<li><a href="#page_settings">Page Settings</a></li>
<li><a href="#dim_settings">Dimensions</a></li>
<li><a href="#permissions">Permissions</a></li>
</ul>
';
echo '<div id="master_enable">';
ym_box_top('Enable Facebook');
$review = '';
if (!$facebook_settings->app_id) {
$review .= '<div id="message" class="updated"><p>If you havn't created an app yet, you can do so <a href="http://developers.facebook.com/setup" target="_new">here</a></p></div>';
}
echo $review;
echo '<table class="form-table">';
$ym_formgen->render_form_table_radio_row('Enable Facebook', 'enabled', $facebook_settings->enabled, 'If not enabled if a users access the app, they are redirected to the site');
echo '</table>';
ym_box_bottom();
echo '</div>
<div id="keys_settings">';
ym_box_top('Application Keys');
$review .= '<p>You can find and review these settings <a href="https://developers.facebook.com/apps/';
if ($facebook_settings->app_id) {
示例2: ym_post
$sub_id = ym_post('package', false);
$package_type = ym_post('package_type', false);
if (ym_group_membership_create_child($email_address, $username, $password, $c_password, $sub_id, $package_type, TRUE)) {
// reload
$ym_user = new YourMember_User($ym_user->ID);
}
} else {
ym_display_message(__('Unknown Action Requested', 'ym'), 'error');
}
}
}
// get breakdown
$current_counts = ym_group_membership_get_counts();
echo '<div id="poststuff" class="wrap">
<h2>' . __('Group Membership', 'ym') . '</h2>';
ym_box_top(' ');
echo '<p>' . sprintf(__('You are eligible to have %s account%s in your Group, you currently have %s Child Account%s', 'ym'), $ym_user->child_accounts_allowed, $ym_user->child_accounts_allowed != 1 ? 's' : '', count($ym_user->child_ids), count($ym_user->child_ids) != 1 ? 's' : '') . '</p>';
echo '
<table class="form-table widefat">';
if (count($ym_user->child_ids)) {
echo '<tr>
<th>' . __('User Email', 'ym') . '</th>
<th>' . __('User Login', 'ym') . '</th>
<th>' . __('Package Type', 'ym') . '</th>
<th>' . __('Status, click to Toggle', 'ym') . '</th>
<th>' . __('Delete', 'ym') . '</th>
</tr>';
foreach ($ym_user->child_ids as $child) {
echo '<tr>';
$child = get_user_by('id', $child);
if ($child) {
示例3: get_lists
private function get_lists($is_option = FALSE)
{
$lists = $this->mailchimp->lists();
if (!count($lists->data)) {
ym_box_top($this->name . ' Error');
echo '<p>' . __('You have no lists on ' . $this->name . ' to associate with') . '</p>';
ym_box_bottom();
return;
}
$list_data = array();
if ($is_option) {
$list_data[] = __('--Select--');
}
foreach ($lists->data as $data) {
$list_data[$data->id] = $data->name;
}
return $list_data;
}
示例4: invoice_tab
function invoice_tab()
{
$invoice = new ym_invoice();
global $wpdb;
if (ym_post('user_id')) {
$user_id = ym_post('user_id');
$op = ym_post('op', '');
$undo = ym_post('undo', FALSE);
$user = new YourMember_User($user_id);
if ($undo) {
$data = array('status' => YM_STATUS_PENDING, 'status_str' => __('Invoice Undo', 'ym'));
$user->update($data);
$user->save();
$packet = array('user_id' => $user_id, 'status' => FALSE);
do_action('ym_invoice_status_update', $packet);
} else {
if ($op == 'resend') {
$invoice->generate_invoice($user, $invoice);
echo '<div id="message" class="updated"><p>' . __('Inovice Resent', 'ym') . '</p></div>';
@ym_log_transaction(YM_USER_STATUS_UPDATE, __('Invoice Resent', 'ym'), $user_id);
} else {
if ($op == 'active') {
$data = array('status' => YM_STATUS_ACTIVE, 'status_str' => __('Invoice Paid', 'ym'), 'amount' => intval(ym_post('amount', 0)), 'last_pay_date' => time());
$current_status = $user->status;
if ($current_status == YM_STATUS_GRACE) {
$extend = $user->last_pay_date;
$packdata = ym_get_pack_by_id($user->pack_id);
$data['expire_date'] = $user->expiry_time($packdata['duration'], $packdata['duration_type'], $extend);
}
// check for force end
if (isset($packdata['force_end_date'])) {
$force_end_date = $packdata['force_end_date'];
if ($force_end_date > time()) {
// greater than now
@ym_log_transaction(YM_ACCESS_EXTENSION, 'Adjustment (Force End Date): ' . $force_end_date, $user_id);
$data['expire_date'] = $force_end_date;
}
}
$data['amount'] = preg_replace('/[^\\d\\.]/', '', $data['amount']);
$data['amount'] = number_format($data['amount'], 2, '.', '');
$user->update($data, TRUE);
$optional = ym_post('optional');
if (!$optional) {
$optional = __('Invoice Paid', 'ym');
}
@ym_log_transaction(YM_IPN, $optional, $user_id);
@ym_log_transaction(YM_PAYMENT, $data['amount'], $user_id);
@ym_log_transaction(YM_USER_STATUS_UPDATE, $data['status'] . ' - ' . $data['status_str'], $user_id);
echo '<div id="message" class="updated"><p>' . __('Updated and Activated the User', 'ym') . '</p></div>';
$packet = array('user_id' => $user_id, 'pack_id' => $user->pack_id, 'status' => TRUE);
$invoice = new ym_invoice();
$invoice->notify_user($packet);
do_action('ym_invoice_status_update', $packet);
}
}
}
}
echo '<div id="poststuff" class="wrap">';
ym_box_top(__('Invoice Management', 'ym'));
$search = ym_post('ym_invoice_search', false);
if ($search) {
$query = 'SELECT u.user_id AS ID FROM ' . $wpdb->usermeta . ' u
LEFT JOIN ' . $wpdb->usermeta . ' s ON s.user_id = u.user_id
LEFT JOIN ' . $wpdb->users . ' us ON us.id = u.user_id
WHERE
u.meta_key = \'ym_payment_type\' AND u.meta_value = \'invoice\'
AND s.meta_key = \'ym_status\'
AND (
us.user_login LIKE \'%' . $search . '%\'
OR
us.user_email LIKE \'%' . $search . '%\'
)
ORDER BY ID DESC
';
} else {
$query = 'SELECT u.user_id AS ID FROM ' . $wpdb->prefix . 'usermeta u
LEFT JOIN ' . $wpdb->prefix . 'usermeta s ON s.user_id = u.user_id
WHERE
u.meta_key = \'ym_payment_type\' AND u.meta_value = \'invoice\'
AND s.meta_key = \'ym_status\'
ORDER BY ID DESC
';
}
$results = $wpdb->get_results($query);
// quick search
if ($wpdb->num_rows != 0 || $search) {
// render search form
echo '
<form action="" method="post" style="float: right;">
<fieldset>
' . __('Username/Email Search:', 'ym') . '
<input type="text" name="ym_invoice_search" value="' . $search . '" />
<input type="submit" value="' . __('Search', 'ym') . '" />
</fieldset>
</form>';
}
echo '<p>' . __('Here you can update users based on the honouring of their invoice, you can use the Info to store field to store extra IPN style info such as a Cheque Number', 'ym') . '</p>';
if ($wpdb->num_rows == 0) {
echo ym_display_message(__('No Users are Invoice Pending', 'ym'), 'error');
} else {
//.........这里部分代码省略.........
示例5: __
if ($emails) {
echo $ym_formgen->render_combo_from_array_row(__('Select Prior Email', 'ym_mailmanager'), 'email_id', $emails, '', __('Select a previously created email', 'ym_mailmanager'));
}
$days = array();
for ($x = 0; $x <= 365; $x++) {
$days[$x] = $x . ' Days';
}
echo $ym_formgen->render_combo_from_array_row(__('Select Delay', 'ym_mailmanager'), 'delay', $days, '', __('Select number of days between emails', 'ym_mailmanager'));
echo '
</table>
<p style="text-align: right;">
<input type="submit" value="' . __('Add Email to Series', 'ym_mailmanager') . '" />
</p>
</form>';
ym_box_bottom();
ym_box_top(__('Current Series Content', 'ym_mailmanager'));
echo '<p>' . __('Currently in this series', 'ym_mailmanager') . '</p>';
echo '<table class="form-table">
<tr><th>' . __('ID', 'ym_mailmanager') . '</th><th>' . __('Email', 'ym_mailmanager') . '</th><th>' . __('Delay', 'ym_mailmanager') . '</th><th>' . __('Preview', 'ym_mailmanager') . '</th><th>' . __('Action', 'ym_mailmanager') . '</th></tr>
';
$sql = 'SELECT eis.id AS id, e.id as series, name, delay_days, email_id FROM ' . $wpdb->prefix . 'mm_email_in_series eis LEFT JOIN ' . $wpdb->prefix . 'mm_email e ON e.id = eis.email_id WHERE series_id = ' . $series;
foreach ($wpdb->get_results($sql) as $row) {
echo '<tr>';
echo '<td>' . $row->id . '</td>';
echo '<td>' . $row->name . '</td>';
echo '<td>' . $row->delay_days . ' ' . __('Days') . '</td>';
echo '<td><a href="' . $mm->page_root . '&mm_action=preview&iframe_preview=' . $row->email_id . '" class="previewlink">' . __('Email Preview', 'ym_mailmanager') . '</a></td>';
echo '<td><a href="' . $mm->page_root . '&mm_action=series&series_action=assoc&series=' . $row->series . '&deleteid=' . $row->id . '" class="deletelink">' . __('Delete', 'ym_mailmanager') . '</a></td>';
echo '</tr>';
}
echo '
示例6: Subject
$ym_formgen->render_form_table_text_row(__('Reminder Subject (Recurring Subscriptions)', 'ym'), 'email_reminder_subject_recur', $ym_sys->email_reminder_subject_recur, __('Supports [site_name]', 'ym'));
$ym_formgen->render_form_table_wp_editor_row(__('Reminder Message (Recurring Subscriptions)', 'ym'), 'email_reminder_message_recur', $ym_sys->email_reminder_message_recur);
echo '<tr><td></td><td>
<p class="submit" style="float: left;">
' . __('Send Test Email to ', 'ym') . $target . '
<input type="submit" name="send_test_recur" value="' . __('Send', 'ym') . ' »" class="button-secondary" />
</p>
</td></tr>
';
echo '</table>
<p class="submit" style="text-align: right;">
<input type="submit" name="settings_update" value="' . __('Save Settings', 'ym') . ' »" class="button-primary" />
</p>
';
echo ym_end_box();
echo ym_box_top(__('Email Reminder for Drip Fed Content', 'ym'));
echo '<table class="form-table">';
$ym_formgen->render_form_table_radio_row(__('Enable Drip Feeding Reminder Email', 'ym'), 'email_drip_reminder_enable', $ym_sys->email_drip_reminder_enable);
$ym_formgen->render_form_table_text_row(__('Reminder Subject (New Dripped Content)', 'ym'), 'email_drip_subject', $ym_sys->email_drip_subject, __('Supports [site_name]', 'ym'));
$ym_formgen->render_form_table_wp_editor_row(__('Reminder Message (New Dripped Content)', 'ym'), 'email_drip_message', $ym_sys->email_drip_message);
echo '</table>
<p class="submit" style="text-align: right;">
<input type="submit" name="settings_update" value="' . __('Save Settings', 'ym') . ' »" class="button-primary" />
</p>
</form>
';
echo ym_end_box();
echo '</div>';
示例7: update_option
}
}
}
update_option('ym_packs', $ym_packs);
ym_display_message(__('Packs Updated', 'ym'));
// core
$ym_sys->login_redirect_url = $fields['login_redirect_url'];
$ym_sys->wpadmin_disable_redirect_url = $fields['wpadmin_disable_redirect_url'];
$ym_sys->logout_redirect_url = $fields['logout_redirect_url'];
update_option('ym_sys', $ym_sys);
ym_display_message(__('System Updated', 'ym'));
}
echo '<div class="wrap" id="poststuff">
<form action="" method="post">
';
echo ym_box_top(__('Redirects Control', 'ym'));
echo '<p>' . __('This page Collects together all Redirect options, that are duplicated/refined by Pack', 'ym') . '</p>';
echo '<table>
<tr>
<th style="width: 300px">' . __('Redirect For', 'ym') . '</th><td style="min-width: 700px;"></td>
</tr>
';
$last_pack_id = FALSE;
foreach ($fields as $key => $value) {
echo '
<tr>
';
echo ' ';
if (substr($key, 0, 8) == 'ym_pack_') {
list($pack_id, $item) = explode('-', substr($key, 8));
if (!$last_pack_id || $last_pack_id != $pack_id) {
示例8: ym_box_bottom
</select>
<input type="submit" class="button-secondary" name="del_btn" value="Go" style="font-size: 13px; width: auto;" />
</form>
';
} else {
echo '-';
}
echo '
</td>
</tr>
';
}
echo '</table>';
echo '</form>';
ym_box_bottom();
ym_box_top(__('Create a new Package Type', 'ym'));
echo '
<form action="" method="post">
<fieldset>
<table class="form-table">
<tr><td>
<label for="new_package_type">' . __('Create a new Package Type', 'ym') . '</label>
</td><td>
<input type="text" name="new_package_type" id="new_package_type" value="" />
</td><td>
<input type="submit" class="button-primary" value="' . __('Add New Package Type', 'ym') . '" />
</td></tr>
</table>
</fieldset>
</form>
';
示例9: broadcast_create
function broadcast_create($email_id, $email_subject, $email_content, $recipient_list, $time)
{
define('STOP_BROADCAST', TRUE);
// burn baby burn
//send_newsletter($campaign_id, $from_field = FALSE, $subject, $contents, $flags, $contacts = FALSE, $get_contacts = FALSE, $suppressions = FALSE, $get_suppressions = FALSE) {
$flags = array('clicktrack', 'openrate');
$test = explode('_', $recipient_list);
if ($test[0] == 'wordpress') {
// everyone
$key = 'everyone';
} else {
if ($test[1] == 'ac') {
$key = 'segment_account_type';
} else {
if ($test[1] == 'pack') {
$key = 'segment_pack_id';
} else {
if ($test[1] == 'all') {
$key = 'segment_all';
} else {
echo '<div id="message" class="error"><p>An error occured with determining who to send to</p></div>';
return;
}
}
}
}
if ($key != 'everyone') {
$paras = array('customs' => array(array('name' => $key, 'content' => array('EQUALS' => $recipient_list))));
} else {
$paras = array('campaigns' => array($this->options->campaign_id));
}
$from_email_id = $this->from_id();
if (!$from_email_id) {
echo '<div id="message" class="error"><p>An error occured with determining a Send From ID</p></div>';
return;
}
$contents = array('plain' => strip_tags($email_content), 'html' => $email_content);
if ($time < time()) {
// now
$r = $this->getresponse->send_newsletter($this->options->campaign_id, $from_email_id, $email_subject, $contents, $flags, FALSE, $paras, FALSE, FALSE);
echo '<div id="message" class="';
if ($r) {
echo 'updated"><p>Message was sent successfully</p></div>';
} else {
echo 'error"><p>An Error Occured</p></div>';
}
} else {
$email_json = array('campaign_id' => $this->options->campaign_id, 'from_email_id' => $from_email_id, 'email_subject' => $email_subject, 'contents' => $contents, 'flags' => $flags, 'paras' => $paras);
$email_json = json_encode($email_json);
// scheduler
global $wpdb;
if (!$email_id) {
$sql = 'INSERT INTO ' . $wpdb->prefix . 'mm_email(name, subject, body) VALUES (\'broadcast_' . $email_subject . '\', \'' . $email_subject . '\', \'' . $email_json . '\')';
$wpdb->query($sql);
$email_id = $wpdb->insert_id;
} else {
// build json packet
$sql = 'UPDATE ' . $wpdb->prefix . 'mm_email SET subject = \'json_encode_for_schedule\', body = \'' . $email_json . '\' WHERE id = ' . $email_id;
$wpdb->query($sql);
}
$args = array($email_id, $recipient_list);
wp_schedule_single_event($time, 'mm_scheduled_email', $args);
ym_box_top('Broadcast');
echo 'Scheduled for ' . date('r', $time) . ' it is currently ' . date('r', time());
ym_box_bottom();
}
return;
}
示例10: foreach
echo '<ul id="ym_graph_nav">';
foreach ($graphs_to_render as $graph) {
echo '<li><a href="#' . $graph[0] . '">' . $graph[1] . '</a></li>';
}
echo '</ul>';
echo '<div id="ym_graph_holder" class="aligncenter">';
ym_render_graphs($graphs_to_render);
echo '</div>';
ym_box_bottom();
echo '</div>';
echo '<div class="ym_two_third alignleft">';
ym_box_top(__('Posts Purchased', 'ym'), 300);
ym_render_posts_purchased(false, true);
ym_box_bottom();
echo '<div style="clear:both;"> </div>';
ym_box_top(__('Recent History', 'ym'), 300);
if ($limit = ym_post('ym_home_timeline_log_limit', FALSE)) {
update_option('ym_home_timeline_log_limit', ym_post('ym_home_timeline_log_limit'));
} else {
$limit = get_option('ym_home_timeline_log_limit', 20);
}
ym_show_timeline_log_home($limit);
echo '
<form action="" method="post" class="alignright"><fieldset>
<input type="text" name="ym_home_timeline_log_limit" value="' . $limit . '" size="4" /> <input type="submit" value="' . __('Change Limit', 'ym') . '" />
</fieldset></form>
';
ym_box_bottom();
echo '</div>';
echo '<div class="ym_third alignright">';
do_action('ym_nm_news_box');
示例11: __
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_email_row(__('Email Address', 'ym'), 'cron_notify_email', $ym_sys->cron_notify_email, __('Output from YM Cron Tasks can be Forwarded to a Email Address for Logging Needs', 'ym'));
echo $ym_formgen->render_form_table_text_row(__('Email Subject', 'ym'), 'cron_notify_subject', $ym_sys->cron_notify_subject, __('Choose the Subject, useful for Mail Sorting', 'ym'));
echo '</table>';
echo ym_end_box();
?>
<p class="submit" style="text-align: right;">
<input type="submit" name="settings_update" value="<?php
_e('Save Settings', 'ym');
?>
»" class="button-primary" style="float: right;" />
</p>
</form>
<?php
$schedules = wp_get_schedules();
echo ym_box_top(__('Cron Jobs', 'ym'));
echo '<table class="form-table">';
echo '<thead><tr>
<th>' . __('Task', 'ym') . '</th>
<th style="width: 60px;">' . __('Exists', 'ym') . '</th>
<th style="width: 60px;">' . __('Enabled', 'ym') . '</th>
<th style="width: 75px;">' . __('Schedule', 'ym') . '</th>
<th style="width: 75px;">' . __('Next Scheduled Run', 'ym') . '</th>
<th style="width: 75px;">' . __('Change Schedule', 'ym') . '</th>
<th style="width: 90px;">' . __('Run Now', 'ym') . '</th>
</tr></thead>';
echo '<tbody>';
$string = __('Never', 'ym');
if ($ym_sys->enable_manual_cron) {
$string = __('Manual', 'ym');
}
示例12: __
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_radio_row(__('Enable This Message', 'ym_mailmanager'), 'subscription_enabled', $data->subscription_enabled);
echo $ym_formgen->render_form_table_text_row(__('Email Subject', 'ym_mailmanager'), 'subscription_subject', $data->subscription_subject, __('Subject of Message', 'ym_mailmanager'));
$ym_formgen->render_form_table_wp_editor_row(__('Email Message', 'ym_mailmanager'), 'subscription_message', $data->subscription_message);
echo '</table>';
ym_box_bottom();
echo '</div><div id="post">';
ym_box_top(__('Post Purchase Complete', 'ym_mailmanager'));
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_radio_row(__('Enable This Message', 'ym_mailmanager'), 'post_enabled', $data->post_enabled);
echo $ym_formgen->render_form_table_text_row(__('Email Subject', 'ym_mailmanager'), 'post_subject', $data->post_subject, __('Subject of Message', 'ym_mailmanager'));
$ym_formgen->render_form_table_wp_editor_row(__('Email Message', 'ym_mailmanager'), 'post_message', $data->post_message);
echo '</table>';
ym_box_bottom();
echo '</div><div id="bundle">';
ym_box_top(__('Bundle Purchase Complete', 'ym_mailmanager'));
echo '<table class="form-table">';
echo $ym_formgen->render_form_table_radio_row(__('Enable This Message', 'ym_mailmanager'), 'bundle_enabled', $data->bundle_enabled);
echo $ym_formgen->render_form_table_text_row(__('Email Subject', 'ym_mailmanager'), 'bundle_subject', $data->bundle_subject, __('Subject of Message', 'ym_mailmanager'));
$ym_formgen->render_form_table_wp_editor_row(__('Email Message', 'ym_mailmanager'), 'bundle_message', $data->bundle_message);
echo '</table>';
ym_box_bottom();
echo '</div>
<p class="submit" style="text-align: right;"><input type="submit" name="submit" value="' . __('Update All Messages', 'ym_mailmanager') . '" /></p>
</form>
</div>';
echo '
<script type="text/javascript">
jQuery(document).ready(function() {
setTimeout(\'tabulate()\', 500);
示例13: mailmanager_list_stats
function mailmanager_list_stats()
{
ym_box_top('List Stats');
echo '<ul>';
foreach (mailmanager_get_recipients() as $value => $text) {
echo '<li>';
echo $text;
echo ' - ';
echo mailmanager_get_size_of_list($value);
echo ' ' . __('Subscribers', 'ym_mailmanager');
echo '</li>';
}
echo '</ul>';
ym_box_bottom();
}
示例14: __
$ym_formgen->render_form_table_text_row(__('What to show next to required custom fields?', 'ym'), 'required_custom_field_symbol', $ym_sys->required_custom_field_symbol, __('Most commonly "* Required"', 'ym'));
?>
</table>
<p class="submit" style="text-align: right;">
<input type="submit" class="button-primary" name="settings_update" value="<?php
_e('Save Settings', 'ym');
?>
»" />
</p>
<?php
echo ym_end_box();
echo '</div>';
echo '<div class="wrap" id="poststuff">
';
echo ym_box_top(__('SSL Control', 'ym'));
echo '<p>' . __('This control is redudant if your entire site runs over SSL', 'ym') . '</p>';
$url = get_option('siteurl');
if (substr($url, 0, 5) == 'https') {
echo '<p>' . __('And you are running in SSL Only', 'ym') . '</p>';
} else {
echo '<table class="form-table">';
$ym_formgen->render_form_table_radio_row(__('Enable SSL Only WordPress Registration', 'ym'), 'register_https_only', $ym_sys->register_https_only);
//$ym_formgen->render_form_table_radio_row(__('Escape SSL When Not Registration', 'ym'), 'register_https_escape', $ym_sys->register_https_escape);
echo '</table>';
echo '<p>' . __('You can enable Registration to be done over SSL, in the case of Registration Flow Pages, or Pages that have the [ym_register] shortcode on, in order to avoid a meta Refresh, this control exists', 'ym') . '</p>';
echo '<table class="form-table">';
$ym_formgen->render_form_table_text_row(__('Comma Separated List of Page/Post IDs', 'ym'), 'register_https_pages', $ym_sys->register_https_pages);
?>
</table>
<p class="submit" style="text-align: right;">
示例15: series_precontent
function series_precontent()
{
ym_box_top('Message');
echo '<p>' . __('Series are being kept synced with') . ' ' . $this->name . '</p>';
echo '<p>' . __('The ' . $this->name . ' Associated Lists can only be sent to via') . ' ' . $this->name . ' A series link exists only for Sync Purposes</p>';
ym_box_bottom();
add_filter('mailmanager_adjust_recipients', array($this, 'filter_lists_remove'), 10, 1);
}