本文整理汇总了PHP中NewsletterControls::email方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::email方法的具体用法?PHP NewsletterControls::email怎么用?PHP NewsletterControls::email使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::email方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: address
$controls->text('confirmation_url', 70);
?>
<p class="description">
A full page address (http://yourblog.com/confirm) to be used instead of message above.
If left empty the message above is used.
</p>
</td>
</tr>
<!-- CONFIRMATION EMAIL -->
<tr valign="top">
<th>Confirmation email</th>
<td>
<?php
$controls->email('confirmation', 'wordpress');
?>
<?php
$controls->button('test-confirmation', 'Send a test');
?>
<p class="description">
Message sent by email to new subscribers with instructions to confirm their subscription
(for double opt-in process). Do not forget to add the <strong>{subscription_confirm_url}</strong>
that users must click to activate their subscription.<br />
Sometime can be useful to add a <strong>{unsubscription_url}</strong> to let users to
cancel if they wrongly subscribed to your newsletter.
</p>
</td>
</tr>
</table>
</div>
示例2:
$nc->editor('subscribed_text');
?>
<div class="hints">
This is the text showed to a user who has pressed "subscribe me" on the previous
step informing that an email to confirm subscription has just been sent. Remember
the user to check the spam folder and to follow the email instructions.
</div>
</td>
</tr>
<!-- CONFIRMATION EMAIL -->
<tr valign="top">
<th>Confirmation email</th>
<td>
<?php
$nc->email('confirmation');
?>
<div class="hints">
Message sent by email to new subscribers with instructions to confirm their subscription
(for double opt-in process). Do not forget to add the <strong>{subscription_confirm_url}</strong>
that users must click to activate their subscription.<br />
Sometime can be useful to add a <strong>{unsubscription_url}</strong> to let users to
cancel if they wrongly subscribed your service.
</div>
</td>
</tr>
</table>
<p class="submit">
<?php
$nc->button('save', 'Save');
示例3: address
$controls->text('confirmation_url', 70);
?>
<p class="description">
A full page address (http://yourblog.com/confirm) to be used instead of message above.
If left empty the message above is used.
</p>
</td>
</tr>
<!-- CONFIRMATION EMAIL -->
<tr valign="top">
<th>Confirmation email</th>
<td>
<?php
$controls->email('confirmation');
?>
<p class="description">
Message sent by email to new subscribers with instructions to confirm their subscription
(for double opt-in process). Do not forget to add the <strong>{subscription_confirm_url}</strong>
that users must click to activate their subscription.<br />
Sometime can be useful to add a <strong>{unsubscription_url}</strong> to let users to
cancel if they wrongly subscribed to your newsletter.
</p>
</td>
</tr>
</table>
</div>
<div id="tabs-4">
示例4:
$controls->wp_editor('unsubscribed_text');
?>
<p class="description">
Shown to users after the cancellation has been completed.
</p>
</td>
</tr>
<tr valign="top">
<th><?php
_e('Goodbye email', 'newsletter');
?>
</th>
<td>
<?php
$controls->email('unsubscribed', 'wordpress', true);
?>
<p class="description">
Sent after a cancellation, is the last message you send to the user before his removal
from your newsletter subscribers.
</p>
</td>
</tr>
<tr>
<th>Unsubscription error</th>
<td>
<?php
$controls->wp_editor('unsubscription_error_text');
?>
<p class="description">
When the unsubscription cannot be completed, for example because the