示例#1
0
 /**
  * Gets the human friendly date string from a date
  * 
  * @param string $strdate date
  * 
  * @return string formatted date string
  * @deprecated use CjLibUtils::getHumanReadableDate
  */
 public static function get_formatted_date($strdate)
 {
     require_once 'dateutils.php';
     return CjLibDateUtils::getHumanReadableDate($strdate);
 }
示例#2
0
								<?php 
        if ($params->get('show_author')) {
            if ($params->get('link_author')) {
                echo JText::sprintf('TXT_WRITTEN_BY', JHtml::link($profileUrl, $authorName)) . ' ';
            } else {
                echo JText::sprintf('TXT_WRITTEN_BY', $authorName) . ' ';
            }
        }
        if ($params->get('show_category') && $params->get('show_create_date')) {
            echo JText::sprintf('TXT_POSTED_IN_CATEGORY_ON', $categoryLink, CjLibDateUtils::getHumanReadableDate($item->displayDate));
        } else {
            if ($params->get('show_category')) {
                echo JText::sprintf('TXT_POSTED_IN_CATEGORY', $categoryLink);
            }
            if ($params->get('show_create_date')) {
                echo JText::sprintf('TXT_POSTED_ON', CjLibDateUtils::getHumanReadableDate($item->displayDate));
            }
        }
        ?>
								
								<?php 
        if ($params->get('show_hits')) {
            ?>
								<i class="icon-eye-open"></i> <?php 
            echo JText::sprintf('TXT_NUM_HITS', $item->hits);
            ?>
.
								<?php 
        }
        ?>
							</small>