示例#1
0
 public function renderHtml()
 {
     if (!empty($this->_params['captcha'])) {
         $this->_params['captcha'] = $this->_params['captcha']->render($this);
     }
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', !empty($this->_params['draft']) ? $this->_params['draft']['message'] : '', array('autoSaveUrl' => XenForo_Link::buildPublicLink('forums/save-draft', $this->_params['forum'])));
 }
示例#2
0
文件: Wall.php 项目: Sywooch/forums
 public function renderHtml()
 {
     XenForo_Application::set('view', $this);
     $bbCodeBase = XenForo_BbCode_Formatter_Base::create('Nobita_Teams_BbCode_Formatter_Base', array('view' => $this));
     $commentBbCode = XenForo_BbCode_Formatter_Base::create('Nobita_Teams_BbCode_Formatter_Comment', array('view', $this));
     $bbCodeParser = XenForo_BbCode_Parser::create($bbCodeBase);
     $commentBbCodeParser = XenForo_BbCode_Parser::create($commentBbCode);
     $bbCodeOptions = array('states' => array('viewAttachments' => $this->_params['canViewAttachments']), 'contentType' => 'team_post', 'contentIdKey' => 'post_id');
     $this->_params['team']['aboutHtml'] = new XenForo_BbCode_TextWrapper($this->_params['team']['about'], $bbCodeParser);
     XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($this->_params['posts'], $bbCodeParser, $bbCodeOptions);
     foreach ($this->_params['posts'] as &$post) {
         if (!$post['comments']) {
             continue;
         }
         XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($post['comments'], $commentBbCodeParser, array());
     }
     XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($this->_params['stickyPosts'], $bbCodeParser, $bbCodeOptions);
     foreach ($this->_params['stickyPosts'] as &$post) {
         if (!$post['comments']) {
             continue;
         }
         XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($post['comments'], $commentBbCodeParser, array());
     }
     unset($post);
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', '', array('json' => array('buttonConfig' => $this->_params['customEditor']), 'height' => '60px'));
 }
示例#3
0
文件: Post.php 项目: Sywooch/forums
 public function renderHtml()
 {
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getQuickReplyEditor($this, 'message', $this->_params['post']['message'], array('json' => array('buttonConfig' => $this->_params['customEditor'])));
     $bbCodeParser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Nobita_Teams_BbCode_Formatter_Base', array('view' => $this)));
     $bbCodeOptions = array('states' => array('viewAttachments' => $this->_params['canViewAttachments']), 'contentType' => 'team_post', 'contentIdKey' => 'post_id');
     $this->_params['post']['messageHtml'] = XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($this->_params['post'], $bbCodeParser, $bbCodeOptions);
 }
示例#4
0
 public function renderHtml()
 {
     if (!empty($this->_params['captcha'])) {
         $this->_params['captcha'] = $this->_params['captcha']->render($this);
     }
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', $this->_params['defaultMessage']);
 }
示例#5
0
 public function renderHtml()
 {
     $field =& $this->_params['field'];
     // wysiwyg default_value editor
     if (array_key_exists('field_type', $field) && $field['field_type'] == 'wysiwyg') {
         $field['editor'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'default_value', $field['default_value'], array('editorId' => $field['field_id'] . '_default_value', 'template' => 'wysiwyg'));
     }
     // pre_text editor
     if (array_key_exists('pre_text', $field)) {
         $this->_params['preTextEditor'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'pre_text', $field['pre_text']);
     }
     // post_text editor
     if (array_key_exists('pre_text', $field)) {
         $this->_params['postTextEditor'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'post_text', $field['post_text']);
     }
     // datetime default_value editor
     if (array_key_exists('field_type', $field) && $field['field_type'] == 'datetime') {
         $temp = explode(' ', $field['default_value']);
         if (count($temp) == 2) {
             $field['default_value'] = array('date' => $temp[0], 'time' => $temp[1]);
         } else {
             $field['default_value'] = array('date' => '', 'time' => '');
         }
     }
 }
示例#6
0
 public function renderHtml()
 {
     $bbCodeParser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
     $fields =& $this->_params['fields'];
     foreach ($fields as $fieldId => &$field) {
         if ($field['field_type'] == 'wysiwyg') {
             $field['editor'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'fields[' . $field['field_id'] . '][editor]', $field['default_value'], array('editorId' => $fieldId . '_editor'));
         }
         if ($field['field_type'] == 'rating') {
             $field['fieldChoices'] = array();
             for ($i = 1; $i <= XenForo_Application::getOptions()->lpsfRatingMax; $i++) {
                 $field['fieldChoices'][] = $i;
             }
         }
         // render the pre text
         if ($field['pre_text'] != '') {
             $field['pre_text'] = new XenForo_BbCode_TextWrapper($field['pre_text'], $bbCodeParser);
         }
         // render the post text
         if ($field['post_text'] != '') {
             $field['post_text'] = new XenForo_BbCode_TextWrapper($field['post_text'], $bbCodeParser);
         }
         // datetime default_value editor
         if (array_key_exists('field_type', $field) && $field['field_type'] == 'datetime') {
             $temp = explode(' ', $field['default_value']);
             if (count($temp) == 2) {
                 $field['default_value'] = array('date' => $temp[0], 'time' => $temp[1]);
             } else {
                 $field['default_value'] = array('date' => '', 'time' => '');
             }
         }
     }
 }
示例#7
0
 public function renderHtml()
 {
     $bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
     XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($this->_params['messages'], $bbCodeParser);
     if (!empty($this->_params['canReplyConversation'])) {
         $this->_params['qrEditor'] = XenForo_ViewPublic_Helper_Editor::getQuickReplyEditor($this, 'message');
     }
 }
示例#8
0
 public function renderHtml()
 {
     $bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
     $bbCodeOptions = array('states' => array('viewAttachments' => $this->_params['canViewAttachments']));
     XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($this->_params['posts'], $bbCodeParser, $bbCodeOptions);
     if (!empty($this->_params['canQuickReply'])) {
         $this->_params['qrEditor'] = XenForo_ViewPublic_Helper_Editor::getQuickReplyEditor($this, 'message');
     }
 }
示例#9
0
 public function renderHtml()
 {
     $bbCodeParser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
     $bbCodeOptions = array('states' => array('viewAttachments' => $this->_params['canViewAttachments']));
     XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($this->_params['messages'], $bbCodeParser, $bbCodeOptions);
     if (!empty($this->_params['canReplyConversation'])) {
         $draft = isset($this->_params['conversation']['draft_message']) ? $this->_params['conversation']['draft_message'] : '';
         $this->_params['qrEditor'] = XenForo_ViewPublic_Helper_Editor::getQuickReplyEditor($this, 'message', $draft, array('extraClass' => 'NoAutoComplete', 'autoSaveUrl' => XenForo_Link::buildPublicLink('conversations/save-draft', $this->_params['conversation']), 'json' => array('placeholder' => 'reply_placeholder')));
     }
 }
示例#10
0
 public function renderHtml()
 {
     $buttonConfig = array('basic' => true);
     $categoryDescription = XenForo_Html_Renderer_BbCode::renderFromHtml($this->_params['category']['category_description']);
     /* @var $formatter ThemeHouse_ResCats_BbCode_Formatter_BbCode_Description */
     $formatter = XenForo_BbCode_Formatter_Base::create('ThemeHouse_ResCats_BbCode_Formatter_BbCode_Description');
     $formatter->configureForDescription();
     $parser = XenForo_BbCode_Parser::create($formatter);
     $categoryDescription = $parser->render($categoryDescription);
     $this->_params['descriptionEditor'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'category_description', $categoryDescription, array('json' => array('buttonConfig' => $buttonConfig)));
 }
示例#11
0
 public function renderHtml()
 {
     $bbCodeParser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
     if (!empty($this->_params['canAddComment'])) {
         $this->_params['commentsEditor'] = XenForo_ViewPublic_Helper_Editor::getQuickReplyEditor($this, 'message', !empty($this->_params['draft']) ? $this->_params['draft']['message'] : '', array('autoSaveUrl' => XenForo_Link::buildPublicLink('xengallery/save-draft', $this->_params['album']), 'json' => array('placeholder' => new XenForo_Phrase('xengallery_write_a_comment') . '...')));
     }
     foreach ($this->_params['comments'] as &$comment) {
         $comment['messageHtml'] = new XenForo_BbCode_TextWrapper($comment['message'], $bbCodeParser);
         $comment['message'] = $comment['messageHtml'];
         // sanity check in case template not update
     }
 }
示例#12
0
文件: Add.php 项目: Sywooch/forums
 public function renderHtml()
 {
     $message = isset($this->_params['resource']['description']) ? $this->_params['resource']['description'] : '';
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', $message, array('extraClass' => 'NoAutoComplete', 'autoSaveUrl' => empty($this->_params['resource']['resource_id']) ? XenForo_Link::buildPublicLink('resources/categories/save-draft', $this->_params['category']) : ''));
     foreach ($this->_params['customFields'] as &$fields) {
         foreach ($fields as &$field) {
             if ($field['field_type'] == 'bbcode') {
                 $field['editorTemplateHtml'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'custom_fields[' . $field['field_id'] . ']', isset($field['field_value']) ? $field['field_value'] : '', array('height' => '100px', 'extraClass' => 'NoAttachment NoAutoComplete'));
             }
         }
     }
 }
示例#13
0
文件: View.php 项目: Sywooch/forums
 public function renderHtml()
 {
     XenForo_Application::set('view', $this);
     $bbCodeOptions = array('states' => array('viewAttachments' => $this->_params['canViewAttachments']), 'contentType' => 'team_event', 'contentIdKey' => 'event_id');
     $bbCodeParser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
     $event =& $this->_params['event'];
     $event['message'] = $event['event_description'];
     unset($event['event_description']);
     $event['descriptionHtml'] = XenForo_ViewPublic_Helper_Message::getBbCodeWrapper($event, $bbCodeParser, $bbCodeOptions);
     $commentBbCode = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Nobita_Teams_BbCode_Formatter_Comment', array('view' => $this)));
     XenForo_ViewPublic_Helper_Message::bbCodeWrapMessages($this->_params['comments'], $commentBbCode, array());
     // Simple comment form
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', '', array('extraClass' => 'NoAutoComplete', 'json' => array('buttonConfig' => $this->_params['configButtons'])));
 }
示例#14
0
 public function renderHtml()
 {
     $fields =& $this->_params['fields'];
     foreach ($fields as $fieldId => &$field) {
         if ($field['field_type'] == 'wysiwyg') {
             $field['editor'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'fields[' . $field['field_id'] . '][editor]', $field['field_value'], array('editorId' => $fieldId . '_editor', 'template' => 'wysiwyg'));
         }
         if ($field['field_type'] == 'rating') {
             $field['fieldChoices'] = array();
             for ($i = 1; $i <= XenForo_Application::getOptions()->lpsfRatingMax; $i++) {
                 $field['fieldChoices'][] = $i;
             }
         }
     }
 }
示例#15
0
 /**
  * Reduces down an array of attachment data into information we don't mind exposing,
  * and includes the attachment_editor_attachment template for each attachment.
  *
  * @param array $attachment
  *
  * @return array
  */
 protected function _prepareAttachmentForJson(array $attachment)
 {
     $attachment['mediaType'] = $this->_params['upload_type'];
     if (!empty($this->_params['customFields'])) {
         foreach ($this->_params['customFields'] as $fieldId => &$fields) {
             foreach ($fields as &$field) {
                 if ($field['field_type'] == 'bbcode') {
                     $field['editorTemplateHtml'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, "{$attachment['mediaType']}[{$attachment['attachment_id']}][custom_fields][{$field['field_id']}]", isset($field['field_value']) ? $field['field_value'] : '', array('height' => '90px', 'extraClass' => 'NoAttachment NoAutoComplete'));
                 }
             }
         }
     }
     $template = $this->createTemplateObject($this->_templateName, array('media' => $attachment) + $this->_params);
     $keys = array('attachment_id', 'attach_date', 'filename', 'thumbnailUrl', 'deleteUrl', 'mediaType');
     $attachment = XenForo_Application::arrayFilterKeys($attachment, $keys);
     $attachment['templateHtml'] = $template;
     return $attachment;
 }
示例#16
0
文件: View.php 项目: Sywooch/forums
 public function renderHtml()
 {
     $bbCodeParser = new HQCoder_ParseHTML_BbCode_Parser(HQCoder_ParseHTML_BbCode_Formatter_Ritsu::create('HQCoder_ParseHTML_BbCode_Formatter_Ritsu', array('view' => $this)));
     $bbCodeOptions = array('states' => array('viewAttachments' => $this->_params['canViewAttachments']));
     HQCoder_ParseHTML_ViewPublic_Helper_Message::bbCodeWrapMessages($this->_params['messages'], $bbCodeParser, $bbCodeOptions);
     // pre v1.2
     if (XenForo_Application::get('options')->currentVersionId < 1020031) {
         if (!empty($this->_params['canReplyConversation'])) {
             $this->_params['qrEditor'] = XenForo_ViewPublic_Helper_Editor::getQuickReplyEditor($this, 'message');
         }
         // >= v1.2
     } else {
         if (!empty($this->_params['canReplyConversation'])) {
             $draft = isset($this->_params['conversation']['draft_message']) ? $this->_params['conversation']['draft_message'] : '';
             $this->_params['qrEditor'] = XenForo_ViewPublic_Helper_Editor::getQuickReplyEditor($this, 'message', $draft, array('extraClass' => 'NoAutoComplete', 'autoSaveUrl' => XenForo_Link::buildPublicLink('conversations/save-draft', $this->_params['conversation']), 'json' => array('placeholder' => 'reply_placeholder')));
         }
         // end version check
     }
 }
示例#17
0
 public function renderHtml()
 {
     if (isset($this->_params['media']['media_id'])) {
         if ($this->_params['media']['media_type'] == 'video_embed') {
             $bbCodeParser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
             $html = new XenForo_BbCode_TextWrapper($this->_params['media']['media_tag'], $bbCodeParser);
             $this->_params['media']['videoHtml'] = $html;
             $this->_params += array('mediaTag' => $this->_params['media']['media_tag']);
         }
     }
     $media = $this->_params['media'];
     foreach ($this->_params['customFields'] as $fieldId => &$fields) {
         foreach ($fields as &$field) {
             if ($field['field_type'] == 'bbcode') {
                 $field['editorTemplateHtml'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, "{$media['media_type']}[{$media['media_id']}][custom_fields][{$field['field_id']}]", isset($field['field_value']) ? $field['field_value'] : '', array('height' => '90px', 'extraClass' => 'NoAttachment NoAutoComplete'));
             }
         }
     }
 }
示例#18
0
文件: Add.php 项目: Sywooch/forums
 public function renderHtml()
 {
     $about = isset($this->_params['team']['about']) ? $this->_params['team']['about'] : '';
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'about', $about, array('extraClass' => 'NoAutoComplete'));
     foreach ($this->_params['customFields'] as &$fields) {
         foreach ($fields as &$field) {
             if ($field['field_type'] == 'bbcode') {
                 $field['editorTemplateHtml'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'custom_fields[' . $field['field_id'] . ']', isset($field['field_value']) ? $field['field_value'] : '', array('height' => '100px', 'extraClass' => 'NoAttachment NoAutoComplete'));
             }
         }
     }
     unset($fields, $field);
     foreach ($this->_params['parentTabsGrouped'] as &$fields) {
         foreach ($fields as &$field) {
             if ($field['field_type'] == 'bbcode') {
                 $field['editorTemplateHtml'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'custom_fields[' . $field['field_id'] . ']', isset($field['field_value']) ? $field['field_value'] : '', array('height' => '100px', 'extraClass' => 'NoAttachment NoAutoComplete'));
             }
         }
     }
 }
 public function renderJson()
 {
     if (isset($this->_params['mediaTag'])) {
         $mediaTag = $this->_params['mediaTag'];
         $bbCodeParser = XenForo_BbCode_Parser::create(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
         $html = new XenForo_BbCode_TextWrapper($mediaTag, $bbCodeParser);
         $this->_params['media']['videoHtml'] = $html;
         $this->_params['media']['mediaType'] = 'video_embed';
         $media = $this->_params['media'];
         foreach ($this->_params['customFields'] as $fieldId => &$fields) {
             foreach ($fields as &$field) {
                 if ($field['field_type'] == 'bbcode') {
                     $field['editorTemplateHtml'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, "video_embed[{$media['attachment_id']}][custom_fields][{$field['field_id']}]", isset($field['field_value']) ? $field['field_value'] : '', array('height' => '90px', 'extraClass' => 'NoAttachment NoAutoComplete'));
                 }
             }
         }
         $this->_templateName = 'xengallery_media_add_item';
         $options = XenForo_Application::getOptions();
         if ($options->xengalleryAutoGenerateVideoTitles) {
             list($urlTitle, $urlDescription) = $this->_getTitleAndDescription($this->_params['embedUrl']);
             if ($urlTitle) {
                 $this->_params['media']['media_title'] = utf8_substr($urlTitle, 0, $options->xengalleryMaxTitleLength);
             }
             if ($urlDescription) {
                 $this->_params['media']['media_description'] = utf8_substr($urlDescription, 0, $options->xengalleryMaxDescLength);
             }
         }
     }
     if (!empty($this->_params['throwError'])) {
         if (!empty($this->_params['notValid'])) {
             $this->_params = array('error' => new XenForo_Phrase('xengallery_not_a_valid_media_site'));
         }
         if (!empty($this->_params['notAllowed'])) {
             $this->_params = array('error' => new XenForo_Phrase('xengallery_use_of_this_media_site_not_allowed'));
         }
         return XenForo_ViewRenderer_Json::jsonEncodeForOutput(array('error' => $this->_params['error']));
     }
 }
示例#20
0
 public function renderHtml()
 {
     $parserModel = XenForo_Model::create('EWRcarta_Model_Parser');
     if (!empty($this->_params['input']['page_type'])) {
         if ($this->_params['input']['page_type'] == 'phpfile') {
             $this->_params['input'] = $parserModel->parsePagePHP($this->_params['input']);
         } else {
             $bbCodeParser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base', array('view' => $this)));
             $bbCodeOptions = array('stopLineBreakConversion' => $this->_params['input']['page_type'] == 'html' ? true : false);
             $this->_params['input']['HTML'] = new XenForo_BbCode_TextWrapper($this->_params['input']['page_content'], $bbCodeParser, $bbCodeOptions);
             $this->_params['input']['HTML'] = (string) $this->_params['input']['HTML'];
             if ($this->_params['input']['page_type'] == 'html') {
                 $this->_params['input']['HTML'] = htmlspecialchars_decode($this->_params['input']['HTML']);
             }
             $this->_params['input'] = $parserModel->parseContents($this->_params['input']);
             $this->_params['input'] = $parserModel->parseTemplates($this->_params['input']);
             $this->_params['input'] = $parserModel->parseAutolinks($this->_params['input']);
         }
     }
     $disable = $this->_params['page']['page_type'] == 'html' ? true : false;
     $disable = XenForo_Application::get('options')->EWRcarta_wysiwyg ? $disable : true;
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'page_content', $this->_params['page']['page_content'], array('disable' => $disable));
 }
示例#21
0
 public function renderHtml()
 {
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'playlist_description', $this->_params['playlist']['playlist_description']);
 }
示例#22
0
 public function renderHtml()
 {
     $this->_params['aboutEditor'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'about', XenForo_Visitor::getInstance()->get('about'));
 }
示例#23
0
 public function renderHtml()
 {
     $this->_params['signatureEditor'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'signature', XenForo_Visitor::getInstance()->get('signature'), array('json' => array('buttonConfig' => $this->_params['sigPerms'])));
 }
示例#24
0
 public function renderHtml()
 {
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', $this->_params['conversationMessage']['message'], array('extraClass' => 'NoAutoComplete', 'editorId' => 'message' . $this->_params['conversationMessage']['message_id'] . '_' . substr(md5(microtime(true)), -8)));
 }
 public function renderHtml()
 {
     $this->_params['commentsEditor'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', $this->_params['comment']['message'], array('editorId' => 'message' . $this->_params['comment']['comment_id'] . '_' . substr(md5(microtime(true)), -8), 'height' => '260px', 'json' => array('enableXmgButton' => false)));
 }
示例#26
0
 public function renderHtml()
 {
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message');
 }
 public function renderHtml()
 {
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', $this->_params['conversationMessage']['message'], array('editorId' => 'message' . $this->_params['conversationMessage']['message_id']));
 }
示例#28
0
文件: Add.php 项目: Sywooch/forums
 public function renderHtml()
 {
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', $this->_params['message'], array('extraClass' => 'NoAutoComplete', 'autoSaveUrl' => XenForo_Link::buildPublicLink('resources/save-draft', $this->_params['resource'])));
 }
示例#29
0
 public function renderHtml()
 {
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'message', $this->_params['post']['message'], array('editorId' => 'message' . $this->_params['post']['post_id'] . '_' . substr(md5(microtime(true)), -8)));
 }
示例#30
0
 public function renderHtml()
 {
     $this->_params['editorTemplate'] = XenForo_ViewPublic_Helper_Editor::getEditorTemplate($this, 'new_message', $this->_params['newMessage'], array('disable' => true, 'height' => '180px'));
 }