예제 #1
0
include dirname(__FILE__) . '/header.php';
?>

<form method="post" action="admin.php?page=newsletter/emails.php">
    <?php 
$nc->init();
?>

<p><a href="admin.php?page=newsletter/emails-edit.php&amp;id=0" class="button">New message</a></p>
<p>
    Delivery engine next run: <?php 
echo wp_next_scheduled('newsletter') - time();
?>
 seconds
    <?php 
$nc->button('send', 'Trigger now');
?>
</p>

    <table class="widefat">
        <thead>
            <tr>
                <th>Id</th>
                <th>Subject</th>
                <th>Date</th>
                <th>Status</th>
                <th>&nbsp;</th>
            </tr>
        </thead>

        <tbody>
예제 #2
0
    <form method="post" action="">
        <?php 
$controls->init();
?>

        <?php 
if ($module->has_old_emails()) {
    ?>
            <div class="newsletter-message">
                <p>
                    Your Newsletter installation has emails still in old format. To get them listed, you should convert them in
                    a new format. Would you to convert them now?
                </p>
                <p>
                    <?php 
    $controls->button('convert', 'Convert now');
    ?>
                    <?php 
    //$controls->button('unconvert', 'Unconvert (DEBUG)');
    ?>
                </p>
            </div>
        <?php 
}
?>

        <p>
            <a href="<?php 
echo $module->get_admin_page_url('theme');
?>
" class="button"><?php 
예제 #3
0
    ?>
                <img src="http://cdn.thenewsletterplugin.com/tnp-reports-dummy-image.png" style="max-width: 100%">
                
            <?php 
} else {
    ?>
                
                <div class="row">
                    
                        <div class="tnp-statistics-info-box">
                            <p class="tnp-legend">Select Newsletter category:</p>
                            <?php 
    $controls->select('type', $type_options, 'All');
    ?>
                            <?php 
    $controls->button('update', __('Update Charts', 'newsletter'));
    ?>
                        </div>
                    
                </div>

                <br>

                <div class="row">
                    <div class="col-md-6">
                        <div class="tnp-widget">
                            <h3>Overview</h3>
                            <div class="inside">
                                
                                <p class="tnp-events-legend">Subscribers interactions distribution over time,<br>starting from the sending day.</p>
                                
예제 #4
0
                    <?php 
$controls->select('separator', array(';' => 'Semicolon', ',' => 'Comma', 'tab' => 'Tabulation'));
?>
                     <p class="description">Try to change the separator if Excel does not recognize the columns.</p>
                 </td>
             </tr>
            <tr>
                <th>Limit to</th>
                <td>
                    <?php 
$controls->select('list', $lists);
?>
                    <p class="description">Limit to the user with that preference active</p>
                </td>
            </tr>
        </table>
        <p>
            <?php 
$controls->button('export', 'Export');
?>
        </p>
    </form>

</div>
    
    <?php 
include NEWSLETTER_DIR . '/tnp-footer.php';
?>
    
</div>
예제 #5
0
$nc->hidden('id');
?>
        <?php 
$nc->hidden('status');
?>

        <table class="form-table">

            <tr valign="top">
                <th>Theme</th>
                <td>
                    <?php 
$nc->select_grouped('theme', array(array_merge(array('' => 'Custom themes'), newsletter_get_themes()), $themes, $themes_panel));
?>
                    <?php 
$nc->button('compose', 'Change');
?>
 (email content below will be regenerated)
                    <div class="hints">
                        Theme changing does not save this email, remember to press save if you are satisfied of the result. A theme can have a style file
                        (style.css in theme folder): that style will be added to your emails, so when you change the theme you MUST press "change" to have
                        in the editor the right content for the current theme style. No easy to explain. No all email readers respect the theme graphics!
                    </div>
                </td>
            </tr>

            <tr valign="top">
                <th>Subject</th>
                <td>
                    <?php 
$nc->text('subject', 70);
예제 #6
0
?>
                            <p class="description">
                                <strong>Double Opt In</strong> means subscribers need to confirm their email address by an activation link sent them on a activation email message.<br />
                                <strong>Single Opt In</strong> means subscribers do not need to confirm their email address.<br />
                            </p>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th>Newsletter dedicated page</th>
                        <td>
                            <?php 
$controls->text('url', 70);
?>
                            <?php 
if (empty($controls->data['url'])) {
    $controls->button('create', 'Create a page for me');
}
?>

                            <p class="description">
                                Optional (but recommended) an address of a WordPress page (eg. <?php 
echo get_option('home') . '/newsletter';
?>
)
                                you <strong>manually created</strong> for subscription and messages.
                                <br>
                                The page must have in its body <strong>only</strong> the short code <strong>[newsletter]</strong> (as is).

                                <?php 
if (!empty($controls->data['url'])) {
    ?>
예제 #7
0
파일: edit.php 프로젝트: taeche/SoDoEx
}
?>

    <?php 
$controls->show();
?>

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

        <p class="submit">
            <?php 
if ($email['status'] != 'sending' && $email['status'] != 'sent') {
    $controls->button('save', 'Save');
}
?>
            <?php 
if ($email['status'] != 'sending' && $email['status'] != 'sent') {
    $controls->button_confirm('test', 'Save and test', 'Save and send test emails to test addresses?');
}
?>

            <?php 
if ($email['status'] == 'new') {
    $controls->button_confirm('send', 'Send', 'Start a real delivery?');
}
?>
            <?php 
if ($email['status'] == 'sending') {
예제 #8
0
$controls->select('smtp_secure', array('' => 'No secure protocol', 'tls' => 'TLS protocol', 'ssl' => 'SSL protocol'));
?>
                            <p class="description">
                                Typically use host smtp.mandrillapp.com, port 465, protocol SSL.
                            </p>
                        </td>
                    </tr>

                    <tr>
                        <th>To test this configuration</th>
                        <td>
                            <?php 
$controls->text('smtp_test_email', 30);
?>
                            <?php 
$controls->button('smtp_test', 'Send a message to this email');
?>
                        </td>
                    </tr>
                </table>
            </div>


            <div id="tabs-bounces">
                <p>
                    Daily this extension retrives bounced addresses from Mandrill and eventually set those address as bounced if
                    present on subscriber list.
                </p>
                <table class="form-table">
                    <tr valign="top">
                        <th>Process soft bounces</th>
예제 #9
0
$nc->text('reply_to', 40);
?>
 (valid email address)
                    <div class="hints">
                        This is the email address where subscribers will reply (eg. if they want to reply to a newsletter). Leave it blank if
                        you don't want to specify a different address from the sender email above. As for return path, come provider do not like this
                        setting active.
                    </div>
                </td>
            </tr>


        </table>
        <p class="submit">
            <?php 
$nc->button('save', 'Save');
?>
            <?php 
$nc->button('test', 'Send a test email');
?>
        </p>




        <h3>General parameters</h3>

        <table class="form-table">
            <!--
            <tr valign="top">
                <th><?php 
예제 #10
0
                <td>
                    text: <?php 
$nc->text('search_text', 50);
?>
 (partial name, email, ...)<br />
                    <?php 
$nc->select('search_status', array('' => 'Any status', 'C' => 'Confirmed', 'S' => 'Not confirmed', 'B' => 'Bounced'));
?>
                    <?php 
$nc->select('search_order', array('id' => 'Order by id', 'email' => 'Order by email', 'name' => 'Order by name'));
?>
                    <?php 
$nc->select('search_list', $lists, 'Any');
?>
                    <?php 
$nc->button('search', 'Search');
?>

                    <div class="hints">
                    Press without filter to show all. Max 100 results will be shown. Use export panel to get all subscribers.
                    </div>
                </td>
            </tr>
        </table>

        <h3>Search results</h3>

<?php 
if (empty($list)) {
    ?>
<p>No search results (or you did not search at all)</p>
예제 #11
0
                            password: <?php 
$controls->text('smtp_pass', 30);
?>
                            <p class="description">
                                If authentication is not required, leave "user" field blank.
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <th>Test email address</th>
                        <td>
                            <?php 
$controls->text_email('smtp_test_email', 30);
?>
                            <?php 
$controls->button('smtp_test', 'Send a test email to this address');
?>
                            <p class="description">
                                If the test reports a "connection failed", review your settings and, if correct, contact
                                your provider to unlock the connection (if possible).
                            </p>
                        </td>
                    </tr>
                </table>


            </div>


            <div id="tabs-3">
                <p>
예제 #12
0
$controls->text('search_text', 80, __('Search text', 'newsletter'));
?>

            <?php 
_e('filter by', 'newsletter');
?>
:
                <?php 
$controls->select('search_status', array('' => 'Any status', 'T' => 'Test subscribers', 'C' => 'Confirmed', 'S' => 'Not confirmed', 'U' => 'Unsubscribed', 'B' => 'Bounced'));
?>
                <?php 
$controls->select('search_list', $lists);
?>
            
                <?php 
$controls->button('search', __('Search', 'newsletter'));
?>
            <?php 
if ($where != "where 1=1") {
    ?>
                <?php 
    $controls->button('reset', __('Reset Filters', 'newsletter'));
    ?>
        <?php 
}
?>
            <br>
            <?php 
$controls->checkbox('show_preferences', __('Show lists', 'newsletter'));
?>
        </div>
예제 #13
0
파일: index.php 프로젝트: kfwebdev/wp-atd
    ?>
                                    </td>
                                    <td>
                                        <?php 
    echo htmlspecialchars($value);
    ?>
                                    </td>
                                </tr>
                                <?php 
}
?>
                                </tbody>
                            </table>
                        <p>
                        <?php 
$controls->button('refresh', 'Refresh');
?>
                            <?php 
$controls->button('empty', 'Empty');
?>
                        </p>
                        
                        <h3>Logs of the last grabbed data</h3>
                        <?php 
$data = get_option($module->prefix . '_data', array());
?>
                        <table class="widefat">
                                <thead>
                                    <tr><th>Field name</th><th>Field value</th>
                                </thead>
                                <tbody>
예제 #14
0
<div class="wrap">
    <h2>Newsletter Import/Export</h2>
    <form method="post" action="">
        <?php 
$nc->init();
?>
        <h3>Export</h3>
        <table class="form-table">
            <tr>
                <td>
                    <?php 
$nc->select('list', $lists);
?>
                    <?php 
$nc->button('export', 'Export');
?>
                </td>
            </tr>
        </table>
    </form>

    <h3>Import</h3>
    <p>
        Please consider to break up your input list if you get errors, blank pages or partially imported lists: it can be a time/resource limit
        of your provider. It's safe to import the same list a second time, no duplications will occur.
    </p>
    <p>
        Import list format is:<br /><br />
        <b>email 1</b><i>[separator]</i><b>first name 1</b><i>[separator]</i><b>last name 1</b><i>[new line]</i><br />
        <b>email 2</b><i>[separator]</i><b>first name 2</b><i>[separator]</i><b>last name 2</b><i>[new line]</i><br />
예제 #15
0
                <th>Insecure SSL Connections</th>
                <td>
                    <?php 
$controls->yesno('ssl_insecure');
?>
 <a href="http://www.thenewsletterplugin.com/?p=21989" target="_blank">Read more</a>.
                </td>
            </tr>
            <tr>
                <th>Test email address</th>
                <td>
                    <?php 
$controls->text_email('test_email', 30);
?>
                    <?php 
$controls->button('test', 'Send a test email to this address');
?>
                    <p class="description">
                        If the test reports a "connection failed", review your settings and, if correct, contact
                        your provider to unlock the connection (if possible).
                    </p>
                </td>
            </tr>
        </table>

        <p>
            <?php 
$controls->button_save();
?>
        </p>
예제 #16
0
파일: index.php 프로젝트: taeche/SoDoEx
    <form method="post" action="">
        <?php 
$controls->init();
?>

        <?php 
if ($module->has_old_emails()) {
    ?>
            <div class="newsletter-message">
                <p>
                    Your Newsletter installation has emails still in old format. To get them listed, you should convert them in
                    a new format. Would you to convert them now?
                </p>
                <p>
                    <?php 
    $controls->button('convert', 'Convert now');
    ?>
                    <?php 
    //$controls->button('unconvert', 'Unconvert (DEBUG)');
    ?>
                </p>
            </div>
        <?php 
}
?>

        <p>
            <a href="<?php 
echo $module->get_admin_page_url('theme');
?>
" class="button">New message</a>
예제 #17
0
파일: options.php 프로젝트: besimhu/legacy
            <tr valign="top">
                <th>Opt In</th>
                <td>
                    <?php 
$nc->select('noconfirmation', array(0 => 'Double Opt In', 1 => 'Single Opt In'));
?>
                    <div class="hints">
                        <strong>Double Opt In</strong> means subscribers need to confirm their email address by an activation link sent them on a activation email message.<br />
                        <strong>Single Opt In</strong> means subscribers do not need to confirm their email address.<br />
                    </div>
                </td>
            </tr>
        </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,
예제 #18
0
?>
                            <p class="description">
                                <strong>Double Opt In</strong> means subscribers need to confirm their email address by an activation link sent them on a activation email message.<br />
                                <strong>Single Opt In</strong> means subscribers do not need to confirm their email address.<br />
                            </p>
                        </td>
                    </tr>
                    <tr valign="top">
                        <th>Newsletter dedicated page</th>
                        <td>
                            <?php 
$controls->text('url', 70);
?>
                            <?php 
if (empty($controls->data['url'])) {
    $controls->button('create', 'Create a page for me');
}
?>

                            <p class="description">
                                Optional (but recommended) an address of a WordPress page (eg. <?php 
echo get_option('home') . '/newsletter';
?>
)
                                you <strong>manually created</strong> for subscription and messages.
                                <br>
                                The page must have in its body <strong>only</strong> the short code <strong>[newsletter]</strong> (as is).

                                <?php 
if (!empty($controls->data['url'])) {
    ?>
예제 #19
0
파일: profile.php 프로젝트: besimhu/legacy
                <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>
        

        <h3>Main profile fields</h3>
        <table class="form-table">
            <tr>
                <th>User's data/fields</th>
                <td>
                    <table class="widefat">
                        <thead>
                    <tr>
                        <th>Field</th><th>When/Where</th><th>Configuration</th>
                    </tr>
                        </thead>
예제 #20
0
?>

        <div style="padding: .6em; border: 1px solid #ddd; background-color: #f4f4f4; border-radius: 3px;">
            <?php 
$controls->text('search_text', 80);
?>

            <!--<?php 
$controls->checkbox('search_test');
?>
 show subscriber with "test" flag on-->
            <?php 
$controls->select('search_status', array('' => 'Any status', 'T' => 'Test subscribers', 'C' => 'Confirmed', 'S' => 'Not confirmed', 'U' => 'Unsubscribed', 'B' => 'Bounced'));
?>
            <?php 
$controls->button('search', 'Search');
?>
        </div>




<div class="newsletter-paginator">
<?php 
echo $count;
?>
 subscribers found
<?php 
$controls->button('first', '«');
$controls->button('prev', '‹');
$controls->text('search_page', 3);
예제 #21
0
                <span class="tip-button">Tip</span>
                <span class="tip-content">
                    Simply paste CVS text here.
                </span>
            </div>
            </th>
            <td>
                <textarea name="options[csv]" wrap="off" style="width: 100%; height: 200px; font-size: 11px; font-family: monospace"><?php 
echo $controls->data['csv'];
?>
</textarea>
            </td>
            </tr>
            <tr>
                <th>&nbsp;</th><td><?php 
$controls->button('import', 'Import');
?>
</td>
            </tr>
        </table>
            
    </form>

        <a name="import_format"></a>
        
        <h3>Data format and other notes</h3>
    
        <p>
            Consider to break up your input list if you get errors, blank pages or partially imported lists: it can be a time/resource limit
            of your provider. It's safe to import the same list a second time, no duplications will occur.
        </p>
예제 #22
0
}
?>
            </ul>

            <!-- TESTS -->
            <div id="tabs-tests">
                <p>Here you can test if the blog is able to send emails reliabily.</p>

                <p>Email address where to send test messages: <?php 
$controls->text('test_email', 50);
?>
</p>

                <p>
                    <?php 
$controls->button('test_wp', 'Send an email with WordPress');
?>
                    <?php 
$controls->button('send_test', 'Send few emails with Newsletter');
?>
                </p>

                <p class="description">
                    First test emailing with WordPress if it does not work you need to contact your provider. Test on different addresses.
                    <br>
                    Second test emailing with Newsletter. You must receive three distinct email in different formats.
                    <br>
                    If the WordPress test works but Newsletter test doesn't, check the main configuration and try to change the sender,
                    return path and reply to email addresses.
                </p>
            </div>
예제 #23
0
            <td>
                <?php 
$controls->value('key');
?>
                <p class="description">
                    <?php 
_e('This auto-generated key is used to protect the click tracking. Shown for debug purposes.', 'newsletter-statistics');
?>
 
                </p>
            </td>
        </tr>        
    </table>
    <p>
        <?php 
$controls->button('save', __('Save', 'newsletter'));
?>
    </p>
    </form>

    <table class="widefat" style="width: auto">
        <thead>
            <tr>
                <th>Id</th>
                <th><?php 
_e('Subject', 'newsletter');
?>
</th>
                <th>Type</th>
                <th><?php 
_e('Status', 'newsletter');
예제 #24
0
                            When not enabled, the old templating system is used (see the file
                            wp-content/plugins/newsletter/subscription/email.php).
                        </p>
                    </td>
                </tr>
                <tr valign="top">
                    <th>Email template</th>
                    <td>
                        <?php 
$controls->textarea_preview('template', '100%', '700');
?>
                        <?php 
$controls->button_reset();
?>
                        <?php 
$controls->button('test', 'Send a test');
?>
                    </td>
                </tr>
            </table>
            <p>
                <?php 
$controls->button_save();
?>
            </p>
        </form>
    </div>

    <?php 
include NEWSLETTER_DIR . '/tnp-footer.php';
?>
예제 #25
0
    <h2>New subscriber</h2>
</div>
    <div class="newsletter-separator"></div> 
    <?php 
$controls->show();
?>

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

        <table class="form-table">
            <tr valign="top">
                <th>New email address</th>
                <td>
                    <?php 
$controls->text('email', 60);
?>
                    <?php 
$controls->button('save', 'Proceed');
?>

                </td>
            </tr>
        </table>

    </form>
</div>
예제 #26
0
$controls->init();
?>

        <div style="padding: .6em; border: 1px solid #ddd; background-color: #f4f4f4; border-radius: 3px;">
            <?php 
$controls->text('search_text', 80, __('Search text', 'newsletter-users'));
?>

            <?php 
_e('filter by', 'newsletter-users');
?>
:<?php 
$controls->select('search_status', array('' => 'Any status', 'T' => 'Test subscribers', 'C' => 'Confirmed', 'S' => 'Not confirmed', 'U' => 'Unsubscribed', 'B' => 'Bounced'));
?>
            <?php 
$controls->button('search', __('Search', 'newsletter-users'));
?>
            <br>
            <?php 
$controls->checkbox('show_preferences', __('Show preferences', 'newsletter-users'));
?>
        </div>




<div class="newsletter-paginator">

<?php 
$controls->button('first', '«');
$controls->button('prev', '‹');
예제 #27
0
파일: index-old.php 프로젝트: taeche/SoDoEx
        <input type="hidden" name="options[subscriber_status]"/>

        <?php 
$tmp = $wpdb->get_results("select distinct newsletter, url from " . $wpdb->prefix . "newsletter_stats order by newsletter,url");
$links = array('' => 'Unfiltered');
foreach ($tmp as $t) {
    $links[$t->newsletter . '|' . $t->url] = $t->newsletter . ': ' . substr($t->url, 0, min(strlen($t->url), 50)) . '...';
}
?>

        <div style="padding: .6em; border: 1px solid #ddd; background-color: #f4f4f4; border-radius: 3px;">
        <?php 
$controls->text('search_text', 80);
?>
        <?php 
$controls->button('search', 'Search');
?>
        </div>

        <table class="form-table">
            <tr valign="top">
                <td>
                    <?php 
$controls->select('search_status', array('' => 'Any status', 'C' => 'Confirmed', 'S' => 'Not confirmed', 'U' => 'Unsubscribed', 'B' => 'Bounced'));
?>
                    <?php 
$order_fields = array('id' => 'Order by id', 'email' => 'Order by email', 'name' => 'Order by name');
for ($i = 1; $i < 20; $i++) {
    if ($options_profile['profile_' . $i] == '') {
        continue;
    }
예제 #28
0
</h3>

    <textarea wrap="off" style="width: 100%; height: 150px; font-size: 11px; font-family: monospace"><?php 
    echo htmlspecialchars(implode("\n", $errors));
    ?>
</textarea>

    <?php 
}
?>

    <form method="post" action="">
        <?php 
wp_nonce_field();
?>

        <h3><?php 
_e('CSV text with subscribers', 'newsletter');
?>
</h3>

        <textarea name="csv" wrap="off" style="width: 100%; height: 300px; font-size: 11px; font-family: monospace"></textarea>
        <p class="submit">
            <?php 
$nc->button('import', __('Import', 'newsletter'));
?>
        </p>
    </form>

</div>