Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/activities.groups.bulletin.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; use Joomla\Registry\Registry; defined('_JEXEC') or die('Restricted access'); $user = CFactory::getUser($this->act->actor); $config = CFactory::getConfig(); // Setup group table $group = $this->group; // Setup Announcement Table $bulletin = Table::getInstance('Bulletin', 'CTable'); $bulletin->load($act->cid); // get created date time $date = JDate::getInstance($act->created); if ( $config->get('activitydateformat') == "lapse" ) { $createdTime = CTimeHelper::timeLapse($date); } else { $createdTime = $date->format($config->get('profileDateFormat')); } // Load params $param = new Registry($this->act->params); $action = $param->get('action'); $actors = $param->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_NEW_GROUP_NEWS') . '<span class="joms-stream__time"><small>' . $stream->datetime . '</small></span>'; $stream->message = ""; $stream->group = $group; $stream->groupid = $group->id; $stream->attachments = array(); $stream->title = $bulletin->title; $stream->link = CRoute::_('index.php?option=com_community&view=groups&task=viewbulletin&groupid=' . $group->id . '&bulletinid=' . $bulletin->id ); $stream->access = $act->access; $attachment = new stdClass(); $attachment->type = 'create_announcement'; $attachment->message = $this->escape(HTMLHelper::_('string.truncate', $bulletin->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
|
ÐаÑтройка