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


PHP Gdn_Format::FuzzyTime方法代码示例

本文整理汇总了PHP中Gdn_Format::FuzzyTime方法的典型用法代码示例。如果您正苦于以下问题:PHP Gdn_Format::FuzzyTime方法的具体用法?PHP Gdn_Format::FuzzyTime怎么用?PHP Gdn_Format::FuzzyTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gdn_Format的用法示例。


在下文中一共展示了Gdn_Format::FuzzyTime方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: FormatString

<div class="RegardingEvent">
   <span class="InformSprite Skull"/>&nbsp;</span> <?php 
echo FormatString(T("{ReportingUser} reported this {EntityType} written by {ReportedUser}"), array('ReportingUser' => UserAnchor(GetValue('ReportingUser', $this->Data('ReportInfo')), 'ReportingUser'), 'EntityType' => GetValue('EntityType', $this->Data('ReportInfo')), 'ReportedUser' => UserAnchor(GetValue('ReportedUser', $this->Data('ReportInfo')), 'ReportedUser')));
?>
   <div class="RegardingTime"><?php 
$ReportedDate = GetValue('ReportedTime', $this->Data('ReportInfo'));
echo Gdn_Format::FuzzyTime($ReportedDate);
?>
</div>
   <?php 
$ReportedReason = GetValue('ReportedReason', $this->Data('ReportInfo'), NULL);
if (!is_null($ReportedReason)) {
    ?>
         <div class="ReportedReason">"<?php 
    echo $ReportedReason;
    ?>
"</div>
         <?php 
}
?>
</div>
<div class="RegardingActions">
   <?php 
$ForeignURL = GetValue('ForeignURL', $this->Data('RegardingData'), NULL);
if (!is_null($ForeignURL)) {
    ?>
<div class="ActionButton"><a href="<?php 
    echo $ForeignURL;
    ?>
" title="<?php 
    echo T("Visit reported content location");
开发者ID:SatiricMan,项目名称:addons,代码行数:31,代码来源:report-regarding.php

示例2:

        echo Gdn_Format::Text($this->Data('MostPlayedGame')->hoursPlayed . ' hrs / ' . $this->Data('MostPlayedGame')->hoursOnRecord) . ' hrs';
        ?>
</br>
         <?php 
        echo Gdn_Theme::Link('http://steamcommunity.com/profiles/' . $this->Data('SteamProfile')->steamID64 . '/stats/' . $this->Data('MostPlayedGame')->statsName, 'View stats', '<a href="%url" class="%class" target="_blank" >%text</a>');
        ?>
      </dd>
      <?php 
    }
    ?>
      <dt></dt>
      <dd><?php 
    echo Gdn_Theme::Link('http://steamcommunity.com/profiles/' . $this->Data('SteamProfile')->steamID64 . '/games?tab=all', 'View All Games', '<a href="%url" class="%class" target="_blank" >%text</a>');
    ?>
</dd>
      <dt></dt>
      <dd><?php 
    echo Gdn_Theme::Link('http://steamcommunity.com/profiles/' . $this->Data('SteamProfile')->steamID64 . '/wishlist', 'View Wishlist', '<a href="%url" class="%class" target="_blank" >%text</a>');
    ?>
</dd>
      <?php 
}
?>
      <dt class="SteamUpdated">Updated</dt>
      <dd class="SteamUpdated"><?php 
echo Gdn_Format::FuzzyTime($this->Data('SteamProfile')->DateRetrieved, TRUE);
?>
</dd>
   </dl>
</div>
开发者ID:29th,项目名称:VanillaAddons,代码行数:30,代码来源:panel.php


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