本文整理汇总了PHP中NewsletterControls::button_back方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::button_back方法的具体用法?PHP NewsletterControls::button_back怎么用?PHP NewsletterControls::button_back使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::button_back方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div id="tnp-body">
<?php
if ($controls->data['status'] == 'S') {
echo '<div class="newsletter-message">Warning! This email is configured to be sent to NOT CONFIRMED subscribers.</div>';
}
?>
<form method="post" action="" id="newsletter-form">
<?php
$controls->init(array('cookie_name' => 'newsletter_emails_edit_tab'));
?>
<p class="submit">
<?php
$controls->button_back('?page=newsletter_emails_index');
?>
<?php
if ($email['status'] != 'sending') {
$controls->button_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', 'newsletter'), __('Start real delivery?', 'newsletter'));
示例2: esc_html
<h2><?php
_e('Editing', 'newsletter');
?>
<?php
echo esc_html($controls->data['email']);
?>
</h2>
</div>
<div id="tnp-body">
<form method="post" action="">
<p>
<?php
$controls->button_back('?page=newsletter_users_index');
?>
<?php
$controls->button_save();
?>
</p>
<?php
$controls->init();
?>
<div id="tabs">
<ul>
<li><a href="#tabs-general">General</a></li>
<li><a href="#tabs-preferences">Lists</a></li>
<li><a href="#tabs-profile">Profile</a></li>