本文整理汇总了PHP中NewsletterControls::wp_editor方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::wp_editor方法的具体用法?PHP NewsletterControls::wp_editor怎么用?PHP NewsletterControls::wp_editor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::wp_editor方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: URL
_e('URL where redirect subscribers when they click on unlocking URL ({unlock_url}) inserted in newsletters and welcome message.', 'newsletter');
?>
<br>
Newsletters with tracking active can link directly the pages with locked content since the URLs will
unlock the content as well.
</p>
</td>
</tr>
<tr valign="top">
<th><?php
_e('Denied content message', 'newsletter');
?>
</th>
<td>
<?php
$controls->wp_editor('message');
?>
<p class="description">
This message is shown in place of protected post or page content which is surrounded with
[newsletter_lock] and [/newsletter_lock] short codes or in place of the full content if they are
in categories or have tags as specified above.<br />
You can use the {subscription_form} tag to display the subscription form.<br>
<strong>Remeber to add the {unlock_url} on the welcome email so the user can unlock the content.</strong>
</p>
</td>
</tr>
</table>
<p>
<?php
$controls->button_save();
示例2:
Notifications are sent on confirmed subscriptions and cancellations.
</p>
</td>
</tr>
</table>
</div>
<div id="tabs-2">
<table class="form-table">
<tr valign="top">
<th>Subscription page</th>
<td>
<?php
$controls->wp_editor('subscription_text');
?>
<p class="description">
Use <strong>{subscription_form}</strong> to insert the subscription form where you prefer in the text or
<strong>{subscription_form_N}</strong> (with N from 1 to 10) to insert one of the custom forms.
</p>
</td>
</tr>
<tr valign="top">
<th>Forced preferences</th>
<td>
<?php
$controls->preferences();
?>
<p class="description">
Add to new subscribers these preferences by default.
示例3:
<div id="tnp-body">
<form method="post" action="">
<?php
$controls->init();
?>
<table class="form-table">
<tr valign="top">
<th><?php
_e('Unsubscription message', 'newsletter');
?>
</th>
<td>
<?php
$controls->wp_editor('unsubscription_text');
?>
<p class="description">
This text is show to users who click on a "unsubscription link" in a newsletter
email. You <strong>must</strong> insert a link in the text that user can follow to confirm the
unsubscription request using the tag <strong>{unsubscription_confirm_url}</strong>.
</p>
</td>
</tr>
<tr valign="top">
<th><?php
_e('Goodbye message', 'newsletter');
?>
</th>
<td>