Ejemplo n.º 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">
Ejemplo n.º 2
0
                <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>
Ejemplo n.º 3
0
</td>
                            <td><?php 
    $controls->select('profile_' . $i . '_status', $status);
    ?>
</td>
                            <td><?php 
    $controls->select('profile_' . $i . '_type', array('text' => 'Text', 'select' => 'List'));
    ?>
</td>
                            <td><?php 
    $controls->select('profile_' . $i . '_rules', $rules);
    ?>
</td>
                            <td>
                                <?php 
    $controls->textarea_fixed('profile_' . $i . '_options', '200px', '50px');
    ?>
                            </td>
                        </tr>
                    <?php 
}
?>
                </table>

            </div>


            <div id="tabs-4">
                <p>
                    Preferences are on/off choices users can select during subscription and change on their profile.
                    Those preferences are then used by you to target emails you create. Private preferenced can be used
Ejemplo n.º 4
0
</td>
                         <td><?php 
    $nc->text('profile_' . $i);
    ?>
</td>
                         <td><?php 
    $nc->select('profile_' . $i . '_status', $status);
    ?>
</td>
                         <td><?php 
    $nc->select('profile_' . $i . '_type', array('text' => 'Text', 'select' => 'List'));
    ?>
</td>
                         <td>
                             <?php 
    $nc->textarea_fixed('profile_' . $i . '_options', '300px', '50px');
    ?>
                         </td>
                     </tr>
                     <?php 
}
?>
                    </table>
                    <div class="hints">
                        Those fields are collected as texts, Newsletter Pro does not give meaning to them, it just stores them.
                    </div>
                </td>
            </tr>
        </table>
        <p class="submit"><?php 
$nc->button('save', 'Save');
Ejemplo n.º 5
0
            <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 
}
?>
                <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>

                <?php 
$controls->textarea_fixed('message_text', '100%', '500');
?>
            </div>


            <div id="tabs-c">
                <table class="form-table">

                    <tr valign="top">
                        <th><?php 
_e('Gender', 'newsletter');
?>
</th>
                        <td>
                            <?php 
$controls->checkboxes_group('sex', array('f' => 'Women', 'm' => 'Men', 'n' => 'Not specified'));