Файловый менеджер - Редактировать - /var/www/html/components/com_kunena/template/aurelia/layouts/message/edit/full.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\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; use Kunena\Forum\Libraries\Config\KunenaConfig; use Kunena\Forum\Libraries\Factory\KunenaFactory; use Kunena\Forum\Libraries\Route\KunenaRoute; use Kunena\Forum\Libraries\Template\KunenaTemplate; use Kunena\Forum\Libraries\User\KunenaUserHelper; $message = $this->message; $template = KunenaTemplate::getInstance(); if (!$message->isAuthorised('reply')) { return; } $author = isset($this->author) ? $this->author : $message->getAuthor(); $topic = isset($this->topic) ? $this->topic : $message->getTopic(); $category = isset($this->category) ? $this->category : $message->getCategory(); $config = isset($this->config) ? $this->config : KunenaFactory::getConfig(); $me = isset($this->me) ? $this->me : KunenaUserHelper::getMyself(); $this->addScriptOptions('com_kunena.kunena_topicicontype', ''); $this->addScriptOptions('com_kunena.kunena_quickreplymesid', $message->displayField('id')); $this->addScript('assets/js/edit.js'); if (KunenaFactory::getTemplate()->params->get('formRecover')) { $this->addScript('sisyphus.js'); } $editor = $template->params->get('editor'); if ($me->canDoCaptcha() && KunenaConfig::getInstance()->quickReply) { $this->captchaDisplay = $template->getCaptcha(); $this->captchaEnabled = true; } ?> <div class="kreply col-md-12 card" id="kreply<?php echo $message->displayField('id'); ?>_form" style="display: inline-block;"> <form action="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topic'); ?>" method="post" enctype="multipart/form-data" name="postform" id="postform" class="form-horizontal"> <input type="hidden" name="task" value="post" /> <input type="hidden" name="parentid" value="<?php echo $topic->last_post_id; ?>" /> <input type="hidden" name="catid" value="<?php echo $category->displayField('id'); ?>" /> <?php if (!$config->allowChangeSubject) : ?> <input type="hidden" name="subject" value="<?php echo $this->escape($this->message->subject); ?>" /> <?php endif; ?> <?php if ($me->exists()) : ?> <input type="hidden" id="kurl_users" name="kurl_users" value="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=user&layout=listmention&format=raw') ?>" /> <?php endif; ?> <?php echo HTMLHelper::_('form.token'); ?> <div class="modal-header"> <h3> <?php echo Text::sprintf('COM_KUNENA_MESSAGE_ACTIONS_LABEL_QUICK_REPLY', $author->getLink()); ?> </h3> </div> <div class="modal-body"> <?php if (!$me->exists()) : ?> <div class="form-group"> <label class="col-md-12 control-label"> <?php echo Text::_('COM_KUNENA_GEN_NAME'); ?>: </label> <input type="text" name="authorname" class="form-control" maxlength="35" placeholder="<?php echo Text::_('COM_KUNENA_GEN_NAME'); ?>" value="" required /> </div> <?php endif; ?> <?php if ($config->askEmail && !$me->exists()) : ?> <div class="form-group"> <?php echo $config->showEmail == '0' ? Text::_('COM_KUNENA_POST_EMAIL_NEVER') : Text::_('COM_KUNENA_POST_EMAIL_REGISTERED'); ?> <input type="text" id="email" name="email" placeholder="<?php echo Text::_('COM_KUNENA_TOPIC_EDIT_PLACEHOLDER_EMAIL') ?>" class="inputbox col-md-12 form-control" maxlength="35" value="" required /> </div> <?php endif; ?> <div class="form-group"> <label for="kanonymous<?php echo \intval($message->id); ?>"> <?php echo Text::_('COM_KUNENA_GEN_SUBJECT'); ?>: </label> <input type="text" id="subject" name="subject" class="form-control" maxlength="<?php echo $template->params->get('SubjectLengthMessage'); ?>" <?php if (!$config->allowChangeSubject && !$me->isModerator()) : ?>disabled<?php endif; ?> value="<?php echo $message->displayField('subject'); ?>" /> </div> <div class="form-group"> <label class="col-md-12 control-label"> <?php echo Text::_('COM_KUNENA_MESSAGE'); ?>: </label> <?php if ($editor == 1) { echo $this->subLayout('Widget/Editor')->setLayout('wysibb_quick')->set('message', $this->message)->set('config', $config); } else { echo '<textarea class="col-md-12 qreply qrlocalstorage' . $message->displayField("id") . '" id="editor" name="message" rows="6" cols="60" placeholder="' . Text::_('COM_KUNENA_ENTER_MESSAGE') . '"></textarea>'; } ?> </div> <?php if (!empty($this->captchaEnabled)) : ?> <div class="form-group"> <?php echo $this->captchaDisplay; ?> </div> <?php endif; ?> <?php if ($topic->isAuthorised('subscribe')) : ?> <div class="clearfix"></div> <div class="control-group"> <div class="controls"> <input style="float: left; margin-right: 10px;" type="checkbox" name="subscribeMe" id="subscribeMe" value="1" <?php if ($config->subscriptionsChecked == 1 && $me->canSubscribe != 0 || $config->subscriptionsChecked == 0 && $me->canSubscribe == 1 || $category->getSubscribed($me->userid)) { echo 'checked="checked"'; } ?> /> <label class="string optional" for="subscribeMe"><?php echo Text::_('COM_KUNENA_POST_NOTIFIED'); ?></label> </div> </div> <?php endif; ?> <?php if ($me->exists() && $category->allowAnonymous) : ?> <div class="control-group"> <div class="controls"> <input type="checkbox" id="kanonymous<?php echo $message->displayField('id'); ?>" name="anonymous" value="1" class="kinputbox postinput form-control" <?php if ($category->postAnonymous) { echo 'checked="checked"'; } ?> /> <label for="kanonymous<?php echo \intval($message->id); ?>"> <?php echo Text::_('COM_KUNENA_POST_AS_ANONYMOUS_DESC'); ?> </label> </div> </div> <?php endif; ?> <div class="form-group clearfix"> <a href="<?php echo Route::_('index.php?option=com_kunena&view=topic&layout=reply&catid=' . $message->catid . '&id=' . $message->thread . '&mesid=' . $message->id . '&Itemid=' . KunenaRoute::getItemID()) ?>" role="button" class="btn btn-outline-primary border btn-small btn-link float-end" id="gotoeditor" rel="nofollow"><?php echo Text::_('COM_KUNENA_GO_TO_EDITOR'); ?></a> </div> </div> <div class="modal-footer"> <p><small><?php echo Text::_('COM_KUNENA_QMESSAGE_NOTE'); ?></small></p> <input type="submit" class="btn btn-outline-primary border kreply-submit" name="Submit" value="<?php echo Text::_('COM_KUNENA_SUBMIT'); ?>" data-bs-toggle="tooltip" title="<?php echo Text::_('COM_KUNENA_EDITOR_HELPLINE_SUBMIT'); ?>" /> <?php // TODO: remove data on cancel. ?> <input type="reset" name="reset" class="btn btn-outline-primary border" value="<?php echo ' ' . Text::_('COM_KUNENA_CANCEL') . ' '; ?>" data-bs-toggle="tooltip" title="<?php echo Text::_('COM_KUNENA_EDITOR_HELPLINE_CANCEL'); ?>" data-bs-dismiss="modal" aria-hidden="true" /> </div> <input type="hidden" id="kurl_emojis" name="kurl_emojis" value="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topic&layout=listemoji&format=raw') ?>" /> <input type="hidden" id="kemojis_allowed" name="kemojis_allowed" value="<?php echo $template->params->get('disableEmoticons', '0'); ?>" /> </form> </div>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка