本文整理汇总了PHP中NewsletterControls::text方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::text方法的具体用法?PHP NewsletterControls::text怎么用?PHP NewsletterControls::text使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::text方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
_e('Since spam filters check links inside emails, <a href="http://www.thenewsletterplugin.com/plugins/newsletter/statistics-module#tracking-url" target="_blank">read more about this setting</a>.', 'newsletter-statistics');
?>
</p>
</td>
</tr>
-->
<tr>
<th><?php
_e('Secret key', 'newsletter-statistics');
?>
</th>
<td>
<?php
$controls->text('key');
?>
<p class="description">
<?php
_e('This auto-generated key is used to protect the click tracking. If you change it old tracking links to external domains won\'t be registered anymore.', 'newsletter-statistics');
?>
</p>
</td>
</tr>
</table>
<p>
<?php
$controls->button_save();
?>
</p>
示例2: array
<th>Field</th>
<th>Name/Label</th>
<th>On subscription</th>
<th>Initially...</th>
</tr>
</thead>
<?php
for ($i = 1; $i <= NEWSLETTER_LIST_MAX; $i++) {
?>
<tr>
<td>List <?php
echo $i;
?>
</td>
<td><?php
$controls->text('list_' . $i);
?>
</td>
<td><?php
$controls->select('list_' . $i . '_status', $status);
?>
</td>
<td><?php
$controls->select('list_' . $i . '_checked', array(0 => 'Unchecked', 1 => 'Checked'));
?>
</td>
</tr>
<?php
}
?>
</table>
示例3:
<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>
示例4: array
created: <?php
$nc->value('created');
?>
ip: <?php
$nc->value('ip');
?>
token: <?php
$nc->value('token');
?>
</td>
</tr>
<tr valign="top">
<th>Name and email</th>
<td>
first name: <?php
$nc->text('name', 30);
?>
last name: <?php
$nc->text('surname', 30);
?>
email: <?php
$nc->text('email', 40);
?>
sex: <?php
$nc->select('sex', array('n' => 'Not specified', 'f' => 'female', 'm' => 'male'));
?>
</td>
</tr>
<tr valign="top">
<th>Status</th>
<td>
示例5:
</p>
<div id="tabs">
<ul>
<li><a href="#tabs-a">Message</a></li>
<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">
示例6: address
<?php
$nc->editor('confirmed_text');
?>
<div class="hints">
Showed when the user follow the confirmation URL sent to him with previous email
settings or if signed up directly with no double opt-in process. You can use the <strong>{profile_form}</strong> tag to let the user to
complete it's profile.
</div>
</td>
</tr>
<tr valign="top">
<th>Alternative custom welcome page</th>
<td>
<?php
$nc->text('confirmed_url', 70);
?>
<div class="hints">
A full page address (http://yourblog.com/welcome) to be used instead of message above. If empty the message is
used.
</div>
</td>
</tr>
<tr valign="top">
<th>Conversion tracking code<br/><small>ADVANCED</small></th>
<td>
<?php
$nc->textarea('confirmed_tracking');
?>
<div class="hints">
示例7: get_option
<th>Opt In</th>
<td>
<?php
$controls->select('noconfirmation', array(0 => 'Double Opt In', 1 => 'Single Opt In'));
?>
<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).
示例8: coming
Since this setting can
affect the reliability of delivery,
<a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-configuration#sender" target="_blank">read my notes here</a> (important).
Generally use an address within your domain name.
</p>
</td>
</tr>
<tr>
<th><?php
_e('Sender name', 'newsletter');
?>
</th>
<td>
<?php
$controls->text('sender_name', 40);
?>
(optional)
<p class="description">
<?php
_e('Name from which subscribers will see your email coming (for example your blog title).', 'newsletter');
?>
Since this setting can affect the reliability of delivery (usually under Windows)
<a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-configuration#sender" target="_blank">read my notes here</a>.
</p>
</td>
</tr>
<tr valign="top">
示例9: array
$controls->select('subscribe', array(0 => 'No', 1 => 'Yes, force subscription', 2 => 'Yes, show the option', 3 => 'Yes, show the option already checked'));
?>
<p class="description">
Adds a newsletter subscription option on registration.
<a href="http://www.thenewsletterplugin.com/plugins/newsletter/subscription-module#registration" target="_blank">Read more</a>
</p>
</td>
</tr>
<tr valign="top">
<th><?php
_e('Check box label', 'newsletter');
?>
</th>
<td>
<?php
$controls->text('subscribe_label', 30);
?>
</td>
</tr>
</table>
<table class="form-table">
<tr valign="top">
<td colspan="2">
<h3><?php
_e('Confirmation', 'newsletter');
?>
</h3>
<p>
Subscribers will be automatically confirmed on first log-in (because it demonstrates they received the WP email with
their passsword. Hence no confirmation email is sent. Anyway you can change that behavior here and ask anyway for confirmation.
示例10: array
</table>
</form>
<form id="channel" method="post" action="">
<?php
$nc->init();
?>
<input type="hidden" name="options[subscriber_id]"/>
<input type="hidden" name="options[subscriber_status]"/>
<h3>Search</h3>
<table class="form-table">
<tr valign="top">
<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');
?>
示例11: array
<?php
$controls->select('subscribe_wp_users', array(0 => 'No', 1 => 'Yes, force subscription', 2 => 'Yes, show the option', 3 => 'Yes, show the option already checked'));
?>
<?php
$controls->hint('Adds a newsletter subscription option on registration.', 'http://www.thenewsletterplugin.com/plugins/newsletter/subscription-module#registration');
?>
</td>
</tr>
<tr valign="top">
<th><?php
_e('Check box label', 'newsletter');
?>
</th>
<td>
<?php
$controls->text('subscribe_wp_users_label', 30);
?>
</td>
</tr>
</table>
<table class="form-table">
<tr valign="top">
<td colspan="2">
<h3><?php
_e('Confirmation', 'newsletter');
?>
</h3>
<p>
Subscribers will be automatically confirmed on first log-in (because it demonstrates they received the WP email with
their passsword. Hence no confirmation email is sent. Anyway you can change that behavior here and ask anyway for confirmation.
示例12:
</td>
<?php
} else {
?>
<td>Tracking options available with Newsletter Extras package</td>
<?php
}
?>
</tr>
<tr valign="top">
<th>Subject</th>
<td>
<?php
$nc->text('subject', 70);
?>
<br />
<?php
_e('Tags: <strong>{name}</strong> receiver name.', 'newsletter');
?>
</td>
</tr>
<tr valign="top">
<th>Message</th>
<td>
<?php
$nc->checkbox('novisual', 'disable the visual editor');
?>
(save to apply and be sure to <a href="http://www.satollo.net/plugins/newsletter#composer">read here</a>)
示例13:
?>
</h3>
<table class="form-table">
<tr valign="top">
<th>Enabled?</th>
<td>
<?php
$controls->yesno('rule_' . $i . '_enabled');
?>
</td>
</tr>
<tr valign="top">
<th>Subscription indicator field</th>
<td>
name: <?php
$controls->text('rule_' . $i . '_check_field');
?>
value: <?php
$controls->text('rule_' . $i . '_check_value');
?>
<p class="description">
If the value is left empty, the presence of the field is enough to trigger the grabber, otherwise the field
value must extactly match.
</p>
</td>
</tr>
<tr valign="top">
<th>Email field name</th>
<td>
<?php
示例14:
<div id="tnp-body">
<form method="post" action="">
<?php
$controls->init();
?>
<table class="form-table">
<tr valign="top">
<th><?php
_e('Tags or categories to block', 'newsletter');
?>
</th>
<td>
<?php
$controls->text('ids', 70);
?>
(<?php
_e('comma separated', 'newsletter');
?>
)
<p class="description">
<?php
_e('Use tag or category slugs or id for which lock the posts content', 'newsletter');
?>
</p>
</td>
</tr>
<tr valign="top">
<th><?php
示例15: array
</div>
<div class="newsletter-separator"></div>
<?php
$controls->show();
?>
<form id="channel" method="post" action="">
<?php
$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'));
?>