Файловый менеджер - Редактировать - /var/www/html/components/com_kunena/template/aurelia/layouts/message/item/bottom/default.php
Ðазад
<?php /** * Kunena Component * * @package Kunena.Template.Aurelia * @subpackage Layout.Message * * @copyright Copyright (C) 2008 - 2026 Kunena Team. All rights reserved. * @license https://www.gnu.org/copyleft/gpl.html GNU/GPL * @link https://www.kunena.org **/ namespace Kunena\Forum\Site; \defined('_JEXEC') or die(); use Joomla\CMS\Language\Text; use Kunena\Forum\Libraries\Date\KunenaDate; use Kunena\Forum\Libraries\Icons\KunenaIcons; use Kunena\Forum\Libraries\Layout\KunenaLayout; use Kunena\Forum\Libraries\Template\KunenaTemplate; $message = $this->message; $isReply = $this->message->id != $this->topic->first_post_id; $signature = $this->profile->getSignature(); $attachments = $message->getAttachments(); $attachs = $message->getNbAttachments(); $topicStarter = $this->topic->first_post_userid == $this->message->userid; $subjectlengthmessage = $this->ktemplate->params->get('SubjectLengthMessage', 20); $displayAttachments = false; foreach ($attachments as $attachment) { if (!$attachment->inline) { $displayAttachments = true; break; } } if ($this->config->orderingSystem == 'mesid') { $this->numLink = $this->location; } else { $this->numLink = $message->replynum; } ?> <small class="text-muted float-end"> <?php if ($this->ipLink && !empty($this->message->ip)) : ?> <?php echo KunenaIcons::ip(); ?> <span class="ip"> <?php echo $this->ipLink; ?> </span> <?php endif; ?> <?php echo KunenaIcons::clock(); ?> <?php echo $message->getTime()->toSpan('config_postDateFormat', 'config_postDateFormatHover'); ?> <?php if ($message->modified_time) : ?> - <?php echo KunenaIcons::edit() . ' ' . $message->getModifiedTime()->toSpan('config_postDateFormat', 'config_postDateFormatHover'); endif; ?> <a href="#<?php echo $this->message->id; ?>" id="<?php echo $this->message->id; ?>" rel="canonical">#<?php echo $this->numLink; ?></a> <span class="d-block d-sm-none"><?php echo Text::_('COM_KUNENA_BY') . ' ' . $message->getAuthor()->getLink(); ?></span> </small> <div class="clear-fix"></div> <div class="horizontal-message"> <div class="badger-left badger-info <?php if ($message->getAuthor()->isModerator()) : ?> badger-moderator <?php endif; ?> message-<?php echo $this->message->getState(); ?>"> <div class="kmessage"> <div class="mykmsg-header"> <?php $langstr = $isReply ? 'COM_KUNENA_MESSAGE_REPLIED_NEW' : 'COM_KUNENA_MESSAGE_CREATED_NEW'; echo Text::sprintf($langstr, $message->getAuthor()->getLink(), $this->getTopicLink($this->message->getTopic(), $this->message, $this->message->displayField('subject'), null, KunenaTemplate::getInstance()->tooltips() . ' topictitle')); ?> <?php if (!empty($this->message->pm)) : ?> <div class="kmsg"> <div class="kmsgtext-hide"> <?php foreach($this->message->pm as $pm) { echo $pm->displayField('body'); } ?> </div> </div> <?php endif ?> </div> <div class="horizontal-message-text"> <div class="kmsg"> <?php if (!$this->me->userid && !$isReply) : echo $message->displayField('message'); else : echo (!$this->me->userid && $this->config->teaser) ? Text::_('COM_KUNENA_TEASER_TEXT') : $this->message->displayField('message'); endif; ?> </div> </div> <?php if ($signature) : ?> <div class="ksig"> <hr> <span class="ksignature"><?php echo $signature; ?></span> </div> <?php endif ?> </div> <div class="profile-horizontal-bottom"> <?php echo $this->subLayout('User/Profile')->set('user', $this->profile)->setLayout('horizontal')->set('topic_starter', $topicStarter)->set('category_id', $this->category->id)->set('ktemplate', $this->ktemplate)->set('config', $this->config); ?> </div> </div> <?php if ($this->config->reportMsg && $this->me->exists()) : ?> <div class="report pb-5"> <?php echo KunenaLayout::factory('Widget/Button') ->setProperties([ 'url' => '#report' . $message->id . '', 'name' => 'report', 'scope' => 'message', 'type' => 'user', 'id' => 'btn_report', 'normal' => '', 'icon' => KunenaIcons::reportname(), 'modal' => 'modal', 'pullright' => 'pullright', ]); ?> </div> <?php if ($this->me->isModerator($this->topic->getCategory()) || $this->config->userReport || !$this->config->userReport && $this->me->userid != $this->message->userid) : ?> <div id="report<?php echo $this->message->id; ?>" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="false" style="display: none;"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="reportModalLabel"> <?php echo Text::_('COM_KUNENA_REPORT_TO_MODERATOR'); ?> </h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <?php echo $this->subRequest('Topic/Report')->set('id', $this->topic->id); ?> </div> </div> </div> </div> <div class="clearfix"></div> <?php endif; ?> <?php endif; ?> <?php if (!empty($attachments) && $displayAttachments && $attachs->readable && $attachs->totalNonProtected > 0) : ?> <div class="card pb-3 pd-3 mb-3"> <div class="card-header"><?php echo Text::_('COM_KUNENA_ATTACHMENTS'); ?></div> <div class="card-body kattach"> <ul class="thumbnails" style="list-style:none;"> <?php foreach ($attachments as $attachment) : if (!$attachment->inline) : ?> <?php if ($attachment->isAudio()) : echo $attachment->getLayout()->render('audio'); ?> <?php elseif ($attachment->isVideo()) : echo $attachment->getLayout()->render('video'); ?> <?php else : ?> <li class="col-md-3 text-center"> <div class="thumbnail"> <?php echo $attachment->getLayout()->render('thumbnail'); ?> <?php echo $attachment->getLayout()->render('textlink'); ?> </div> </li> <?php endif; ?> <?php elseif ($attachment->protected > 0): ?> <?php if ($attachment->isAudio()) : echo $attachment->getLayout()->render('audio'); ?> <?php elseif ($attachment->isVideo()) : echo $attachment->getLayout()->render('video'); ?> <?php else : ?> <li class="col-md-3 text-center"> <div class="thumbnail"> <?php echo $attachment->getLayout()->render('thumbnail'); ?> <?php echo $attachment->getLayout()->render('textlink'); ?> </div> </li> <?php endif; ?> <?php endif; ?> <?php endforeach; ?> </ul> </div> </div> <div class="clearfix"></div> <?php elseif ($attachs->totalNonProtected > 0 && !$this->me->exists()) : if ($attachs->image > 0 && !$this->config->showImgForGuest) { if ($attachs->image > 1) { echo KunenaLayout::factory('BBCode/Image')->set('title', Text::_('COM_KUNENA_SHOWIMGFORGUEST_HIDEIMG_MULTIPLES'))->setLayout('unauthorised'); } else { echo KunenaLayout::factory('BBCode/Image')->set('title', Text::_('COM_KUNENA_SHOWIMGFORGUEST_HIDEIMG_SIMPLE'))->setLayout('unauthorised'); } } if ($attachs->file > 0 && !$this->config->showFileForGuest) { if ($attachs->file > 1) { echo KunenaLayout::factory('BBCode/Image')->set('title', Text::_('COM_KUNENA_SHOWIMGFORGUEST_HIDEFILE_MULTIPLES'))->setLayout('unauthorised'); } else { echo KunenaLayout::factory('BBCode/Image')->set('title', Text::_('COM_KUNENA_SHOWIMGFORGUEST_HIDEFILE_SIMPLE'))->setLayout('unauthorised'); } } ?> <?php elseif ($attachs->totalProtected > 0 && $this->config->privateMessage && $this->me->isModerator($this->topic->getCategory())) : ?> <div class="card pb-3 pd-3 mb-3"> <div class="card-header"><?php echo Text::_('COM_KUNENA_ATTACHMENTS'); ?></div> <div class="card-body kattach"> <ul class="thumbnails" style="list-style:none;"> <?php foreach ($attachments as $attachment) : if ($attachment->protected > 0) : ?> <?php if ($attachment->isAudio()) : echo $attachment->getLayout()->render('audio'); ?> <?php elseif ($attachment->isVideo()) : echo $attachment->getLayout()->render('video'); ?> <?php else : ?> <li class="col-md-3 text-center"> <div class="thumbnail"> <?php echo $attachment->getLayout()->render('thumbnail'); ?> <?php echo $attachment->getLayout()->render('textlink'); ?> </div> </li> <?php endif; ?> <?php endif; ?> <?php endforeach; ?> </ul> </div> </div> <div class="clearfix"></div> <?php endif; ?> <?php if ($message->modified_by && $this->config->editMarkup) : $dateshown = $datehover = ''; if ($message->modified_time) { $datehover = 'data-bs-toggle="tooltip" title="' . KunenaDate::getInstance($message->modified_time)->toKunena('config_postDateFormatHover') . '"'; $dateshown = KunenaDate::getInstance($message->modified_time)->toKunena('config_postDateFormat') . ' '; } ?> <div class="alert alert-info d-none d-sm-block" <?php echo $datehover ?>> <?php echo Text::sprintf('COM_KUNENA_EDITING_LASTEDIT_ON_BY', $dateshown, $message->getModifier()->getLink(null, null, '', '', null, $this->category->id)); ?> <?php if ($message->modified_reason) { echo Text::_('COM_KUNENA_REASON') . ': ' . $this->escape($message->modified_reason); } ?> </div> <?php endif; ?> <?php if (!empty($this->thankyou)) : ?> <div class="kmessage-thankyou"> <?php foreach ($this->thankyou as $userid => $thank) { if (!empty($this->thankyou_delete[$userid])) { $list[] = $thank . ' <a data-bs-toggle="tooltip" title="' . Text::_('COM_KUNENA_BUTTON_THANKYOU_REMOVE_LONG') . '" href="' . $this->thankyou_delete[$userid] . '">' . KunenaIcons::cancel() . '</a>'; } else { $list[] = $thank; } } echo KunenaIcons::thumbsup() . Text::_('COM_KUNENA_THANKYOU') . ': ' . implode(', ', $list) . ' '; if ($this->more_thankyou) { echo Text::sprintf('COM_KUNENA_THANKYOU_MORE_USERS', $this->more_thankyou); } ?> </div> <?php endif; ?> </div>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка