本文整理汇总了PHP中NewsletterControls::text_email方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::text_email方法的具体用法?PHP NewsletterControls::text_email怎么用?PHP NewsletterControls::text_email使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::text_email方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_option
<p class="description">
If you prefer to edit the messages on this cofiguration panel writing them in HTML, you can
disable the visual editors.
</p>
</td>
</tr>
*/
?>
<tr valign="top">
<th>Notifications</th>
<td>
<?php
$controls->yesno('notify');
?>
to: <?php
$controls->text_email('notify_email');
?>
(email address, leave empty for the WordPress administration email <?php
echo get_option('admin_email');
?>
)
<p class="description">
Notifications are sent on confirmed subscriptions and cancellations.
</p>
</td>
</tr>
</table>
</div>
<div id="tabs-2">
示例2:
<div id="tabs-basic">
<p>
<strong>Important!</strong>
<a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-configuration" target="_blank">Read the configuration page</a>
to know every details about these settings.
</p>
<table class="form-table">
<tr valign="top">
<th>Sender email address</th>
<td>
<?php
$controls->text_email('sender_email', 40);
?>
(valid email address)
<p class="description">
This the email address from which subscribers will se your email coming. Since this setting can
affect the reliability of delivery,
<a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-configuration#sender" target="_blank">read my notes here</a> (important).
Generally use an address within your domain name.
</p>
</td>
</tr>
<tr>
<th>Sender name</th>
<td>
<?php
示例3: connection
</td>
</tr>
<tr>
<th>Insecure SSL Connections</th>
<td>
<?php
$controls->yesno('ssl_insecure');
?>
<a href="http://www.thenewsletterplugin.com/?p=21989" target="_blank">Read more</a>.
</td>
</tr>
<tr>
<th>Test email address</th>
<td>
<?php
$controls->text_email('test_email', 30);
?>
<?php
$controls->button('test', 'Send a test email to this address');
?>
<p class="description">
If the test reports a "connection failed", review your settings and, if correct, contact
your provider to unlock the connection (if possible).
</p>
</td>
</tr>
</table>
<p>
<?php
$controls->button_save();
示例4: connection
user: <?php
$controls->text('smtp_user', 30);
?>
password: <?php
$controls->text('smtp_pass', 30);
?>
<p class="description">
If authentication is not required, leave "user" field blank.
</p>
</td>
</tr>
<tr>
<th>Test email address</th>
<td>
<?php
$controls->text_email('smtp_test_email', 30);
?>
<?php
$controls->button('smtp_test', 'Send a test email to this address');
?>
<p class="description">
If the test reports a "connection failed", review your settings and, if correct, contact
your provider to unlock the connection (if possible).
</p>
</td>
</tr>
</table>
<p>
<?php
$controls->button_save();