示例#1
0
 /**
  * return items to display
  *
  * @param   int  $team_id  team id
  *
  * @return object team
  */
 public function getTeamLinks($team_id)
 {
     $db = JFactory::getDbo();
     $query = $db->getQuery(true);
     $query->select('*');
     $query->from('#__tracks_teams');
     $query->where('id = ' . (int) $team_id);
     $db->setQuery($query);
     $res = $db->loadObject();
     $links = TrackslibHelperTools::getTeamSocialItems($res);
     return $links;
 }
示例#2
0
<?php

/**
* @version    $Id: default.php 101 2008-05-22 08:32:12Z julienv $
* @package    JoomlaTracks
* @copyright  Copyright (C) 2008 Julien Vonthron. All rights reserved.
* @license    GNU/GPL, see LICENSE.php
* Joomla Tracks 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.
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
$socials = TrackslibHelperTools::getTeamSocialItems($this->data);
if (count($socials)) {
    ?>
<div class="team-social">
	<h3><?php 
    echo JTExt::_('COM_TRACKS_TEAM_SOCIAL_LINKS');
    ?>
</h3>
	<ul>
		<?php 
    foreach ($socials as $name => $s) {
        ?>


			<li class="ts-<?php 
        echo $name;