本文整理汇总了PHP中NewsletterControls::print_date方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::print_date方法的具体用法?PHP NewsletterControls::print_date怎么用?PHP NewsletterControls::print_date使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::print_date方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</tr>
<tr valign="top">
<th>Delete bounces on Mandrill</th>
<td>
<?php
echo $controls->yesno('bounce_delete');
?>
<p class="description">Not recommended if you want to keep Mandrill check emails
potentially sent to bounced addresses may be by other service you connected to Mandrill.</p>
</td>
</tr>
<tr valign="top">
<th>Bounce checking last run</th>
<td>
<?php
echo $controls->print_date($module->get_last_run());
?>
<?php
$controls->button('trigger', 'Check now');
?>
</td>
</tr>
<tr valign="top">
<th>Bounce checking next run</th>
<td>
<?php
echo $controls->print_date(wp_next_scheduled($module->prefix . '_bounce'));
?>
</td>
</tr>
</table>
示例2: htmlspecialchars
<tr><th>Field name</th><th>Field value</th>
</thead>
<tbody>
<?php
foreach ($data as $field => $value) {
?>
<tr>
<td>
<?php
echo htmlspecialchars($field);
?>
</td>
<td>
<?php
if ($field == 'time') {
echo $controls->print_date($value);
} else {
echo htmlspecialchars($value);
}
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<div id="tabs-rules">