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


PHP NewsletterControls::editor方法代码示例

本文整理汇总了PHP中NewsletterControls::editor方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::editor方法的具体用法?PHP NewsletterControls::editor怎么用?PHP NewsletterControls::editor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在NewsletterControls的用法示例。


在下文中一共展示了NewsletterControls::editor方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

                <th>Subject</th>
                <td>
                    <?php 
$nc->text('subject', 70);
?>
                   <div class="hints">
                        Tags: <strong>{name}</strong> receiver name.
                   </div>
                </td>
            </tr>

            <tr valign="top">
                <th>Message</th>
                <td>
                    <?php 
$nc->data['editor'] == 0 ? $nc->editor('message', 20) : $nc->textarea_fixed('message', '100%', 400);
?>
                    <br />
                    <?php 
$nc->select('editor', array(0 => 'Edit with visual editor', 1 => 'Edit as plain text'));
?>
                    <div class="hints">
                        Tags: <strong>{name}</strong> receiver name;
                        <strong>{unsubscription_url}</strong> unsubscription URL;
                        <strong>{token}</strong> the subscriber token; <strong>{profile_url}</strong> link to user subscription options page;
                        <strong>{np_aaa}</strong> user profile data named "aaa".
                    </div>
                </td>
            </tr>

            <tr valign="top">
开发者ID:rajveerbeniwal,项目名称:rooms-dhkh,代码行数:31,代码来源:emails-edit.php

示例2:

        add more information on a profile page.<br />
        The form seems complex, but it's not! On first approach, skip profiles and lists.
    </p>

    <form action="" method="post">
    <?php 
$nc->init();
?>

        <h3>Profile page</h3>
        <table class="form-table">
            <tr valign="top">
                <th>Profile page text</th>
                <td>
                    <?php 
$nc->editor('profile_text');
?>
                    <div class="hints">
                        This is the page content where the profile form is placed. Use the tag {profile_form} (required, don't forget it!) to let Newsletter
                        Pro know how to insert the profile editing form. You can add text before and after the tag to give some kind of explanation to
                        the subscriber.<br />
                        You can use the tag {unsubscription_url} to create a link to let the user to cancel his subscription. Using the tag
                        {unsubscription_confirm_url} the link leads to a direct cancellation without the confirm step.
                    </div>
                </td>
            </tr>
        </table>
        <p class="submit"><?php 
$nc->button('save', 'Save');
?>
</p>
开发者ID:besimhu,项目名称:legacy,代码行数:31,代码来源:profile.php

示例3:

                <li><a href="#tabs-b">Message (textual)</a></li>
                <li><a href="#tabs-c">Who will receive it</a></li>
                <li><a href="#tabs-d">Other options</a></li>
                <!--<li><a href="#tabs-5">Documentation</a></li>-->
            </ul>


            <div id="tabs-a">

                            <?php 
$controls->text('subject', 70, 'Subject');
?>

                            <input id="upload_image_button" type="button" value="Choose or upload an image" />
                            <?php 
$email['editor'] == 0 ? $controls->editor('message', 30) : $controls->textarea_fixed('message', '100%', '700');
?>
                            <div class="hints">
                                <a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-tags" target="">See the list of all tags</a> that can be used on the email text.
                            </div>
                        
            </div>


            <div id="tabs-b">
                <div class="tab-preamble">
                <p>
                    This is the textual version of your newsletter. If you empty it, only an HTML version will be sent but
                    is an anti-spam best practice to include a text only version.
                </p>
                </div>
开发者ID:taeche,项目名称:SoDoEx,代码行数:31,代码来源:edit.php

示例4:

                    a newsletter. This link contains the email to unsubscribe and some unique information
                    to avoid hacking. The user are required to confirm the unsubscription: this is the last
                    step where YOU can communicate with your almost missed user.
                </p>
                <p>
                    To create immediate cancellation, you can use the <strong>{unsubscription_confirm_url}</strong>
                    in your newsletters and upon click on that link goodbye message and email are used directly
                    skipping the confirm request.
                </p>

                <table class="form-table">
                    <tr valign="top">
                        <th>Cancellation message</th>
                        <td>
                            <?php 
$controls->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>

                    <!-- Text showed to the user on successful unsubscription -->
                    <tr valign="top">
                        <th>Goodbye message</th>
                        <td>
                            <?php 
$controls->editor('unsubscribed_text');
开发者ID:chicosilva,项目名称:olharambiental,代码行数:31,代码来源:options.php

示例5:

                                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->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:manhhung86it,项目名称:builder-site,代码行数:31,代码来源:options.php

示例6: form

        </table>
        <p class="submit">
            <?php 
$nc->button('save', __('Save', 'newsletter'));
?>
        </p>
        </div>
        
        <h3>Subscription</h3>
        <div>
        <table class="form-table">
            <tr valign="top">
                <th>Subscription page</th>
                <td>
                    <?php 
$nc->editor('subscription_text');
?>
                    <div class="hints">
                    This is the text shown to subscriber before the subscription form (which is added automatically). To create a custom form,
                    code it directly editing the text in HTML mode (Newsletter will auto discover it).
                    See documentation about custom forms. A little example:<br />
                    &lt;form&gt;<br />
                    Your email: &lt;input type="text" name="ne"/&gt;<br />
                    &lt;input type="submit" value="Subscribe now!"/&gt;<br />
                    &lt;/form&gt;<br />
                    Field names are: "ne" email, "nn" name, "ns" surname, "nx" sex (values: f, m, n),
                    "nl[]" list (the field value must be the list number, you can use checkbox, radio, select or even hidden
                    HTML input tag), "npN" custom profile (with N from 1 to 19).
                    </div>
                </td>
            </tr>
开发者ID:besimhu,项目名称:legacy,代码行数:31,代码来源:options.php

示例7:



                <input id="upload_image_button" type="button" value="Choose or upload an image" />

                <a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-tags" target="_blank"><?php 
_e('Available tags', 'newsletter');
?>
</a>

                <br><br>



                <?php 
if ($email['editor'] == 0) {
    $controls->editor('message', 30);
} else {
    $controls->textarea_preview('message', '100%', '700');
}
?>


            </div>


            <div id="tabs-b">
                <?php 
if (Newsletter::instance()->options['phpmailer'] == 0) {
    ?>
                <p class="tnp-tab-warning">The text part is sent only when Newsletter manages directly the sending process. <a href="admin.php?page=newsletter_main_main" target="_blank">See the main settings</a>.</p>
                <?php 
开发者ID:radikalportal,项目名称:radikalportal,代码行数:29,代码来源:edit.php

示例8:

            <tr valign="top">
                <th>&nbsp;</th>
                <td>
                    <?php 
$nc->checkbox('noname', __('Do not ask the user name, only email.', 'newsletter'));
?>
                </td>
            </tr>
            <tr valign="top">
                <th><?php 
_e('Subscription form page', 'newsletter');
?>
</th>
                <td>
                    <?php 
$nc->editor('subscription_text');
?>
                    <br />
                    <?php 
_e('This is the text showed to subscriber before the subscription form which is added automatically.', 'newsletter');
?>
                </td>
            </tr>
            <tr valign="top">
                <th><?php 
_e('Successfully subscription page', 'newsletter');
?>
</th>
                <td>
                    <?php 
$nc->editor('subscribed_text');
开发者ID:elizabethcb,项目名称:Daily-Globe,代码行数:31,代码来源:options.php


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