Пример #1
0
 function topicViewTemplate($forum, $topic, $post_data, $displayData)
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_topic', $this->_funcHooks['topicViewTemplate'])) {
         $count_c2d0483c01f253f726099ed929330517 = is_array($this->functionData['topicViewTemplate']) ? count($this->functionData['topicViewTemplate']) : 0;
         $this->functionData['topicViewTemplate'][$count_c2d0483c01f253f726099ed929330517]['forum'] = $forum;
         $this->functionData['topicViewTemplate'][$count_c2d0483c01f253f726099ed929330517]['topic'] = $topic;
         $this->functionData['topicViewTemplate'][$count_c2d0483c01f253f726099ed929330517]['post_data'] = $post_data;
         $this->functionData['topicViewTemplate'][$count_c2d0483c01f253f726099ed929330517]['displayData'] = $displayData;
     }
     $pluginEditorHook = IPSLib::loadLibrary(IPS_ROOT_PATH . 'sources/classes/editor/composite.php', 'classes_editor_composite');
     $editor = new $pluginEditorHook();
     $IPBHTML .= "" . ($forum['forum_allow_rating'] ? "\r\n" . $this->registry->getClass('output')->addJSModule("rating", "0") . "\r\n" : "") . "\r\n" . $this->registry->getClass('output')->addJSModule("topic", "0") . "\r\n<script type=\"text/javascript\">\r\n//<![CDATA[\r\n\tipb.topic.inSection    = 'topicview';\r\n\tipb.topic.topic_id     = {$topic['tid']};\r\n\tipb.topic.forum_id     = {$forum['id']};\r\n\tipb.topic.redirectPost = 1;\r\n\tipb.topic.start_id     = " . $this->registry->getClass('topics')->pageToSt(intval($this->request['page'])) . ";\r\n\tipb.topic.page_id      = " . intval($this->request['page']) . ";\r\n\tipb.topic.topPid       = 0;\r\n\tipb.topic.counts       = { postTotal: " . intval($topic['posts'] + 1) . ",\r\n\t\t\t\t\t\t\t  curStart:  ipb.topic.start_id,\r\n\t\t\t\t\t\t\t  perPage:   " . intval($this->settings['display_max_posts']) . " };\r\n\t//Search Setup\r\n\tipb.vars['search_type']\t\t\t= 'forum';\r\n\tipb.vars['search_type_id']\t\t= {$forum['id']};\r\n\tipb.vars['search_type_2']\t\t= 'topic';\r\n\tipb.vars['search_type_id_2']\t= {$topic['tid']};\r\n\t\r\n\t" . (!$this->member->is_not_human ? "\r\n\t// Delete stuff set up\r\n\tipb.topic.deleteUrls['hardDelete'] = new Template( ipb.vars['base_url'] + \"app=forums&module=moderate&section=moderate&do=04&f={$forum['id']}&t={$topic['tid']}&page={$this->request['page']}&auth_key={$this->member->form_hash}&p=#{pid}\" );\r\n\tipb.topic.deleteUrls['softDelete'] = new Template( ipb.vars['base_url'] + \"app=forums&module=moderate&section=moderate&do=postchoice&tact=sdelete&t={$topic['tid']}&f={$forum['id']}&auth_key={$this->member->form_hash}&selectedpids[#{pid}]=#{pid}&pid=#{pid}\" );\r\n\t" : "") . "\r\n\t\r\n\tipb.topic.modPerms\t  = [];\r\n\t" . ($this->memberData['g_is_supmod'] ? "\r\n\t\tipb.topic.modPerms['approve'] = 1;\r\n\t\tipb.topic.modPerms['delete'] = 1;\r\n\t\tipb.topic.modPerms['hide'] = 1;\r\n\t\tipb.topic.modPerms['unhide'] = 1;\r\n\t\tipb.topic.modPerms['merge'] = 1;\r\n\t\tipb.topic.modPerms['split'] = 1;\r\n\t\tipb.topic.modPerms['move'] = 1;\r\n\t" : "" . (isset($this->memberData['forumsModeratorData'][$forum['id']]) ? "\r\n\t\t\tipb.topic.modPerms['approve'] = {$this->memberData['forumsModeratorData'][$forum['id']]['post_q']};\r\n\t\t\tipb.topic.modPerms['delete'] = {$this->memberData['forumsModeratorData'][$forum['id']]['delete_post']};\r\n\t\t\tipb.topic.modPerms['hide'] = {$this->memberData['forumsModeratorData'][$forum['id']]['bw_mod_soft_delete']};\r\n\t\t\tipb.topic.modPerms['unhide'] = {$this->memberData['forumsModeratorData'][$forum['id']]['bw_mod_un_soft_delete']};\r\n\t\t\tipb.topic.modPerms['merge'] = {$this->memberData['forumsModeratorData'][$forum['id']]['split_merge']};\r\n\t\t\tipb.topic.modPerms['split'] = {$this->memberData['forumsModeratorData'][$forum['id']]['split_merge']};\r\n\t\t\tipb.topic.modPerms['move'] = {$this->memberData['forumsModeratorData'][$forum['id']]['split_merge']};\r\n\t\t" : "") . "") . "\r\n\t\r\n\tipb.templates['post_moderation'] = new Template(\"<div id='comment_moderate_box' class='ipsFloatingAction' style='display: none'><span class='desc'>{$this->lang->words['comment_action_count']} </span><select id='tactInPopup' class='input_select'><option value='approve'>{$this->lang->words['cpt_approve']}</option><option value='delete'>{$this->lang->words['cpt_hide']}</option><option value='sundelete'>{$this->lang->words['cpt_undelete']}</option><option value='deletedo'>{$this->lang->words['cpt_delete']}</option><option value='merge'>{$this->lang->words['cpt_merge']}</option><option value='split'>{$this->lang->words['cpt_split']}</option><option value='move'>{$this->lang->words['cpt_move']}</option></select>&nbsp;&nbsp;<input type='button' class='input_submit' id='submitModAction' value='{$this->lang->words['comments_act_go']}' /></div>\");\r\n\t\r\n//]]>\r\n</script>\r\n" . (!$this->settings['disable_lightbox'] ? "\r\n" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'include_lightbox') ? $this->registry->getClass('output')->getTemplate('global')->include_lightbox() : '') . "\r\n" : "") . "\r\n<div class=\"aud_pagetitle\">\r\n" . ($this->memberData['member_id'] ? "\r\n{$displayData['follow_data']}\r\n" : "") . "\r\n" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userSmallPhoto') ? $this->registry->getClass('output')->getTemplate('global')->userSmallPhoto(array_merge($topic['_starter'], array('_customClass' => 'ipsUserPhoto_medium'))) : '') . "\r\n<div itemscope itemtype=\"http://schema.org/Article\" class='ipsBox_withphoto'>\r\n\r\n\t<h1 itemprop=\"name\" class='ipsType_pagetitle'>{$topic['title']}</h1>\r\n\t<div class='desc lighter blend_links'>\r\n\t\t {$this->lang->words['started_by']} <span itemprop=\"creator\">" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($topic['_starter']) : '') . "</span>, <span itemprop=\"dateCreated\" datetime=\"" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($topic['start_date'], "YMD", 1)) . "\">" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($topic['start_date'], "SHORT", 0)) . "</span>\r\n\t</div>\r\n" . ($forum['forum_allow_rating'] ? "<span itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\" class='rating ipsType_smaller'>\r\n\t\t\t" . ($topic['_allow_rate'] ? "\r\n\t\t\t\t<strong>{$this->lang->words['js_rate_me']}</strong>&nbsp;&nbsp;\r\n\t\t\t" : "") . "" . ($topic['_allow_rate'] ? "\r\n\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=1&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='topic_rate_1' title='{$this->lang->words['top_js_1star']}'>\r\n\t\t\t" : "") . "\r\n\t\t\t" . ($topic['_rate_int'] >= 1 ? "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_on") . "\r\n\t\t\t" : "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_off") . "\r\n\t\t\t") . "\r\n\t\t\t" . ($topic['_allow_rate'] ? "\r\n\t\t\t\t</a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=2&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='topic_rate_2' title='{$this->lang->words['top_js_2star']}'>\r\n\t\t\t" : "") . "\r\n\t\t\t" . ($topic['_rate_int'] >= 2 ? "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_on") . "\r\n\t\t\t" : "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_off") . "\r\n\t\t\t") . "\r\n\t\t\t" . ($topic['_allow_rate'] ? "\r\n\t\t\t\t</a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=3&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='topic_rate_3' title='{$this->lang->words['top_js_3star']}'>\r\n\t\t\t" : "") . "\r\n\t\t\t" . ($topic['_rate_int'] >= 3 ? "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_on") . "\r\n\t\t\t" : "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_off") . "\r\n\t\t\t") . "\r\n\t\t\t" . ($topic['_allow_rate'] ? "\r\n\t\t\t\t</a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=4&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='topic_rate_4' title='{$this->lang->words['top_js_4star']}'>\r\n\t\t\t" : "") . "\r\n\t\t\t" . ($topic['_rate_int'] >= 4 ? "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_on") . "\r\n\t\t\t" : "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_off") . "\r\n\t\t\t") . "\r\n\t\t\t" . ($topic['_allow_rate'] ? "\r\n\t\t\t\t</a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=extras&amp;section=rating&amp;t={$topic['tid']}&amp;rating=5&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='topic_rate_5' title='{$this->lang->words['top_js_5star']}'>\r\n\t\t\t" : "") . "\r\n\t\t\t" . ($topic['_rate_int'] >= 5 ? "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_on") . "\r\n\t\t\t" : "\r\n\t\t\t\t" . $this->registry->getClass('output')->getReplacement("rate_off") . "\r\n\t\t\t") . "\r\n\t\t\t" . ($topic['_allow_rate'] ? "\r\n\t\t\t\t</a>\r\n\t\t\t" : "") . "\r\n\t\t\t<span id='rating_text'>\r\n\t\t\t\t" . ($topic['topic_rating_hits'] > 0 ? "\r\n\t\t\t\t\t<span itemprop=\"ratingCount\" id='rating_hits'>{$topic['topic_rating_hits']}</span> <span>{$this->lang->words['poll_s_votes']}</span>\r\n\t\t\t\t\t<meta itemprop=\"ratingValue\" content=\"" . floor($topic['_rate_int']) . "\" />\r\n\t\t\t\t" : "") . "\r\n\t\t\t</span>\r\n\t\t\t" . ($topic['_allow_rate'] ? "<script type='text/javascript'>\r\n\t\t\t\t//<![CDATA[\r\n\t\t\t\t\trating = new ipb.rating( 'topic_rate_', { \r\n\t\t\t\t\t\t\t\t\t\turl: ipb.vars['base_url'] + 'app=forums&module=ajax&section=topics&do=rateTopic&t={$topic['tid']}&md5check=' + ipb.vars['secure_hash'],\r\n\t\t\t\t\t\t\t\t\t\tcur_rating: {$topic['_rate_int']},\r\n\t\t\t\t\t\t\t\t\t\trated: " . ($topic['_rating_value'] != -1 ? "1" : "0") . ",\r\n\t\t\t\t\t\t\t\t\t\tallow_rate: {$topic['_allow_rate']},\r\n\t\t\t\t\t\t\t\t\t\tmulti_rate: 1,\r\n\t\t\t\t\t\t\t\t\t\tshow_rate_text: true\r\n\t\t\t\t\t\t\t\t\t  } );\r\n\t\t\t\t//]]>\r\n\t\t\t\t</script>" : "") . "\r\n\t\t</span>" : "") . "\r\n\t" . (is_array($topic['tags']) ? "\r\n\t\t{$topic['tags']['formatted']['parsedWithoutComma']}\r\n\t\t<br />\r\n\t" : "") . "\r\n\t<meta itemprop=\"interactionCount\" content=\"UserComments:" . intval($topic['posts'] + 1) . "\" />\r\n\r\n</div>\r\n</div>\r\n" . ($displayData['best_answer_post_data'] ? "<br />\r\n<div class='post post_block feature_box'>\r\n\t" . (($this->memberData['g_is_supmod'] or $this->memberData['g_mem_info'] && !IPSMember::isInactive($displayData['best_answer_post_data']['author'])) ? "\r\n\t<a itemprop=\"url\" href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$displayData['best_answer_post_data']['author']['member_id']}", "public", ''), "{$displayData['best_answer_post_data']['author']['members_seo_name']}", "showuser") . "\" title=\"{$this->lang->words['view_profile']}: {$displayData['best_answer_post_data']['author']['members_display_name']}\" class='ipsUserPhotoLink'>\r\n\t" : "") . "\r\n\t<img itemprop=\"image\" src='{$displayData['best_answer_post_data']['author']['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_medium left' />\r\n\t" . (($this->memberData['g_is_supmod'] or $this->memberData['g_mem_info'] && !IPSMember::isInactive($displayData['best_answer_post_data']['author'])) ? "\r\n\t</a>\r\n\t" : "") . "\r\n\t<div class=\"ipsBox_withphoto\">\r\n\t<p class='ipsType_sectiontitle'>\r\n\t\t<span class='ipsBadge ipsBadge_green'>{$this->lang->words['topic_best_answer']}</span>\r\n\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($displayData['best_answer_post_data']['author']) : '') . ",\r\n\t\t" . (isset($post_data[$displayData['best_answer_post_data']['post']['pid']]) ? "" . ($this->request['page'] ? "\r\n\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$topic['tid']}&amp;page={$this->request['page']}{$post_data[$displayData['best_answer_post_data']['post']['pid']]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}", "public", ''), "{$topic['title_seo']}", "showtopic") . "'>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($displayData['best_answer_post_data']['post']['post_date'], "long", 0)) . "</a>\r\n\t\t\t" : "\r\n\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$topic['tid']}{$post_data[$displayData['best_answer_post_data']['post']['pid']]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}", "public", ''), "{$topic['title_seo']}", "showtopic") . "'>" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($displayData['best_answer_post_data']['post']['post_date'], "long", 0)) . "</a>\r\n\t\t\t") . "" : "\r\n\t\t\t<a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=forums&amp;section=findpost&amp;pid={$displayData['best_answer_post_data']['post']['pid']}", "public", ''), "", "") . "\">" . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($displayData['best_answer_post_data']['post']['post_date'], "long", 0)) . "</a>\r\n\t\t") . "\r\n\t</p>\r\n\t<p class='ipsPad_top desc'>\r\n\t\t{$displayData['best_answer_post_data']['post']['post']} \r\n\t</p>\r\n" . (isset($post_data[$displayData['best_answer_post_data']['post']['pid']]) ? "" . ($this->request['page'] ? "\r\n\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$topic['tid']}&amp;page={$this->request['page']}{$post_data[$displayData['best_answer_post_data']['post']['pid']]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}", "public", ''), "{$topic['title_seo']}", "showtopic") . "'>\r\n\t\t\t" : "\r\n\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$topic['tid']}{$post_data[$displayData['best_answer_post_data']['post']['pid']]['post']['PermalinkUrlBit']}#entry{$displayData['best_answer_post_data']['post']['pid']}", "public", ''), "{$topic['title_seo']}", "showtopic") . "'>\r\n\t\t\t") . "" : "\r\n\t\t\t<a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=forums&amp;section=findpost&amp;pid={$displayData['best_answer_post_data']['post']['pid']}", "public", ''), "", "") . "\">\r\n\t\t") . "\r\n\t\t\t<span class='ipsBadge has_icon ipsBadge_lightgrey'>{$this->lang->words['answer_gotopost']} <img class='icon' src=\"{$this->settings['img_url']}/right_white_10px.png\"></span></a>\r\n\t</div>\r\n</div>" : "") . "\r\n" . ($topic['approved'] == -1 ? "<br />\r\n\t<div class='message error'>\r\n\t\t" . sprintf($this->lang->words['tdb__forumindex'], $this->registry->output->getTemplate('global')->userHoverCard($topic['sdData'])) . " " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($topic['sdData']['sdl_obj_date'], "long", 0)) . "\r\n\t\t" . ($this->registry->getClass('class_forums')->canSeeSoftDeleteReason($forum['id']) ? "<br /><span>" . ($topic['sdData']['sdl_obj_reason'] ? "{$topic['sdData']['sdl_obj_reason']}" : "{$this->lang->words['tdb__noreasongi']}") . "</span>" : "") . "\r\n\t\t<br /><br />\r\n\t\t" . ($this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][$forum['id']]['bw_mod_un_soft_delete_topic'] ? "\r\n\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum['id']}&amp;t={$topic['tid']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;do=sundelete", "public", ''), "", "") . "' title='{$this->lang->words['dl_ths_restore']}' class='ipsButton_secondary'>{$this->lang->words['dl_ths_restore']}</a>\r\n\t\t" : "") . "\r\n\t\t" . ($this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][$forum['id']]['delete_topic'] ? "\r\n\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum['id']}&amp;page={$this->request['page']}&amp;t={$topic['tid']}&amp;auth_key={$this->member->form_hash}&amp;do=08", "public", ''), "", "") . "' title='{$this->lang->words['dl_ths_delete']}' class='ipsButton_secondary important'>{$this->lang->words['dl_ths_delete']}</a>\r\n\t\t" : "") . "\r\n\t</div>" : "") . "\r\n" . ($topic['approved'] == 2 ? "\r\n\t<br />\r\n\t<div class='message error'>\r\n\t\t{$this->lang->words['topic_deleted']}\r\n\t\t<br /><br />\r\n\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=moderate&amp;section=moderate&amp;do=topic_restore&amp;t={$topic['tid']}&amp;f={$forum['id']}&amp;auth_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['dl_ths_restore']}' class='ipsButton_secondary'>{$this->lang->words['restore_post']}</a>\r\n\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=moderate&amp;section=moderate&amp;do=09&amp;t={$topic['tid']}&amp;f={$forum['id']}&amp;auth_key={$this->member->form_hash}", "public", ''), "", "") . "' title='{$this->lang->words['dl_ths_delete']}' class='ipsButton_secondary'>{$this->lang->words['perm_delete_post']}</a>\r\n\t</div>\r\n" : "") . "\r\n<br />\r\n<div class='topic_controls'>\r\n\t{$topic['SHOW_PAGES']}\r\n\t" . ($topic['_isArchived'] ? "\r\n\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('topic'), 'archiveStatusMessage') ? $this->registry->getClass('output')->getTemplate('topic')->archiveStatusMessage($topic, $forum) : '') . "\r\n\t" : "<ul class='topic_buttons'>\r\n\t\t\t" . ($displayData['reply_button']['image'] == 'locked' ? "<li class='important'>\r\n\t\t\t\t\t" . (isset($displayData['poll_data']['poll']['poll_only']) && $displayData['poll_data']['poll']['poll_only'] ? "" . ($displayData['reply_button']['url'] ? "\r\n\t\t\t\t\t\t\t<a href='{$displayData['reply_button']['url']}' accesskey='r'>" . $this->registry->getClass('output')->getReplacement("lock_icon") . " {$this->lang->words['top_poll_only_reply']}</a>\r\n\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t<span>" . $this->registry->getClass('output')->getReplacement("lock_icon") . " {$this->lang->words['top_poll_only']}</span>\r\n\t\t\t\t\t\t") . "" : "" . ($displayData['reply_button']['url'] ? "\r\n\t\t\t\t\t\t\t<a href='{$displayData['reply_button']['url']}' accesskey='r'>" . $this->registry->getClass('output')->getReplacement("lock_icon") . " {$this->lang->words['top_locked_reply']}</a>\r\n\t\t\t\t\t\t" : "\r\n\t\t\t\t\t\t\t<span>" . $this->registry->getClass('output')->getReplacement("lock_icon") . " {$this->lang->words['top_locked']}</span>\r\n\t\t\t\t\t\t") . "") . "\r\n\t\t\t\t</li>" : "" . ($displayData['reply_button']['image'] ? "" . ($displayData['reply_button']['url'] ? "\r\n\t\t\t\t\t\t<li><a href='{$displayData['reply_button']['url']}' title='{$this->lang->words['topic_add_reply']}' accesskey='r'>{$this->lang->words['topic_add_reply']}</a></li>\r\n\t\t\t\t\t" : "<li class='disabled'><span>" . (!$this->memberData['member_id'] ? "{$this->lang->words['topic_no_reply_guest']}" : "{$this->lang->words['top_cannot_reply']}") . "</span></li>") . "" : "") . "") . "\r\n\t\t\t" . (($topic['hasUnreadPosts'] and $topic['posts'] + 1 > $this->settings['display_max_posts']) ? "\r\n\t\t\t\t<li class='non_button'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$topic['tid']}&amp;view=getnewpost", "public", ''), "{$topic['title_seo']}", "showtopic") . "' title='{$this->lang->words['first_unread_post']}'>{$this->lang->words['go_to_first_unread']}</a></li>\r\n\t\t\t" : "") . "\r\n\t\t\t" . (($displayData['mod_links'] and ($this->memberData['is_mod'] or $this->memberData['member_id'] == $topic['starter_id'])) ? "\r\n\t\t\t\t<li class='non_button'><a href='#' id='topic_mod_options' title='{$this->lang->words['topic_moderation']}'>{$this->lang->words['topic_moderation']}</a></li>\r\n\t\t\t" : "") . "\r\n\t\t</ul>") . "\r\n</div>\r\n" . (($displayData['mod_links'] and ($this->memberData['is_mod'] or $this->memberData['member_id'] == $topic['starter_id'])) ? "<ul class='ipbmenu_content' id='topic_mod_options_menucontent'  style='display:none'>\r\n\t" . $this->__f__22e606c3116c7b44ae2a61154d222f5f($forum, $topic, $post_data, $displayData) . "\t" . (($topic['topic_queuedposts'] and $this->registry->class_forums->canQueuePosts($forum['id'])) ? "\r\n\t\t<li><a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=moderate&amp;section=moderate&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;_fromTopic=1&amp;do=p_approve", "public", ''), "", "") . "\">" . sprintf($this->lang->words['nmo_p_approve'], $topic['topic_queuedposts']) . "</a></li>\r\n\t" : "") . "" . (($topic['topic_queuedposts'] and $this->registry->class_forums->canHardDeletePosts($forum['id'], $topic)) ? "\r\n\t\t<li><a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=moderate&amp;section=moderate&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;_fromTopic=1&amp;do=p_delete_approve", "public", ''), "", "") . "\">" . sprintf($this->lang->words['nmo_p_delete_approve'], $topic['topic_queuedposts']) . "</a></li>\r\n\t" : "") . "" . (($this->registry->class_forums->can_Un_SoftDeletePosts($forum['id']) and $topic['topic_deleted_posts']) ? "\r\n\t\t<li><a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=moderate&amp;section=moderate&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;_fromTopic=1&amp;do=p_restore", "public", ''), "", "") . "\">" . sprintf($this->lang->words['nmo_p_restore'], $topic['topic_deleted_posts']) . "</a></li>\r\n\t" : "") . "" . (($topic['topic_deleted_posts'] and $this->registry->class_forums->canHardDeletePosts($forum['id'], $topic)) ? "\r\n\t\t<li><a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=moderate&amp;section=moderate&amp;t={$topic['tid']}&amp;f={$topic['forum_id']}&amp;page={$this->request['page']}&amp;auth_key={$this->member->form_hash}&amp;_fromTopic=1&amp;do=p_delete_softed", "public", ''), "", "") . "\">" . sprintf($this->lang->words['nmo_p_delete_softed'], $topic['topic_deleted_posts']) . "</a></li>\t\r\n\t" : "") . "\r\n\t" . ((is_array($displayData['multi_mod']) and count($displayData['multi_mod'])) ? "\r\n\t\t" . $this->__f__0e3ef980bf6a36017bffa148b7b8a0a7($forum, $topic, $post_data, $displayData) . "\t" : "") . "\r\n</ul>\r\n<script type='text/javascript'>\r\n\tdocument.observe(\"dom:loaded\", function()\r\n\t{\r\n\t\tnew ipb.Menu( \$('topic_mod_options'), \$('topic_mod_options_menucontent') );\r\n\t} );\r\n</script>" : "") . "\r\n<div class='maintitle clear clearfix'>\r\n\t<span class='ipsType_small'>\r\n\t\t" . ($topic['posts'] ? "" . sprintf($topic['posts'] > 1 ? $this->lang->words['x_replies_to_topic'] : $this->lang->words['x_reply_to_topic'], $topic['posts']) . "" : "\r\n\t\t\t{$this->lang->words['no_replies_to_topic']}\r\n\t\t") . "\r\n\t</span>\r\n\t" . ($this->settings['reputation_enabled'] && $this->settings['reputation_point_types'] != 'like' && $this->settings['reputation_show_content'] && $this->memberData['member_id'] != 0 && is_array($this->caches['reputation_levels']) ? "<a href='#rep_filter_menucontent' id='rep_filter' class='right ipsType_smaller'>\r\n\t\t\t" . ($this->memberData['_members_cache']['rep_filter'] && $this->memberData['_members_cache']['rep_filter'] === '*' ? "\r\n\t\t\t\t{$this->lang->words['rep_f_viewing_all']}\r\n\t\t\t" : "\r\n\t\t\t\t" . sprintf($this->lang->words['rep_f_hiding'], $this->memberData['_members_cache']['rep_filter']) . "\r\n\t\t\t") . "\r\n\t\t\t<img src='{$this->settings['img_url']}/useropts_arrow.png' />\r\n\t\t</a>" : "") . "\t\r\n<span class=\"viewSwitch right\">\r\n<a href='#' id=\"viewSwitch_normal\" class=\"viewSwitch_active\"></a>\r\n<a href='#' id=\"viewSwitch_compact\"></a>\r\n</span>\r\n</div>\r\n" . ($this->settings['reputation_enabled'] && $this->settings['reputation_point_types'] != 'like' && $this->settings['reputation_show_content'] && $this->memberData['member_id'] != 0 && is_array($this->caches['reputation_levels']) ? "<ul id='rep_filter_menucontent' class='ipbmenu_content with_checks' style='display: none'>\r\n\t\t<li " . ((isset($this->memberData['_members_cache']['rep_filter']) and $this->memberData['_members_cache']['rep_filter'] === '*') ? "class='selected'" : "") . ">\r\n\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=forums&amp;module=forums&amp;section=topics&amp;rep_filter=update&amp;f={$topic['forum_id']}&amp;t={$topic['tid']}&amp;secure_key={$this->member->form_hash}&amp;page={$this->request['page']}&amp;rep_filter_set=*", "public", ''), "", "") . "'>{$this->lang->words['rep_f_all_posts']}</a>\r\n\t\t</li>\r\n\t\t" . (is_array($this->caches['reputation_levels']) ? "\r\n\t\t\t" . $this->__f__819a6dc15f373c8280e18a6a1ba0c040($forum, $topic, $post_data, $displayData) . "\t\t" : "") . "\r\n\t</ul>\r\n\t<script type='text/javascript'>\r\n\t\tnew ipb.Menu( \$('rep_filter'), \$('rep_filter_menucontent') );\r\n\t</script>" : "") . "\r\n<div class='topic hfeed clear clearfix'>\r\n\t\r\n\t{$displayData['poll_data']['html']}\r\n" . ((is_array($post_data) and count($post_data)) ? "\r\n\t<div class='ipsBox'>\r\n\t\t<div class='ipsBox_container' id='ips_Posts'>\r\n\t\t\t" . $this->__f__a05249cca02045a3f408667ab42c49bf($forum, $topic, $post_data, $displayData) . "\t\t</div>\r\n\t</div>\r\n" : "") . "\r\n<hr />\r\n<div class='topic_controls clear ipsPad_top_bottom_half'>\r\n\t" . ($topic['SHOW_PAGES'] ? "\r\n\t\t<div class='left'>{$topic['SHOW_PAGES']}</div>\r\n\t" : "") . "\r\n\t<div class='ipsPad_top_slimmer right'>\r\n\t\t" . (($displayData['mod_links'] and ($this->memberData['is_mod'] or $this->memberData['member_id'] == $topic['starter_id'])) ? "\r\n\t\t\t<a href='#' id='topic_mod_options_alt'  class=\"ipsType_small desc\" title='{$this->lang->words['topic_moderation']}'>{$this->lang->words['topic_moderation']}</a> &middot;\r\n\t\t" : "") . "\r\n\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showforum={$forum['id']}", "public", ''), "{$forum['name_seo']}", "showforum") . "' class=\"ipsType_small desc\">" . sprintf($this->lang->words['go_back_to'], $forum['name']) . "</a>\r\n\t\t" . ($forum['_hasUnreadTopics'] ? "\r\n\t\t\t&middot; <a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showtopic={$topic['tid']}&amp;view=getnextunread", "public", ''), "{$topic['title_seo']}", "showtopicnextunread") . "' class=\"ipsType_small desc\">{$this->lang->words['goto_next_unread_topic']}</a>\r\n\t\t" : "") . "\r\n\t</div>\t\r\n</div>\r\n" . ($displayData['fast_reply'] && $displayData['reply_button']['url'] ? "<hr />\r\n<div class='ipsBox' id='fast_reply_wrapper'>\r\n\t<div class='ipsBox_container ipsPad'>\r\n\t\t<h1 class='ipsType_subtitle'>{$this->lang->words['topic_add_reply']}</h1>\r\n\t\t" . ($topic['state'] == 'closed' ? "<span class='error'>{$this->lang->words['locked_reply_fr']}</span><br />" : "") . "\r\n\t\t<br />\r\n\t\t" . ($this->memberData['member_id'] ? "\r\n\t\t\t<a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("showuser={$this->memberData['member_id']}", "public", ''), "{$this->memberData['members_seo_name']}", "showuser") . "\" title='{$this->lang->words['your_profile']}' class='ipsUserPhotoLink left'><img src='{$this->memberData['pp_small_photo']}' alt=\"" . sprintf($this->lang->words['users_photo'], $this->memberData['members_display_name']) . "\" class='ipsUserPhoto ipsUserPhoto_medium' /></a>\r\n\t\t" : "\r\n\t\t\t<div class='left'>" . IPSMember::buildNoPhoto(0, 'small') . "</div>\r\n\t\t") . "\r\n\t\t<div class='ipsBox_withphoto clearfix'>\r\n\t\t\t<form action=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("", "public", ''), "", "") . "\" method=\"post\" id='ips_fastReplyForm'>\r\n\t\t\t\t<input type=\"hidden\" name=\"app\" value=\"forums\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"module\" value=\"post\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"section\" value=\"post\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"do\" value=\"reply_post_do\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"f\" value=\"{$forum['id']}\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"t\" value=\"{$topic['tid']}\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"st\" value=\"{$this->request['st']}\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"auth_key\" value=\"{$this->member->form_hash}\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"fast_reply_used\" value=\"1\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"enableemo\" value=\"yes\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"enablesig\" value=\"yes\" />\r\n\t\t\t\t" . ($this->memberData['auto_track'] ? "\r\n\t\t\t\t\t<input type=\"hidden\" name=\"enabletrack\" value=\"1\" />\r\n\t\t\t\t" : "\r\n\t\t\t\t\t<input type=\"hidden\" name=\"enabletrack\" value=\"{$topic['_isLiked']}\" />\r\n\t\t\t\t") . "" . ((is_array($topic['_fastReplyStatusMessage']) and count($topic['_fastReplyStatusMessage']) and strlen($topic['_fastReplyStatusMessage'][0])) ? "\r\n\t\t\t\t\t<div class='message'>" . implode('<br />', $topic['_fastReplyStatusMessage']) . "</div>\r\n\t\t\t\t" : "") . "" . $editor->show('Post', array('type' => 'full', 'minimize' => 1, 'isTypingCallBack' => 'ipb.topic.isTypingCallBack', 'height' => 180, 'legacyMode' => 'off', 'autoSaveKey' => 'reply-' . $topic[tid], 'warnInfo' => 'fastReply', 'modAll' => $topic['_fastReplyModAll']), "") . "\r\n\t\t\t\t<br />\r\n\t\t\t\t\r\n\t\t\t\t<fieldset class='right' id='fast_reply_controls'>\r\n\t\t\t\t\t<input type='submit' name=\"submit\" class='input_submit' value='{$this->lang->words['qr_post']}' tabindex='50' accesskey='s' id='submit_post' />&nbsp;&nbsp;<input type='submit' name=\"preview\" class='input_submit alt' value='{$this->lang->words['qr_more_opts']}' tabindex='51' id='full_compose' />\t\t\t\r\n\t\t\t\t</fieldset>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\t\t<div id='ips_HasReplies'></div>\r\n\t</div>\r\n</div>\r\n<script type='text/javascript'>\r\n\tipb.topic.fastReplyId\t= '{$this->settings['_lastEditorId']}';\r\n</script>" : "" . ($displayData['load_editor_js'] ? "\r\n\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('editors'), 'editorLoadJs') ? $this->registry->getClass('output')->getTemplate('editors')->editorLoadJs(array('smilies' => $displayData['smilies'])) : '') . "\r\n\t" : "") . "") . "\r\n<!-- Close topic -->\r\n</div>\r\n<!-- BOTTOM BUTTONS -->\r\n" . ((!$forum['disable_sharelinks'] and $this->settings['sl_enable']) ? "\r\n\t<br />\r\n\t<div class='clear clearfix left'>\r\n\t\t" . IPSLib::shareLinks($topic['title'], $topic['posts'] > 300 ? array('skip' => array('print', 'download')) : array()) . "\r\n\t</div>\r\n\t<br />\r\n" : "") . "\r\n<!-- SAME TAGGED -->\r\n" . ((is_array($displayData['same_tagged']) and count($displayData['same_tagged'])) ? "\r\n\t<br />\r\n\t<div class='ipsBox'>\r\n\t\t<h3 class='maintitle'>" . sprintf($this->lang->words['topic_same_tagged_as'], $topic['tags']['formatted']['string']) . "</h3>\r\n\t\t<div class='ipsBox_container'>\r\n\t\t\t<table class='ipb_table topic_list'>\r\n\t\t\t" . $this->__f__26b4095dc75e552fb5bcb8bba6e0dc6e($forum, $topic, $post_data, $displayData) . "\t\t\t</table>\r\n\t\t</div>\r\n\t</div>\r\n" : "") . "\r\n<!-- ACTIVE USERS -->\r\n" . ((is_array($displayData['active_users']) and count($displayData['active_users'])) ? "<div id='topic_stats' class='statistics clear clearfix'>\r\n\t\t<div id='topic_active_users' class='active_users'>\r\n\t\t\t<h4 class='statistics_head'>" . sprintf($this->lang->words['active_users_title'], $displayData['active_users']['stats']['total']) . "</h4>\r\n\t\t\t<p class='statistics_brief desc'>" . sprintf($this->lang->words['active_users_detail'], $displayData['active_users']['stats']['members'], $displayData['active_users']['stats']['guests'], $displayData['active_users']['stats']['anon']) . "</p>\r\n\t\t\t" . ((is_array($displayData['active_users']['names']) and count($displayData['active_users']['names'])) ? "\r\n\t\t\t\t<br />\r\n\t\t\t\t<ul class='ipsList_inline'>\r\n\t\t\t\t\t" . implode(', ', $displayData['active_users']['names']) . "\r\n\t\t\t\t</ul>\r\n\t\t\t" : "") . "\r\n\t\t</div>\r\n\t</div>" : "") . "\r\n" . ($this->request['gopid'] ? "\r\n<script type='text/javascript'>\r\n\tvar gopid = \"{$this->request['gopid']}\".replace(/&amp;/g, '');\r\n\tipb.topic.scrollToPost( parseInt( gopid ) );\r\n</script>\r\n" : "") . "\r\n" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'include_highlighter') ? $this->registry->getClass('output')->getTemplate('global')->include_highlighter(1) : '') . "\r\n<div id='multiQuoteInsert' style='display: none;' class='ipsFloatingAction'>\r\n\t<span class='ipsButton no_width' id='mqbutton'>{$this->lang->words['mq_reply_quoted_posts']}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='#' id='multiQuoteClear' class='ipsType_smaller desc' title='{$this->lang->words['mq_clear_desc']}'>{$this->lang->words['mq_clear']}</a> &nbsp;&nbsp;&nbsp;\r\n</div>\r\n<form id=\"modform\" method=\"post\" action=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("", "public", ''), "", "") . "\">\r\n\t<input type=\"hidden\" name=\"app\" value=\"forums\" />\r\n\t<input type=\"hidden\" name=\"module\" value=\"moderate\" />\r\n\t<input type=\"hidden\" name=\"section\" value=\"moderate\" />\r\n\t<input type=\"hidden\" name=\"do\" value=\"postchoice\" />\r\n\t<input type=\"hidden\" name=\"f\" value=\"{$topic['forum_id']}\" />\r\n\t<input type=\"hidden\" name=\"t\" value=\"{$topic['tid']}\" />\r\n\t<input type=\"hidden\" name=\"auth_key\" value=\"{$this->member->form_hash}\" />\r\n\t<input type=\"hidden\" name=\"st\" value=\"{$this->request['st']}\" />\r\n\t<input type=\"hidden\" value=\"{$this->request['selectedpids']}\" name=\"selectedpidsJS\" id='selectedpidsJS' />\r\n\t<input type=\"hidden\" name=\"tact\" id=\"tact\" value=\"\" />\r\n</form>";
     return $IPBHTML;
 }
Пример #2
0
 function showEvent($event, $member, $typeInfo, $like = '')
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_calendar', $this->_funcHooks['showEvent'])) {
         $count_3e157d388f6c8ef468328c880d269e05 = is_array($this->functionData['showEvent']) ? count($this->functionData['showEvent']) : 0;
         $this->functionData['showEvent'][$count_3e157d388f6c8ef468328c880d269e05]['event'] = $event;
         $this->functionData['showEvent'][$count_3e157d388f6c8ef468328c880d269e05]['member'] = $member;
         $this->functionData['showEvent'][$count_3e157d388f6c8ef468328c880d269e05]['typeInfo'] = $typeInfo;
         $this->functionData['showEvent'][$count_3e157d388f6c8ef468328c880d269e05]['like'] = $like;
     }
     $IPBHTML .= "" . (!$this->settings['disable_lightbox'] ? "\n\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'include_lightbox') ? $this->registry->getClass('output')->getTemplate('global')->include_lightbox() : '') . "\n" : "") . "\n" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'include_highlighter') ? $this->registry->getClass('output')->getTemplate('global')->include_highlighter(1) : '') . "\n" . $this->registry->getClass('output')->addJSModule("rating", "0") . "\n" . $this->registry->getClass('output')->addJSModule("calendar", "0") . "\n<div class='right'>\n\t{$event['_like_strip']}\n</div>\n<div itemscope itemtype=\"http://schema.org/Event\">\n<img src='{$member['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_medium left' />\n<div class='ipsBox_withphoto'>\n\t<span class='rating ipsType_smaller'>" . ($event['_can_rate'] ? "<strong>{$this->lang->words['js_rate_event']}</strong>&nbsp;&nbsp;" : "") . "\n\t\t" . ($event['_can_rate'] ? "<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=1&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_1' title='{$this->lang->words['eve_js_1star']}'>" : "") . "" . ($event['event_rating_avg'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($event['_can_rate'] ? "</a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=2&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_2' title='{$this->lang->words['eve_js_2star']}'>" : "") . "" . ($event['event_rating_avg'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($event['_can_rate'] ? "</a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=3&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_3' title='{$this->lang->words['eve_js_3star']}'>" : "") . "" . ($event['event_rating_avg'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($event['_can_rate'] ? "</a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=4&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_4' title='{$this->lang->words['eve_js_4star']}'>" : "") . "" . ($event['event_rating_avg'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($event['_can_rate'] ? "</a><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=5&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_5' title='{$this->lang->words['eve_js_5star']}'>" : "") . "" . ($event['event_rating_avg'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "" . ($event['_can_rate'] ? "</a>" : "") . "\n\t\t<span id='rating_text'>\n\t\t\t" . ($event['event_rating_hits'] > 0 ? "<span id='rating_hits'>{$event['event_rating_hits']} {$this->lang->words['event_rates']}</span>" : "") . "\n\t\t</span>\n\t\t" . ($event['_can_rate'] ? "<script type='text/javascript'>\n\t\t\t//<![CDATA[\n\t\t\t\trating = new ipb.rating( 'event_rate_', { \n\t\t\t\t\t\t\t\t\turl: ipb.vars['base_url'] + 'app=calendar&module=ajax&section=rating&event_id={$event['event_id']}&md5check=' + ipb.vars['secure_hash'],\n\t\t\t\t\t\t\t\t\tcur_rating: {$event['event_rating_avg']},\n\t\t\t\t\t\t\t\t\trated: " . ($event['_rating_value'] != -1 ? "1" : "0") . ",\n\t\t\t\t\t\t\t\t\tallow_rate: {$event['_can_rate']},\n\t\t\t\t\t\t\t\t\tmulti_rate: 1,\n\t\t\t\t\t\t\t\t\tshow_rate_text: true\n\t\t\t\t\t\t\t\t  } );\n\t\t\t//]]>\n\t\t\t</script>" : "") . "\n\t</span>\n\t<h1 itemprop=\"name\" class='ipsType_pagetitle calendar_title clearfix'>{$this->lang->words['event_prefix']} {$event['event_title']}</h1>\n\t" . (method_exists($this->registry->getClass('output')->getTemplate('calendar'), 'calendarJump') ? $this->registry->getClass('output')->getTemplate('calendar')->calendarJump($typeInfo['calendars'], $typeInfo['calendar'], $typeInfo['chosen_date']) : '') . "\n\t<div class='ipsType_pagedesc clear'>\n\t\t{$this->lang->words['added_by']} " . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($member) : '') . ", " . IPSText::htmlspecialchars($this->registry->getClass('class_localization')->getDate($event['event_saved'], "DATE", 0)) . "\n\t</div>\n</div>\n<br /><br />\n<h2 class='maintitle'>\n\t{$this->lang->words['taking_place']}\n\t<meta itemprop=\"startDate\" content=\"" . date('c', $event['_start_time']) . "\">\n\t<abbr class=\"dtstart\" title=\"" . date('c', $event['_start_time']) . "\">{$event['_start_date']}" . (!$typeInfo['ends'] ? " {$event['_event_time']}" : "") . "</abbr> \n\t" . ($typeInfo['ends'] ? "<abbr class=\"dtend\" title=\"" . date('c', $event['_end_time']) . "\">{$typeInfo['ends']}</abbr>" : "") . "\n\t" . (($event['_event_etime'] and $typeInfo['ends']) ? "{$event['_event_time']} - {$event['_event_etime']}" : "" . ($event['_event_etime'] ? "- <abbr class=\"dtend\" title=\"" . date('c', $event['_end_time']) . "\">{$event['_event_etime']}</abbr>" : "") . "") . "\n\t({$typeInfo['type']})</strong>\n</h2>\n<div class='ipsBox " . ($event['event_rsvp'] ? "ipsLayout ipsLayout_withright ipsLayout_largeright" : "") . " clearfix'>\n\t<div class='ipsBox_container " . ($event['event_rsvp'] ? "ipsLayout_content" : "") . " clearfix'>\n\t\t<div class='post_block no_sidebar vcalendar clearfix " . ($event['event_approved'] == 0 ? "moderated" : "") . "' id='event_id_{$event['event_id']}'>\n\t\t\t<div class='post_wrap vevent'>\n\t\t\t\t" . ($member['member_id'] ? "\n\t\t\t\t\t<h3 class='row2'>\n\t\t\t\t" : "\n\t\t\t\t\t<h3 class='guest row2'>\n\t\t\t\t") . "\n\t\t\t\t<span class='post_id right desc'><a itemprop=\"url\" href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=view&amp;do=showevent&amp;event_id={$event['event_id']}", "public", ''), "{$event['event_title_seo']}", "cal_event") . "' rel='bookmark url' title='{$this->lang->words['link_to_event']} {$event['event_title']}'>{$this->lang->words['permalink_link']}</a></span>\n\t\t\t\t\t" . ($member['member_id'] ? "\n\t\t\t\t\t\t<span class=\"author vcard\">" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($member) : '') . "</span>\n\t\t\t\t\t" : "\n\t\t\t\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($member) : '') . "\n\t\t\t\t\t") . "\n\t\t\t\t</h3>\n\t\t\t\t<div class='post_body'>\n\t\t\t\t\t<div itemprop=\"description\" class='post entry-content description'>\n\t\t\t\t\t\t<br />\n\t\t\t\t\t\t{$event['event_content']}\n\t\t\t\t\t\t{$event['event_attach_content']}\n\t\t\t\t\t</div>\n\t\t\t\t\t<!-- Reputation: -->\n\t\t\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global_other'), 'repButtons') ? $this->registry->getClass('output')->getTemplate('global_other')->repButtons($member, array_merge(array('primaryId' => $event['event_id'], 'domLikeStripId' => 'like_event_' . $event['event_id'], 'domCountId' => 'rep_event_' . $event['event_id'], 'app' => 'calendar', 'type' => 'event_id', 'likeFormatted' => $event['like']['formatted']), $event)) : '') . "\n\t\t\t\t</div>\n\t\t\t\t<ul class='post_controls'>\n\t\t\t\t\t" . ($event['_canReport'] ? "\n\t\t\t\t\t\t<li class='report'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=reports&amp;rcom=calendar&amp;event_id={$event['event_id']}", "public", ''), "", "") . "' title='{$this->lang->words['report_event']}'>{$this->lang->words['report']}</a></li>\n\t\t\t\t\t" : "") . "\n\t\t\t\t\t" . (($this->memberData['g_is_supmod'] or $this->memberData['member_id'] == $event['event_member_id']) ? "\n\t\t\t\t\t\t<li class='post_del'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=moderate&amp;do=delete&amp;md5check={$this->member->form_hash}&amp;event_id={$event['event_id']}&amp;cal_id={$event['event_calendar_id']}", "public", ''), "", "") . "' title='{$this->lang->words['calendar_delete_title']}' data-confirmaction=\"true\">{$this->lang->words['calendar_delete_button']}</a></li>\n\t\t\t\t\t\t<li class='post_edit'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=post&amp;do=edit&amp;cal_id={$event['event_calendar_id']}&amp;event_id={$event['event_id']}", "public", ''), "", "") . "' title='{$this->lang->words['calendar_edit_title']}'>{$this->lang->words['calendar_edit_button']}</a></li>\n\t\t\t\t\t" : "") . "\n\t\t\t\t\t" . ($this->memberData['g_is_supmod'] ? "" . ($event['event_approved'] ? "\n\t\t\t\t\t\t\t<li class='post_unapprove'><a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=moderate&amp;do=calendarEventApprove&amp;modfilter={$this->request['modfilter']}&amp;approve=0&amp;md5check={$this->member->form_hash}&amp;cal_id={$event['event_calendar_id']}&amp;event_id={$event['event_id']}", "public", ''), "", "") . "\" title='{$this->lang->words['unapprove_event']}'>{$this->lang->words['unapprove_event']}</a></li>\n\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t<li class='post_approve'><a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=moderate&amp;do=calendarEventApprove&amp;modfilter={$this->request['modfilter']}&amp;approve=1&amp;md5check={$this->member->form_hash}&amp;cal_id={$event['event_calendar_id']}&amp;event_id={$event['event_id']}", "public", ''), "", "") . "\" title='{$this->lang->words['approve_event']}'>{$this->lang->words['approve_event']}</a></li>\n\t\t\t\t\t\t") . "" : "") . "\n\t\t\t\t</ul>\n\t\t\t</div>\t\t\t\n\t\t</div>\n\t</div>\n\t" . ($event['event_rsvp'] ? "<div class='ipsBox_container ipsLayout_right'>\n\t\t\t<div id='event_rsvp' class='ipsPad'>\n\t\t\t\t<h3 class='ipsType_subtitle'>{$this->lang->words['rsvp_title_header']}</h3>\n\t\t\t\t<span class='desc'>\n\t\t\t\t\t{$this->lang->words['event_poster_want_rsvp']}\n\t\t\t\t</span>\n\t\t\t\n\t\t\t\t" . (($event['_can_rsvp'] or !$event['_have_rsvp']) ? "<br /><br />\n\t\t\t\t\t" . ($event['_can_rsvp'] ? "\n\t\t\t\t\t\t<a id='rsvp_button' rel='event_id_{$event['event_id']}' href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=view&amp;do=showevent&amp;event_id={$event['event_id']}&amp;_rsvp=1", "public", ''), "{$event['event_title_seo']}", "cal_event") . "' title='{$this->lang->words['click_to_rsvp']}' class='ipsButton'>{$this->lang->words['rsvp_button']}</a>\n\t\t\t\t\t" : "" . (!$event['_have_rsvp'] ? "\n\t\t\t\t\t\t\t<span class='desc lighter'>{$this->lang->words['noperm_rsvp']}</span>\n\t\t\t\t\t\t" : "") . "") . "" : "") . "\n\t\t\t\t\n\t\t\t\t<br /><br />\n\t\t\t\t" . ($event['_rsvp_count'] > count($event['_rsvp_attendees_short']) ? "\n\t\t\t\t\t<a href='#' id='see_all_attendees' class='right ipsButton_secondary'>{$this->lang->words['rsvp_seeall']}</a>\n\t\t\t\t" : "") . "\n\t\t\t\t<h3 class='ipsType_subtitle'>" . sprintf($this->lang->words['rsvp_whois_attending'], $event['_rsvp_count']) . "</h3>\n\t\t\t\t" . (count($event['_rsvp_attendees_short']) ? "\n\t\t\t\t\t<ul id='attendee_list' class='ipsList_withminiphoto'>\n\t\t\t\t\t" . $this->__f__94352d016332588774a37f4d0e1e4848($event, $member, $typeInfo, $like) . "\t\t\t\t\t</ul>\n\t\t\t\t" : "\n\t\t\t\t\t<p id='no_attendees' class='desc'>{$this->lang->words['no_rsvp_yet']}</p>\n\t\t\t\t") . "\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t\t" . ($event['_rsvp_count'] > count($event['_rsvp_attendees_short']) ? "\n\t\t\t<div id='see_all_attendees_popup' style='display: none'>\n\t\t\t\t<h3>" . sprintf($this->lang->words['rsvp_whois_attending'], $event['_rsvp_count']) . "</h3>\n\t\t\t\t<div class='fixed_inner'>\n\t\t\t\t\t<ul id='attendee_list' class='ipsPad ipsList_withminiphoto'>\n\t\t\t\t\t" . $this->__f__951f916ed90a58dee66a75345b4c0990($event, $member, $typeInfo, $like) . "\t\t\t\t\t</ul>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<script type='text/javascript'>\n\t\t\t\t\$('see_all_attendees').on('click', function(e){\n\t\t\t\t\tEvent.stop(e);\n\t\t\t\t\tnew ipb.Popup( 'see_all', { \ttype: 'pane',\n\t\t\t\t\t\t\t\t\tinitial: \$('see_all_attendees_popup').show(),\n\t\t\t\t\t\t\t\t\thideAtStart: false,\n\t\t\t\t\t\t\t\t\tstem: false,\n\t\t\t\t\t\t\t\t\thideClose: false,\n\t\t\t\t\t\t\t\t\tw: '350px',\n\t\t\t\t\t\t\t\t\th: 300\n\t\t\t\t\t\t\t\t} );\n\t\t\t\t});\n\t\t\t</script>\n\t\t" : "") . "" : "") . "\n</div>\n</div>\n<div>\n\t" . ($this->settings['sl_enable'] ? "\n\t\t<br />\n\t\t<div class='left'>\n\t\t\t" . IPSLib::shareLinks($event['event_title']) . "\n\t\t</div>\n\t" : "") . "\n</div>\n<br class='clear' /><br />";
     return $IPBHTML;
 }
Пример #3
0
 /**
  * The pop-up modal yodal
  * 
  */
 protected function _postShareModal()
 {
     $pid = intval($this->request['p']);
     $tid = intval($this->request['t']);
     $topic = $this->registry->topics->getTopicById($tid);
     $post = $this->registry->topics->getPostById($pid);
     $this->registry->getClass('topics')->getPosts(array('topicId' => $tid, 'limit' => 1, 'skipForumCheck' => true, 'pidIsLess' => $pid, 'onlyViewable' => true, 'onlyVisible' => true, 'notIgnored' => true, 'parse' => false, 'getCount' => true, 'sortKey' => 'date', 'sortOrder' => 'asc'));
     $post['post_count'] = $this->registry->getClass('topics')->getPostsCount() + 1;
     if (!$topic['tid']) {
         return $this->returnJsonArray(array('status' => 'fail'));
     }
     /* Check permission */
     if (!$this->registry->getClass('class_forums')->forumsCheckAccess($topic['forum_id'], 0, 'topic', $topic, TRUE)) {
         return $this->returnHtml($this->lang->words['no_permission']);
     }
     $url = $this->registry->output->buildSEOUrl('showtopic=' . $tid . '&p=' . $pid, 'public', $topic['title_seo'], 'showtopic');
     $forum = $this->registry->getClass('class_forums')->getForumById($topic['forum_id']);
     /* still 'ere? */
     $shareLinks = (!$forum['disable_sharelinks'] and $this->settings['sl_enable']) ? IPSLib::shareLinks($topic['title'], array('url' => $url, 'cssClass' => 'topic_share left')) : "";
     return $this->returnHtml($this->registry->output->getTemplate('topic')->ajaxSharePost($topic, $post, $url, $shareLinks));
 }
Пример #4
0
 function showEvent($event, $member, $typeInfo, $like = '')
 {
     $IPBHTML = "";
     if (IPSLib::locationHasHooks('skin_calendar', $this->_funcHooks['showEvent'])) {
         $count_cfb58e37bb270c4650eb92723310f786 = is_array($this->functionData['showEvent']) ? count($this->functionData['showEvent']) : 0;
         $this->functionData['showEvent'][$count_cfb58e37bb270c4650eb92723310f786]['event'] = $event;
         $this->functionData['showEvent'][$count_cfb58e37bb270c4650eb92723310f786]['member'] = $member;
         $this->functionData['showEvent'][$count_cfb58e37bb270c4650eb92723310f786]['typeInfo'] = $typeInfo;
         $this->functionData['showEvent'][$count_cfb58e37bb270c4650eb92723310f786]['like'] = $like;
     }
     if (!isset($this->registry->templateStriping['attendeeStripe'])) {
         $this->registry->templateStriping['attendeeStripe'] = array(FALSE, "row1", "row2");
     }
     $IPBHTML .= "" . (!$this->settings['disable_lightbox'] ? "\n\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'include_lightbox') ? $this->registry->getClass('output')->getTemplate('global')->include_lightbox() : '') . "\n" : "") . "\n" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'include_highlighter') ? $this->registry->getClass('output')->getTemplate('global')->include_highlighter(1) : '') . "\n" . $this->registry->getClass('output')->addJSModule("rating", "0") . "\n" . $this->registry->getClass('output')->addJSModule("calendar", "0") . "\n<div class='post_block vcalendar " . ($event['event_approved'] == 0 ? "moderated" : "") . "' id='event_id_{$event['event_id']}'>\n\t<div class='post_wrap vevent'>\n\t\t<h2 class='maintitle'>\n\t\t\t<span class='main_topic_title summary'>{$this->lang->words['event_prefix']} {$event['event_title']}</span>\n\t\t\t" . ($event['_can_rate'] ? "<span class='rating'>{$this->lang->words['event_rate_me']}\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=1&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_1' title='{$this->lang->words['top_js_1star']}'>" . ($event['event_rating_avg'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a>\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=2&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_2' title='{$this->lang->words['top_js_2star']}'>" . ($event['event_rating_avg'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a>\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=3&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_3' title='{$this->lang->words['top_js_3star']}'>" . ($event['event_rating_avg'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a>\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=4&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_4' title='{$this->lang->words['top_js_4star']}'>" . ($event['event_rating_avg'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a>\n\t\t\t\t\t<a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=rating&amp;event_id={$event['event_id']}&amp;rating=5&amp;secure_key={$this->member->form_hash}", "public", ''), "", "") . "' id='event_rate_5' title='{$this->lang->words['top_js_5star']}'>" . ($event['event_rating_avg'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "</a>\n\t\t\t\t\t<span id='rating_text'>\n\t\t\t\t\t\t" . ($event['event_rating_hits'] > 0 ? "<span id='rating_hits'>{$event['event_rating_hits']}</span> {$this->lang->words['event_rates']}" : "") . "\n\t\t\t\t\t\t" . ($event['_rating_value'] != -1 ? " ({$this->lang->words['event_your_rate']} <span id='your_rate'>{$event['_rating_value']}</span>)" : "") . "\n\t\t\t\t\t</span>\n\t\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\t//<![CDATA[\n\t\t\t\t\t\trating = new ipb.rating( 'event_rate_', { \n\t\t\t\t\t\t\t\t\t\t\turl: '" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&module=ajax&section=rating&event_id={$event['event_id']}", "public", ''), "", "") . "&md5check=' + ipb.vars['secure_hash'],\n\t\t\t\t\t\t\t\t\t\t\tcur_rating: {$event['event_rating_avg']},\n\t\t\t\t\t\t\t\t\t\t\trated: " . ($event['_rating_value'] != -1 ? "1" : "0") . ",\n\t\t\t\t\t\t\t\t\t\t\tallow_rate: {$event['_can_rate']},\n\t\t\t\t\t\t\t\t\t\t\tmulti_rate: 1,\n\t\t\t\t\t\t\t\t\t\t\tshow_rate_text: true\n\t\t\t\t\t\t\t\t\t\t  } );\n\t\t\t\t\t//]]>\n\t\t\t\t\t</script>\n\t\t\t\t</span>" : "<span class='rating'>\n\t\t\t\t\t" . ($event['event_rating_avg'] >= 1 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "\n\t\t\t\t\t" . ($event['event_rating_avg'] >= 2 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "\n\t\t\t\t\t" . ($event['event_rating_avg'] >= 3 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "\n\t\t\t\t\t" . ($event['event_rating_avg'] >= 4 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "\n\t\t\t\t\t" . ($event['event_rating_avg'] >= 5 ? "" . $this->registry->getClass('output')->getReplacement("rate_on") . "" : "" . $this->registry->getClass('output')->getReplacement("rate_off") . "") . "\n\t\t\t\t\t<span id='rating_text'>\n\t\t\t\t\t\t" . ($event['event_rating_hits'] > 0 ? "<span id='rating_hits'>{$event['event_rating_hits']}</span> {$this->lang->words['event_rates']}" : "") . "\n\t\t\t\t\t</span>\n\t\t\t\t</span>") . "\n\t\t</h2>\n\t\t" . ($member['member_id'] ? "\n\t\t\t<h3>\n\t\t" : "\n\t\t\t<h3 class='guest'>\n\t\t") . "\n\t\t<span class='post_id'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=view&amp;do=showevent&amp;event_id={$event['event_id']}", "public", ''), "{$event['event_title_seo']}", "cal_event") . "' rel='bookmark url' title='{$this->lang->words['link_to_event']} {$event['event_title']}'>{$this->lang->words['permalink_link']}</a></span>\n\t\t\t" . ($member['member_id'] ? "\n\t\t\t\t<span class=\"author vcard\">" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($member) : '') . "</span>\n\t\t\t" : "\n\t\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userHoverCard') ? $this->registry->getClass('output')->getTemplate('global')->userHoverCard($member) : '') . "\n\t\t\t") . "\n\t\t</h3>\n\t\t<div class='author_info'>\n\t\t\t" . (method_exists($this->registry->getClass('output')->getTemplate('global'), 'userInfoPane') ? $this->registry->getClass('output')->getTemplate('global')->userInfoPane($member, $event['event_id'], array()) : '') . "\n\t\t</div>\n\t\t<div class='post_body'>\n\t\t\t" . ($event['event_rsvp'] ? "<div class='event-rsvp'>\n\t\t\t\t\t<h4>{$this->lang->words['rsvp_title_header']}</h4>\n\t\t\t\t\t<p class='rsvp-info'>{$this->lang->words['event_poster_want_rsvp']}</p>\n\t\t\t\t\t\n\t\t\t\t\t<ul id='attendee-list'>\n\t\t\t\t\t\t" . (count($event['_rsvp_attendees']) ? "\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t" . $this->__f__9f30a1492c64c706eeae5f6d76d1d963($event, $member, $typeInfo, $like) . "\t\t\t\t\t\t" : "\n\t\t\t\t\t\t\t<li id='no-attendees'>{$this->lang->words['no_rsvp_yet']}</li>\n\t\t\t\t\t\t") . "\n\t\t\t\t\t</ul>\n\t\t\t\t\t\n\t\t\t\t\t" . (($event['_can_rsvp'] or !$event['_have_rsvp']) ? "<div class='rsvp-button'>\n\t\t\t\t\t\t\t" . ($event['_can_rsvp'] ? "\n\t\t\t\t\t\t\t\t<a id='rsvp-button' rel='event_id_{$event['event_id']}' href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=view&amp;do=showevent&amp;event_id={$event['event_id']}&amp;_rsvp=1", "public", ''), "{$event['event_title_seo']}", "cal_event") . "' title='{$this->lang->words['click_to_rsvp']}'>{$this->lang->words['rsvp_button']}</a>\n\t\t\t\t\t\t\t" : "" . (!$event['_have_rsvp'] ? "\n\t\t\t\t\t\t\t\t\t<span>{$this->lang->words['noperm_rsvp']}</span>\n\t\t\t\t\t\t\t\t" : "") . "") . "\n\t\t\t\t\t\t</div>" : "") . "\n\t\t\t\t</div>" : "") . "\n\t\t\t\n\t\t\t<p class='posted_info'>\n\t\t\t\t<strong class='event'>{$this->lang->words['event_date']}  <abbr class=\"dtstart\" title=\"" . date('c', $event['_start_time']) . "\">{$event['_start_date']} {$event['_event_time']}</abbr> " . ($typeInfo['ends'] ? "<abbr class=\"dtend\" title=\"" . date('c', $event['_end_time']) . "\">{$typeInfo['ends']} " . ($event['_event_etime'] ? "{$event['_event_etime']}" : "") . "" : "" . ($event['_event_etime'] ? "- {$event['_event_etime']}" : "") . "</abbr>") . " ({$typeInfo['type']})</strong>\n\t\t\t</p>\n\t\t\t<div class='post entry-content description'>\n\t\t\t\t{$event['event_content']}\n\t\t\t\t{$event['event_attach_content']}\n\t\t\t</div>\n\t\t\t<!-- Reputation: -->\n\t\t\t" . ($this->settings['reputation_enabled'] ? "" . (!($this->settings['reputation_protected_groups'] && in_array($member['member_group_id'], explode(',', $this->settings['reputation_protected_groups']))) ? "<div class='rep_bar right' id='rep_post_{$event['event_id']}'>\n\t\t\t\t" . ($event['rep_points'] == 0 ? "\n\t\t\t\t\t<span class='reputation zero rep_show' title='{$this->lang->words['reputation']}'>\n\t\t\t\t" : "") . "\n\t\t\t\t" . ($event['rep_points'] > 0 ? "\n\t\t\t\t\t<span class='reputation positive rep_show' title='{$this->lang->words['reputation']}'>\n\t\t\t\t" : "") . "\n\t\t\t\t" . ($event['rep_points'] < 0 ? "\n\t\t\t\t\t<span class='reputation negative rep_show' title='{$this->lang->words['reputation']}' >\n\t\t\t\t" : "") . "\n\t\t\t\t\t\t{$event['rep_points']}\n\t\t\t\t\t</span>\n\t\t\t\t\t" . (($event['has_given_rep'] != 1 and $event['has_given_rep'] != -1 and $this->memberData['member_id'] != 0 && ($this->settings['reputation_can_self_vote'] or $event['event_member_id'] != $this->memberData['member_id'])) ? "<ul>\n\t\t\t\t\t\t" . ($this->settings['reputation_point_types'] == 'positive' || $this->settings['reputation_point_types'] == 'both' ? "\n\t\t\t\t\t\t\t<li><a href='{$this->settings['base_url']}app=core&amp;module=global&amp;section=reputation&amp;do=add_rating&amp;app_rate=calendar&amp;type=event_id&amp;type_id={$event['event_id']}&amp;rating=1&amp;secure_key={$this->member->form_hash}' class='rep_up' title='{$this->lang->words['reputation_up']}'>" . $this->registry->getClass('output')->getReplacement("rep_up") . "</a></li>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t" . ($this->settings['reputation_point_types'] == 'negative' || $this->settings['reputation_point_types'] == 'both' ? "\n\t\t\t\t\t\t\t<li><a href='{$this->settings['base_url']}app=core&amp;module=global&amp;section=reputation&amp;do=add_rating&amp;app_rate=calendar&amp;type=event_id&amp;type_id={$event['event_id']}&amp;rating=-1&amp;secure_key={$this->member->form_hash}' class='rep_down' title='{$this->lang->words['reputation_down']}'>" . $this->registry->getClass('output')->getReplacement("rep_down") . "</a></li>\n\t\t\t\t\t\t" : "") . "\n\t\t\t\t\t\t</ul>" : "") . "\n\t\t\t\t</div>" : "") . "\n\t\t\t\t<script type='text/javascript'>\n\t\t\t\t\tipb.global.registerReputation( 'rep_post_{$event['event_id']}', { app: 'calendar', type: 'event_id', typeid: '{$event['event_id']}' }, parseInt('{$event['rep_points']}') );\n\t\t\t\t</script>" : "") . "\n\t\t\t<!-- / Reputation -->\n\t\t</div>\n\t\t<ul class='post_controls'>\n\t\t\t" . (($event['_canReport'] and $this->memberData['member_id']) ? "\n\t\t\t\t<li class='report'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=core&amp;module=reports&amp;rcom=calendar&amp;event_id={$event['event_id']}", "public", ''), "", "") . "' title='{$this->lang->words['report_event']}'>{$this->lang->words['report']}</a></li>\n\t\t\t" : "") . "\n\t\t\t" . (($this->memberData['g_is_supmod'] or $this->memberData['member_id'] == $event['event_member_id']) ? "\n\t\t\t\t<li class='post_del'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=moderate&amp;do=delete&amp;md5check={$this->member->form_hash}&amp;event_id={$event['event_id']}&amp;cal_id={$event['event_calendar_id']}", "public", ''), "", "") . "' title='{$this->lang->words['calendar_delete_title']}'>{$this->lang->words['calendar_delete_button']}</a></li>\n\t\t\t\t<li class='post_edit'><a href='" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=post&amp;do=edit&amp;cal_id={$event['event_calendar_id']}&amp;event_id={$event['event_id']}", "public", ''), "", "") . "' title='{$this->lang->words['calendar_edit_title']}'>{$this->lang->words['calendar_edit_button']}</a></li>\n\t\t\t" : "") . "\n\t\t\t" . ($this->memberData['g_is_supmod'] ? "" . ($event['event_approved'] ? "\n\t\t\t\t\t<li class='post_unapprove'><a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=moderate&amp;do=calendarEventApprove&amp;modfilter={$this->request['modfilter']}&amp;approve=0&amp;md5check={$this->member->form_hash}&amp;cal_id={$event['event_calendar_id']}&amp;event_id={$event['event_id']}", "public", ''), "", "") . "\" title='{$this->lang->words['unapprove_event']}'>" . $this->registry->getClass('output')->getReplacement("edit_post_icon") . " {$this->lang->words['unapprove_event']}</a></li>\n\t\t\t\t" : "\n\t\t\t\t\t<li class='post_approve'><a href=\"" . $this->registry->getClass('output')->formatUrl($this->registry->getClass('output')->buildUrl("app=calendar&amp;module=calendar&amp;section=moderate&amp;do=calendarEventApprove&amp;modfilter={$this->request['modfilter']}&amp;approve=1&amp;md5check={$this->member->form_hash}&amp;cal_id={$event['event_calendar_id']}&amp;event_id={$event['event_id']}", "public", ''), "", "") . "\" title='{$this->lang->words['approve_event']}'>" . $this->registry->getClass('output')->getReplacement("edit_post_icon") . " {$this->lang->words['approve_event']}</a></li>\n\t\t\t\t") . "" : "") . "\n\t\t</ul>\n\t</div>\t\t\t\n</div>\n<div>\n\t<div class='right'>{$event['_like_strip']}</div>\n\t" . ($this->settings['sl_enable'] ? "\n\t\t<div class='left'>\n\t\t\t" . IPSLib::shareLinks($event['event_title']) . "\n\t\t</div>\n\t" : "") . "\n</div>\n<br class='clear' /><br />";
     return $IPBHTML;
 }