本文整理汇总了PHP中NewsletterControls::textarea_preview方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::textarea_preview方法的具体用法?PHP NewsletterControls::textarea_preview怎么用?PHP NewsletterControls::textarea_preview使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::textarea_preview方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: used
<th>Enabled?</th>
<td>
<?php
$controls->yesno('enabled');
?>
<p class="description">
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>
示例2:
<input id="upload_image_button" type="button" value="Choose or upload an image" />
<a href="http://www.thenewsletterplugin.com/plugins/newsletter/newsletter-tags" target="_blank"><?php
_e('Available tags', 'newsletter');
?>
</a>
<br><br>
<?php
if ($email['editor'] == 0) {
$controls->editor('message', 30);
} else {
$controls->textarea_preview('message', '100%', '700');
}
?>
</div>
<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
}
?>