本文整理汇总了PHP中NewsletterControls::hint方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::hint方法的具体用法?PHP NewsletterControls::hint怎么用?PHP NewsletterControls::hint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::hint方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
<tr>
<td>Not confirmed</td>
<td>
<?php
echo $wpdb->get_var("select count(*) from " . NEWSLETTER_USERS_TABLE . " where status='S'");
?>
</td>
<td nowrap>
<?php
$controls->button_confirm('remove_unconfirmed', 'Delete all not confirmed', 'Are you sure you want to delete ALL not confirmed subscribers?');
?>
<?php
$controls->button_confirm('confirm_all', 'Confirm all', 'Are you sure you want to mark ALL subscribers as confirmed?');
?>
<?php
$controls->hint('To send a comfirmation email to all, you can create a special newsletter.', 'http://www.thenewsletterplugin.com/plugins/newsletter/subscribers-module#resend-confirm');
?>
<?php
//$controls->button_confirm('resend_all', 'Resend confirmation message to all', 'Are you sure?');
?>
</td>
</tr>
<tr>
<td>Unsubscribed</td>
<td>
<?php
echo $wpdb->get_var("select count(*) from " . NEWSLETTER_USERS_TABLE . " where status='U'");
?>
</td>
<td>
<?php
示例2: address
<p class="description">
A full page address (e.g. http://yourblog.com/profile) to be used to show and edit the subscriber profile.
Leave empty to use an auto generated page or the main Newsletter page with the message below.
<br>
The custom page must contain the [profile_form] short code.
</p>
</td>
</tr>
<tr valign="top">
<th>Profile page</th>
<td>
<?php
$controls->wp_editor('profile_text');
?>
<?php
$controls->hint('This is the page where subscribers can edit their data and it must contain the {profile_form} tag.', 'http://www.thenewsletterplugin.com/plugins/newsletter/subscription-module#profile');
?>
</td>
</tr>
<tr>
<th>Other messages</th>
<td>
confirmation after profile save<br>
<?php
$controls->text('profile_saved', 80);
?>
<br><br>
email changed notice<br>
<?php
$controls->text('profile_email_changed', 80);
?>
示例3: array
<form method="post" action="">
<?php
$controls->init();
?>
<table class="form-table">
<tr valign="top">
<th>Subscription on registration</th>
<td>
<?php
$controls->select('subscribe_wp_users', array(0 => 'No', 1 => 'Yes, force subscription', 2 => 'Yes, show the option', 3 => 'Yes, show the option already checked'));
?>
<?php
$controls->hint('Adds a newsletter subscription option on registration.', 'http://www.thenewsletterplugin.com/plugins/newsletter/subscription-module#registration');
?>
</td>
</tr>
<tr valign="top">
<th><?php
_e('Check box label', 'newsletter');
?>
</th>
<td>
<?php
$controls->text('subscribe_wp_users_label', 30);
?>
</td>
</tr>
</table>