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
|
2018-04-23 08:38:25 +00:00
|
|
|
import "strconv"
|
2018-04-22 12:33:56 +00:00
|
|
|
import "io"
|
2017-11-11 05:22:33 +00:00
|
|
|
import "./common"
|
|
|
|
|
2018-03-12 04:52:47 +00:00
|
|
|
var topic_alt_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_alt_handle = Template_topic_alt
|
|
|
|
common.Ctemplates = append(common.Ctemplates,"topic_alt")
|
|
|
|
common.TmplPtrMap["topic_alt"] = &common.Template_topic_alt_handle
|
|
|
|
common.TmplPtrMap["o_topic_alt"] = Template_topic_alt
|
2018-03-12 04:52:47 +00:00
|
|
|
topic_alt_tmpl_phrase_id = common.RegisterTmplPhraseNames([]string{
|
2018-03-11 09:33:49 +00:00
|
|
|
"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_userinfo_aria",
|
|
|
|
"topic_level_prefix",
|
|
|
|
"topic_poll_vote",
|
|
|
|
"topic_poll_results",
|
|
|
|
"topic_poll_cancel",
|
|
|
|
"topic_opening_post_aria",
|
|
|
|
"topic_userinfo_aria",
|
|
|
|
"topic_level_prefix",
|
|
|
|
"topic_like_aria",
|
|
|
|
"topic_edit_aria",
|
|
|
|
"topic_delete_aria",
|
|
|
|
"topic_unlock_aria",
|
|
|
|
"topic_lock_aria",
|
|
|
|
"topic_unpin_aria",
|
|
|
|
"topic_pin_aria",
|
|
|
|
"topic_ip_full_tooltip",
|
|
|
|
"topic_ip_full_aria",
|
|
|
|
"topic_report_aria",
|
|
|
|
"topic_like_count_aria",
|
|
|
|
"topic_ip_full_tooltip",
|
|
|
|
"topic_userinfo_aria",
|
|
|
|
"topic_level_prefix",
|
|
|
|
"topic_post_like_aria",
|
|
|
|
"topic_post_edit_aria",
|
|
|
|
"topic_post_delete_aria",
|
|
|
|
"topic_ip_full_tooltip",
|
|
|
|
"topic_ip_full_aria",
|
|
|
|
"topic_report_aria",
|
|
|
|
"topic_post_like_count_tooltip",
|
|
|
|
"topic_your_information",
|
|
|
|
"topic_level_prefix",
|
|
|
|
"topic_reply_aria",
|
|
|
|
"topic_reply_content_alt",
|
|
|
|
"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_alt(tmpl_topic_alt_vars common.TopicPage, w io.Writer) error {
|
2018-03-12 04:52:47 +00:00
|
|
|
var phrases = common.GetTmplPhrasesBytes(topic_alt_tmpl_phrase_id)
|
|
|
|
w.Write(header_frags[0])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_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_alt_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_alt_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_alt_vars.Header.Stylesheets) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_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_alt_vars.Header.Scripts) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_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_alt_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_alt_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_alt_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_alt_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_alt_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])
|
2018-03-17 08:16:43 +00:00
|
|
|
w.Write([]byte(common.BuildWidget("leftOfNav",tmpl_topic_alt_vars.Header)))
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[17])
|
2018-03-17 08:16:43 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Header.Site.ShortName))
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[18])
|
2018-04-22 12:33:56 +00:00
|
|
|
w.Write([]byte(common.BuildWidget("topMenu",tmpl_topic_alt_vars.Header)))
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[19])
|
2018-03-17 08:16:43 +00:00
|
|
|
w.Write(phrases[0])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[20])
|
2018-03-17 08:16:43 +00:00
|
|
|
w.Write([]byte(common.BuildWidget("rightOfNav",tmpl_topic_alt_vars.Header)))
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[21])
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_alt_vars.Header.Widgets.RightSidebar != "" {
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[22])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[23])
|
2017-11-11 05:22:33 +00:00
|
|
|
if len(tmpl_topic_alt_vars.Header.NoticeList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.Header.NoticeList {
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[24])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(item))
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[25])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(header_frags[26])
|
2017-11-11 05:22:33 +00:00
|
|
|
if tmpl_topic_alt_vars.Page > 1 {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[0])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[1])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page - 1)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[2])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[1])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[3])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[4])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page - 1)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[5])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[2])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[6])
|
2018-03-11 09:33:49 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.LastPage != tmpl_topic_alt_vars.Page {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[7])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[8])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page + 1)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[9])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[3])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[10])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[11])
|
2018-03-11 09:33:49 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Page + 1)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[12])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[4])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[13])
|
2018-03-11 09:33:49 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[14])
|
|
|
|
w.Write(topic_alt_frags[15])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[5])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[16])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[17])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[18])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.Sticky {
|
|
|
|
w.Write(topic_alt_frags[19])
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
|
|
|
if tmpl_topic_alt_vars.Topic.IsClosed {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[20])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[21])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Title))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[22])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Title))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[23])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.IsClosed {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[24])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[6])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[25])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[7])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[26])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.EditTopic {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[27])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Title))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[28])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[8])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[29])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[9])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[30])
|
2018-01-14 12:03:20 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[31])
|
2018-01-26 05:53:34 +00:00
|
|
|
if tmpl_topic_alt_vars.Poll.ID > 0 {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[32])
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[33])
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[34])
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[35])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[10])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[36])
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Avatar))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[37])
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.UserLink))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[38])
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.CreatedByName))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[39])
|
2018-01-27 07:30:44 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.Tag != "" {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[40])
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Tag))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[41])
|
2018-01-27 07:30:44 +00:00
|
|
|
} else {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[42])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[11])
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.Level)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[43])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[44])
|
2018-01-27 07:30:44 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[45])
|
2018-03-31 05:25:27 +00:00
|
|
|
if len(tmpl_topic_alt_vars.Poll.QuickOptions) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.Poll.QuickOptions {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[46])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[47])
|
2018-01-26 05:53:34 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[48])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[49])
|
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_alt_frags[50])
|
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_alt_frags[51])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.Value))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[52])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[53])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[54])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[12])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[55])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[56])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[13])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[57])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[14])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[58])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Poll.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[59])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[60])
|
|
|
|
w.Write(topic_alt_frags[61])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[15])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[62])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[16])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[63])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Avatar))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[64])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.UserLink))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[65])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.CreatedByName))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[66])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.Tag != "" {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[67])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Tag))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[68])
|
2018-03-31 05:25:27 +00:00
|
|
|
} else {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[69])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[17])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.Level)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[70])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[71])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.ContentHTML))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[72])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.Content))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[73])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.LikeCount > 0 {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[74])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[75])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Loggedin {
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.LikeItem {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[76])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[77])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[78])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.Topic.Liked {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[79])
|
2018-03-31 05:25:27 +00:00
|
|
|
} else {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[80])
|
2018-01-14 12:03:20 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[81])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[18])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[82])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.EditTopic {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[83])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[84])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[19])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[85])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.DeleteTopic {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[86])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[87])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[88])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[20])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[89])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.CloseTopic {
|
|
|
|
if tmpl_topic_alt_vars.Topic.IsClosed {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[90])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[91])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[92])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[21])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[93])
|
2017-11-11 05:22:33 +00:00
|
|
|
} else {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[94])
|
2017-11-11 05:22:33 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[95])
|
2018-01-14 12:03:20 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[96])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[22])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[97])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.PinTopic {
|
|
|
|
if tmpl_topic_alt_vars.Topic.Sticky {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[98])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[99])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[100])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[23])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[101])
|
2018-03-31 05:25:27 +00:00
|
|
|
} else {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[102])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[103])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[104])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[24])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[105])
|
2017-12-19 03:53:13 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[106])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.IPAddress))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[107])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[25])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[108])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[26])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[109])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[110])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[111])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[112])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[27])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[113])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[114])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[28])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[115])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.LikeCount)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[116])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.RelativeCreatedAt))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[117])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[118])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.IPAddress))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[119])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[29])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[120])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.Topic.IPAddress))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[121])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[122])
|
2018-03-31 05:25:27 +00:00
|
|
|
if len(tmpl_topic_alt_vars.ItemList) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_vars.ItemList {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[123])
|
|
|
|
w.Write(topic_alt_frags[124])
|
2018-03-31 05:25:27 +00:00
|
|
|
if item.ActionType != "" {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[125])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[126])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[30])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[127])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.Avatar))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[128])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.UserLink))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[129])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.CreatedByName))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[130])
|
2018-03-31 05:25:27 +00:00
|
|
|
if item.Tag != "" {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[131])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.Tag))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[132])
|
2018-03-31 05:25:27 +00:00
|
|
|
} else {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[133])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[31])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.Level)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[134])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[135])
|
2018-03-31 05:25:27 +00:00
|
|
|
if item.ActionType != "" {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[136])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[137])
|
2018-03-31 05:25:27 +00:00
|
|
|
if item.ActionType != "" {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[138])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.ActionIcon))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[139])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.ActionType))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[140])
|
2018-03-31 05:25:27 +00:00
|
|
|
} else {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[141])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.ContentHtml))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[142])
|
2018-03-31 05:25:27 +00:00
|
|
|
if item.LikeCount > 0 {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[143])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[144])
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Loggedin {
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.LikeItem {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[145])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[146])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[147])
|
|
|
|
if item.Liked {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[148])
|
2018-03-31 05:25:27 +00:00
|
|
|
} else {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[149])
|
2017-12-19 03:53:13 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[150])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[32])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[151])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.EditReply {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[152])
|
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_alt_frags[153])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[154])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[33])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[155])
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.DeleteReply {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[156])
|
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_alt_frags[157])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[158])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[34])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[159])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[160])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.IPAddress))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[161])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[35])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[162])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[36])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[163])
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[164])
|
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_alt_frags[165])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[166])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[37])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[167])
|
2017-11-11 05:22:33 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[168])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[38])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[169])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(item.LikeCount)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(topic_alt_frags[170])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write([]byte(item.RelativeCreatedAt))
|
|
|
|
w.Write(topic_alt_frags[171])
|
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.ViewIPs {
|
|
|
|
w.Write(topic_alt_frags[172])
|
|
|
|
w.Write([]byte(item.IPAddress))
|
|
|
|
w.Write(topic_alt_frags[173])
|
|
|
|
w.Write([]byte(item.IPAddress))
|
|
|
|
w.Write(topic_alt_frags[174])
|
|
|
|
}
|
|
|
|
w.Write(topic_alt_frags[175])
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[176])
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
}
|
|
|
|
w.Write(topic_alt_frags[177])
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.CreateReply {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[178])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[39])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[179])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Avatar))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[180])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Link))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[181])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Name))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[182])
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Tag != "" {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[183])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Tag))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[184])
|
2018-01-28 14:30:24 +00:00
|
|
|
} else {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[185])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[40])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.CurrentUser.Level)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[186])
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[187])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[41])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[188])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(tmpl_topic_alt_vars.CurrentUser.Session))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[189])
|
2018-01-28 14:30:24 +00:00
|
|
|
w.Write([]byte(strconv.Itoa(tmpl_topic_alt_vars.Topic.ID)))
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[190])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[42])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[191])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[43])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[192])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[44])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[193])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[45])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[194])
|
2018-01-28 14:30:24 +00:00
|
|
|
if tmpl_topic_alt_vars.CurrentUser.Perms.UploadFiles {
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[195])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[46])
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[196])
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[197])
|
2018-01-28 14:30:24 +00:00
|
|
|
}
|
2018-03-31 05:25:27 +00:00
|
|
|
w.Write(topic_alt_frags[198])
|
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_alt_vars.Header)))
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[1])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[47])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[2])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[48])
|
2018-03-12 04:52:47 +00:00
|
|
|
w.Write(footer_frags[3])
|
2018-04-23 08:38:25 +00:00
|
|
|
w.Write(phrases[49])
|
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_alt_vars.Header.Themes) != 0 {
|
|
|
|
for _, item := range tmpl_topic_alt_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_alt_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_alt_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
|
|
|
|
}
|