本文整理汇总了PHP中NewsletterControls::button方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::button方法的具体用法?PHP NewsletterControls::button怎么用?PHP NewsletterControls::button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::button方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
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&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> </th>
</tr>
</thead>
<tbody>
示例2:
<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:
?>
<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: array
<?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: array
$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: get_option
?>
<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:
}
?>
<?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: array
$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: reply
$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: array
<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: connection
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: array
$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: htmlspecialchars
?>
</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:
<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: connection
<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>