本文整理汇总了PHP中NewsletterControls::button_primary方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::button_primary方法的具体用法?PHP NewsletterControls::button_primary怎么用?PHP NewsletterControls::button_primary使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::button_primary方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: plugins_url
<form method="post" action="<?php
echo $module->get_admin_page_url('new');
?>
">
<?php
$controls->init();
?>
<?php
$controls->hidden('theme');
?>
<table style="width: 100%; border-collapse: collapse">
<tr>
<td style="text-align: left; vertical-align: top; border-bottom: 1px solid #ddd; padding-bottom: 10px">
<div style="float: right; margin-left: 15px;"><?php
$controls->button_primary('save', 'Refresh the preview');
?>
</div>
<span style="font-size: 1.1em">Theme options set here are saved for next time you will be using this theme.</span>
</td>
<td style="text-align: left; vertical-align: top; border-bottom: 1px solid #ddd; padding-bottom: 10px">
<div style="float: right"><?php
$controls->button_primary('create', 'Proceed to edit »');
?>
</div>
<img style="position: relative; left: 5px; top: 10px;"src="<?php
echo plugins_url('newsletter');
?>
/images/arrow.png" height="35">
</td>
示例2: plugins_url
<form method="post" action="<?php
echo $module->get_admin_page_url('new');
?>
">
<?php
$controls->init();
?>
<?php
$controls->hidden('theme');
?>
<table style="width: 100%; border-collapse: collapse">
<tr>
<td style="text-align: left; vertical-align: top; border-bottom: 1px solid #ddd; padding-bottom: 10px">
<div style="float: right; margin-left: 15px;"><?php
$controls->button_primary('save', __('Refresh the preview', 'newsletter-emails'));
?>
</div>
<span style="font-size: 1.1em"><?php
_e('Theme options are saved for next time you\'ll use this theme.', 'newsletter-emails');
?>
</span>
</td>
<td style="text-align: left; vertical-align: top; border-bottom: 1px solid #ddd; padding-bottom: 10px">
<div style="float: right"><?php
$controls->button_primary('create', 'Proceed to edit »', 'this.form.action=\'' . plugins_url('newsletter') . '/emails/create.php\';this.form.submit()');
?>
</div>
<img style="position: relative; left: 5px; top: 10px;"src="<?php
echo plugins_url('newsletter');
示例3:
<form method="post" action="<?php
echo $module->get_admin_page_url('new');
?>
">
<?php
$controls->init();
?>
<?php
$controls->hidden('theme');
?>
<table style="width: 100%">
<tr>
<td style="text-align: center; vertical-align: top; border-bottom: 1px solid #ccc">
<?php
$controls->button_primary('save', '(1) Save options and refresh the preview');
?>
<br><br>
</td>
<td style="text-align: center; vertical-align: top; border-bottom: 1px solid #ccc">
<?php
$controls->button_primary('create', '(2) Go to edit this message');
?>
<br><br>
</td>
</tr>
<tr>
<td style="width: 600px; vertical-align: top">
<?php
@(include $module->get_current_theme_file_path('theme-options.php'));
?>