Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/activities/groups/discussion-like.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\Date\Date; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Table\Table; defined('_JEXEC') or die('Restricted access'); $params = $act->params; $users = $params->get('actors'); if (!is_array($users)) { $users = array_reverse(explode(',', $users)); } $truncateVal = 60; $user = CFactory::getUser($users[0]); $date = Date::getInstance($act->created); if ( $config->get('activitydateformat') == "lapse" ) { $createdTime = CTimeHelper::timeLapse($date); } else { $createdTime = $date->format($config->get('profileDateFormat')); } // Setup discussion table $discussion = Table::getInstance('Discussion', 'CTable'); $discussion->load($act->cid); $this->set('discussion', $discussion); // Setup group table $group = Table::getInstance('Group', 'CTable'); $group->load($this->discussion->groupid); $this->set('group', $group); ?> <div class="joms-stream__header"> <div class= "joms-avatar--stream <?php echo CUserHelper::onlineIndicator($user); ?>"> <?php if (count($users) > 1 && false) { // added false for now because we have to show the last user avatar ?> <svg class="joms-icon" viewBox="0 0 16 16"> <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-users"></use> </svg> <?php } else { ?> <a href="<?php echo CUrlHelper::userLink($user->id); ?>"> <img data-author="<?php echo $user->id; ?>" src="<?php echo $user->getThumbAvatar(); ?>" alt="<?php echo $user->getDisplayName(); ?>"> </a> <?php } ?> </div> <div class="joms-stream__meta"> <?php echo CLikesHelper::generateHTML($act, $likedContent) ?> <span class="joms-stream__time"><small><?php echo $createdTime; ?></small></span> </div> <?php $my = CFactory::getUser(); $this->load('activities.stream.options'); ?> </div> <div class="joms-stream__body"> <div class="joms-media like"> <h4 class="joms-text--title"> <a href="<?php echo $this->discussion->getLink(); ?>"> <?php echo CActivities::truncateComplex($this->discussion->title, 60, true); ?> </a> </h4> <p class="joms-text--desc"><?php echo HTMLHelper::_('string.truncate',strip_tags($this->discussion->message), $config->getInt('streamcontentlength')); ?></p> <?php echo $this->group->name ?> </div> </div>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка