本文整理汇总了PHP中Shopp::_d方法的典型用法代码示例。如果您正苦于以下问题:PHP Shopp::_d方法的具体用法?PHP Shopp::_d怎么用?PHP Shopp::_d使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shopp
的用法示例。
在下文中一共展示了Shopp::_d方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isset
$this->notices();
?>
<?php
$totalsedit = isset($_GET['edit']) && 'totals' == $_GET['edit'];
$columns = get_column_headers($this->screen);
$hidden = get_hidden_columns($this->screen);
$colspan = count($columns);
$timestamp = empty($Purchase->created) ? current_time('timestamp') : $Purchase->created;
?>
<div id="order">
<div class="title">
<div id="titlewrap">
<span class="date"><?php
echo Shopp::_d(get_option('date_format'), $timestamp);
?>
<small><?php
echo date(get_option('time_format'), $timestamp);
?>
</small>
<div class="alignright">
<?php
if ($Purchase->shipped) {
?>
<div class="stamp shipped<?php
if ($Purchase->isvoid()) {
echo ' void';
}
示例2: isset
?>
<br class="clear" />
<?php
$totalsedit = isset($_GET['edit']) && 'totals' == $_GET['edit'];
$columns = get_column_headers($this->id);
$hidden = get_hidden_columns($this->id);
$colspan = count($columns);
?>
<div id="order">
<div class="title">
<div id="titlewrap">
<span class="date"><?php
$datetime = $Purchase->exists() ? $Purchase->created : current_time('timestamp');
echo Shopp::_d(get_option('date_format'), $datetime);
?>
<small><?php
echo date(get_option('time_format'), $datetime);
?>
</small>
<div class="alignright">
<?php
if ($Purchase->shipped) {
?>
<div class="stamp shipped<?php
if ($Purchase->isvoid()) {
echo ' void';
}
示例3: in_array
<td class="applied column-applied<?php
echo in_array('applied', $hidden) ? ' hidden' : '';
?>
"><?php
echo $Promotion->target;
?>
</td>
<td class="eff column-eff<?php
echo in_array('eff', $hidden) ? ' hidden' : '';
?>
"><strong><?php
echo $states[$Promotion->status];
?>
</strong><?php
$starts = mktimestamp($Promotion->starts) > 1 ? Shopp::_d(get_option('date_format'), Shopp::mktimestamp($Promotion->starts)) : Shopp::_d(get_option('date_format'), Shopp::mktimestamp($Promotion->created));
$ends = Shopp::mktimestamp($Promotion->ends) > 1 ? " — " . Shopp::_d(get_option('date_format'), Shopp::mktimestamp($Promotion->ends)) : ", " . __('does not expire', 'Shopp');
echo "<br />" . $starts . $ends;
?>
</td>
</tr>
<?php
}
?>
</tbody>
<?php
} else {
?>
<tbody><tr><td colspan="5"><?php
Shopp::esc_html_e('No discounts found.');
?>
</td></tr></tbody>
示例4: isset
<?php
include $this->ui('navigation.php');
?>
<br class="clear" />
<?php
$totalsedit = isset($_GET['edit']) && 'totals' == $_GET['edit'];
$columns = get_column_headers($this->screen);
$hidden = get_hidden_columns($this->screen);
$colspan = count($columns);
?>
<div id="order">
<div class="title">
<div id="titlewrap">
<span class="date"><?php
echo Shopp::_d(get_option('date_format'), $Purchase->created);
?>
<small><?php
echo date(get_option('time_format'), $Purchase->created);
?>
</small>
<div class="alignright">
<?php
if ($Purchase->shipped) {
?>
<div class="stamp shipped<?php
if ($Purchase->isvoid()) {
echo ' void';
}
示例5: _d
/**
* @deprecated Use Shopp::_d()
**/
function _d($format, $timestamp = false)
{
return Shopp::_d($format, $timestamp);
}