Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/followers/list.php
Ðазад
<?php /** * @copyright (C) 2013 iJoomla, Inc. - All rights reserved. * @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @author iJoomla.com <webmaster@ijoomla.com> * @url https://www.jomsocial.com/license-agreement * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0 * More info at https://www.jomsocial.com/license-agreement */ use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); $currentTask = Factory::getApplication()->input->getCmd('task'); $task = Factory::getApplication()->input->getCmd('task'); $title = Text::_('COM_COMMUNITY_FOLLOWERS'); ?> <div class="joms-page"> <div class="joms-list__search"> <div class="joms-list__search-title"> <h3 class="joms-page__title"><?php echo $title; ?></h3> </div> </div> <div class="joms-tab__content"> <?php if (!empty($followers)) { ?> <ul class="joms-list--friend"> <?php foreach ($followers as $user) { ?> <li id="friend-<?php echo $user->id; ?>" class="joms-list__item"> <div class="joms-list__avatar <?php echo CUserHelper::onlineIndicator($user); ?>"> <a href="<?php echo $user->profileLink; ?>" class="joms-avatar"> <img data-author="<?php echo $user->id; ?>" src="<?php echo $user->getThumbAvatar(); ?>" alt="<?php echo $user->getDisplayName(); ?>" /> </a> </div> <div class="joms-list__body"> <?php echo CFollowersHelper::getUserFollowerDropdown($user->id); ?> <a href="<?php echo $user->profileLink; ?>"><h4 class="joms-text--username"><?php echo $user->getDisplayName(false, true); ?></h4></a> <!-- friends count --> <div class="joms-list__details"> <?php if($config->get('memberlist_show_profile_info')) { ?> <p> <span class="joms-text--title"> <?php echo nl2br(HTMLHelper::_('string.truncate', str_replace(""",'"',CUserHelper::showProfileInfo($user->id)), 140));?> </span> </p> <?php } ?> <?php if($config->get('memberlist_show_friends_count')) { ?> <span class="joms-text--title"><?php echo Text::sprintf((CFriendsHelper::getTotalMutualFriends($user->id) == 1) ? 'COM_COMMUNITY_TOTAL_MUTUAL_FRIEND' : 'COM_COMMUNITY_TOTAL_MUTUAL_FRIENDS', CFriendsHelper::getTotalMutualFriends($user->id)); ?></span> <?php } ?> <!-- distances --> <?php $units = ($config->get('advanced_search_units') == 'metric') ? Text::_('COM_COMMUNITY_SORT_BY_DISTANCE_METRIC') : Text::_('COM_COMMUNITY_SORT_BY_DISTANCE_IMPERIAL') ; $distance = CMapsHelper::getRadiusDistance($my->latitude, $my->longitude, $user->latitude, $user->longitude, $units, $user->id); if($config->get('memberlist_show_distance') && ($distance !== false) && ($my->id !== $user->id) && ($my->id !== 0)) { ?> <span class="joms-list__distance"> <svg class="joms-icon" viewBox="0 0 16 16"> <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-location"></use> </svg> <?php if ($distance === 0) { //0 indicates very near, false otherwise means some people doesnt have a proper longitude or latitude echo Text::_(($config->get('advanced_search_units') == 'metric') ? 'COM_COMMUNITY_LESS_THAN_A_KM' : 'COM_COMMUNITY_LESS_THAN_A_MILE') ; } elseif ($distance) { echo Text::sprintf('COM_COMMUNITY_MILES_AWAY', $distance, $units); } ?> </span> <?php } ?> <?php if ($config->get('memberlist_show_last_visit') == 1) { ?> <p> <span class="joms-text--title"> <?php $lastLogin = Text::_('COM_COMMUNITY_PROFILE_NEVER_LOGGED_IN'); if ($user->lastvisitDate != '0000-00-00 00:00:00') { $userLastLogin = new JDate($user->lastvisitDate); $lastLogin = CActivityStream::_createdLapse($userLastLogin); } ?> <?php echo Text::_('COM_COMMUNITY_LAST_LOGIN') . $lastLogin; ?> </span> </p> <?php } ?> </div> </div> </li> <?php } ?> </ul> <?php } else { ?> <div class="joms-alert"><?php echo Text::_('COM_COMMUNITY_NO_FOLLOWERS'); ?></div> <?php } ?> </div> <?php if (isset($pagination) && $pagination->getPagesLinks() && ($pagination->pagesTotal > 1 || $pagination->total > 1) ) { ?> <div class="joms-pagination"> <?php echo $pagination->getPagesLinks(); ?> </div> <?php } ?> </div>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка