2017-11-11 05:22:33 +00:00
|
|
|
// +build !no_templategen
|
|
|
|
|
|
|
|
// Code generated by Gosora. More below:
|
|
|
|
/* This file was automatically generated by the software. Please don't edit it as your changes may be overwritten at any moment. */
|
|
|
|
package main
|
|
|
|
import "./common"
|
2018-04-22 12:33:56 +00:00
|
|
|
import "io"
|
2018-03-31 05:25:27 +00:00
|
|
|
import "strconv"
|
2017-11-11 05:22:33 +00:00
|
|
|
|
2018-03-12 04:52:47 +00:00
|
|
|
var topic_tmpl_phrase_id int
|
2018-03-08 03:59:47 +00:00
|
|
|
|
2017-11-11 05:22:33 +00:00
|
|
|
// nolint
|
|
|
|
func init() {
|
2017-11-11 06:33:08 +00:00
|
|
|
common.Template_topic_handle = Template_topic
|
|
|
|
common.Ctemplates = append(common.Ctemplates,"topic")
|
|
|
|
common.TmplPtrMap["topic"] = &common.Template_topic_handle
|
|
|
|
common.TmplPtrMap["o_topic"] = Template_topic
|
2018-03-12 04:52:47 +00:00
|
|
|
topic_tmpl_phrase_id = common.RegisterTmplPhraseNames([]string{
|
2018-03-11 09:33:49 +00:00
|
|
|
"menu_account_aria",
|
|
|
|
"menu_account_tooltip",
|
|
|
|
"menu_profile_aria",
|
|
|
|
"menu_profile_tooltip",
|
|
|
|
"menu_panel_aria",
|
|
|
|
"menu_panel_tooltip",
|
|
|
|
"menu_logout_aria",
|
|
|
|
"menu_logout_tooltip",
|
|
|
|
"menu_register_aria",
|
|
|
|
"menu_register_tooltip",
|
|
|
|
"menu_login_aria",
|
|
|
|
"menu_login_tooltip",
|
|
|
|
"menu_hamburger_tooltip",
|
|
|
|
"paginator_prev_page_aria",
|
|
|
|
"paginator_less_than",
|
|
|
|
"paginator_next_page_aria",
|
|
|
|
"paginator_greater_than",
|
|
|
|
"topic_opening_post_aria",
|
|
|
|
"status_closed_tooltip",
|
|
|
|
"topic_status_closed_aria",
|
|
|
|
"topic_title_input_aria",
|
|
|
|
"topic_update_button",
|
|
|
|
"topic_poll_aria",
|
|
|
|
"topic_poll_vote",
|
|
|
|
"topic_poll_results",
|
|
|
|
"topic_poll_cancel",
|
|
|
|
"topic_opening_post_aria",
|
|
|
|
"topic_post_controls_aria",
|
|
|
|
"topic_unlike_tooltip",
|
|
|
|
"topic_unlike_aria",
|
|
|
|
"topic_like_tooltip",
|
|
|
|
"topic_like_aria",
|
|
|
|
"topic_edit_tooltip",
|
|
|
|
"topic_edit_aria",
|
|
|
|
"topic_delete_tooltip",
|
|
|
|
"topic_delete_aria",
|
|
|
|
"topic_unlock_tooltip",
|
|
|
|
"topic_unlock_aria",
|
|
|
|
"topic_lock_tooltip",
|
|
|
|
"topic_lock_aria",
|
|
|
|
"topic_unpin_tooltip",
|
|
|
|
"topic_unpin_aria",
|
|
|
|
"topic_pin_tooltip",
|
|
|
|
"topic_pin_aria",
|
|
|
|
"topic_ip_tooltip",
|
|
|
|
"topic_flag_tooltip",
|
|
|
|
"topic_flag_aria",
|
|
|
|
"topic_like_count_aria",
|
|
|
|
"topic_like_count_tooltip",
|
|
|
|
"topic_level_aria",
|
|
|
|
"topic_level_tooltip",
|
|
|
|
"topic_current_page_aria",
|
|
|
|
"topic_post_like_tooltip",
|
|
|
|
"topic_post_like_aria",
|
|
|
|
"topic_post_unlike_tooltip",
|
|
|
|
"topic_post_unlike_aria",
|
|
|
|
"topic_post_edit_tooltip",
|
|
|
|
"topic_post_edit_aria",
|
|
|
|
"topic_post_delete_tooltip",
|
|
|
|
"topic_post_delete_aria",
|
|
|
|
"topic_post_ip_tooltip",
|
|
|
|
"topic_post_flag_tooltip",
|
|
|
|
"topic_post_flag_aria",
|
|
|
|
"topic_post_like_count_tooltip",
|
|
|
|
"topic_post_level_aria",
|
|
|
|
"topic_post_level_tooltip",
|
|
|
|
"topic_reply_aria",
|
|
|
|
"topic_reply_content",
|
|
|
|
"topic_reply_add_poll_option",
|
|
|
|
"topic_reply_button",
|
|
|
|
"topic_reply_add_poll_button",
|
|
|
|
"topic_reply_add_file_button",
|
|
|
|
"footer_powered_by",
|
|
|
|
"footer_made_with_love",
|
|
|
|
"footer_theme_selector_aria",
|
|
|
|
})
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// nolint
|
2018-04-22 12:33:56 +00:00
|
|
|
func Template_topic(tmpl_topic_vars common.TopicPage, w io.Writer) error {
|
2018-03-12 04:52:47 +00:00
|
|
|
var phrases = common.GetTmplPhrasesBytes(topic_tmpl_phrase_id)
|
|
|
|
w.Write(header_frags[0])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Title))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[1])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Site.Name))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[2])
|
2017-11-23 05:37:08 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Theme.Name))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[3])
|
2017-11-11 05:22:33 +00:00
|
|
|
if len(tmpl_topic_vars.Header.Stylesheets) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.Stylesheets {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[4])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[5])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[6])
|
2017-11-11 05:22:33 +00:00
|
|
|
if len(tmpl_topic_vars.Header.Scripts) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.Scripts {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[7])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[8])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[9])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[10])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Site.URL))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[11])
|
2017-12-25 06:12:19 +00:00
|
|
|
if tmpl_topic_vars.Header.MetaDesc != "" {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[12])
|
2017-12-25 06:12:19 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.MetaDesc))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[13])
|
2017-12-25 06:12:19 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[14])
|
2017-12-25 06:12:19 +00:00
|
|
|
if !tmpl_topic_vars.CurrentUser.IsSuperMod {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[15])
|
2017-12-25 06:12:19 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[16])
|
|
|
|
w.Write(menu_frags[0])
|
2018-03-17 08:16:43 +00:00
|
|
|
w.Write([]byte(common.BuildWidget("leftOfNav",tmpl_topic_vars.Header)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[1])
|
2018-03-17 08:16:43 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Site.ShortName))
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(menu_frags[2])
|
|
|
|
w.Write([]byte(common.BuildWidget("topMenu",tmpl_topic_vars.Header)))
|
|
|
|
if tmpl_topic_vars.CurrentUser.Loggedin {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[3])
|
2018-03-17 08:16:43 +00:00
|
|
|
w.Write(phrases[0])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[4])
|
2018-03-17 08:16:43 +00:00
|
|
|
w.Write(phrases[1])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[5])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Link))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[6])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[2])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[7])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[3])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[8])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[4])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[9])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[5])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[10])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[11])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[6])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[12])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[7])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[13])
|
2018-04-22 12:33:56 +00:00
|
|
|
} else {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[14])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[8])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[15])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[9])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[16])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[10])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[17])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[11])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[18])
|
2018-04-22 12:33:56 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[19])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[12])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(menu_frags[20])
|
2018-03-17 08:16:43 +00:00
|
|
|
w.Write([]byte(common.BuildWidget("rightOfNav",tmpl_topic_vars.Header)))
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(menu_frags[21])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[17])
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_vars.Header.Widgets.RightSidebar != "" {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[18])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[19])
|
2017-11-11 05:22:33 +00:00
|
|
|
if len(tmpl_topic_vars.Header.NoticeList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.NoticeList {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[20])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[21])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(header_frags[22])
|
|
|
|
w.Write(topic_frags[0])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[1])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[2])
|
2018-01-14 12:03:20 +00:00
|
|
|
if tmpl_topic_vars.Page > 1 {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[3])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[4])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page - 1)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[5])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[13])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[6])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[7])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page - 1)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[8])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[14])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[9])
|
2018-03-11 09:33:49 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.LastPage != tmpl_topic_vars.Page {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[10])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[11])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page + 1)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[12])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[15])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[13])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[14])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Page + 1)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[15])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[16])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[16])
|
2018-03-11 09:33:49 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[17])
|
|
|
|
w.Write(topic_frags[18])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[17])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[19])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_vars.Topic.Sticky {
|
|
|
|
w.Write(topic_frags[20])
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
|
|
|
if tmpl_topic_vars.Topic.IsClosed {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[21])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[22])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Title))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[23])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Title))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[24])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_vars.Topic.IsClosed {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[25])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[18])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[26])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[19])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[27])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.EditTopic {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[28])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Title))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[29])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[20])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[30])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[21])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[31])
|
2018-01-14 12:03:20 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[32])
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.Poll.ID > 0 {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[33])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[22])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[34])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.ClassName))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[35])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Avatar))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[36])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Theme.Name))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[37])
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.Topic.ContentLines <= 5 {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[38])
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[39])
|
2018-02-03 05:47:14 +00:00
|
|
|
if len(tmpl_topic_vars.Poll.QuickOptions) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Poll.QuickOptions {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[40])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Poll.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[41])
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[42])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[43])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[44])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[45])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.Value))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[46])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[47])
|
2018-02-03 05:47:14 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Poll.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[48])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[23])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[49])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Poll.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[50])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[24])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[51])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[25])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[52])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Poll.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[53])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[54])
|
|
|
|
w.Write(topic_frags[55])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[26])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[56])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.ClassName))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[57])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Avatar))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[58])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Theme.Name))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[59])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_vars.Topic.ContentLines <= 5 {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[60])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[61])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.ContentHTML))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[62])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Content))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[63])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_vars.Topic.LikeCount > 0 {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[64])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[65])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[27])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[66])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.UserLink))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[67])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.CreatedByName))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[68])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.LikeItem {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[69])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[70])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[71])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_vars.Topic.Liked {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[72])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[28])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[73])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[29])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[74])
|
2018-03-31 05:25:27 +00:00
|
|
|
} else {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_frags[75])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[30])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[76])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[31])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[77])
|
|
|
|
}
|
|
|
|
w.Write(topic_frags[78])
|
|
|
|
if tmpl_topic_vars.Topic.Liked {
|
|
|
|
w.Write(topic_frags[79])
|
|
|
|
} else {
|
|
|
|
w.Write(topic_frags[80])
|
|
|
|
}
|
|
|
|
w.Write(topic_frags[81])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.EditTopic {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[82])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[83])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[32])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[84])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[33])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[85])
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.DeleteTopic {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[86])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[87])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[88])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[34])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[89])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[35])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[90])
|
2018-01-14 12:03:20 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.CloseTopic {
|
|
|
|
if tmpl_topic_vars.Topic.IsClosed {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[91])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[92])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[93])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[36])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[94])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[37])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[95])
|
2018-01-14 12:03:20 +00:00
|
|
|
} else {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[96])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[97])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[98])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[38])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[99])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[39])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[100])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.PinTopic {
|
|
|
|
if tmpl_topic_vars.Topic.Sticky {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[101])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[102])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[103])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[40])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[104])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[41])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[105])
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[106])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[107])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[108])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[42])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[109])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[43])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[110])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.ViewIPs {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[111])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.IPAddress))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[112])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[44])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[113])
|
2017-12-30 05:47:46 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.IPAddress))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[114])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[115])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[116])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[117])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[45])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[118])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[46])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[119])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[47])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[120])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.LikeCount)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[121])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[48])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[122])
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_vars.Topic.Tag != "" {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[123])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Topic.Tag))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[124])
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[125])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[49])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[126])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.Level)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[127])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[50])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[128])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[129])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[51])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[130])
|
2017-11-11 05:22:33 +00:00
|
|
|
if len(tmpl_topic_vars.ItemList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.ItemList {
|
|
|
|
if item.ActionType != "" {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[131])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.ActionIcon))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[132])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.ActionType))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[133])
|
2018-02-10 15:07:21 +00:00
|
|
|
} else {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[134])
|
|
|
|
w.Write(topic_frags[135])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.ClassName))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[136])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.Avatar))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[137])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.Header.Theme.Name))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[138])
|
2018-02-10 15:07:21 +00:00
|
|
|
if item.ContentLines <= 5 {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[139])
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[140])
|
|
|
|
w.Write(topic_frags[141])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.ContentHtml))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[142])
|
|
|
|
if item.LikeCount > 0 {
|
|
|
|
w.Write(topic_frags[143])
|
|
|
|
}
|
|
|
|
w.Write(topic_frags[144])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.UserLink))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[145])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(item.CreatedByName))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[146])
|
2018-02-10 15:07:21 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.LikeItem {
|
2018-03-11 09:33:49 +00:00
|
|
|
if item.Liked {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[147])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[148])
|
2018-02-10 15:07:21 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[149])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[52])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[150])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[53])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[151])
|
2018-03-11 09:33:49 +00:00
|
|
|
} else {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[152])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[153])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[154])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[54])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[155])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[55])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[156])
|
2018-02-10 15:07:21 +00:00
|
|
|
}
|
2017-12-10 03:43:30 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.EditReply {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[157])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[158])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[159])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[56])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[160])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[57])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[161])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2017-12-10 03:43:30 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.DeleteReply {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[162])
|
2017-12-10 03:43:30 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[163])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[164])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[58])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[165])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[59])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[166])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2017-12-10 03:43:30 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.ViewIPs {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[167])
|
2017-12-10 03:43:30 +00:00
|
|
|
w.Write([]byte(item.IPAddress))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[168])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[60])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[169])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(item.IPAddress))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[170])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[171])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[172])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[173])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[61])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[174])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[62])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[175])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.LikeCount)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[176])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[63])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[177])
|
2017-11-11 05:22:33 +00:00
|
|
|
if item.Tag != "" {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[178])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item.Tag))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[179])
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[180])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[64])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[181])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.Level)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[182])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[65])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[183])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[184])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[185])
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.CreateReply {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[186])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[66])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[187])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[188])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_vars.Topic.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[189])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[67])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[190])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[68])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[191])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[69])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[192])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[70])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[193])
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_vars.CurrentUser.Perms.UploadFiles {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[194])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[71])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[195])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[196])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_frags[197])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[0])
|
2017-11-29 02:34:02 +00:00
|
|
|
w.Write([]byte(common.BuildWidget("footer",tmpl_topic_vars.Header)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[1])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[72])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[2])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[73])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[3])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write(phrases[74])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[4])
|
2017-11-11 05:22:33 +00:00
|
|
|
if len(tmpl_topic_vars.Header.Themes) != 0 {
|
|
|
|
for _, item := range tmpl_topic_vars.Header.Themes {
|
|
|
|
if !item.HideFromThemes {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[5])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item.Name))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[6])
|
2017-11-23 05:37:08 +00:00
|
|
|
if tmpl_topic_vars.Header.Theme.Name == item.Name {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[7])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[8])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item.FriendlyName))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[9])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[10])
|
2017-11-29 02:34:02 +00:00
|
|
|
w.Write([]byte(common.BuildWidget("rightSidebar",tmpl_topic_vars.Header)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[11])
|
2017-11-11 05:22:33 +00:00
|
|
|
return nil
|
|
|
|
}
|