Файловый менеджер - Редактировать - /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\Language\Text; use Joomla\CMS\Table\Table; defined('_JEXEC') or die('Restricted access'); $user = CFactory::getUser($act->params->get('actors')); $config = CFactory::getConfig(); // get created date time $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); $discussionLink = CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussion&groupid=' . $discussion->groupid . '&topicid=' . $discussion->id ); if($user->block) { $discussion->title = $discussion->message = Text::_('COM_COMMUNITY_CENSORED'); } // Load params $action = $act->params->get('action'); $actors = $act->params->get('actors'); $this->set('actors', $actors); $stream = new stdClass(); $stream->actor = $user; $stream->target = null; $stream->datetime = $createdTime; $stream->headline = '<a href="' .CUrlHelper::userLink($user->id).'">'.$user->getDisplayName(false, true).'</a> ' . Text::_('COM_COMMUNITY_GROUPS_LIKE_GROUP_DISCUSSION') . '<span class="joms-stream__time"><small>' . $stream->datetime . '</small></span>'; $stream->message = ""; $stream->attachments = array(); $stream->link = $discussionLink; $stream->title = $discussion->title; $stream->access = $act->access; $group = Table::getInstance('Group', 'CTable'); $group->load($discussion->groupid); $stream->group = $group; $stream->groupid = $discussion->groupid; $attachment = new stdClass(); $attachment->type = 'like_discussion'; $attachment->message = $this->escape(HTMLHelper::_('string.truncate', $discussion->message, $config->getInt('streamcontentlength'), true, false )); $stream->attachments[] = $attachment; $this->set('stream', $stream); $this->load('activities.stream');
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка