当前位置: 首页>>代码示例>>PHP>>正文


PHP Shopp::_d方法代码示例

本文整理汇总了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';
    }
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:new.php

示例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';
    }
开发者ID:crunnells,项目名称:shopp,代码行数:31,代码来源:order.php

示例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>
开发者ID:BlessySoftwares,项目名称:anvelocom,代码行数:31,代码来源:discounts.php

示例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';
    }
开发者ID:forthrobot,项目名称:inuvik,代码行数:31,代码来源:edit.php

示例5: _d

/**
 * @deprecated Use Shopp::_d()
 **/
function _d($format, $timestamp = false)
{
    return Shopp::_d($format, $timestamp);
}
开发者ID:BlessySoftwares,项目名称:anvelocom,代码行数:7,代码来源:Core.php


注:本文中的Shopp::_d方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。