当前位置: 首页>>代码示例>>PHP>>正文


PHP NewsletterControls::wp_editor方法代码示例

本文整理汇总了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();
开发者ID:ilke-zilci,项目名称:newcomers-wp,代码行数:31,代码来源:lock.php

示例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.
开发者ID:chicosilva,项目名称:olharambiental,代码行数:31,代码来源:options.php

示例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>
开发者ID:ilke-zilci,项目名称:newcomers-wp,代码行数:31,代码来源:unsubscription.php


注:本文中的NewsletterControls::wp_editor方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。