예제 #1
0
                <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">
예제 #2
0
파일: profile.php 프로젝트: besimhu/legacy
        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>
예제 #3
0
파일: edit.php 프로젝트: taeche/SoDoEx
                <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>
예제 #4
0
                    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');
예제 #5
0
                                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.
예제 #6
0
파일: options.php 프로젝트: besimhu/legacy
        </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>
예제 #7
0

                <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 
예제 #8
0
            <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');