本文整理汇总了PHP中JoomleagueHelper::getPictureThumb方法的典型用法代码示例。如果您正苦于以下问题:PHP JoomleagueHelper::getPictureThumb方法的具体用法?PHP JoomleagueHelper::getPictureThumb怎么用?PHP JoomleagueHelper::getPictureThumb使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JoomleagueHelper
的用法示例。
在下文中一共展示了JoomleagueHelper::getPictureThumb方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
</thead>
<?php
$k = 0;
foreach ($this->teams as $team) {
$teaminfo_link = JoomleagueHelperRoute::getTeamInfoRoute($this->project->slug, $team->team_slug);
$clubinfo_link = JoomleagueHelperRoute::getClubInfoRoute($this->project->slug, $team->club_slug);
$teamTitle = JText::sprintf('COM_JOOMLEAGUE_TEAMS_TEAM_PROJECT_INFO', $team->team_name);
$clubTitle = JText::sprintf('COM_JOOMLEAGUE_TEAMS_CLUB_PROJECT_INFO', $team->club_name);
if ($this->config['show_small_logo']) {
$teampic = $this->config['team_picture'];
$picture = $team->{$teampic};
if (is_null($picture) || !file_exists($picture)) {
$picture = JoomleagueHelper::getDefaultPlaceholder("clublogosmall");
$image = JHTML::image($picture, $teamTitle, array('title' => $teamTitle, ' border' => 0));
} else {
$image = JoomleagueHelper::getPictureThumb($picture, $team->team_name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
}
$smallTeamLogoLink = JHTML::link($teaminfo_link, $image);
}
if ($this->config['show_medium_logo']) {
$picture = $team->logo_middle;
if (is_null($picture) || !file_exists($picture)) {
$picture = JoomleagueHelper::getDefaultPlaceholder("clublogomedium");
}
$image = JHTML::image($picture, $clubTitle, array('title' => $clubTitle, ' border' => 0));
$mediumClubLogoLink = JHTML::link($clubinfo_link, $image);
}
?>
<tr class="<?php
echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
?>
示例2:
$groupmembersResultsArray[$member->pg_group_id]['totalPoints'] += $totalPoints + $ChampPoints;
$groupmembersResultsArray[$member->pg_group_id]['totalTop'] += $totalTop;
$groupmembersResultsArray[$member->pg_group_id]['totalDiff'] += $totalDiff;
$groupmembersResultsArray[$member->pg_group_id]['totalTend'] += $totalTend;
$groupmembersResultsArray[$member->pg_group_id]['totalJoker'] += $totalJoker;
}
// check all needed output for later
$picture = $member->avatar;
$playerName = $member->name;
if (!isset($member->avatar) || $member->avatar == '' || !file_exists($member->avatar) || !$member->show_profile && $this->predictionMember->pmID != $member->pmID) {
$picture = JoomleagueHelper::getDefaultPlaceholder("player");
}
//tobe removed
//$imgTitle = JText::sprintf('JL_PRED_AVATAR_OF',$member->name);
//$output = JHTML::image($member->avatar,$imgTitle,array(' width' => 20, ' title' => $imgTitle));
$output = JoomleagueHelper::getPictureThumb($picture, $playerName, 0, 25);
$membersDataArray[$member->pmID]['show_user_icon'] = $output;
$membersDataArray[$member->pmID]['pg_group_name'] = $member->pg_group_name;
$membersDataArray[$member->pmID]['pg_group_id'] = $member->pg_group_id;
if ($this->model->pggrouprank) {
$groupmembersDataArray[$member->pg_group_id]['pg_group_name'] = $member->pg_group_name;
$groupmembersDataArray[$member->pg_group_id]['pg_group_id'] = $member->pg_group_id;
}
if ($member->aliasName) {
$member->name = $member->aliasName;
}
if ($this->config['link_name_to'] && ($member->show_profile || $this->predictionMember->pmID == $member->pmID)) {
$link = PredictionHelperRoute::getPredictionMemberRoute($this->predictionGame->id, $member->pmID);
$output = JHTML::link($link, $member->name);
} else {
$output = $member->name;
示例3: _formatEventContainerInResults
function _formatEventContainerInResults($matchevent, $event, $projectteamId, $showEventInfo)
{
// Meaning of $showEventInfo:
// 0 : do not show event as text or as icon in a list item
// 1 : show event as icon in a list item (before the time)
// 2 : show event as text in a list item (after the time)
$output = '';
if ($matchevent->event_type_id == $event->id && $matchevent->ptid == $projectteamId) {
$output .= '<li class="events">';
if ($showEventInfo == 1) {
// Size of the event icons in the tabs
$width = 20;
$height = 20;
$type = 4;
$imgTitle = JText::_($event->name);
$icon = JoomleagueHelper::getPictureThumb($event->icon, $imgTitle, $width, $height, $type);
$output .= $icon;
}
$event_minute = str_pad($matchevent->event_time, 2, '0', STR_PAD_LEFT);
if ($this->config['show_event_minute'] == 1 && $matchevent->event_time > 0) {
$output .= '<b>' . $event_minute . '\'</b> ';
}
if ($showEventInfo == 2) {
$output .= JText::_($event->name) . ' ';
}
if (strlen($matchevent->firstname1 . $matchevent->lastname1) > 0) {
$output .= JoomleagueHelper::formatName(null, $matchevent->firstname1, $matchevent->nickname1, $matchevent->lastname1, $this->config["name_format"]);
} else {
$output .= JText::_('COM_JOOMLEAGUE_UNKNOWN_PERSON');
}
// only show event sum and match notice when set to on in template cofig
if ($this->config['show_event_sum'] == 1 || $this->config['show_event_notice'] == 1) {
if ($this->config['show_event_sum'] == 1 && $matchevent->event_sum > 0 || $this->config['show_event_notice'] == 1 && strlen($matchevent->notice) > 0) {
$output .= ' (';
if ($this->config['show_event_sum'] == 1 && $matchevent->event_sum > 0) {
$output .= $matchevent->event_sum;
}
if ($this->config['show_event_sum'] == 1 && $matchevent->event_sum > 0 && ($this->config['show_event_notice'] == 1 && strlen($matchevent->notice) > 0)) {
$output .= ' | ';
}
if ($this->config['show_event_notice'] == 1 && strlen($matchevent->notice) > 0) {
$output .= $matchevent->notice;
}
$output .= ')';
}
}
$output .= '</li>';
}
return $output;
}
示例4:
<tr class="contentheading">
<?php
if ($this->overallconfig['show_project_picture'] == 1) {
echo '<td>';
echo JoomleagueHelper::getPictureThumb($this->project->picture, $this->project->name, $this->overallconfig['project_picture_width'], $this->overallconfig['project_picture_height'], 2);
echo '</td>';
}
if ($this->overallconfig['show_project_text'] == 1) {
echo '<td>';
echo $this->project->name;
echo '</td>';
}
if (isset($this->division)) {
if ($this->overallconfig['show_division_picture'] == 1) {
echo '<td>';
echo JoomleagueHelper::getPictureThumb($this->division->picture, $this->division->name, $this->overallconfig['division_picture_width'], $this->overallconfig['division_picture_height'], 2);
echo '</td>';
}
if ($this->overallconfig['show_division_text'] == 1) {
echo '<td>';
echo ' ' . $this->division->name;
echo '</td>';
}
}
if ($this->overallconfig['show_print_button'] == 1) {
if (JRequest::getVar('print') != 1) {
echo '<td>';
$overallconfig = $this->overallconfig;
echo '<td class="buttonheading">';
echo JoomleagueHelper::printbutton(null, $overallconfig);
echo ' </td>';
示例5:
<!-- Main START -->
<table width="96%" align="center" border="0" cellpadding="0"
cellspacing="0">
<?php
if ($this->config['show_logo'] == 1) {
?>
<tr class="nextmatch">
<td class="teamlogo"><?php
$pic = $this->config['show_picture'];
echo JoomleagueHelper::getPictureThumb($this->teams[0]->{$pic}, $this->teams[0]->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
?>
</td>
<td class="vs"> </td>
<td class="teamlogo"><?php
echo JoomleagueHelper::getPictureThumb($this->teams[1]->{$pic}, $this->teams[1]->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
?>
</td>
</tr>
<?php
}
?>
<tr class="nextmatch">
<td class="team"><?php
if (!is_null($this->teams)) {
echo $this->teams[0]->name;
} else {
echo JText::_("COM_JOOMLEAGUE_NEXTMATCH_UNKNOWNTEAM");
}
?>
</td>
示例6:
<table class="plgeneralinfo table">
<tr>
<?php
if ($this->config['show_player_photo'] == 1) {
?>
<td class="picture"><?php
$picturetext = JText::_('COM_JOOMLEAGUE_PERSON_PICTURE');
$imgTitle = JText::sprintf($picturetext, JoomleagueHelper::formatName(null, $this->person->firstname, $this->person->nickname, $this->person->lastname, $this->config["name_format"]));
$picture = $this->teamPlayer ? $this->teamPlayer->picture : null;
if (empty($picture) || $picture == JoomleagueHelper::getDefaultPlaceholder("player")) {
$picture = $this->person->picture;
}
if (!file_exists($picture)) {
$picture = JoomleagueHelper::getDefaultPlaceholder("player");
}
echo JoomleagueHelper::getPictureThumb($picture, $imgTitle, $this->config['picture_width'], $this->config['picture_height']);
?>
</td>
<?php
}
?>
<td class="info">
<table class="plinfo table">
<?php
if (!empty($this->person->country) && $this->config["show_nationality"] == 1) {
?>
<tr>
<td class=""><span class="label"><?php
echo JText::_('COM_JOOMLEAGUE_PERSON_NATIONALITY');
?>
</span>
示例7: isset
?>
</td>
<?php
if ($showPicture == 1) {
$picture = isset($item->teamplayerpic) ? $item->teamplayerpic : null;
if (empty($picture) || $picture == JoomleagueHelper::getDefaultPlaceholder("player")) {
$picture = $item->picture;
}
if (!file_exists($picture)) {
$picture = JoomleagueHelper::getDefaultPlaceholder("player");
}
$name = JoomleagueHelper::formatName(null, $item->firstname, $item->nickname, $item->lastname, $params->get("name_format"));
?>
<td class="picture">
<?php
echo JoomleagueHelper::getPictureThumb($picture, $name, $pictureHeight, $pictureWidth) . ' ';
?>
</td>
<?php
}
?>
<td class="personname">
<?php
echo modJLGStatHelper::printName($item, $team, $params, $list['project']);
?>
</td>
<?php
if ($showTeam == 1) {
?>
<td class="team">
<?php
示例8:
?>
<td><?php
echo $row->name;
?>
</td>
<td><?php
if ($row->name != JText::_($row->name)) {
echo JText::_($row->name);
}
?>
</td>
<td class="center">
<?php
$picture = JPATH_SITE . '/' . $row->icon;
$desc = JText::_($row->name);
echo JoomleagueHelper::getPictureThumb($picture, $desc, 0, 21, 4);
?>
</td>
<td class="order">
<span>
<?php
echo $this->pagination->orderUpIcon($i, $i > 0, 'sportstype.orderup', 'COM_JOOMLEAGUE_GLOBAL_ORDER_UP', $ordering);
?>
</span>
<span>
<?php
echo $this->pagination->orderDownIcon($i, $n, $i < $n, 'sportstype.orderdown', 'COM_JOOMLEAGUE_GLOBAL_ORDER_DOWN', $ordering);
?>
<?php
$disabled = true ? '' : 'disabled="disabled"';
?>
示例9:
echo Countries::getCountryFlag($person->country) . " ";
}
if ($params->get('show_player_link')) {
$link = JoomleagueHelperRoute::getPlayerRoute($list['project']->slug, $list['infoteam']->team_id, $person->slug);
echo JHtml::link($link, $text);
} else {
echo JText::sprintf('%1$s', $text);
}
?>
</li>
<?php
if ($params->get('show_team_name')) {
?>
<li class="teamname">
<?php
echo JoomleagueHelper::getPictureThumb($list['infoteam']->team_picture, $list['infoteam']->name, $params->get('team_picture_width', 21), $params->get('team_picture_height', 0), 1) . " ";
$text = $list['infoteam']->name;
if ($params->get('show_team_link')) {
$link = JoomleagueHelperRoute::getTeamInfoRoute($list['project']->slug, $list['infoteam']->team_id);
echo JHtml::link($link, $text);
} else {
echo JText::sprintf('%1$s', $text);
}
?>
</li>
<?php
}
if ($params->get('show_position_name') && isset($list['inprojectinfo']->position_name)) {
?>
<li class="positionname"><?php
$positionName = $list['inprojectinfo']->position_name;
示例10: switch
$type = 3;
switch ($this->config['show_picture']) {
case 'logo_small':
$picture = $game->{$pic};
$type = 3;
echo JoomleagueHelper::getPictureThumb($picture, $game->tname1, $this->config['picture_width'], $this->config['picture_height'], $type);
break;
case 'logo_medium':
$picture = $game->{$pic};
$type = 2;
echo JoomleagueHelper::getPictureThumb($picture, $game->tname1, $this->config['picture_width'], $this->config['picture_height'], $type);
break;
case 'logo_big':
$picture = $game->{$pic};
$type = 1;
echo JoomleagueHelper::getPictureThumb($picture, $game->tname1, $this->config['picture_width'], $this->config['picture_height'], $type);
break;
case 'country_small':
$type = 6;
$pic = 'away_country';
if ($game->{$pic} != '' && !empty($game->{$pic})) {
echo Countries::getCountryFlag($game->{$pic}, 'height="11"');
}
break;
case 'country_big':
$type = 7;
$pic = 'away_country';
if ($game->{$pic} != '' && !empty($game->{$pic})) {
echo Countries::getCountryFlag($game->{$pic}, 'height="50"');
}
break;
示例11:
}
?>
<tr class="<?php
echo $k == 0 ? $this->config['style_class1'] : $this->config['style_class2'];
?>
">
<td width="30" style="text-align:center; ">
<?php
echo ' ';
?>
</td>
<td width="40" style="text-align:center; " class="nowrap">
<?php
$refereeName = JoomleagueHelper::formatName(null, $row->firstname, $row->nickname, $row->lastname, $this->config["name_format"]);
if ($this->config['show_icon'] == 1) {
echo JoomleagueHelper::getPictureThumb($row->picture, $refereeName, $this->config['referee_picture_width'], $this->config['referee_picture_height']);
}
?>
</td>
<td style="width:20%;">
<?php
if ($this->config['link_name'] == 1) {
$link = JoomleagueHelperRoute::getRefereeRoute($this->project->slug, $row->slug);
echo JHTML::link($link, '<i>' . $refereeName . '</i>');
} else {
echo '<i>' . $refereeName . '</i>';
}
?>
</td>
<td style="width:16px; text-align:center; " class="nowrap" >
<?php
示例12: isset
?>
</td>
<?php
if ($showPicture == 1) {
$picture = isset($item->teamplayerpic) ? $item->teamplayerpic : null;
if (empty($picture) || $picture == JoomleagueHelper::getDefaultPlaceholder("player")) {
$picture = $item->picture;
}
if (!file_exists($picture)) {
$picture = JoomleagueHelper::getDefaultPlaceholder("player");
}
$name = JoomleagueHelper::formatName(null, $item->fname, $item->nname, $item->lname, $params->get("name_format"));
?>
<td class="picture">
<?php
echo JoomleagueHelper::getPictureThumb($picture, $name, $pictureWidth, $pictureHeight);
?>
</td>
<?php
}
?>
<td class="personname">
<?php
echo modJLGEventsrankingHelper::printName($item, $team, $params, $list['project']);
?>
</td>
<?php
if ($showTeam == 1) {
?>
<td class="team">
<?php
示例13:
if ($pic != "") {
$team .= JoomleagueHelper::getPictureThumb($this->haHomeTeaminfo->{$pic}, $this->haHomeTeaminfo->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 3);
$team .= " ";
}
$team .= $this->haHomeTeaminfo->name;
if ($this->config['show_teaminfo_link'] == 1) {
$link = JoomleagueHelperRoute::getProjectTeamInfoRoute($this->project->id, $this->highest_away->project_hometeam_id);
echo JHtml::link($link, $team);
} else {
echo $team;
}
echo " - ";
$team = '';
$pic = $this->config['show_picture'];
if ($pic != "") {
$team .= JoomleagueHelper::getPictureThumb($this->haAwayTeaminfo->{$pic}, $this->haAwayTeaminfo->name, $this->config['team_picture_width'], $this->config['team_picture_height'], 3);
$team .= " ";
}
$team .= $this->haAwayTeaminfo->name;
if ($this->config['show_teaminfo_link'] == 1) {
$link = JoomleagueHelperRoute::getProjectTeamInfoRoute($this->project->id, $this->highest_away->project_awayteam_id);
echo JHtml::link($link, $team);
} else {
echo $team;
}
}
?>
</td>
<td class="statvalue"><br />
<?php
if ($this->totals->playedmatches > 0 && $this->highest_away) {
示例14: elseif
echo "\n";
//**************logo - jersey
if ($config['show_logo_small_table'] != "no_logo") {
echo '<td class="rankingrow_logo"';
if ($color != '' && $config['use_background_row_color']) {
echo ' style="background-color: ' . $color . '"';
}
echo ">";
if ($config['show_logo_small_table'] == "country_flag") {
JoomleagueHelper::showClubIcon($team->team, 2);
} elseif ($config['show_logo_small_table'] == "logo_small_country_flag") {
echo JoomleagueHelper::getPictureThumb($team->team->logo_small, $team->team->name, $config['team_picture_width'], $config['team_picture_height'], 3) . ' ';
JoomleagueHelper::showClubIcon($team->team, 2);
} elseif ($config['show_logo_small_table'] == "country_flag_logo_small") {
JoomleagueHelper::showClubIcon($team->team, 2);
echo ' ' . JoomleagueHelper::getPictureThumb($team->team->logo_small, $team->team->name, $config['team_picture_width'], $config['team_picture_height'], 3);
} else {
$pic = $config['show_logo_small_table'];
switch ($pic) {
case 'logo_small':
echo JHTML::image($team->team->{$pic}, $imgTitle, array('title' => $team->team->name, 'width' => '20'));
break;
case 'logo_middle':
echo JHTML::image($team->team->{$pic}, $imgTitle, array('title' => $team->team->name, 'width' => '20'));
break;
case 'logo_big':
echo JHTML::image($team->team->{$pic}, $imgTitle, array('title' => $team->team->name, 'width' => '20'));
break;
}
/*
echo JoomleagueHelper::getPictureThumb($team->team->$pic,
示例15: str_replace
?>
<!-- SHOW LOGO - START -->
<?php
if ($this->config['show_club_logo'] && $this->club->logo_big != '') {
$club_emblem_title = str_replace("%CLUBNAME%", $this->club->name, JText::_('COM_JOOMLEAGUE_CLUBINFO_EMBLEM_TITLE'));
$picture = $this->club->logo_big;
echo JoomleagueHelper::getPictureThumb($picture, $club_emblem_title, $this->config['team_picture_width'], $this->config['team_picture_height'], 1);
}
?>
<!-- SHOW LOGO - END -->
<!-- SHOW SMALL LOGO - START -->
<?php
if ($this->config['show_club_shirt'] && $this->club->logo_small != '') {
$club_trikot_title = str_replace("%CLUBNAME%", $this->club->name, JText::_("COM_JOOMLEAGUE_CLUBINFO_TRIKOT_TITLE"));
$picture = $this->club->logo_small;
echo JoomleagueHelper::getPictureThumb($picture, $club_emblem_title, 20, 20, 3);
}
?>
<!-- SHOW SMALL LOGO - END -->
</div>
<?php
if (!$this->config['show_club_info'] == 0) {
?>
<div class="right-column">
<?php
if ($this->club->address || $this->club->zipcode) {
$addressString = Countries::convertAddressString($this->club->name, $this->club->address, $this->club->state, $this->club->zipcode, $this->club->location, $this->club->country, 'COM_JOOMLEAGUE_CLUBINFO_ADDRESS_FORM');
?>
<span class="clubinfo_listing_item"><?php
echo JText::_('COM_JOOMLEAGUE_CLUBINFO_ADDRESS');
$dummyStr = explode('<br />', $addressString);