Файловый менеджер - Редактировать - /var/www/html/components/com_kunena/template/aurelia/layouts/topic/edit/default.php
Ðазад
<?php /** * Kunena Component * * @package Kunena.Template.Aurelia * @subpackage Topic * * @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 Joomla\CMS\Session\Session; use Joomla\CMS\Uri\Uri; use Joomla\Input\Input; use Kunena\Forum\Libraries\Icons\KunenaIcons; use Kunena\Forum\Libraries\Icons\KunenaSvgIcons; use Kunena\Forum\Libraries\Route\KunenaRoute; use Kunena\Forum\Libraries\User\KunenaUserHelper; HTMLHelper::_('behavior.formvalidator'); HTMLHelper::_('behavior.keepalive'); // Add assets $this->wa->registerAndUseStyle('fileupload', 'media/kunena/core/css/fileupload.css') ->registerAndUseScript('jquery.ui.widget', 'media/kunena/core/js/jquery.ui.widget.js') ->registerAndUseScript('load-image', 'media/kunena/core/js/load-image.all.min.js') ->registerAndUseScript('canvas-to-blob', 'media/kunena/core/js/canvas-to-blob.min.js') ->registerAndUseScript('jquery.fileupload', 'media/kunena/core/js/jquery.fileupload.js') ->registerAndUseScript('jquery.fileupload-process', 'media/kunena/core/js/jquery.fileupload-process.js') ->registerAndUseScript('jquery.iframe-transport', 'media/kunena/core/js/jquery.iframe-transport.js') ->registerAndUseScript('jquery.fileupload-image', 'media/kunena/core/js/jquery.fileupload-image.js') ->registerAndUseScript('jquery.fileupload-audio', 'media/kunena/core/js/jquery.fileupload-audio.js') ->registerAndUseScript('jquery.fileupload-video', 'media/kunena/core/js/jquery.fileupload-video.js') ->registerAndUseScript('jquery.fileupload-validate', 'media/kunena/core/js/jquery.fileupload-validate.js') ->registerAndUseScript('upload.main', 'media/kunena/core/js/upload.main.js') ->registerAndUseScript('edit', 'components/com_kunena/template/aurelia/assets/js/edit.js'); // If polls are enabled, load also poll JavaScript. if ($this->config->pollEnabled) { Text::script('COM_KUNENA_POLL_OPTION_NAME'); Text::script('COM_KUNENA_EDITOR_HELPLINE_OPTION'); $this->wa->registerAndUseScript('poll', 'media/kunena/core/js/poll.js') ->registerAndUseScript('bootstrap.datepicker', 'media/kunena/core/js/bootstrap.datepicker.js'); } $this->k = 0; $topicicontype = $this->ktemplate->params->get('topicicontype'); echo $this->subLayout('Widget/Lightbox'); if ($this->ktemplate->params->get('formRecover')) { $this->wa->registerAndUseScript('sisyphus', 'media/kunena/core/js/sisyphus.js'); } $this->doc->addScriptOptions('com_kunena.editor_type', $this->editorType); $this->doc->addScriptOptions('com_kunena.kunena_topicicontype', $topicicontype); $this->doc->addScriptOptions('com_kunena.allowUserEditPoll', $this->config->allowUserEditPoll); $this->doc->addScriptOptions('com_kunena.privateMessage', $this->config->privateMessage); $this->doc->addScriptOptions('com_kunena.imageHeight', $this->config->imageHeight); $this->doc->addScriptOptions('com_kunena.imageWidth', $this->config->imageWidth); $this->doc->addScriptOptions( 'com_kunena.kunena_upload_files_set_inline', KunenaRoute::_('index.php?option=com_kunena&view=topic&task=setinline&format=json&' . Session::getFormToken() . '=1', false) ); $this->doc->addScriptOptions( 'com_kunena.kunena_upload_files_set_private', KunenaRoute::_('index.php?option=com_kunena&view=topic&task=setprivate&format=json&' . Session::getFormToken() . '=1', false) ); $this->doc->addScriptOptions( 'com_kunena.kunena_upload_files_rem', KunenaRoute::_('index.php?option=com_kunena&view=topic&task=removeattachments&format=json&userid=' . KunenaUserHelper::getMyself()->userid . '&' . Session::getFormToken() . '=1', false) ); $this->doc->addScriptOptions( 'com_kunena.kunena_upload_files_rem_inline', KunenaRoute::_('index.php?option=com_kunena&view=topic&task=setinlinestatus&format=json&' . Session::getFormToken() . '=1', false) ); $this->doc->addScriptOptions( 'com_kunena.kunena_upload_files_preload', KunenaRoute::_('index.php?option=com_kunena&view=topic&task=loadattachments&format=json&' . Session::getFormToken() . '=1', false) ); $this->doc->addScriptOptions( 'com_kunena.kunena_url_topic_get_mentions', KunenaRoute::_('index.php?option=com_kunena&view=user&task=getusersmentions&topicid=' . $this->topic->id) ); $this->doc->addScriptOptions('com_kunena.kunena_upload_files_maxfiles', $this->config->attachmentLimit); $this->doc->addScriptOptions('com_kunena.kunena_upload_files_action', $this->action); $this->doc->addScriptOptions('com_kunena.icons.upload', KunenaIcons::upload()); $this->doc->addScriptOptions('com_kunena.icons.trash', KunenaIcons::delete()); $this->doc->addScriptOptions('com_kunena.icons.attach', KunenaIcons::attach()); $this->doc->addScriptOptions('com_kunena.icons.secure', KunenaIcons::secure()); // Load scripts to handle fileupload process Text::script('COM_KUNENA_UPLOADED_LABEL_INSERT_ALL_BUTTON'); Text::script('COM_KUNENA_EDITOR_INSERT'); Text::script('COM_KUNENA_EDITOR_INSERT_PRIVATE_ATTACHMENT'); Text::script('COM_KUNENA_EDITOR_IN_MESSAGE'); Text::script('COM_KUNENA_GEN_REMOVE_FILE'); Text::script('COM_KUNENA_UPLOADED_LABEL_ERROR_REACHED_MAX_NUMBER_FILES'); Text::script('COM_KUNENA_UPLOADED_LABEL_UPLOAD_BUTTON'); Text::script('COM_KUNENA_UPLOADED_LABEL_PROCESSING_BUTTON'); Text::script('COM_KUNENA_UPLOADED_LABEL_ABORT_BUTTON'); Text::script('COM_KUNENA_UPLOADED_LABEL_DRAG_AND_DROP_OR_BROWSE'); Text::script('COM_KUNENA_EDITOR_BOLD'); Text::script('COM_KUNENA_EDITOR_COLORS'); Text::script('COM_KUNENA_EDITOR_OLIST'); Text::script('COM_KUNENA_EDITOR_TABLE'); Text::script('COM_KUNENA_EDITOR_ITALIC'); Text::script('COM_KUNENA_EDITOR_UNDERL'); Text::script('COM_KUNENA_EDITOR_STRIKE'); Text::script('COM_KUNENA_EDITOR_SUB'); Text::script('COM_KUNENA_EDITOR_SUP'); Text::script('COM_KUNENA_EDITOR_CODE'); Text::script('COM_KUNENA_EDITOR_QUOTE'); Text::script('COM_KUNENA_EDITOR_SPOILER'); Text::script('COM_KUNENA_EDITOR_CONFIDENTIAL'); Text::script('COM_KUNENA_EDITOR_HIDE'); Text::script('COM_KUNENA_EDITOR_RIGHT'); Text::script('COM_KUNENA_EDITOR_LEFT'); Text::script('COM_KUNENA_EDITOR_CENTER'); Text::script('COM_KUNENA_EDITOR_HR'); Text::script('COM_KUNENA_EDITOR_FONTSIZE_SELECTION'); Text::script('COM_KUNENA_EDITOR_LINK'); Text::script('COM_KUNENA_EDITOR_EBAY'); Text::script('COM_KUNENA_EDITOR_POLLS'); Text::script('COM_KUNENA_EDITOR_MAP'); Text::script('COM_KUNENA_EDITOR_POLL_SETTINGS'); Text::script('COM_KUNENA_EDITOR_VIDEO'); Text::script('COM_KUNENA_EDITOR_VIDEO_PROVIDER'); Text::script('COM_KUNENA_EDITOR_IMAGELINK'); Text::script('COM_KUNENA_EDITOR_EMOTICONS'); Text::script('COM_KUNENA_EDITOR_TWEET'); Text::script('COM_KUNENA_EDITOR_INSTAGRAM'); Text::script('COM_KUNENA_EDITOR_SOUNDCLOUD'); Text::script('COM_KUNENA_EDITOR_REMOVE_INLINE'); Text::script('COM_KUNENA_EDITOR_ATTACHMENT_IS_SECURED'); Text::script('COM_KUNENA_EDITOR_ATTACHMENTS_ARE_SECURED'); Text::script('COM_KUNENA_EDITOR_SET_SECURE'); Text::script('COM_KUNENA_EDITOR_COLOR_BLACK'); Text::script('COM_KUNENA_EDITOR_COLOR_ORANGE'); Text::script('COM_KUNENA_EDITOR_COLOR_RED'); Text::script('COM_KUNENA_EDITOR_COLOR_BLUE'); Text::script('COM_KUNENA_EDITOR_COLOR_PURPLE'); Text::script('COM_KUNENA_EDITOR_COLOR_GREEN'); Text::script('COM_KUNENA_EDITOR_COLOR_WHITE'); Text::script('COM_KUNENA_EDITOR_COLOR_GRAY'); Text::script('COM_KUNENA_EDITOR_ULIST'); Text::script('COM_KUNENA_EDITOR_LIST'); Text::script('COM_KUNENA_EDITOR_SIZE_VERY_VERY_SMALL'); Text::script('COM_KUNENA_EDITOR_SIZE_VERY_SMALL'); Text::script('COM_KUNENA_EDITOR_SIZE_SMALL'); Text::script('COM_KUNENA_EDITOR_SIZE_NORMAL'); Text::script('COM_KUNENA_EDITOR_SIZE_BIG'); Text::script('COM_KUNENA_EDITOR_SIZE_SUPER_BIGGER'); Text::script('COM_KUNENA_EDITOR_DIALOG_POLLS_PROPERTIES'); Text::script('COM_KUNENA_EDITOR_DIALOG_VIDEO_PROPERTIES'); Text::script('COM_KUNENA_EDITOR_DIALOG_MAPS_PROPERTIES'); Text::script('COM_KUNENA_EDITOR_DIALOG_BASIC_SETTINGS'); Text::script('COM_KUNENA_POLL_ADD_POLL_OPTION'); Text::script('COM_KUNENA_POLL_REMOVE_POLL_OPTION'); Text::script('COM_KUNENA_POLL_TIME_TO_LIVE'); Text::script('COM_KUNENA_EDITOR_DIALOG_POLLS_PROPERTIES'); Text::script('COM_KUNENA_EDITOR_DIALOG_VIDEO_PROPERTIES'); Text::script('COM_KUNENA_EDITOR_DIALOG_MAPS_PROPERTIES'); Text::script('COM_KUNENA_EDITOR_DIALOG_BASIC_SETTINGS'); Text::script('COM_KUNENA_POLL_TITLE'); ?> <div id="modal_confirm_template_category" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-hidden="true"></button> <h3 id="myModalLabel"><?php echo Text::_('COM_KUNENA_MODAL_BOX_CATEGORY_TEMPLATE_TEXT_TITLE'); ?></h3> </div> <div class="modal-body"> <p><?php echo Text::_('COM_KUNENA_MODAL_BOX_CATEGORY_TEMPLATE_TEXT_DESC'); ?></p> </div> <div class="modal-footer"> <button class="btn btn-outline-primary border" data-bs-dismiss="modal" aria-hidden="true"><?php echo Text::_('COM_KUNENA_MODAL_BOX_CATEGORY_TEMPLATE_TEXT_CLOSE'); ?></button> <button class="btn btn-outline-primary border" id="modal_confirm_erase"><?php echo Text::_('COM_KUNENA_MODAL_BOX_CATEGORY_TEMPLATE_TEXT_BUTTON_REPLACE'); ?></button> <button class="btn btn-outline-primary border" id="modal_confirm_erase_keep_old"><?php echo Text::_('COM_KUNENA_MODAL_BOX_CATEGORY_TEMPLATE_TEXT_BUTTON_REPLACE_KEEP'); ?></button> </div> </div> </div> </div> <h1> <?php echo $this->escape($this->headerText) ?> </h1> <form action="<?php echo KunenaRoute::_('index.php?option=com_kunena') ?>" method="post" class="form-validate" role="form" id="postform" name="postform" enctype="multipart/form-data" data-page-identifier="1"> <input type="hidden" name="view" value="topic" /> <input id="kurl_topicons_request" type="hidden" value="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topic&task=topicicons&format=json&' . Session::getFormToken() . '=1', false); ?>" /> <input id="kurl_category_template_text" type="hidden" value="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topic&task=categorytemplate&format=json&catid' . $this->message->id . '&' . Session::getFormToken() . '=1', false); ?>" /> <input id="kcategory_poll" type="hidden" name="kcategory_poll" value="<?php echo $this->message->catid; ?>" /> <input id="kpreview_url" type="hidden" name="kpreview_url" value="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topic&layout=edit&format=raw', false) ?>" /> <?php if (!$this->config->allowChangeSubject) : ?> <input type="hidden" name="subject" value="<?php echo $this->escape($this->message->subject); ?>" /> <?php endif; ?> <?php if ($this->message->exists()) : ?> <input type="hidden" name="task" value="edit" /> <input id="kmessageid" type="hidden" name="mesid" value="<?php echo \intval($this->message->id) ?>" /> <?php else : ?> <input type="hidden" name="task" value="post" /> <input type="hidden" name="parentid" value="<?php echo \intval($this->message->parent) ?>" /> <?php endif; ?> <?php if ($this->selectcatlist === false) : ?> <input type="hidden" name="catid" value="<?php echo \intval($this->message->catid) ?>" /> <?php endif; ?> <?php if ($this->category->id > 0) : ?> <input type="hidden" id="poll_catid" value="<?php echo \intval($this->message->catid) ?>" /> <?php endif; ?> <?php if ($this->category->id && $this->category->id != $this->message->catid) : ?> <input type="hidden" name="return" value="<?php echo \intval($this->category->id) ?>" /> <?php endif; ?> <?php if ($this->message->getTopic()->first_post_id == $this->message->id && $this->message->getTopic()->getPoll()->id) : ?> <input type="hidden" id="poll_exist_edit" name="poll_exist_edit" value="<?php echo \intval($this->message->getTopic()->getPoll()->id) ?>" /> <input type="hidden" id="ckeditor_dialog_polltitle" name="ckeditor_dialog_polltitle" value="<?php echo $this->message->getTopic()->getPoll()->title ?>" /> <input type="hidden" id="ckeditor_dialog_polltimetolive" name="ckeditor_dialog_polltimetolive" value="<?php echo $this->message->getTopic()->getPoll()->polltimetolive ?>" /> <?php foreach ($this->message->getTopic()->getPoll()->getOptions() as $index => $option) : ?> <input type="hidden" class="ckeditor_dialog_polloption" id="ckeditor_dialog_polloption<?php echo $index; ?>" name="ckeditor_dialog_polloption<?php echo $index; ?>" value="<?php echo $option->text; ?>" /> <?php endforeach; ?> <?php endif; ?> <input type="hidden" id="kunena_upload" name="kunena_upload" value="<?php echo \intval($this->message->catid) ?>" /> <input type="hidden" id="kunena_upload_files_url" value="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=topic&task=upload&format=json&' . Session::getFormToken() . '=1', false) ?>" /> <?php if ($this->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="shadow-lg p-3 mb-5 rounded"> <?php if ($this->selectcatlist !== false) : ?> <div class="form-group row"> <!-- Material input --> <label for="postcatid" class="col-sm-2 col-form-label"><?php echo Text::_('COM_KUNENA_CATEGORY') ?></label> <div class="col-md-10"> <div class="md-form mt-0"> <div class="controls"> <?php echo $this->selectcatlist ?> </div> </div> </div> </div> <?php endif; ?> <?php if (!$this->category->allowAnonymous && !$this->me->userid) : ?> <div class="alert alert-info"><?php echo Text::_('COM_KUNENA_GEN_INFO_GUEST_CANNOT_EDIT_DELETE_MESSAGE'); ?></div> <div class="form-group row" id="kanynomous-check-name"> <label for="kauthorname" class="col-sm-2 col-form-label"><?php echo Text::_('COM_KUNENA_GEN_NAME'); ?></label> <div class="col-md-10"> <input type="text" id="kauthorname" name="authorname" placeholder="<?php echo Text::_('COM_KUNENA_TOPIC_EDIT_PLACEHOLDER_AUTHORNAME') ?>" class="form-control" maxlength="35" tabindex="4" value="<?php echo $this->escape($this->message->name); ?>" /> <!-- Encourage guest user to login or register --> <?php $login = '<a class="btn-link" href="' . Route::_('index.php?option=com_users&view=login&return=' . base64_encode((string) Uri::getInstance())) . '"> ' . Text::_('JLOGIN') . '</a>'; $register = ' ' . Text::_('COM_KUNENA_LOGIN_OR') . ' <a class="btn-link" href="index.php?option=com_users&view=registration">' . Text::_('JREGISTER') . '</a>'; echo Text::sprintf('COM_KUNENA_LOGIN_PLEASE_SKIP', $login, $register); ?> </div> </div> <?php endif; ?> <?php if ($this->config->askEmail && !$this->me->userid) : ?> <div class="form-group row"> <!-- Material input --> <label for="email" class="col-sm-2 col-form-label"><?php echo Text::_('COM_KUNENA_GEN_EMAIL'); ?></label> <div class="col-md-10"> <div class="md-form mt-0"> <input type="email" id="email" name="email" size="35" placeholder="<?php echo Text::_('COM_KUNENA_TOPIC_EDIT_PLACEHOLDER_EMAIL') ?>" class="form-control validate-email" maxlength="45" tabindex="5" value="<?php echo !empty($this->message->email) ? $this->escape($this->message->email) : '' ?>" required /> <br /> <?php echo $this->config->showEmail == '0' ? Text::_('COM_KUNENA_POST_EMAIL_NEVER') : Text::_('COM_KUNENA_POST_EMAIL_REGISTERED'); ?> </div> </div> </div> <?php endif; ?> <div class="form-group row"> <label for="subject" class="col-sm-2 col-form-label"><?php echo Text::_('COM_KUNENA_GEN_SUBJECT'); ?></label> <div class="col-md-10"> <?php if (!$this->config->allowChangeSubject && $this->topic->exists() && !KunenaUserHelper::getMyself()->isModerator($this->message->getCategory())) : ?> <input class="form-control" type="text" name="subject" id="subject" value="<?php echo !empty($this->message->subject) ? $this->escape($this->message->subject) : ''; ?>" disabled /> <?php else : ?> <input class="form-control" type="text" placeholder="<?php echo Text::_('COM_KUNENA_TOPIC_EDIT_PLACEHOLDER_SUBJECT') ?>" name="subject" id="subject" maxlength="<?php echo $this->escape($this->ktemplate->params->get('SubjectLengthMessage')); ?>" tabindex="6" value="<?php echo !empty($this->message->subject) ? $this->escape($this->message->subject) : ''; ?>" /> <?php endif; ?> </div> </div> <?php if (!empty($this->topicIcons)) : ?> <div class="form-group row" id="kpost-topicIcons"> <!-- Material input --> <p class="col-sm-2 col-form-label"><?php echo Text::_('COM_KUNENA_GEN_TOPIC_ICON'); ?></p> <div class="col-md-10"> <div id="iconset_inject" class="controls controls-select"> <div id="iconset_topicList"> <?php foreach ($this->topicIcons as $icon) : ?> <input type="radio" id="radio<?php echo $icon->id ?>" name="topic_emoticon" value="<?php echo $icon->id ?>" <?php echo !empty($icon->checked) ? ' checked="checked" ' : '' ?> /> <?php if ($this->config->topicIcons && $topicicontype == 'svg') : ?> <label class="radio inline" for="radio<?php echo $icon->id; ?>"> <?php if (!$this->category->iconset) : $this->category->iconset = 'default'; endif; ?> <?php echo KunenaSvgIcons::loadsvg($icon->svg, 'usertopicIcons', $this->category->iconset); ?> <?php elseif ($this->config->topicIcons && $topicicontype == 'fa') : ?> <label class="radio inline" for="radio<?php echo $icon->id; ?>"><i class="fa fa-<?php echo $icon->fa; ?> glyphicon-topic fa-2x"></i> <?php else : ?> <label class="radio inline" for="radio<?php echo $icon->id; ?>"><img loading=lazy src="<?php echo $icon->relpath; ?>" alt="<?php echo $icon->name; ?>" style="border:0;" /> <?php endif; ?> </label> <?php endforeach; ?> </div> </div> </div> </div> <?php endif; ?> <?php echo $this->subLayout('Widget/Editor') ->setLayout($this->editorType)->set('message', $this->message) ->set('config', $this->config) ->set('doc', $this->doc) ->set('allow_polls', $this->topic->getCategory()->allowPolls) ->set('template', $this->ktemplate) ->set('me', $this->me) ->set('wa', $this->wa) ->set('privateMessage', $this->privateMessage); ?> <?php if (!empty($this->captchaEnabled)) : ?> <div class="form-group row"> <?php echo $this->captchaDisplay; ?> </div> <?php endif; ?> </div> <?php if ($this->message->exists() && $this->config->editMarkup) : ?> <h2> <?php echo Text::_('COM_KUNENA_EDITING_REASON') ?> </h2> <div class="shadow-lg pl-5 pt-3 pb-1 mb-5 rounded"> <div class="form-group row" id="modified-reason"> <div class="col-md-10"> <input class="form-control" name="modified_reason" maxlength="200" type="text" value="<?php echo $this->modified_reason; ?>" data-bs-toggle="tooltip" title="<?php echo Text::_('COM_KUNENA_EDITING_ENTER_REASON') ?>" placeholder="<?php echo Text::_('COM_KUNENA_EDITING_ENTER_REASON') ?>" /> </div> </div> </div> <?php endif; ?> <?php if ($this->allowedExtensions && $this->UserCanPostImage) : ?> <h2> <?php echo Text::_('COM_KUNENA_EDITOR_ATTACHMENTS'); ?> </h2> <!-- Placeholder to display errors messages or exception for attachments --> <div id="kattachments-message-container" aria-live="polite"></div> <!-- End of placeholder --> <div class="shadow-lg p-3 mb-5 rounded"> <div class="form-group row krow<?php echo 1 + $this->k ^= 1; ?> p-3 mb-5" id="kpost-attachments"> <div class="controls"> <div id="kattach_form"> <span class="badge bg-info"><?php echo Text::_('COM_KUNENA_FILE_EXTENSIONS_ALLOWED') ?> : <?php echo $this->escape(implode(', ', $this->allowedExtensions)) ?></span><br /><br /> <span class="badge bg-info"><?php echo Text::_('COM_KUNENA_UPLOAD_MAX_FILES_WEIGHT') ?> : <?php echo $this->config->fileSize != 0 ? round($this->config->fileSize / 1024, 1) : $this->config->fileSize ?> <?php echo Text::_('COM_KUNENA_UPLOAD_ATTACHMENT_FILE_WEIGHT_MB') ?> <?php echo Text::_('COM_KUNENA_UPLOAD_MAX_IMAGES_WEIGHT') ?> : <?php echo $this->config->imageSize != 0 ? round($this->config->imageSize / 1024, 1) : $this->config->imageSize ?> <?php echo Text::_('COM_KUNENA_UPLOAD_ATTACHMENT_FILE_WEIGHT_MB') ?> </span> <br /> <br /> <!-- The fileinput-button span is used to style the file input field as button --> <span class="btn btn-outline-primary fileinput-button"> <?php echo KunenaIcons::plus(); ?> <span><?php echo Text::_('COM_KUNENA_UPLOADED_LABEL_ADD_FILES_BUTTON') ?></span> <!-- The file input field used as target for the file upload widget --> <input id="fileupload" type="file" name="file" multiple> </span> <button id="insert-all" class="btn btn-outline-primary" type="submit" style="display:none;"> <?php echo KunenaIcons::upload(); ?> <span><?php echo Text::_('COM_KUNENA_UPLOADED_LABEL_INSERT_ALL_BUTTON') ?></span> </button> <button id="remove-all" class="btn btn-outline-danger" type="submit" style="display:none;"> <?php echo KunenaIcons::cancel(); ?> <span><?php echo Text::_('COM_KUNENA_UPLOADED_LABEL_REMOVE_ALL_BUTTON') ?></span> </button> <?php if ($this->config->privateMessage) : ?> <button id="set-secure-all" class="btn btn-outline-primary" type="submit" style="display:none;"> <?php echo KunenaIcons::secure(); ?> <span><?php echo Text::_('COM_KUNENA_UPLOADED_LABEL_SET_SECURE_ALL_BUTTON') ?></span> </button> <?php endif; ?> <div class="clearfix"></div> <br /> <div id="progress" class="progress" style="display: none;"> <div id="progress-bar" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div> </div> <!-- The container for the uploaded files --> <div id="files" class="files"></div> <div id="dropzone"> <div class="dropzone"> <div class="default message"> <span id="klabel_info_drop_browse"> <?php echo Text::_('COM_KUNENA_UPLOADED_LABEL_DRAG_AND_DROP_OR_BROWSE') ?> </span> </div> </div> </div> </div> </div> </div> </div> <?php endif; ?> <?php if ($this->canSubscribe) : ?> <h2> <?php echo Text::_('COM_KUNENA_POST_SUBSCRIBE'); ?> </h2> <div class="shadow-lg p-3 mb-5 rounded"> <div class="form-group row" id="kpost-subscribe"> <div class="controls"> <div class="form-check form-switch"> <input class="form-check-input" type="checkbox" role="switch" name="subscribeMe" id="subscribeMe" value="1" <?php if ($this->subscriptionsChecked) { echo 'checked="checked"'; } ?>> <label class="form-check-label" for="subscribeMe"><?php echo Text::_('COM_KUNENA_POST_NOTIFIED'); ?></label> </div> </div> </div> </div> <?php endif; ?> <?php if ($this->message->userid && $this->message->getCategory()->allowAnonymous) : ?> <h2> <?php echo Text::_('COM_KUNENA_POST_AS_ANONYMOUS'); ?> </h2> <div class="shadow-lg p-3 mb-5 rounded"> <div class="form-group row" id="kanynomous-check"> <div class="controls"> <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="kanonymous" name="anonymous" value="1" <?php if ($this->postAnonymous) { echo 'checked="checked"'; } ?> /> <label class="custom-control-label" for="kanonymous"><?php echo Text::_('COM_KUNENA_POST_AS_ANONYMOUS_DESC'); ?></label> </div> </div> </div> </div> <?php endif; ?> <div class="form-group row"> <div class="col-md-10 center"> <button id="form_submit_button" type="submit" class="btn btn-outline-success btn-md form-validate" disabled tabindex="8"> <?php echo KunenaIcons::save() . ' ' . Text::_('COM_KUNENA_SUBMIT'); ?> </button> <button type="reset" class="btn btn-outline-primary btn-md" onclick="window.history.back();" tabindex="10"> <?php echo KunenaIcons::delete(); ?> <?php echo ' ' . Text::_('COM_KUNENA_CANCEL') . ' '; ?> </button> </div> </div> <?php if (!$this->message->name) { echo '<script>document.postform.authorname.focus();</script>'; } else { if (!$this->topic->subject) { if ($this->config->allowChangeSubject) { echo '<script >document.postform.subject.focus();</script>'; } } else { echo '<script>document.postform.message.focus();</script>'; } } ?> <div id="kattach-list"> <?php if ($this->message->exists()) : if ($this->message->getNbAttachments()->totalPrivate > 0) : ?> <input id="attachment_private" type="hidden" name="attachment_private" value="<?php echo implode(',', array_keys($this->message->getAttachments(false, 'private'))); ?>" /> <?php endif; endif; ?> </div> <div id="poll_options"> <!-- Placeholder for polls options if inserted in message --> </div> </form> <?php if ($this->config->showHistory && $this->topic->exists()) { echo $this->subRequest('Topic/Form/History', new Input(['id' => $this->topic->id])); }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка