Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/activities.groups.discussion.reply.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\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Table\Table; defined('_JEXEC') or die('Restricted access'); $user = CFactory::getUser($this->act->actor); // Setup event table $group = $this->group; // Load params $param = new CParameter(trim($this->act->params)); $action = $param->get('action'); $actors = $param->get('actors'); $wallId = $param->get('wallid'); $this->set('actors', $actors); $discussion = Table::getInstance('Discussion', 'CTable'); $discussion->load($act->cid); //get the picture id from discussion if there's any $wallTable = Table::getInstance('Wall', 'CTable'); $wallTable->load($wallId); $wallParam = new CParameter($wallTable->params); $photoId = $wallParam->get('attached_photo_id'); $photoThumbnail = ''; if ($photoId) { $photo = Table::getInstance('Photo', 'CTable'); $photo->load($photoId); $photoThumbnail = $photo->getThumbURI(); } if ($user->block) { $discussion->title = Text::_('COM_COMMUNITY_CENSORED'); } // get created date time $date = JDate::getInstance($this->act->created); if ($config->get('activitydateformat') == "lapse") { $createdTime = CTimeHelper::timeLapse($date); } else { $createdTime = $date->format($config->get('profileDateFormat')); } $stream = new stdClass(); $stream->actor = $user; $stream->target = null; $stream->headline = '<a class="cStream-Author" href="' . CUrlHelper::userLink($user->id) . '">' . $user->getDisplayName( ) . '</a>' . Text::sprintf( 'COM_COMMUNITY_GROUPS_REPLY_DISCUSSION', CRoute::_( 'index.php?option=com_community&view=groups&task=viewdiscussion&groupid=' . $discussion->groupid . '&topicid=' . $discussion->id ), $discussion->title ); $stream->message = ""; $stream->group = $group; $stream->groupid = $discussion->groupid; $stream->attachments = array(); $attachment = new stdClass(); $attachment->type = 'discussion_reply'; $attachment->photoThumbnail = $photoThumbnail; $attachment->message = HTMLHelper::_('string.truncate', $this->act->content, $config->getInt('streamcontentlength'), true, false); $stream->attachments[] = $attachment; $stream->access = $act->access; $stream->createdtime = $createdTime; $stream->type = $attachment->type; $this->set('stream', $stream); $this->set('params', $wallParam); $this->load('stream/base-extended');
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка