本文整理汇总了PHP中NewsletterControls::textarea方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::textarea方法的具体用法?PHP NewsletterControls::textarea怎么用?PHP NewsletterControls::textarea使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::textarea方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<li><a href="#tabs-forms">Forms</a></li>
</ul>
<div id="tabs-forms">
<table class="form-table">
<?php
for ($i = 1; $i <= 10; $i++) {
?>
<tr valign="top">
<th>Form <?php
echo $i;
?>
</th>
<td>
<?php
$controls->textarea('form_' . $i);
?>
<br />
<?php
$controls->button_save();
?>
</td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</form>
示例2: array
sex: <?php
$nc->select('sex', array('' => 'All', 'n' => 'No sex specified', 'f' => 'Females', 'm' => 'Males'));
?>
<div class="hints">
When sending to WordPress users, they cannot cancel the subscription and the cannot
be tracked.
</div>
</td>
</tr>
<!--
<tr valign="top">
<th>Query<br/><small>Really advanced!</small></th>
<td>
select * from wp_newsletter<br />
<?php
$nc->textarea('query');
?>
<br />
and id>... order by id limit ...
<div class="hints">
If you want to specify a different query to extract subscriber from Newsletter Pro database, here you
can write it. Be aware that the query starts and ends as specified, so your SQL snippet needs to create a
complete and working query.<br />
Leave this area empty to leave Newsletter Pro doing the work.<br />
When you specify a query, options like the target list will be ignored.<br />
For examples of queries study the documentation panel.
</div>
</td>
</tr>
-->
示例3: address
<div id="tabs-4">
<p>
Import a set of bounced email addresses: they will be marked as "bounced" and no more contacted. Sending
emails to bounced address (many times) can put your server in some black list.
</p>
<table class="form-table">
<tr>
<th><?php
_e('Bounced addresses', 'newsletter');
?>
</th>
<td>
<?php
$controls->textarea('bounced_emails');
?>
<p class="description">
<?php
_e('One email address per line.', 'newsletter');
?>
One email address per line.
</p>
</td>
</tr>
</table>
<?php
$controls->button_confirm('bounces', 'Mark those emails as bounced', __('Are you sure?', 'newsletter'));
?>
</div>
示例4: address
<td>
<?php
$controls->text('confirmed_url', 70);
?>
<p class="description">
A full page address (http://yourblog.com/welcome) to be used instead of message above. If empty the message is
used.
</p>
</td>
</tr>
<tr valign="top">
<th>Conversion tracking code<br/><small>ADVANCED</small></th>
<td>
<?php
$controls->textarea('confirmed_tracking');
?>
<p class="description">
The code is injected AS-IS in welcome page and can be used to track conversion
(you can use PHP if needed). It does not work with a custom welcome page.
Conversion code is usually supply by tracking services,
like Google AdWords, Google Analytics and so on.
</p>
</td>
</tr>
<!-- WELCOME/CONFIRMED EMAIL -->
<tr valign="top">
<th>
Welcome email<br /><small>The right place where to put bonus content link</small>
</th>
示例5: address
<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">
The code is injected AS-IS in welcome page and can be used to track conversion
(you can use PHP if needed). Conversion code is usually supply by tracking services,
like Google AdWords, Google Analytics and so on.</div>
</td>
</tr>
<!-- WELCOME/CONFIRMED EMAIL -->
<tr valign="top">
<th>
Welcome email<br /><small>The right place where to put bonus content link</small>
</th>
<td>
<?php
示例6: table
<td>
<?php
$nc->text('api_key', 40);
?>
<div class="hints">
When non-empty can be used to directly call the API for external integration. See API documentation on
documentation panel.
</div>
</td>
</tr>
<tr>
<th>Styling</th>
<td>
<?php
$nc->textarea('css');
?>
<div class="hints">
Add here your own css to style the forms. The whole form is enclosed in a div with class
"newsletter" and it's made with a table (guys, I know about your table less design
mission, don't blame me too much!)
</div>
</td>
</tr>
</table>
<p class="submit">
<?php
$nc->button('save', 'Save');
?>
</p>
示例7: table
<td>
<?php
$controls->text('api_key', 40);
?>
<p class="description">
When non-empty can be used to directly call the API for external integration. See API documentation on
documentation panel.
</p>
</td>
</tr>
<tr>
<th>Custom CSS</th>
<td>
<?php
$controls->textarea('css');
?>
<p class="description">
Add here your own css to style the forms. The whole form is enclosed in a div with class
"newsletter" and it's made with a table (guys, I know about your table less design
mission, don't blame me too much!)
</p>
</td>
</tr>
<tr valign="top">
<th>Email body content encoding</th>
<td>
<?php
$controls->select('content_transfer_encoding', array('' => 'Default', '8bit' => '8 bit', 'base64' => 'Base 64'));
?>
<p class="description">
示例8:
settings or if signed up directly with no double opt-in process.
<br />
Tags: <strong>{name}</strong> the user name; <strong>{email}</strong> for the
user email; <strong>{token}</strong> the subscriber unique token', 'newsletter');
?>
</td>
</tr>
<tr valign="top">
<th><?php
_e('Conversion tracking code', 'newsletter');
?>
</th>
<td>
<?php
$nc->textarea('confirmed_tracking');
?>
<br />
<?php
_e('<strong>Works only with Newsletter Extras installed</strong>', 'newsletter');
?>
<br />
<?php
_e('The code is injected AS-IS in welcome page and can be used to track conversion
(you can use PHP if needed). Conversion code is usually supply by tracking services,
like Google AdWords, Google Analytics and so on.', 'newsletter');
?>
</td>
</tr>
<!-- WELCOME/CONFIRMED EMAIL -->