/**
 * @package Joomla 1.6.x
 * @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant to the
 * GNU General Public License, and as distributed it includes or is derivative
 * of works licensed under the GNU General Public License or other free or open
 * source software licenses. See COPYRIGHT.php for copyright notices and
 * details.
 *
 * @PlayJoom Module
 * @copyright Copyright (C) 2010-2011 by www.teglo.info
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @date $Date$
 * @revision $Revision$
 * @author $Author$
 * @headurl $HeadURL$
 */
// no direct access
defined('_JEXEC') or die;
// Include the syndicate functions only once
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'helper.php';
require_once JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_playjoom' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'playjoom.php';
require_once JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_playjoom' . DIRECTORY_SEPARATOR . 'helpers' . DIRECTORY_SEPARATOR . 'logging.php';
// import Joomla view library
jimport('joomla.application.component.view');
jimport('joomla.application.component.helper');
$list = modLastPlayedHelper::getList($params);
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
require JModuleHelper::getLayoutPath('mod_pj_lastplayed', $params->get('layout', 'default'));
示例#2
0
 static function GetTimeInfoList($AccessDateTime, $params, $Type)
 {
     /*
      * Time info for Access Track
      */
     /*
      * *********DISTANCE********************
      */
     if ($params->get('viewtype_for_access_time', 2) == 2 && $AccessDateTime != '' && $AccessDateTime != '0000-00-00 00:00:00') {
         $Display = '<br />' . modLastPlayedHelper::AgeOfTrack(substr(modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access_value"), 8, 2), substr(modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access_value"), 5, 2), substr(modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access_value"), 0, 4), substr(modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access_value"), 11, 8)) . '&nbsp;' . JText::_('TCE_PLG_DISTANCE_AGO');
     } elseif ($params->get('viewtype_for_access_time', 2) == 3 && $AccessDateTime != '' && $AccessDateTime != '0000-00-00 00:00:00') {
         $Display = '<br />' . modLastPlayedHelper::AgeOfTrack(substr(modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access_value"), 8, 2), substr(modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access_value"), 5, 2), substr(modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access_value"), 0, 4), substr(modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access_value"), 11, 8)) . '&nbsp;' . JText::_('TCE_PLG_DISTANCE_AGO') . '&nbsp;' . JText::_('MOD_PLAYJOOM_AT') . ' ' . modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access");
     } elseif ($params->get('viewtype_for_access_time', 2) == 1 && $AccessDateTime != '' && $AccessDateTime != '0000-00-00 00:00:00') {
         $Display = '<br />' . modLastPlayedHelper::ConformDateFormat($AccessDateTime, $params, "access");
     } else {
         $Display = null;
     }
     return $Display;
 }