Esempio n. 1
0
 /**
  *
  * @see XenForo_ViewPublic_Forum_View::renderHtml()
  */
 public function renderHtml()
 {
     if (method_exists(get_parent_class(), 'renderHtml')) {
         parent::renderHtml();
     }
     if (isset($this->_params['threads'])) {
         foreach ($this->_params['threads'] as $threadId => &$thread) {
             if (isset($thread['customThreadFields'])) {
                 foreach ($thread['customThreadFields'] as $groupId => $threadFields) {
                     if (isset($thread['customThreadFields'][$groupId]['fields'])) {
                         $thread['customThreadFields'][$groupId]['fields'] = Waindigo_CustomFields_ViewPublic_Helper_Thread::addThreadFieldsValueHtml($this, $thread['customThreadFields'][$groupId]['fields']);
                     }
                 }
             }
         }
     }
     if (isset($this->_params['stickyThreads'])) {
         foreach ($this->_params['stickyThreads'] as $threadId => &$thread) {
             if (isset($thread['customThreadFields'])) {
                 foreach ($thread['customThreadFields'] as $groupId => $threadFields) {
                     if (isset($thread['customThreadFields'][$groupId]['fields'])) {
                         $thread['customThreadFields'][$groupId]['fields'] = Waindigo_CustomFields_ViewPublic_Helper_Thread::addThreadFieldsValueHtml($this, $thread['customThreadFields'][$groupId]['fields']);
                     }
                 }
             }
         }
     }
 }
Esempio n. 2
0
 /**
  *
  * @see XenForo_ViewPublic_Forum_ViewPosts::renderJson()
  */
 public function renderJson()
 {
     if (isset($this->_params['thread']['customFields'])) {
         foreach ($this->_params['thread']['customFields'] as $groupId => $threadFields) {
             $this->_params['thread']['customFields'][$groupId]['fields'] = Waindigo_CustomFields_ViewPublic_Helper_Thread::addThreadFieldsValueHtml($this, $this->_params['thread']['customFields'][$groupId]['fields']);
         }
     }
     return parent::renderJson();
 }