From: eggy Date: Sun, 2 Jul 2017 21:55:22 +0000 (+0200) Subject: eggys proof-of-concept X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=7c042c4c4537b13199515ec8a23b6fe3fd355eed;p=dfde-theme.git eggys proof-of-concept Alles Wissenswerte steht in der dfdeREADME.txt bzw in den dort erwaehnten Forenlinks. --- diff --git a/dfdeREADME.txt b/dfdeREADME.txt new file mode 100644 index 0000000..a50f417 --- /dev/null +++ b/dfdeREADME.txt @@ -0,0 +1,47 @@ + +Der Style basiert auf dem "alten Template" entwickelt von Timo Salmen, das wiederum war basierend auf dem Debian Live Template, entwickelt von Christoph Haas. +Vielen DANK dafür an Timo und Christoph! + +Infos zur Umstellung gibts in den Threads + https://debianforum.de/forum/viewtopic.php?f=5&t=158531 + https://debianforum.de/forum/viewtopic.php?f=14&t=165612 + https://debianforum.de/forum/viewtopic.php?f=15&t=165808 + https://debianforum.de/forum/viewtopic.php?f=5&t=165804 +sowie im Wiki auf + https://wiki.debianforum.de/Dfdebugtrackerchen + +Dort im Wiki bitte auch gefundene Fehler etc eintragen, erleichtert uns hoffentlich die Koordination. + + + +Aktuell eingesetzte Version des Boards ist +https://www.phpbb.com/files/release/phpBB-3.2.0.zip (sha256: 1ffd519239acfb9ffe6c83f7e04879c10d02c40f30464906f90fb21ff7f83681 ) + + + + +Wenn Ihr Änderungen machen wollt: Mitarbeit ist ausdrücklich gewünscht. + Wichtig ist aber, dass der Style eine "minimal-inversive" Fassung bleibt. Daher bitte (wenn möglich) keine Änderungen vornehmen, die tiefer in die Struktur eingreifen - wir wollen, dass spätere Updates so schmerzlos wie möglich ablaufen! D.h. Änderungen an den Template und Theme Dateien sind ok, direkte Änderungen am php-Code des Boards eher nicht. + + + +Sinnvolle Einstellung (während des Testens) im Board damit die Styles nicht aus dem Cache sondern direkt von der Platte genommen werden: + Administration Control Panel >> Load Settings >> Recompile Stale Style Components: Yes + + + + +Falls jemand die Grafiken schöner machen möchte: + + Auch an Grafiken wurde was geändert: die Anführungszeichen fürs quote-icon sind jetzt "unsicherbare Pixel", sonst muss man zuviel am Style rumpatchen - falls dazu jemand ne bessere Idee hat immer her damit. + + Umwandeln der blauen Icons (aus dem "normalen Style") zu roten: + + ls *.gif -1 |xargs -I{} convert {} -modulate 100,100,-20 converted/{}; + + Achtung, das funktioniert nur in ca. 80% der Fälle, bringt aber nen guten Start für händische Korrekturen. + + + + +Aktuell (falls jemandem sehr sehr sehr langweilig ist) könnten auch noch einige der Template-Dateien auf das aktuelle prosilver umgestellt werden. Das würde spätere Migrationen erleichtern (oder auch nicht, falls Upstreamseitig alles umgeschmissen wird). Zur Zeit stammen die Template-Dateien aus drei unterschiedlichen Releases, daher sind in einigen noch falsche Variablen, sollte beim Testen aber auffallen, und falls nicht, wars wohl doch nicht wichtig ;) diff --git a/imageset/announce_read.gif b/imageset/announce_read.gif deleted file mode 100644 index b06f2c8..0000000 Binary files a/imageset/announce_read.gif and /dev/null differ diff --git a/imageset/announce_read_mine.gif b/imageset/announce_read_mine.gif deleted file mode 100644 index b59d90a..0000000 Binary files a/imageset/announce_read_mine.gif and /dev/null differ diff --git a/imageset/announce_unread.gif b/imageset/announce_unread.gif deleted file mode 100644 index 9234d25..0000000 Binary files a/imageset/announce_unread.gif and /dev/null differ diff --git a/imageset/announce_unread_mine.gif b/imageset/announce_unread_mine.gif deleted file mode 100644 index e3fbb10..0000000 Binary files a/imageset/announce_unread_mine.gif and /dev/null differ diff --git a/imageset/de/button_pm_forward.gif b/imageset/de/button_pm_forward.gif deleted file mode 100644 index 5120828..0000000 Binary files a/imageset/de/button_pm_forward.gif and /dev/null differ diff --git a/imageset/de/button_pm_new.gif b/imageset/de/button_pm_new.gif deleted file mode 100644 index aac8e79..0000000 Binary files a/imageset/de/button_pm_new.gif and /dev/null differ diff --git a/imageset/de/button_upload_image.gif b/imageset/de/button_upload_image.gif deleted file mode 100644 index b56a426..0000000 Binary files a/imageset/de/button_upload_image.gif and /dev/null differ diff --git a/imageset/de/icon_contact_pm.gif b/imageset/de/icon_contact_pm.gif deleted file mode 100644 index a829fba..0000000 Binary files a/imageset/de/icon_contact_pm.gif and /dev/null differ diff --git a/imageset/de/icon_post_edit.gif b/imageset/de/icon_post_edit.gif deleted file mode 100644 index 38225aa..0000000 Binary files a/imageset/de/icon_post_edit.gif and /dev/null differ diff --git a/imageset/de/icon_user_online.gif b/imageset/de/icon_user_online.gif deleted file mode 100644 index 90c5381..0000000 Binary files a/imageset/de/icon_user_online.gif and /dev/null differ diff --git a/imageset/de/imageset.cfg b/imageset/de/imageset.cfg deleted file mode 100644 index 027a838..0000000 --- a/imageset/de/imageset.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# -# phpBB Imageset Configuration File -# -# @package phpBB3 -# @copyright (c) 2006 phpBB Group -# @license http://opensource.org/licenses/gpl-license.php GNU Public License -# -# -# At the left is the name, please do not change this -# At the right the value is entered -# For on/off options the valid values are on, off, 1, 0, true and false -# -# Values get trimmed, if you want to add a space in front or at the end of -# the value, then enclose the value with single or double quotes. -# Single and double quotes do not need to be escaped. -# -# - -# Images -img_icon_contact_pm = icon_contact_pm.gif*20*28 - -img_icon_post_edit = icon_post_edit.gif*20*61 -img_icon_post_quote = icon_post_quote.gif*20*65 - -img_icon_user_online = icon_user_online.gif*58*58 -img_icon_user_offline = -img_icon_user_search = - -img_button_pm_forward = button_pm_forward.gif*25*119 -img_button_pm_new = button_pm_new.gif*25*87 -img_button_pm_reply = button_pm_reply.gif*25*102 - -img_button_topic_locked = button_topic_locked.gif*25*102 -img_button_topic_new = button_topic_new.gif*25*119 -img_button_topic_reply = button_topic_reply.gif*25*102 - -img_button_upload_image = button_upload_image.gif*25*96 \ No newline at end of file diff --git a/imageset/de/imageset.cfg~ b/imageset/de/imageset.cfg~ deleted file mode 100644 index 8c07e30..0000000 --- a/imageset/de/imageset.cfg~ +++ /dev/null @@ -1,35 +0,0 @@ -# -# phpBB Imageset Configuration File -# -# @package phpBB3 -# @copyright (c) 2006 phpBB Group -# @license http://opensource.org/licenses/gpl-license.php GNU Public License -# -# -# At the left is the name, please do not change this -# At the right the value is entered -# For on/off options the valid values are on, off, 1, 0, true and false -# -# Values get trimmed, if you want to add a space in front or at the end of -# the value, then enclose the value with single or double quotes. -# Single and double quotes do not need to be escaped. -# -# - -# Images -img_icon_contact_pm = icon_contact_pm.gif*20*28 - -img_icon_post_edit = icon_post_edit.gif*20*61 -img_icon_post_quote = icon_post_quote.gif*20*65 - -img_icon_user_online = icon_user_online.gif*58*58 -img_icon_user_offline = -img_icon_user_search = - -img_button_pm_forward = button_pm_forward.gif*25*119 -img_button_pm_new = button_pm_new.gif*25*87 -img_button_pm_reply = button_pm_reply.gif*25*102 - -img_button_topic_locked = button_topic_locked.gif*25*102 -img_button_topic_new = button_topic_new.gif*25*119 -img_button_topic_reply = button_topic_reply.gif*25*102 diff --git a/imageset/de/index.htm b/imageset/de/index.htm deleted file mode 100644 index e69de29..0000000 diff --git a/imageset/en/button_pm_forward.gif b/imageset/en/button_pm_forward.gif deleted file mode 100644 index 3384df3..0000000 Binary files a/imageset/en/button_pm_forward.gif and /dev/null differ diff --git a/imageset/en/button_pm_new.gif b/imageset/en/button_pm_new.gif deleted file mode 100644 index cc0381c..0000000 Binary files a/imageset/en/button_pm_new.gif and /dev/null differ diff --git a/imageset/en/button_pm_reply.gif b/imageset/en/button_pm_reply.gif deleted file mode 100644 index 3275b06..0000000 Binary files a/imageset/en/button_pm_reply.gif and /dev/null differ diff --git a/imageset/en/button_topic_locked.gif b/imageset/en/button_topic_locked.gif deleted file mode 100644 index b08918a..0000000 Binary files a/imageset/en/button_topic_locked.gif and /dev/null differ diff --git a/imageset/en/button_topic_new.gif b/imageset/en/button_topic_new.gif deleted file mode 100644 index 5b7b1e0..0000000 Binary files a/imageset/en/button_topic_new.gif and /dev/null differ diff --git a/imageset/en/button_topic_reply.gif b/imageset/en/button_topic_reply.gif deleted file mode 100644 index e900c80..0000000 Binary files a/imageset/en/button_topic_reply.gif and /dev/null differ diff --git a/imageset/en/button_upload_image.gif b/imageset/en/button_upload_image.gif deleted file mode 100644 index aa94042..0000000 Binary files a/imageset/en/button_upload_image.gif and /dev/null differ diff --git a/imageset/en/icon_contact_pm.gif b/imageset/en/icon_contact_pm.gif deleted file mode 100644 index ec19011..0000000 Binary files a/imageset/en/icon_contact_pm.gif and /dev/null differ diff --git a/imageset/en/icon_post_edit.gif b/imageset/en/icon_post_edit.gif deleted file mode 100644 index 19006f9..0000000 Binary files a/imageset/en/icon_post_edit.gif and /dev/null differ diff --git a/imageset/en/icon_post_quote.gif b/imageset/en/icon_post_quote.gif deleted file mode 100644 index c3708a1..0000000 Binary files a/imageset/en/icon_post_quote.gif and /dev/null differ diff --git a/imageset/en/icon_user_online.gif b/imageset/en/icon_user_online.gif deleted file mode 100644 index 90c5381..0000000 Binary files a/imageset/en/icon_user_online.gif and /dev/null differ diff --git a/imageset/en/imageset.cfg b/imageset/en/imageset.cfg deleted file mode 100644 index ffdf982..0000000 --- a/imageset/en/imageset.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# -# phpBB Imageset Configuration File -# -# @package phpBB3 -# @copyright (c) 2006 phpBB Group -# @license http://opensource.org/licenses/gpl-license.php GNU Public License -# -# -# At the left is the name, please do not change this -# At the right the value is entered -# For on/off options the valid values are on, off, 1, 0, true and false -# -# Values get trimmed, if you want to add a space in front or at the end of -# the value, then enclose the value with single or double quotes. -# Single and double quotes do not need to be escaped. -# -# - -# Images -img_icon_contact_pm = icon_contact_pm.gif*20*28 - -img_icon_post_edit = icon_post_edit.gif*20*42 -img_icon_post_quote = icon_post_quote.gif*20*54 - -img_icon_user_online = icon_user_online.gif*58*58 -img_icon_user_offline = -img_icon_user_search = - -img_button_pm_forward = button_pm_forward.gif*25*96 -img_button_pm_new = button_pm_new.gif*25*84 -img_button_pm_reply = button_pm_reply.gif*25*96 - -img_button_topic_locked = button_topic_locked.gif*25*88 -img_button_topic_new = button_topic_new.gif*25*96 -img_button_topic_reply = button_topic_reply.gif*25*96 -img_button_upload_image = button_upload_image.gif*25*96 -img_button_upload_image = button_upload_image.gif*25*96 diff --git a/imageset/en/index.htm b/imageset/en/index.htm deleted file mode 100644 index e69de29..0000000 diff --git a/imageset/icon_back_top.gif b/imageset/icon_back_top.gif deleted file mode 100644 index 8a0b828..0000000 Binary files a/imageset/icon_back_top.gif and /dev/null differ diff --git a/imageset/icon_offline.gif b/imageset/icon_offline.gif deleted file mode 100644 index c5e41a4..0000000 Binary files a/imageset/icon_offline.gif and /dev/null differ diff --git a/imageset/icon_online.gif b/imageset/icon_online.gif deleted file mode 100644 index 0e40cf7..0000000 Binary files a/imageset/icon_online.gif and /dev/null differ diff --git a/imageset/icon_post_target.gif b/imageset/icon_post_target.gif deleted file mode 100644 index a29dbff..0000000 Binary files a/imageset/icon_post_target.gif and /dev/null differ diff --git a/imageset/icon_post_target_unread.gif b/imageset/icon_post_target_unread.gif deleted file mode 100644 index 0a4fbd4..0000000 Binary files a/imageset/icon_post_target_unread.gif and /dev/null differ diff --git a/imageset/icon_rate_bad.gif b/imageset/icon_rate_bad.gif deleted file mode 100644 index b0175ea..0000000 Binary files a/imageset/icon_rate_bad.gif and /dev/null differ diff --git a/imageset/icon_rate_good.gif b/imageset/icon_rate_good.gif deleted file mode 100644 index 8b24484..0000000 Binary files a/imageset/icon_rate_good.gif and /dev/null differ diff --git a/imageset/icon_topic_attach.gif b/imageset/icon_topic_attach.gif deleted file mode 100644 index 9a70638..0000000 Binary files a/imageset/icon_topic_attach.gif and /dev/null differ diff --git a/imageset/icon_topic_latest.gif b/imageset/icon_topic_latest.gif deleted file mode 100644 index d79d31a..0000000 Binary files a/imageset/icon_topic_latest.gif and /dev/null differ diff --git a/imageset/icon_topic_newest.gif b/imageset/icon_topic_newest.gif deleted file mode 100644 index 02b3779..0000000 Binary files a/imageset/icon_topic_newest.gif and /dev/null differ diff --git a/imageset/icon_topic_reported.gif b/imageset/icon_topic_reported.gif deleted file mode 100644 index 957a5c0..0000000 Binary files a/imageset/icon_topic_reported.gif and /dev/null differ diff --git a/imageset/icon_topic_unapproved.gif b/imageset/icon_topic_unapproved.gif deleted file mode 100644 index 2a6a602..0000000 Binary files a/imageset/icon_topic_unapproved.gif and /dev/null differ diff --git a/imageset/imageset.cfg b/imageset/imageset.cfg deleted file mode 100644 index ac005bf..0000000 --- a/imageset/imageset.cfg +++ /dev/null @@ -1,116 +0,0 @@ -# -# phpBB Imageset Configuration File -# -# @package phpBB3 -# @copyright (c) 2006 phpBB Group -# @license http://opensource.org/licenses/gpl-license.php GNU Public License -# -# -# At the left is the name, please do not change this -# At the right the value is entered -# For on/off options the valid values are on, off, 1, 0, true and false -# -# Values get trimmed, if you want to add a space in front or at the end of -# the value, then enclose the value with single or double quotes. -# Single and double quotes do not need to be escaped. -# -# - -# General Information about this style -name = debianforum.de -copyright = © 2008 Timo Salmen for debianforum.de -version = 1.0.1 - -# Images -img_site_logo = debian.png*70*56 -img_poll_left = -img_poll_center = -img_poll_right = -img_icon_friend = -img_icon_foe = - -img_forum_link = forum_link.png*25*30 -img_forum_read = forum_read.png*25*30 -img_forum_read_locked = forum_read_locked.png*25*30 -img_forum_read_subforum = forum_read_subforum.png*25*30 -img_forum_unread = forum_unread.png*25*30 -img_forum_unread_locked = forum_unread_locked.png*25*30 -img_forum_unread_subforum = forum_unread_subforum.png*25*30 - -img_topic_moved = topic_moved.gif*27*27 - -img_topic_read = topic_read.gif*27*27 -img_topic_read_mine = topic_read_mine.gif*27*27 -img_topic_read_hot = topic_read_hot.gif*27*27 -img_topic_read_hot_mine = topic_read_hot_mine.gif*27*27 -img_topic_read_locked = topic_read_locked.gif*27*27 -img_topic_read_locked_mine = topic_read_locked_mine.gif*27*27 - -img_topic_unread = topic_unread.gif*27*27 -img_topic_unread_mine = topic_unread_mine.gif*27*27 -img_topic_unread_hot = topic_unread_hot.gif*27*27 -img_topic_unread_hot_mine = topic_unread_hot_mine.gif*27*27 -img_topic_unread_locked = topic_unread_locked.gif*27*27 -img_topic_unread_locked_mine = topic_unread_locked_mine.gif*27*27 - -img_sticky_read = sticky_read.gif*27*27 -img_sticky_read_mine = sticky_read_mine.gif*27*27 -img_sticky_read_locked = sticky_read_locked.gif*27*27 -img_sticky_read_locked_mine = sticky_read_locked_mine.gif*27*27 -img_sticky_unread = sticky_unread.gif*27*27 -img_sticky_unread_mine = sticky_unread_mine.gif*27*27 -img_sticky_unread_locked = sticky_unread_locked.gif*27*27 -img_sticky_unread_locked_mine = sticky_unread_locked_mine.gif*27*27 - -img_announce_read = announce_read.gif*27*27 -img_announce_read_mine = announce_read_mine.gif*27*27 -img_announce_read_locked = announce_read_locked.gif*27*27 -img_announce_read_locked_mine = announce_read_locked_mine.gif*27*27 -img_announce_unread = announce_unread.gif*27*27 -img_announce_unread_mine = announce_unread_mine.gif*27*27 -img_announce_unread_locked = announce_unread_locked.gif*27*27 -img_announce_unread_locked_mine = announce_unread_locked_mine.gif*27*27 - -img_global_read = announce_read.gif*27*27 -img_global_read_mine = announce_read_mine.gif*27*27 -img_global_read_locked = announce_read_locked.gif*27*27 -img_global_read_locked_mine = announce_read_locked_mine.gif*27*27 -img_global_unread = announce_unread.gif*27*27 -img_global_unread_mine = announce_unread_mine.gif*27*27 -img_global_unread_locked = announce_unread_locked.gif*27*27 -img_global_unread_locked_mine = announce_unread_locked_mine.gif*27*27 - -img_subforum_read = subforum_read.gif*9*11 -img_subforum_unread = subforum_unread.gif*9*11 - -img_pm_read = topic_read.gif*27*27 -img_pm_unread = topic_unread.gif*27*27 - -img_icon_back_top = icon_back_top.gif*11*11 - -img_icon_contact_aim = icon_contact_aim.gif*20*20 -img_icon_contact_email = icon_contact_email.gif*20*20 -img_icon_contact_icq = icon_contact_icq.gif*20*20 -img_icon_contact_jabber = icon_contact_jabber.gif*20*20 -img_icon_contact_msnm = icon_contact_msnm.gif*20*20 - -img_icon_contact_www = icon_contact_www.gif*20*20 -img_icon_contact_yahoo = icon_contact_yahoo.gif*20*20 - -img_icon_post_delete = icon_post_delete.gif*20*20 - -img_icon_post_info = icon_post_info.gif*20*20 - -img_icon_post_report = icon_post_report.gif*20*20 -img_icon_post_target = icon_post_target.gif*9*11 -img_icon_post_target_unread = icon_post_target_unread.gif*9*11 - -img_icon_topic_attach = icon_topic_attach.gif*10*7 -img_icon_topic_latest = icon_topic_latest.gif*9*11 -img_icon_topic_newest = icon_topic_newest.gif*9*11 -img_icon_topic_reported = icon_topic_reported.gif*14*16 -img_icon_topic_unapproved = icon_topic_unapproved.gif*14*16 - -img_icon_user_profile = - -img_icon_user_warn = icon_user_warn.gif*20*20 diff --git a/imageset/index.htm b/imageset/index.htm deleted file mode 100644 index e69de29..0000000 diff --git a/imageset/sticky_read.gif b/imageset/sticky_read.gif deleted file mode 100644 index 6bf725c..0000000 Binary files a/imageset/sticky_read.gif and /dev/null differ diff --git a/imageset/sticky_read_locked.gif b/imageset/sticky_read_locked.gif deleted file mode 100644 index efd8974..0000000 Binary files a/imageset/sticky_read_locked.gif and /dev/null differ diff --git a/imageset/sticky_read_locked_mine.gif b/imageset/sticky_read_locked_mine.gif deleted file mode 100644 index d2aab20..0000000 Binary files a/imageset/sticky_read_locked_mine.gif and /dev/null differ diff --git a/imageset/sticky_read_mine.gif b/imageset/sticky_read_mine.gif deleted file mode 100644 index 2bef350..0000000 Binary files a/imageset/sticky_read_mine.gif and /dev/null differ diff --git a/imageset/sticky_unread_mine.gif b/imageset/sticky_unread_mine.gif deleted file mode 100644 index ef27b96..0000000 Binary files a/imageset/sticky_unread_mine.gif and /dev/null differ diff --git a/imageset/subforum_read.gif b/imageset/subforum_read.gif deleted file mode 100644 index f880dbc..0000000 Binary files a/imageset/subforum_read.gif and /dev/null differ diff --git a/imageset/subforum_unread.gif b/imageset/subforum_unread.gif deleted file mode 100644 index cd0c84c..0000000 Binary files a/imageset/subforum_unread.gif and /dev/null differ diff --git a/imageset/topic_moved.gif b/imageset/topic_moved.gif deleted file mode 100644 index f17560b..0000000 Binary files a/imageset/topic_moved.gif and /dev/null differ diff --git a/imageset/topic_read.gif b/imageset/topic_read.gif deleted file mode 100644 index b00a649..0000000 Binary files a/imageset/topic_read.gif and /dev/null differ diff --git a/imageset/topic_read_locked_mine.gif b/imageset/topic_read_locked_mine.gif deleted file mode 100644 index cf1323a..0000000 Binary files a/imageset/topic_read_locked_mine.gif and /dev/null differ diff --git a/imageset/topic_read_mine.gif b/imageset/topic_read_mine.gif deleted file mode 100644 index 207bae8..0000000 Binary files a/imageset/topic_read_mine.gif and /dev/null differ diff --git a/imageset/topic_unread.gif b/imageset/topic_unread.gif deleted file mode 100644 index 23f127e..0000000 Binary files a/imageset/topic_unread.gif and /dev/null differ diff --git a/imageset/topic_unread_mine.gif b/imageset/topic_unread_mine.gif deleted file mode 100644 index 8f8ab64..0000000 Binary files a/imageset/topic_unread_mine.gif and /dev/null differ diff --git a/style.cfg b/style.cfg index 8fd0767..4a28ad6 100644 --- a/style.cfg +++ b/style.cfg @@ -1,22 +1,32 @@ # # phpBB Style Configuration File # -# @package phpBB3 -# @copyright (c) 2005 phpBB Group -# @license http://opensource.org/licenses/gpl-license.php GNU Public License +# This file is part of the phpBB Forum Software package. # +# @copyright (c) phpBB Limited +# @license GNU General Public License, version 2 (GPL-2.0) +# +# For full copyright and license information, please see +# the docs/CREDITS.txt file. # # At the left is the name, please do not change this # At the right the value is entered -# For on/off options the valid values are on, off, 1, 0, true and false # # Values get trimmed, if you want to add a space in front or at the end of -# the value, then enclose the value with single or double quotes. +# the value, then enclose the value with single or double quotes. # Single and double quotes do not need to be escaped. # -# +# # General Information about this style -name = debianforum.de -copyright = © 2008 Timo Salmen for debianforum.de -version = 1.0.1 \ No newline at end of file +name = debianforumde +copyright = based on gplv2-ed "© phpBB Limited, 2007" - with additions by dfde: patched colors to match debians ci +style_version = 3.2.0 +phpbb_version = 3.2.0 + +# Defining a different template bitfield +# template_bitfield = lNg= + +# Parent style +# Set value to empty or to this style's name if this style does not have a parent style +parent = prosilver diff --git a/template/ajax.js b/template/ajax.js new file mode 100644 index 0000000..1bb3aab --- /dev/null +++ b/template/ajax.js @@ -0,0 +1,394 @@ +/* global phpbb */ + +(function($) { // Avoid conflicts with other libraries + +'use strict'; + +// This callback will mark all forum icons read +phpbb.addAjaxCallback('mark_forums_read', function(res) { + var readTitle = res.NO_UNREAD_POSTS; + var unreadTitle = res.UNREAD_POSTS; + var iconsArray = { + forum_unread: 'forum_read', + forum_unread_subforum: 'forum_read_subforum', + forum_unread_locked: 'forum_read_locked' + }; + + $('li.row').find('dl[class*="forum_unread"]').each(function() { + var $this = $(this); + + $.each(iconsArray, function(unreadClass, readClass) { + if ($this.hasClass(unreadClass)) { + $this.removeClass(unreadClass).addClass(readClass); + } + }); + $this.children('dt[title="' + unreadTitle + '"]').attr('title', readTitle); + }); + + // Mark subforums read + $('a.subforum[class*="unread"]').removeClass('unread').addClass('read'); + + // Mark topics read if we are watching a category and showing active topics + if ($('#active_topics').length) { + phpbb.ajaxCallbacks.mark_topics_read.call(this, res, false); + } + + // Update mark forums read links + $('[data-ajax="mark_forums_read"]').attr('href', res.U_MARK_FORUMS); + + phpbb.closeDarkenWrapper(3000); +}); + +/** +* This callback will mark all topic icons read +* +* @param {bool} [update_topic_links=true] Whether "Mark topics read" links +* should be updated. Defaults to true. +*/ +phpbb.addAjaxCallback('mark_topics_read', function(res, updateTopicLinks) { + var readTitle = res.NO_UNREAD_POSTS; + var unreadTitle = res.UNREAD_POSTS; + var iconsArray = { + global_unread: 'global_read', + announce_unread: 'announce_read', + sticky_unread: 'sticky_read', + topic_unread: 'topic_read' + }; + var iconsState = ['', '_hot', '_hot_mine', '_locked', '_locked_mine', '_mine']; + var unreadClassSelectors; + var classMap = {}; + var classNames = []; + + if (typeof updateTopicLinks === 'undefined') { + updateTopicLinks = true; + } + + $.each(iconsArray, function(unreadClass, readClass) { + $.each(iconsState, function(key, value) { + // Only topics can be hot + if ((value === '_hot' || value === '_hot_mine') && unreadClass !== 'topic_unread') { + return true; + } + classMap[unreadClass + value] = readClass + value; + classNames.push(unreadClass + value); + }); + }); + + unreadClassSelectors = '.' + classNames.join(',.'); + + $('li.row').find(unreadClassSelectors).each(function() { + var $this = $(this); + $.each(classMap, function(unreadClass, readClass) { + if ($this.hasClass(unreadClass)) { + $this.removeClass(unreadClass).addClass(readClass); + } + }); + $this.children('dt[title="' + unreadTitle + '"]').attr('title', readTitle); + }); + + // Remove link to first unread post + $('a.unread').has('.icon-red').remove(); + + // Update mark topics read links + if (updateTopicLinks) { + $('[data-ajax="mark_topics_read"]').attr('href', res.U_MARK_TOPICS); + } + + phpbb.closeDarkenWrapper(3000); +}); + +// This callback will mark all notifications read +phpbb.addAjaxCallback('notification.mark_all_read', function(res) { + if (typeof res.success !== 'undefined') { + phpbb.markNotifications($('#notification_list li.bg2'), 0); + phpbb.closeDarkenWrapper(3000); + } +}); + +// This callback will mark a notification read +phpbb.addAjaxCallback('notification.mark_read', function(res) { + if (typeof res.success !== 'undefined') { + var unreadCount = Number($('#notification_list_button strong').html()) - 1; + phpbb.markNotifications($(this).parent('li.bg2'), unreadCount); + } +}); + +/** + * Mark notification popup rows as read. + * + * @param {jQuery} $popup jQuery object(s) to mark read. + * @param {int} unreadCount The new unread notifications count. + */ +phpbb.markNotifications = function($popup, unreadCount) { + // Remove the unread status. + $popup.removeClass('bg2'); + $popup.find('a.mark_read').remove(); + + // Update the notification link to the real URL. + $popup.each(function() { + var link = $(this).find('a'); + link.attr('href', link.attr('data-real-url')); + }); + + // Update the unread count. + $('strong', '#notification_list_button').html(unreadCount); + // Remove the Mark all read link and hide notification count if there are no unread notifications. + if (!unreadCount) { + $('#mark_all_notifications').remove(); + $('#notification_list_button > strong').addClass('hidden'); + } + + // Update page title + var $title = $('title'); + var originalTitle = $title.text().replace(/(\((\d+)\))/, ''); + $title.text((unreadCount ? '(' + unreadCount + ')' : '') + originalTitle); +}; + +// This callback finds the post from the delete link, and removes it. +phpbb.addAjaxCallback('post_delete', function() { + var $this = $(this), + postId; + + if ($this.attr('data-refresh') === undefined) { + postId = $this[0].href.split('&p=')[1]; + var post = $this.parents('#p' + postId).css('pointer-events', 'none'); + if (post.hasClass('bg1') || post.hasClass('bg2')) { + var posts1 = post.nextAll('.bg1'); + post.nextAll('.bg2').removeClass('bg2').addClass('bg1'); + posts1.removeClass('bg1').addClass('bg2'); + } + post.fadeOut(function() { + $(this).remove(); + }); + } +}); + +// This callback removes the approve / disapprove div or link. +phpbb.addAjaxCallback('post_visibility', function(res) { + var remove = (res.visible) ? $(this) : $(this).parents('.post'); + $(remove).css('pointer-events', 'none').fadeOut(function() { + $(this).remove(); + }); + + if (res.visible) { + // Remove the "Deleted by" message from the post on restoring. + remove.parents('.post').find('.post_deleted_msg').css('pointer-events', 'none').fadeOut(function() { + $(this).remove(); + }); + } +}); + +// This removes the parent row of the link or form that fired the callback. +phpbb.addAjaxCallback('row_delete', function() { + $(this).parents('tr').remove(); +}); + +// This handles friend / foe additions removals. +phpbb.addAjaxCallback('zebra', function(res) { + var zebra; + + if (res.success) { + zebra = $('.zebra'); + zebra.first().html(res.MESSAGE_TEXT); + zebra.not(':first').html(' ').prev().html(' '); + } +}); + +/** + * This callback updates the poll results after voting. + */ +phpbb.addAjaxCallback('vote_poll', function(res) { + if (typeof res.success !== 'undefined') { + var poll = $('.topic_poll'); + var panel = poll.find('.panel'); + var resultsVisible = poll.find('dl:first-child .resultbar').is(':visible'); + var mostVotes = 0; + + // Set min-height to prevent the page from jumping when the content changes + var updatePanelHeight = function (height) { + height = (typeof height === 'undefined') ? panel.find('.inner').outerHeight() : height; + panel.css('min-height', height); + }; + updatePanelHeight(); + + // Remove the View results link + if (!resultsVisible) { + poll.find('.poll_view_results').hide(500); + } + + if (!res.can_vote) { + poll.find('.polls, .poll_max_votes, .poll_vote, .poll_option_select').fadeOut(500, function () { + poll.find('.resultbar, .poll_option_percent, .poll_total_votes').show(); + }); + } else { + // If the user can still vote, simply slide down the results + poll.find('.resultbar, .poll_option_percent, .poll_total_votes').show(500); + } + + // Get the votes count of the highest poll option + poll.find('[data-poll-option-id]').each(function() { + var option = $(this); + var optionId = option.attr('data-poll-option-id'); + mostVotes = (res.vote_counts[optionId] >= mostVotes) ? res.vote_counts[optionId] : mostVotes; + }); + + // Update the total votes count + poll.find('.poll_total_vote_cnt').html(res.total_votes); + + // Update each option + poll.find('[data-poll-option-id]').each(function() { + var $this = $(this); + var optionId = $this.attr('data-poll-option-id'); + var voted = (typeof res.user_votes[optionId] !== 'undefined'); + var mostVoted = (res.vote_counts[optionId] === mostVotes); + var percent = (!res.total_votes) ? 0 : Math.round((res.vote_counts[optionId] / res.total_votes) * 100); + var percentRel = (mostVotes === 0) ? 0 : Math.round((res.vote_counts[optionId] / mostVotes) * 100); + var altText; + + altText = $this.attr('data-alt-text'); + if (voted) { + $this.attr('title', $.trim(altText)); + } else { + $this.attr('title', ''); + }; + $this.toggleClass('voted', voted); + $this.toggleClass('most-votes', mostVoted); + + // Update the bars + var bar = $this.find('.resultbar div'); + var barTimeLapse = (res.can_vote) ? 500 : 1500; + var newBarClass = (percent === 100) ? 'pollbar5' : 'pollbar' + (Math.floor(percent / 20) + 1); + + setTimeout(function () { + bar.animate({ width: percentRel + '%' }, 500) + .removeClass('pollbar1 pollbar2 pollbar3 pollbar4 pollbar5') + .addClass(newBarClass) + .html(res.vote_counts[optionId]); + + var percentText = percent ? percent + '%' : res.NO_VOTES; + $this.find('.poll_option_percent').html(percentText); + }, barTimeLapse); + }); + + if (!res.can_vote) { + poll.find('.polls').delay(400).fadeIn(500); + } + + // Display "Your vote has been cast." message. Disappears after 5 seconds. + var confirmationDelay = (res.can_vote) ? 300 : 900; + poll.find('.vote-submitted').delay(confirmationDelay).slideDown(200, function() { + if (resultsVisible) { + updatePanelHeight(); + } + + $(this).delay(5000).fadeOut(500, function() { + resizePanel(300); + }); + }); + + // Remove the gap resulting from removing options + setTimeout(function() { + resizePanel(500); + }, 1500); + + var resizePanel = function (time) { + var panelHeight = panel.height(); + var innerHeight = panel.find('.inner').outerHeight(); + + if (panelHeight !== innerHeight) { + panel.css({ minHeight: '', height: panelHeight }) + .animate({ height: innerHeight }, time, function () { + panel.css({ minHeight: innerHeight, height: '' }); + }); + } + }; + } +}); + +/** + * Show poll results when clicking View results link. + */ +$('.poll_view_results a').click(function(e) { + // Do not follow the link + e.preventDefault(); + + var $poll = $(this).parents('.topic_poll'); + + $poll.find('.resultbar, .poll_option_percent, .poll_total_votes').show(500); + $poll.find('.poll_view_results').hide(500); +}); + +$('[data-ajax]').each(function() { + var $this = $(this); + var ajax = $this.attr('data-ajax'); + var filter = $this.attr('data-filter'); + + if (ajax !== 'false') { + var fn = (ajax !== 'true') ? ajax : null; + filter = (filter !== undefined) ? phpbb.getFunctionByName(filter) : null; + + phpbb.ajaxify({ + selector: this, + refresh: $this.attr('data-refresh') !== undefined, + filter: filter, + callback: fn + }); + } +}); + + +/** + * This simply appends #preview to the action of the + * QR action when you click the Full Editor & Preview button + */ +$('#qr_full_editor').click(function() { + $('#qr_postform').attr('action', function(i, val) { + return val + '#preview'; + }); +}); + + +/** + * Make the display post links to use JS + */ +$('.display_post').click(function(e) { + // Do not follow the link + e.preventDefault(); + + var postId = $(this).attr('data-post-id'); + $('#post_content' + postId).show(); + $('#profile' + postId).show(); + $('#post_hidden' + postId).hide(); +}); + +/** +* Toggle the member search panel in memberlist.php. +* +* If user returns to search page after viewing results the search panel is automatically displayed. +* In any case the link will toggle the display status of the search panel and link text will be +* appropriately changed based on the status of the search panel. +*/ +$('#member_search').click(function () { + var $memberlistSearch = $('#memberlist_search'); + + $memberlistSearch.slideToggle('fast'); + phpbb.ajaxCallbacks.alt_text.call(this); + + // Focus on the username textbox if it's available and displayed + if ($memberlistSearch.is(':visible')) { + $('#username').focus(); + } + return false; +}); + +/** +* Automatically resize textarea +*/ +$(function() { + var $textarea = $('textarea:not(#message-box textarea, .no-auto-resize)'); + phpbb.resizeTextArea($textarea, { minHeight: 75, maxHeight: 250 }); + phpbb.resizeTextArea($('textarea', '#message-box')); +}); + + +})(jQuery); // Avoid conflicts with other libraries diff --git a/template/attachment.html b/template/attachment.html index 7472aba..0978d91 100644 --- a/template/attachment.html +++ b/template/attachment.html @@ -1,20 +1,21 @@ +

[{_file.DENIED_MESSAGE}]

+
-
{_file.DOWNLOAD_NAME}
+
{_file.DOWNLOAD_NAME}
{_file.COMMENT}
-
-
{_file.DOWNLOAD_NAME}
+
{_file.DOWNLOAD_NAME}
{_file.COMMENT}
{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}
@@ -28,95 +29,20 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - - - - - - - - - - - - - - - - - + -
- - - - - - - - - - -

- [ {L_PLAY_QUICKTIME_FILE} ] - {_file.DOWNLOAD_NAME} [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]

+

{_file.DOWNLOAD_NAME} [ {_file.FILESIZE} {_file.SIZE_LANG} | {_file.L_DOWNLOAD_COUNT} ]

+ + diff --git a/template/bbcode.html b/template/bbcode.html index f792436..8c4e941 100644 --- a/template/bbcode.html +++ b/template/bbcode.html @@ -8,12 +8,47 @@
  • -
    {USERNAME} {L_WROTE}: +
    {USERNAME} {L_WROTE}{L_COLON}
    + +
    + + uncited + +
    + + + + + + + + + + + + + + + + + + + + + +
    +
    +
    +
    + +
    +
    + -
    {L_CODE}: {L_SELECT_ALL_CODE}
    -
    +

    {L_CODE}{L_COLON} {L_SELECT_ALL_CODE}

    
    +
    @@ -31,10 +66,10 @@ {TEXT} -{L_IMAGE} +{L_IMAGE} -{DESCRIPTION} +{DESCRIPTION} {DESCRIPTION} - \ No newline at end of file + diff --git a/template/breadcrumbs.html b/template/breadcrumbs.html deleted file mode 100644 index ad18025..0000000 --- a/template/breadcrumbs.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - -
    - -

    {S_TIMEZONE}

    -
    \ No newline at end of file diff --git a/template/captcha_default.html b/template/captcha_default.html index bccf231..02899bc 100644 --- a/template/captcha_default.html +++ b/template/captcha_default.html @@ -1,16 +1,16 @@ -
    -
    +
    +
    -

    {L_CONFIRMATION}

    +

    {L_CONFIRMATION}

    {L_CONFIRM_EXPLAIN}

    -
    -
    {L_CONFIRM_CODE}
    +
    +
    {L_CONFIRM_CODE}
    @@ -19,6 +19,6 @@
    -
    +
    diff --git a/template/captcha_qa.html b/template/captcha_qa.html index 0b18ada..b8c6678 100644 --- a/template/captcha_qa.html +++ b/template/captcha_qa.html @@ -1,14 +1,14 @@ -
    -
    +
    +
    -

    {L_CONFIRMATION}

    +

    {L_CONFIRMATION}

    -

    {L_CONFIRM_QUESTION_EXPLAIN}
    -
    +

    {L_CONFIRM_QUESTION_EXPLAIN}
    +
    @@ -16,6 +16,6 @@
    -
    +
    diff --git a/template/captcha_recaptcha.html b/template/captcha_recaptcha.html index cc4db0b..a123f54 100644 --- a/template/captcha_recaptcha.html +++ b/template/captcha_recaptcha.html @@ -1,8 +1,8 @@ -
    -
    +
    +
    -

    {L_CONFIRMATION}

    +

    {L_CONFIRMATION}

    {L_CONFIRM_EXPLAIN}

    @@ -10,32 +10,13 @@
    -
    :
    {L_RECAPTCHA_EXPLAIN}
    -
    - - - +

    {L_RECAPTCHA_EXPLAIN}
    +
    - + +
    @@ -44,6 +25,6 @@
    -
    +
    diff --git a/template/captcha_simplemath.html b/template/captcha_simplemath.html deleted file mode 100644 index 1a7d3cd..0000000 --- a/template/captcha_simplemath.html +++ /dev/null @@ -1,23 +0,0 @@ - -
    -
    - -

    {L_CONFIRMATION}

    -
    - - -
    -
    -
    - - - -
    -
    {L_SIMPLEMATH_EXPLAIN}
    -
    - - -
    -
    -
    - diff --git a/template/confirm_body.html b/template/confirm_body.html index cddbdee..aaea5cf 100644 --- a/template/confirm_body.html +++ b/template/confirm_body.html @@ -1,15 +1,28 @@ + +
    +

    {MESSAGE_TITLE}

    +

    {MESSAGE_TEXT}

    + +
    +   + +
    +
    + + +
    -

    {MESSAGE_TITLE}

    +

    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    - +
    {S_HIDDEN_FIELDS} -   +  
    @@ -18,3 +31,5 @@ + + diff --git a/template/confirm_delete_body.html b/template/confirm_delete_body.html new file mode 100644 index 0000000..9897496 --- /dev/null +++ b/template/confirm_delete_body.html @@ -0,0 +1,70 @@ + +
    +

    {MESSAGE_TEXT}

    + + + + + + + + + +
    +   + +
    +
    + + + + + +
    +
    +
    + +

    {MESSAGE_TITLE}

    + +

    {MESSAGE_TEXT}

    + + +
    + +
    +
    +
    + +
    +
    + + +
    +

    {L_DELETE_REASON_EXPLAIN}
    +
    +
    +
    + + +
    + {S_HIDDEN_FIELDS} +   + +
    + +
    +
    +
    + + + diff --git a/template/custom_profile_fields.html b/template/custom_profile_fields.html deleted file mode 100644 index 44c68f5..0000000 --- a/template/custom_profile_fields.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - checked="checked" /> - - - - - - - - - - - - diff --git a/template/display_options.html b/template/display_options.html new file mode 100644 index 0000000..d1ec3dc --- /dev/null +++ b/template/display_options.html @@ -0,0 +1,27 @@ + diff --git a/template/drafts.html b/template/drafts.html index dea3bb4..ea2849a 100644 --- a/template/drafts.html +++ b/template/drafts.html @@ -2,43 +2,48 @@
    -
    +
    -

    {L_LOAD_DRAFT}

    +

    {L_LOAD_DRAFT}

    {L_LOAD_DRAFT_EXPLAIN}

    -
    +
    -
    +
    -
    +
    diff --git a/template/editor.js b/template/editor.js deleted file mode 100644 index 66731a1..0000000 --- a/template/editor.js +++ /dev/null @@ -1,450 +0,0 @@ -/** -* bbCode control by subBlue design [ www.subBlue.com ] -* Includes unixsafe colour palette selector by SHS` -*/ - -// Startup variables -var imageTag = false; -var theSelection = false; - -var bbcodeEnabled = true; -// Check for Browser & Platform for PC & IE specific bits -// More details from: http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html -var clientPC = navigator.userAgent.toLowerCase(); // Get client info -var clientVer = parseInt(navigator.appVersion); // Get browser version - -var is_ie = ((clientPC.indexOf('msie') != -1) && (clientPC.indexOf('opera') == -1)); -var is_win = ((clientPC.indexOf('win') != -1) || (clientPC.indexOf('16bit') != -1)); -var baseHeight; - -/** -* Shows the help messages in the helpline window -*/ -function helpline(help) -{ - document.forms[form_name].helpbox.value = help_line[help]; -} - -/** -* Fix a bug involving the TextRange object. From -* http://www.frostjedi.com/terra/scripts/demo/caretBug.html -*/ -function initInsertions() -{ - var doc; - - if (document.forms[form_name]) - { - doc = document; - } - else - { - doc = opener.document; - } - - var textarea = doc.forms[form_name].elements[text_name]; - - if (is_ie && typeof(baseHeight) != 'number') - { - textarea.focus(); - baseHeight = doc.selection.createRange().duplicate().boundingHeight; - - if (!document.forms[form_name]) - { - document.body.focus(); - } - } -} - -/** -* bbstyle -*/ -function bbstyle(bbnumber) -{ - if (bbnumber != -1) - { - bbfontstyle(bbtags[bbnumber], bbtags[bbnumber+1]); - } - else - { - insert_text('[*]'); - document.forms[form_name].elements[text_name].focus(); - } -} - -/** -* Apply bbcodes -*/ -function bbfontstyle(bbopen, bbclose) -{ - theSelection = false; - - var textarea = document.forms[form_name].elements[text_name]; - - textarea.focus(); - - if ((clientVer >= 4) && is_ie && is_win) - { - // Get text selection - theSelection = document.selection.createRange().text; - - if (theSelection) - { - // Add tags around selection - document.selection.createRange().text = bbopen + theSelection + bbclose; - document.forms[form_name].elements[text_name].focus(); - theSelection = ''; - return; - } - } - else if (document.forms[form_name].elements[text_name].selectionEnd && (document.forms[form_name].elements[text_name].selectionEnd - document.forms[form_name].elements[text_name].selectionStart > 0)) - { - mozWrap(document.forms[form_name].elements[text_name], bbopen, bbclose); - document.forms[form_name].elements[text_name].focus(); - theSelection = ''; - return; - } - - //The new position for the cursor after adding the bbcode - var caret_pos = getCaretPosition(textarea).start; - var new_pos = caret_pos + bbopen.length; - - // Open tag - insert_text(bbopen + bbclose); - - // Center the cursor when we don't have a selection - // Gecko and proper browsers - if (!isNaN(textarea.selectionStart)) - { - textarea.selectionStart = new_pos; - textarea.selectionEnd = new_pos; - } - // IE - else if (document.selection) - { - var range = textarea.createTextRange(); - range.move("character", new_pos); - range.select(); - storeCaret(textarea); - } - - textarea.focus(); - return; -} - -/** -* Insert text at position -*/ -function insert_text(text, spaces, popup) -{ - var textarea; - - if (!popup) - { - textarea = document.forms[form_name].elements[text_name]; - } - else - { - textarea = opener.document.forms[form_name].elements[text_name]; - } - if (spaces) - { - text = ' ' + text + ' '; - } - - if (!isNaN(textarea.selectionStart)) - { - var sel_start = textarea.selectionStart; - var sel_end = textarea.selectionEnd; - - mozWrap(textarea, text, '') - textarea.selectionStart = sel_start + text.length; - textarea.selectionEnd = sel_end + text.length; - } - else if (textarea.createTextRange && textarea.caretPos) - { - if (baseHeight != textarea.caretPos.boundingHeight) - { - textarea.focus(); - storeCaret(textarea); - } - - var caret_pos = textarea.caretPos; - caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ' ' ? caret_pos.text + text + ' ' : caret_pos.text + text; - } - else - { - textarea.value = textarea.value + text; - } - if (!popup) - { - textarea.focus(); - } -} - -/** -* Add inline attachment at position -*/ -function attach_inline(index, filename) -{ - insert_text('[attachment=' + index + ']' + filename + '[/attachment]'); - document.forms[form_name].elements[text_name].focus(); -} - -/** -* Add quote text to message -*/ -function addquote(post_id, username) -{ - var message_name = 'message_' + post_id; - var theSelection = ''; - var divarea = false; - - if (document.all) - { - divarea = document.all[message_name]; - } - else - { - divarea = document.getElementById(message_name); - } - - // Get text selection - not only the post content :( - // IE9 must use the document.selection method but has the *.getSelection so we just force no IE - if (window.getSelection && !is_ie && !window.opera) - { - theSelection = window.getSelection().toString(); - } - else if (document.getSelection) - { - theSelection = document.getSelection(); - } - else if (document.selection) - { - theSelection = document.selection.createRange().text; - } - - if (theSelection == '' || typeof theSelection == 'undefined' || theSelection == null) - { - if (divarea.innerHTML) - { - theSelection = divarea.innerHTML.replace(/
    /ig, '\n'); - theSelection = theSelection.replace(//ig, '\n'); - theSelection = theSelection.replace(/<\;/ig, '<'); - theSelection = theSelection.replace(/>\;/ig, '>'); - theSelection = theSelection.replace(/&\;/ig, '&'); - theSelection = theSelection.replace(/ \;/ig, ' '); - } - else if (document.all) - { - theSelection = divarea.innerText; - } - else if (divarea.textContent) - { - theSelection = divarea.textContent; - } - else if (divarea.firstChild.nodeValue) - { - theSelection = divarea.firstChild.nodeValue; - } - } - - if (theSelection) - { - if (bbcodeEnabled) - { - insert_text('[quote="' + username + '"]' + theSelection + '[/quote]'); - } - else - { - var lines = split_lines(theSelection); - for (i = 0; i < lines.length; i++) - { - insert_text('> ' + lines[i] + '\n') - } - } - } - - return; -} - -function split_lines(text) -{ - var lines = text.split('\n'); - var splitLines = new Array(); - var j = 0; - for(i = 0; i < lines.length; i++) - { - if (lines[i].length <= 80) - { - splitLines[j] = lines[i]; - j++; - } - else - { - var line = lines[i]; - do - { - var splitAt = line.indexOf(' ', 80); - - if (splitAt == -1) - { - splitLines[j] = line; - j++ - } - else - { - splitLines[j] = line.substring(0, splitAt); - line = line.substring(splitAt); - j++; - } - } - while(splitAt != -1) - } - } - return splitLines; -} -/** -* From http://www.massless.org/mozedit/ -*/ -function mozWrap(txtarea, open, close) -{ - var selLength = (typeof(txtarea.textLength) == 'undefined') ? txtarea.value.length : txtarea.textLength; - var selStart = txtarea.selectionStart; - var selEnd = txtarea.selectionEnd; - var scrollTop = txtarea.scrollTop; - - if (selEnd == 1 || selEnd == 2) - { - selEnd = selLength; - } - - var s1 = (txtarea.value).substring(0,selStart); - var s2 = (txtarea.value).substring(selStart, selEnd) - var s3 = (txtarea.value).substring(selEnd, selLength); - - txtarea.value = s1 + open + s2 + close + s3; - txtarea.selectionStart = selEnd + open.length + close.length; - txtarea.selectionEnd = txtarea.selectionStart; - txtarea.focus(); - txtarea.scrollTop = scrollTop; - - return; -} - -/** -* Insert at Caret position. Code from -* http://www.faqts.com/knowledge_base/view.phtml/aid/1052/fid/130 -*/ -function storeCaret(textEl) -{ - if (textEl.createTextRange) - { - textEl.caretPos = document.selection.createRange().duplicate(); - } -} - -/** -* Color pallette -*/ -function colorPalette(dir, width, height) -{ - var r = 0, g = 0, b = 0; - var numberList = new Array(6); - var color = ''; - - numberList[0] = '00'; - numberList[1] = '40'; - numberList[2] = '80'; - numberList[3] = 'BF'; - numberList[4] = 'FF'; - - document.writeln(''); - - for (r = 0; r < 5; r++) - { - if (dir == 'h') - { - document.writeln(''); - } - - for (g = 0; g < 5; g++) - { - if (dir == 'v') - { - document.writeln(''); - } - - for (b = 0; b < 5; b++) - { - color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]); - document.write(''); - } - - if (dir == 'v') - { - document.writeln(''); - } - } - - if (dir == 'h') - { - document.writeln(''); - } - } - document.writeln('
    '); - document.write('#' + color + ''); - document.writeln('
    '); -} - - -/** -* Caret Position object -*/ -function caretPosition() -{ - var start = null; - var end = null; -} - - -/** -* Get the caret position in an textarea -*/ -function getCaretPosition(txtarea) -{ - var caretPos = new caretPosition(); - - // simple Gecko/Opera way - if(txtarea.selectionStart || txtarea.selectionStart == 0) - { - caretPos.start = txtarea.selectionStart; - caretPos.end = txtarea.selectionEnd; - } - // dirty and slow IE way - else if(document.selection) - { - - // get current selection - var range = document.selection.createRange(); - - // a new selection of the whole textarea - var range_all = document.body.createTextRange(); - range_all.moveToElementText(txtarea); - - // calculate selection start point by moving beginning of range_all to beginning of range - var sel_start; - for (sel_start = 0; range_all.compareEndPoints('StartToStart', range) < 0; sel_start++) - { - range_all.moveStart('character', 1); - } - - txtarea.sel_start = sel_start; - - // we ignore the end value for IE, this is already dirty enough and we don't need it - caretPos.start = txtarea.sel_start; - caretPos.end = txtarea.sel_start; - } - - return caretPos; -} \ No newline at end of file diff --git a/template/faq_body.html b/template/faq_body.html index 108ffd9..90371cb 100644 --- a/template/faq_body.html +++ b/template/faq_body.html @@ -1,6 +1,6 @@ -

    {L_FAQ_TITLE}

    +

    {L_FAQ_TITLE}

    - - -
    -
    -

    {faq_block.BLOCK_TITLE}

    +

    {faq_block.BLOCK_TITLE}

    -
    {faq_block.faq_row.FAQ_QUESTION}
    +
    {faq_block.faq_row.FAQ_QUESTION}
    {faq_block.faq_row.FAQ_ANSWER}
    -
    {L_BACK_TO_TOP}
    + + {L_BACK_TO_TOP} +
    diff --git a/template/forum_fn.js b/template/forum_fn.js index 074c250..b803a6f 100644 --- a/template/forum_fn.js +++ b/template/forum_fn.js @@ -1,14 +1,26 @@ +/* global phpbb */ + /** * phpBB3 forum functions */ +/** +* Find a member +*/ +function find_username(url) { + 'use strict'; + + popup(url, 760, 570, '_usersearch'); + return false; +} + /** * Window popup */ -function popup(url, width, height, name) -{ - if (!name) - { +function popup(url, width, height, name) { + 'use strict'; + + if (!name) { name = '_popup'; } @@ -19,19 +31,19 @@ function popup(url, width, height, name) /** * Jump to page */ -function jumpto() -{ - var page = prompt(jump_page, on_page); - - if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) - { - if (base_url.indexOf('?') == -1) - { - document.location.href = base_url + '?start=' + ((page - 1) * per_page); - } - else - { - document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page); +function pageJump(item) { + 'use strict'; + + var page = parseInt(item.val(), 10), + perPage = item.attr('data-per-page'), + baseUrl = item.attr('data-base-url'), + startName = item.attr('data-start-name'); + + if (page !== null && !isNaN(page) && page === Math.floor(page) && page > 0) { + if (baseUrl.indexOf('?') === -1) { + document.location.href = baseUrl + '?' + startName + '=' + ((page - 1) * perPage); + } else { + document.location.href = baseUrl.replace(/&/g, '&') + '&' + startName + '=' + ((page - 1) * perPage); } } } @@ -40,53 +52,40 @@ function jumpto() * Mark/unmark checklist * id = ID of parent container, name = name prefix, state = state [true/false] */ -function marklist(id, name, state) -{ - var parent = document.getElementById(id); - if (!parent) - { - eval('parent = document.' + id); - } +function marklist(id, name, state) { + 'use strict'; - if (!parent) - { - return; - } - - var rb = parent.getElementsByTagName('input'); - - for (var r = 0; r < rb.length; r++) - { - if (rb[r].name.substr(0, name.length) == name) - { - rb[r].checked = state; + jQuery('#' + id + ' input[type=checkbox][name]').each(function() { + var $this = jQuery(this); + if ($this.attr('name').substr(0, name.length) === name) { + $this.prop('checked', state); } - } + }); } /** * Resize viewable area for attached image or topic review panel (possibly others to come) * e = element */ -function viewableArea(e, itself) -{ - if (!e) return; - if (!itself) - { +function viewableArea(e, itself) { + 'use strict'; + + if (!e) { + return; + } + + if (!itself) { e = e.parentNode; } - - if (!e.vaHeight) - { + + if (!e.vaHeight) { // Store viewable area height before changing style to auto e.vaHeight = e.offsetHeight; e.vaMaxHeight = e.style.maxHeight; e.style.height = 'auto'; e.style.maxHeight = 'none'; e.style.overflow = 'visible'; - } - else - { + } else { // Restore viewable area height to the default e.style.height = e.vaHeight + 'px'; e.style.overflow = 'auto'; @@ -95,143 +94,101 @@ function viewableArea(e, itself) } } -/** -* Set display of page element -* s[-1,0,1] = hide,toggle display,show -*/ -function dE(n, s) -{ - var e = document.getElementById(n); - - if (!s) - { - s = (e.style.display == '' || e.style.display == 'block') ? -1 : 1; - } - e.style.display = (s == 1) ? 'block' : 'none'; -} - /** * Alternate display of subPanels */ -function subPanels(p) -{ - var i, e, t; +jQuery(function($) { + 'use strict'; - if (typeof(p) == 'string') - { - show_panel = p; - } + $('.sub-panels').each(function() { - for (i = 0; i < panels.length; i++) - { - e = document.getElementById(panels[i]); - t = document.getElementById(panels[i] + '-tab'); - - if (e) - { - if (panels[i] == show_panel) - { - e.style.display = 'block'; - if (t) - { - t.className = 'activetab'; - } - } - else - { - e.style.display = 'none'; - if (t) - { - t.className = ''; - } - } + var $childNodes = $('a[data-subpanel]', this), + panels = $childNodes.map(function () { + return this.getAttribute('data-subpanel'); + }), + showPanel = this.getAttribute('data-show-panel'); + + if (panels.length) { + activateSubPanel(showPanel, panels); + $childNodes.click(function () { + activateSubPanel(this.getAttribute('data-subpanel'), panels); + return false; + }); } - } -} + }); +}); /** -* Call print preview +* Activate specific subPanel */ -function printPage() -{ - if (is_ie) - { - printPreview(); - } - else - { - window.print(); - } -} +function activateSubPanel(p, panels) { + 'use strict'; -/** -* Show/hide groups of blocks -* c = CSS style name -* e = checkbox element -* t = toggle dispay state (used to show 'grip-show' image in the profile block when hiding the profiles) -*/ -function displayBlocks(c, e, t) -{ - var s = (e.checked == true) ? 1 : -1; + var i, showPanel; - if (t) - { - s *= -1; + if (typeof p === 'string') { + showPanel = p; } + $('input[name="show_panel"]').val(showPanel); - var divs = document.getElementsByTagName("DIV"); + if (typeof panels === 'undefined') { + panels = jQuery('.sub-panels a[data-subpanel]').map(function() { + return this.getAttribute('data-subpanel'); + }); + } - for (var d = 0; d < divs.length; d++) - { - if (divs[d].className.indexOf(c) == 0) - { - divs[d].style.display = (s == 1) ? 'none' : 'block'; - } + for (i = 0; i < panels.length; i++) { + jQuery('#' + panels[i]).css('display', panels[i] === showPanel ? 'block' : 'none'); + jQuery('#' + panels[i] + '-tab').toggleClass('activetab', panels[i] === showPanel); } } -function selectCode(a) -{ +function selectCode(a) { + 'use strict'; + // Get ID of code block var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0]; - - // Not IE - if (window.getSelection) - { - var s = window.getSelection(); - // Safari - if (s.setBaseAndExtent) - { - s.setBaseAndExtent(e, 0, e, e.innerText.length - 1); + var s, r; + + // Not IE and IE9+ + if (window.getSelection) { + s = window.getSelection(); + // Safari and Chrome + if (s.setBaseAndExtent) { + var l = (e.innerText.length > 1) ? e.innerText.length - 1 : 1; + try { + s.setBaseAndExtent(e, 0, e, l); + } catch (error) { + r = document.createRange(); + r.selectNodeContents(e); + s.removeAllRanges(); + s.addRange(r); + } } // Firefox and Opera - else - { + else { // workaround for bug # 42885 - if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '
    ') - { + if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) === '
    ') { e.innerHTML = e.innerHTML + ' '; } - var r = document.createRange(); + r = document.createRange(); r.selectNodeContents(e); s.removeAllRanges(); s.addRange(r); } } // Some older browsers - else if (document.getSelection) - { - var s = document.getSelection(); - var r = document.createRange(); + else if (document.getSelection) { + s = document.getSelection(); + r = document.createRange(); r.selectNodeContents(e); s.removeAllRanges(); s.addRange(r); } // IE - else if (document.selection) - { - var r = document.body.createTextRange(); + else if (document.selection) { + r = document.body.createTextRange(); r.moveToElementText(e); r.select(); } @@ -241,25 +198,24 @@ function selectCode(a) * Play quicktime file by determining it's width/height * from the displayed rectangle area */ -function play_qt_file(obj) -{ +function play_qt_file(obj) { + 'use strict'; + var rectangle = obj.GetRectangle(); + var width, height; - if (rectangle) - { + if (rectangle) { rectangle = rectangle.split(','); - var x1 = parseInt(rectangle[0]); - var x2 = parseInt(rectangle[2]); - var y1 = parseInt(rectangle[1]); - var y2 = parseInt(rectangle[3]); - - var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1; - var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1; - } - else - { - var width = 200; - var height = 0; + var x1 = parseInt(rectangle[0], 10); + var x2 = parseInt(rectangle[2], 10); + var y1 = parseInt(rectangle[1], 10); + var y2 = parseInt(rectangle[3], 10); + + width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1; + height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1; + } else { + width = 200; + height = 0; } obj.width = width; @@ -269,81 +225,32 @@ function play_qt_file(obj) obj.Play(); } -/** -* Check if the nodeName of elem is name -* @author jQuery -*/ -function is_node_name(elem, name) -{ - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); -} - -/** -* Check if elem is in array, return position -* @author jQuery -*/ -function is_in_array(elem, array) -{ - for (var i = 0, length = array.length; i < length; i++) - // === is correct (IE) - if (array[i] === elem) - return i; - - return -1; -} - -/** -* Find Element, type and class in tree -* Not used, but may come in handy for those not using JQuery -* @author jQuery.find, Meik Sievertsen -*/ -function find_in_tree(node, tag, type, class_name) -{ - var result, element, i = 0, length = node.childNodes.length; - - for (element = node.childNodes[0]; i < length; element = node.childNodes[++i]) - { - if (!element || element.nodeType != 1) continue; - - if ((!tag || is_node_name(element, tag)) && (!type || element.type == type) && (!class_name || is_in_array(class_name, (element.className || element).toString().split(/\s+/)) > -1)) - { - return element; - } - - if (element.childNodes.length) - result = find_in_tree(element, tag, type, class_name); - - if (result) return result; - } -} - -var in_autocomplete = false; -var last_key_entered = ''; +var inAutocomplete = false; +var lastKeyEntered = ''; /** * Check event key */ -function phpbb_check_key(event) -{ +function phpbbCheckKey(event) { + 'use strict'; + // Keycode is array down or up? - if (event.keyCode && (event.keyCode == 40 || event.keyCode == 38)) - in_autocomplete = true; + if (event.keyCode && (event.keyCode === 40 || event.keyCode === 38)) { + inAutocomplete = true; + } // Make sure we are not within an "autocompletion" field - if (in_autocomplete) - { + if (inAutocomplete) { // If return pressed and key changed we reset the autocompletion - if (!last_key_entered || last_key_entered == event.which) - { - in_autocompletion = false; + if (!lastKeyEntered || lastKeyEntered === event.which) { + inAutocomplete = false; return true; } } // Keycode is not return, then return. ;) - if (event.which != 13) - { - last_key_entered = event.which; + if (event.which !== 13) { + lastKeyEntered = event.which; return true; } @@ -351,88 +258,713 @@ function phpbb_check_key(event) } /** -* Usually used for onkeypress event, to submit a form on enter +* Apply onkeypress event for forcing default submit button on ENTER key press */ -function submit_default_button(event, selector, class_name) -{ - // Add which for key events - if (!event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode)) - event.which = event.charCode || event.keyCode; +jQuery(function($) { + 'use strict'; + + $('form input[type=text], form input[type=password]').on('keypress', function (e) { + var defaultButton = $(this).parents('form').find('input[type=submit].default-submit-action'); + + if (!defaultButton || defaultButton.length <= 0) { + return true; + } + + if (phpbbCheckKey(e)) { + return true; + } + + if ((e.which && e.which === 13) || (e.keyCode && e.keyCode === 13)) { + defaultButton.click(); + return false; + } - if (phpbb_check_key(event)) return true; + }); +}); - var current = selector['parentNode']; +/** +* Functions for user search popup +*/ +function insertUser(formId, value) { + 'use strict'; - // Search parent form element - while (current && (!current.nodeName || current.nodeType != 1 || !is_node_name(current, 'form')) && current != document) - current = current['parentNode']; + var $form = jQuery(formId), + formName = $form.attr('data-form-name'), + fieldName = $form.attr('data-field-name'), + item = opener.document.forms[formName][fieldName]; - // Find the input submit button with the class name - //current = find_in_tree(current, 'input', 'submit', class_name); - var input_tags = current.getElementsByTagName('input'); - current = false; + if (item.value.length && item.type === 'textarea') { + value = item.value + '\n' + value; + } + + item.value = value; +} - for (var i = 0, element = input_tags[0]; i < input_tags.length; element = input_tags[++i]) - { - if (element.type == 'submit' && is_in_array(class_name, (element.className || element).toString().split(/\s+/)) > -1) - current = element; +function insert_marked_users(formId, users) { + 'use strict'; + + for (var i = 0; i < users.length; i++) { + if (users[i].checked) { + insertUser(formId, users[i].value); + } } - if (!current) - return true; + window.close(); +} - // Submit form - current.focus(); - current.click(); - return false; +function insert_single_user(formId, user) { + 'use strict'; + + insertUser(formId, user); + window.close(); } /** -* Apply onkeypress event for forcing default submit button on ENTER key press -* The jQuery snippet used is based on http://greatwebguy.com/programming/dom/default-html-button-submit-on-enter-with-jquery/ -* The non-jQuery code is a mimick of the jQuery code ;) +* Parse document block */ -function apply_onkeypress_event() -{ - // jQuery code in case jQuery is used - if (jquery_present) - { - $('form input').live('keypress', function (e) - { - var default_button = $(this).parents('form').find('input[type=submit].default-submit-action'); - - if (!default_button || default_button.length <= 0) - return true; - - if (phpbb_check_key(e)) - return true; - - if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) - { - default_button.click(); - return false; +function parseDocument($container) { + 'use strict'; + + var test = document.createElement('div'), + oldBrowser = (typeof test.style.borderRadius === 'undefined'), + $body = $('body'); + + /** + * Reset avatar dimensions when changing URL or EMAIL + */ + $container.find('input[data-reset-on-edit]').on('keyup', function() { + $(this.getAttribute('data-reset-on-edit')).val(''); + }); + + /** + * Pagination + */ + $container.find('.pagination .page-jump-form :button').click(function() { + var $input = $(this).siblings('input.inputbox'); + pageJump($input); + }); + + $container.find('.pagination .page-jump-form input.inputbox').on('keypress', function(event) { + if (event.which === 13 || event.keyCode === 13) { + event.preventDefault(); + pageJump($(this)); + } + }); + + $container.find('.pagination .dropdown-trigger').click(function() { + var $dropdownContainer = $(this).parent(); + // Wait a little bit to make sure the dropdown has activated + setTimeout(function() { + if ($dropdownContainer.hasClass('dropdown-visible')) { + $dropdownContainer.find('input.inputbox').focus(); } + }, 100); + }); + + /** + * Adjust HTML code for IE8 and older versions + */ + // if (oldBrowser) { + // // Fix .linklist.bulletin lists + // $container + // .find('ul.linklist.bulletin > li') + // .filter(':first-child, .rightside:last-child') + // .addClass('no-bulletin'); + // } + + /** + * Resize navigation (breadcrumbs) block to keep all links on same line + */ + $container.find('.navlinks').each(function() { + var $this = $(this), + $left = $this.children().not('.rightside'), + $right = $this.children('.rightside'); + + if ($left.length !== 1 || !$right.length) { + return; + } - return true; + function resize() { + var width = 0, + diff = $left.outerWidth(true) - $left.width(), + minWidth = Math.max($this.width() / 3, 240), + maxWidth; + + $right.each(function() { + var $this = $(this); + if ($this.is(':visible')) { + width += $this.outerWidth(true); + } + }); + + maxWidth = $this.width() - width - diff; + $left.css('max-width', Math.floor(Math.max(maxWidth, minWidth)) + 'px'); + } + + resize(); + $(window).resize(resize); + }); + + /** + * Makes breadcrumbs responsive + */ + $container.find('.breadcrumbs:not([data-skip-responsive])').each(function() { + var $this = $(this), + $links = $this.find('.crumb'), + length = $links.length, + classes = ['wrapped-max', 'wrapped-wide', 'wrapped-medium', 'wrapped-small', 'wrapped-tiny'], + classesLength = classes.length, + maxHeight = 0, + lastWidth = false, + wrapped = false; + + // Set tooltips + $this.find('a').each(function() { + var $link = $(this); + $link.attr('title', $link.text()); + }); + + // Function that checks breadcrumbs + function check() { + var height = $this.height(), + width; + + // Test max-width set in code for .navlinks above + width = parseInt($this.css('max-width'), 10); + if (!width) { + width = $body.width(); + } + + maxHeight = parseInt($this.css('line-height'), 10); + $links.each(function() { + if ($(this).height() > 0) { + maxHeight = Math.max(maxHeight, $(this).outerHeight(true)); + } + }); + + if (height <= maxHeight) { + if (!wrapped || lastWidth === false || lastWidth >= width) { + return; + } + } + lastWidth = width; + + if (wrapped) { + $this.removeClass('wrapped').find('.crumb.wrapped').removeClass('wrapped ' + classes.join(' ')); + if ($this.height() <= maxHeight) { + return; + } + } + + wrapped = true; + $this.addClass('wrapped'); + if ($this.height() <= maxHeight) { + return; + } + + for (var i = 0; i < classesLength; i++) { + for (var j = length - 1; j >= 0; j--) { + $links.eq(j).addClass('wrapped ' + classes[i]); + if ($this.height() <= maxHeight) { + return; + } + } + } + } + + // Run function and set event + check(); + $(window).resize(check); + }); + + /** + * Responsive link lists + */ + var selector = '.linklist:not(.navlinks, [data-skip-responsive]),' + + '.postbody .post-buttons:not([data-skip-responsive])'; + $container.find(selector).each(function() { + var $this = $(this), + filterSkip = '.breadcrumbs, [data-skip-responsive]', + filterLast = '.edit-icon, .quote-icon, [data-last-responsive]', + $linksAll = $this.children(), + $linksNotSkip = $linksAll.not(filterSkip), // All items that can potentially be hidden + $linksFirst = $linksNotSkip.not(filterLast), // The items that will be hidden first + $linksLast = $linksNotSkip.filter(filterLast), // The items that will be hidden last + persistent = $this.attr('id') === 'nav-main', // Does this list already have a menu (such as quick-links)? + html = '', + slack = 3; // Vertical slack space (in pixels). Determines how sensitive the script is in determining whether a line-break has occured. + + // Add a hidden drop-down menu to each links list (except those that already have one) + if (!persistent) { + if ($linksNotSkip.is('.rightside')) { + $linksNotSkip.filter('.rightside:first').before(html); + $this.children('.responsive-menu').addClass('rightside'); + } else { + $this.append(html); + } + } + + // Set some object references and initial states + var $menu = $this.children('.responsive-menu'), + $menuContents = $menu.find('.dropdown-contents'), + persistentContent = $menuContents.find('li:not(.separator)').length, + lastWidth = false, + compact = false, + responsive1 = false, + responsive2 = false, + copied1 = false, + copied2 = false, + maxHeight = 0; + + // Find the tallest element in the list (we assume that all elements are roughly the same height) + $linksAll.each(function() { + if (!$(this).height()) { + return; + } + maxHeight = Math.max(maxHeight, $(this).outerHeight(true)); + }); + if (maxHeight < 1) { + return; // Shouldn't be possible, but just in case, abort + } else { + maxHeight = maxHeight + slack; + } + + function check() { + var width = $body.width(); + // We can't make it any smaller than this, so just skip + if (responsive2 && compact && (width <= lastWidth)) { + return; + } + lastWidth = width; + + // Reset responsive and compact layout + if (responsive1 || responsive2) { + $linksNotSkip.removeClass('hidden'); + $menuContents.children('.clone').addClass('hidden'); + responsive1 = responsive2 = false; + } + if (compact) { + $this.removeClass('compact'); + compact = false; + } + + // Unhide the quick-links menu if it has "persistent" content + if (persistent && persistentContent) { + $menu.removeClass('hidden'); + } else { + $menu.addClass('hidden'); + } + + // Nothing to resize if block's height is not bigger than tallest element's height + if ($this.height() <= maxHeight) { + return; + } + + // STEP 1: Compact + if (!compact) { + $this.addClass('compact'); + compact = true; + } + if ($this.height() <= maxHeight) { + return; + } + + // STEP 2: First responsive set - compact + if (compact) { + $this.removeClass('compact'); + compact = false; + } + // Copy the list items to the dropdown + if (!copied1) { + var $clones1 = $linksFirst.clone(); + $menuContents.prepend($clones1.addClass('clone clone-first').removeClass('leftside rightside')); + + if ($this.hasClass('post-buttons')) { + $('.button', $menuContents).removeClass('button'); + $('.sr-only', $menuContents).removeClass('sr-only'); + $('.js-responsive-menu-link').addClass('button').addClass('button-icon-only'); + $('.js-responsive-menu-link .icon').removeClass('fa-bars').addClass('fa-ellipsis-h'); + } + copied1 = true; + } + if (!responsive1) { + $linksFirst.addClass('hidden'); + responsive1 = true; + $menuContents.children('.clone-first').removeClass('hidden'); + $menu.removeClass('hidden'); + } + if ($this.height() <= maxHeight) { + return; + } + + // STEP 3: First responsive set + compact + if (!compact) { + $this.addClass('compact'); + compact = true; + } + if ($this.height() <= maxHeight) { + return; + } + + // STEP 4: Last responsive set - compact + if (!$linksLast.length) { + return; // No other links to hide, can't do more + } + if (compact) { + $this.removeClass('compact'); + compact = false; + } + // Copy the list items to the dropdown + if (!copied2) { + var $clones2 = $linksLast.clone(); + $menuContents.prepend($clones2.addClass('clone clone-last').removeClass('leftside rightside')); + copied2 = true; + } + if (!responsive2) { + $linksLast.addClass('hidden'); + responsive2 = true; + $menuContents.children('.clone-last').removeClass('hidden'); + } + if ($this.height() <= maxHeight) { + return; + } + + // STEP 5: Last responsive set + compact + if (!compact) { + $this.addClass('compact'); + compact = true; + } + } + + if (!persistent) { + phpbb.registerDropdown($menu.find('a.js-responsive-menu-link'), $menu.find('.dropdown'), false); + } + + // If there are any images in the links list, run the check again after they have loaded + $linksAll.find('img').each(function() { + $(this).load(function() { + check(); + }); }); - + + check(); + $(window).resize(check); + }); + + /** + * Do not run functions below for old browsers + */ + if (oldBrowser) { return; } - var input_tags = document.getElementsByTagName('input'); + /** + * Adjust topiclist lists with check boxes + */ + $container.find('ul.topiclist dd.mark').siblings('dt').children('.list-inner').addClass('with-mark'); + + /** + * Appends contents of all extra columns to first column in + * .topiclist lists for mobile devices. Copies contents as is. + * + * To add that functionality to .topiclist list simply add + * responsive-show-all to list of classes + */ + $container.find('.topiclist.responsive-show-all > li > dl').each(function() { + var $this = $(this), + $block = $this.find('dt .responsive-show:last-child'), + first = true; + + // Create block that is visible only on mobile devices + if (!$block.length) { + $this.find('dt > .list-inner').append(' -
    - - - -
    -
    - -
      - - - -
    • -
      -
      - {albumrow.ALBUM_NAME} - style="color: {albumrow.ALBUM_COLOUR};">{albumrow.ALBUM_NAME}
      - {albumrow.ALBUM_DESC} -
      {albumrow.L_MODERATOR_STR}: {albumrow.MODERATORS} -
      {albumrow.L_SUBALBUM_STR} {albumrow.SUBALBUMS} -
      -
      {albumrow.IMAGES} + {albumrow.UNAPPROVED_IMAGES} {L_IMAGES}
      -
      - - {albumrow.UC_FAKE_THUMBNAIL} - {L_LAST_IMAGE} {albumrow.UC_IMAGE_NAME}
      - {L_POST_BY_AUTHOR} {albumrow.LAST_USER_FULL} {albumrow.UC_LASTIMAGE_ICON}
      - {albumrow.LAST_IMAGE_TIME}{L_NO_IMAGES}
      -
      -
      -
    • - - - -
    - -
    -
    - - - -
    -
    - {L_NO_ALBUMS} -
    -
    - \ No newline at end of file diff --git a/template/gallery/comment_body.html b/template/gallery/comment_body.html deleted file mode 100644 index 7d94c5b..0000000 --- a/template/gallery/comment_body.html +++ /dev/null @@ -1,104 +0,0 @@ - - -

    {IMAGE_NAME}

    - - -
    - -
    - - -
    - -
    -
    -

    {L_POST_COMMENT}

    -
    -

    {ERROR}

    - - -
    -
    -
    -
    - - -
    -
    -
    - - - - {CONTEST_RATING} - -
    -
    - - - - - - -
    -
    -
    - - - -
    - - {L_SMILIES}
    - - {smiley.SMILEY_CODE} - - - -
    {L_MORE_SMILIES} - - - -
    - {BBCODE_STATUS}
    - - {IMG_STATUS}
    - {FLASH_STATUS}
    - {URL_STATUS}
    - {SMILIES_STATUS}
    - - - {L_COMMENT_LENGTH} -
    - -
    - -
    - -
    - -
    -
    -
    - -
    -
    -
    - {S_HIDDEN_FIELDS}{S_CAPTCHA_HIDDEN_FIELDS} -   -   -
    - {S_FORM_TOKEN} -
    -
    -
    - - \ No newline at end of file diff --git a/template/gallery/gallery_footer.html b/template/gallery/gallery_footer.html deleted file mode 100644 index 175611c..0000000 --- a/template/gallery/gallery_footer.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - {L_CLOSE_WINDOW} - - - - - - - \ No newline at end of file diff --git a/template/gallery/gallery_header.html b/template/gallery/gallery_header.html deleted file mode 100644 index 54c74da..0000000 --- a/template/gallery/gallery_header.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/template/gallery/imageblock_body.html b/template/gallery/imageblock_body.html deleted file mode 100644 index 3cd1717..0000000 --- a/template/gallery/imageblock_body.html +++ /dev/null @@ -1,68 +0,0 @@ - -
    -
    - - - - -
    -
    - \ No newline at end of file diff --git a/template/gallery/imageblock_popup.html b/template/gallery/imageblock_popup.html deleted file mode 100644 index 3854030..0000000 --- a/template/gallery/imageblock_popup.html +++ /dev/null @@ -1,55 +0,0 @@ - -
    -
    - -
      -
    • -
      -
      {imageblock.BLOCK_NAME}
      -
      -
    • -
    -
      -
    • - - - - - - - - - - - -
      - - - - - - - -
      - {imageblock.imagerow.image.UC_THUMBNAIL} -
      -
      - {L_IMAGE_NAME}: {imageblock.imagerow.image.UC_IMAGE_NAME}
      - {L_ALBUM_NAME}: {imageblock.imagerow.image.ALBUM_NAME}
      - {L_UPLOADED_BY_USER}: {imageblock.imagerow.image.POSTER}
      - {L_UPLOADED_ON_DATE}: {imageblock.imagerow.image.TIME}
      - - -
      -
      -
      - - -
      -
      -
    • -
    - -
    -
    - \ No newline at end of file diff --git a/template/gallery/index.htm b/template/gallery/index.htm deleted file mode 100644 index e69de29..0000000 diff --git a/template/gallery/index_body.html b/template/gallery/index_body.html deleted file mode 100644 index 28eca01..0000000 --- a/template/gallery/index_body.html +++ /dev/null @@ -1,100 +0,0 @@ - - -

    {LAST_VISIT_DATE}{CURRENT_TIME}

    -

    {CURRENT_TIME}
    {L_MCP} ]

    {CURRENT_TIME}

    - - - - - - -
    -
    - - -
    -
    - - - - - -
    - -
    - - -

    {L_GALLERY} ‹ {L_USERS_PERSONAL_ALBUMS}{L_GALLERY} ‹ {L_USERS_PERSONAL_ALBUMS} » {L_YOUR_PERSONAL_ALBUM}


    - - - - -
    -

    {L_LOGIN_LOGOUT}  •  {L_REGISTER}

    - -
    - - - -

    {L_WHO_IS_ONLINE}

    {L_WHO_IS_ONLINE}

    -

    {TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})
    {RECORD_USERS}

    {LOGGED_IN_USER_LIST} -
    {L_LEGEND}: {LEGEND}

    - - - -

    {L_BIRTHDAYS}

    -

    {L_CONGRATULATIONS}: {BIRTHDAY_LIST}{L_NO_BIRTHDAYS}

    - - - -

    {L_STATISTICS}

    -

    {TOTAL_IMAGES} • {TOTAL_COMMENTS} • {TOTAL_PGALLERIES} • {NEWEST_PGALLERIES}

    - - - \ No newline at end of file diff --git a/template/gallery/mcp_body.html b/template/gallery/mcp_body.html deleted file mode 100644 index edf272d..0000000 --- a/template/gallery/mcp_body.html +++ /dev/null @@ -1,331 +0,0 @@ - - -

    {L_MCP}

    - - -

    - [ {ALBUM_NAME} | {L_MODERATE_ALBUM} | {L_GALLERY_MCP_OVERVIEW} ] -

    - -
    - -
    - -
    -
    -
    -
    - -
    - -
    -

    {SUBSECTION} - {L_ALBUM}: {ALBUM_NAME}

    - - -
    -
    - -

    {TITLE}

    -

    {DESCRIPTION}

    - -
    - -
      -
    • -
      -
      {L_IMAGES}
      -
      {L_COMMENTS}
      -
      {L_RATING}
      -
      {L_REPORTER_AND_ALBUM}
      -
      {L_STATUS}
      -
      {L_MARK}
      -
      -
    • -
    - -
      - -
    • -
      -
      - {image_row.THUMBNAIL} - {image_row.IMAGE_NAME} {REPORTED_IMG} {UNAPPROVED_IMG}
      - {L_POST_BY_AUTHOR} {image_row.UPLOADER}
      - » {image_row.IMAGE_TIME} -
      {L_REPORT_MOD} {image_row.REPORT_MOD}
      -
      -
      {image_row.COMMENTS}
      -
      {image_row.RATING}
      - -
      - {L_REPORT_BY} {image_row.REPORTER}
      - {image_row.REPORT_TIME}
      - {L_ALBUM}: {ALBUM_NAME}
      -
      - -
      {image_row.STATUS}
      {L_IMAGE_REPORTED}
      -
      -
      -
    • - -
    - -
    - {L_NEXT} - {L_PREVIOUS} - - -
    - - -
      -
    • {NO_IMAGES_NOTE}

    • -
    - - - - -
    - - - -
    -
    -
    - - - -
    - - - - - -
    -
    - -
    - -

    {IMAGE_NAME}

    -

    - {L_POST_BY_AUTHOR} {UPLOADER}
    - {IMAGE_TIME}
    - {L_ALBUM}: {ALBUM_NAME} » {L_MOVE}
    - {L_STATUS}: {STATUS} -

    - -
    -
    {UC_IMAGE}
    - -
    - {L_IMAGE_DESC}:
    - {IMAGE_DESC} - -
    -
    - -
    -
    - - -
    -
    - -
    -

    {L_REPORT_BY} {REPORTER} » {REPORT_TIME}

    -
    {REPORT_NOTE}
    -
    - -
    -
    - - -
    -
    - - - -
    -
    - -
    -
    - -
    -
    -
    - -
    -
    -
    -
     
    - -
    -

    {SUBSECTION}

    - -
    -
    - -

    {L_LATEST_IMAGES_UNAPPROVED}

    - - - - - {NO_UNAPPROVED_IMAGE} - - -
    -
    - -
    -
    - -

    {L_LATEST_IMAGES_REPORTED}

    - - -
      - -
    • -
      -
      - {report_row.THUMBNAIL} - {report_row.IMAGE_NAME} {REPORTED_IMG} {UNAPPROVED_IMG}
      - {L_POST_BY_AUTHOR} {report_row.UPLOADER}
      - » {report_row.IMAGE_TIME} -
      {L_REPORT_MOD} {report_row.REPORT_MOD}
      -
      -
      - {L_REPORT_BY} {report_row.REPORTER}
      - {report_row.REPORT_TIME} -
      -
      -
    • - -
    - - {NO_REPORTED_IMAGE} - - -
    -
    - -
    -
    - -
    -
    -
    - -
    -
    -
    -

    {L_MOVE}

    -

    - {L_MOVE_TO_ALBUM}   {S_ALBUM_SELECT}   - - {S_HIDDEN_FIELDS}{S_FORM_TOKEN} -

    -
    -
    -
    - - - \ No newline at end of file diff --git a/template/gallery/plugins_header.html b/template/gallery/plugins_header.html deleted file mode 100644 index 2f3c374..0000000 --- a/template/gallery/plugins_header.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/template/gallery/posting_body.html b/template/gallery/posting_body.html deleted file mode 100644 index fc28645..0000000 --- a/template/gallery/posting_body.html +++ /dev/null @@ -1,228 +0,0 @@ - - - -
    -
    -
    -
    -

    {L_UPLOAD_IMAGE}

    - -

    - {L_SELECT_ALBUM}: - - {S_FORM_TOKEN}{S_HIDDEN_FIELDS} -

    -
    -
    -
    - - - -

    {ALBUM_NAME}

    - -
    - -
    -
    -

    {L_UPLOAD_IMAGE}

    -
    -

    {ERROR}

    - - - - - - -
    -
    -
    -
    - - -
    -
    -
    checked="checked" value="1" />
    -
    - -
    -
    -
    -
    {L_FILE_SIZE}: {S_MAX_FILESIZE}
    -
    {L_IMAGE_WIDTH}: {S_MAX_WIDTH}
    -
    {L_IMAGE_HEIGHT}: {S_MAX_HEIGHT}
    -
    -
    -
    -
    {S_ALLOWED_FILETYPES}
    -
    -
    - -
    -
    -
    - -
      -   -   -
    - -
    - - - - -
    -
    -
    - -
    -
    -
    - {S_HIDDEN_FIELDS}{S_CAPTCHA_HIDDEN_FIELDS} -   -   -
    - {S_FORM_TOKEN} -
    -
    -
    - - - - -

    {IMAGE_NAME}{ALBUM_NAME}

    - -
    - -
    -
    -

    {L_UPLOAD_IMAGE}{L_EDIT_IMAGE}{L_REPORT_IMAGE}

    - -
    -
    - - -
    -
    -
    - -
    -
    -
    {L_MOVE_TO_PERSONAL_MOD}{L_MOVE_TO_PERSONAL_EXPLAIN}
    -
    - - -
    -
    -
    checked="checked" value="1" />
    -
    - - -
    -
    -
    [ {L_FIND_USERNAME} ]
    -
    - -
    -
    -
    - - - - -
    -
    -
    - {S_HIDDEN_FIELDS} -   -   -
    - {S_FORM_TOKEN} -
    -
    -
    - - - \ No newline at end of file diff --git a/template/gallery/posting_javascript.html b/template/gallery/posting_javascript.html deleted file mode 100644 index 9ecd0c9..0000000 --- a/template/gallery/posting_javascript.html +++ /dev/null @@ -1,142 +0,0 @@ - \ No newline at end of file diff --git a/template/gallery/recent_body.html b/template/gallery/recent_body.html deleted file mode 100644 index 51447f7..0000000 --- a/template/gallery/recent_body.html +++ /dev/null @@ -1,55 +0,0 @@ - - - -

    {L_RECENT_COMMENTS}{L_RECENT_COMMENTS}{L_RECENT_COMMENTS}

    -
    style="display: none;"> - - -
    -
    - -
    - - - -

    {MINI_POST_IMG} {L_POST_BY_AUTHOR} {commentrow.POST_AUTHOR_FULL} » {commentrow.TIME}

    -
    {commentrow.TEXT}
    -
    -
    -
    {L_COMMENT_ON}:
    -
    {commentrow.UC_IMAGE_NAME}
    -
    {commentrow.UC_THUMBNAIL}
    -
     
    - -
    {L_UPLOADED_BY_USER} {commentrow.IMAGE_AUTHOR}
    -
    {commentrow.IMAGE_TIME}
    -
    - -
    -
    - -
    - - - - - -
    - \ No newline at end of file diff --git a/template/gallery/search_body.html b/template/gallery/search_body.html deleted file mode 100644 index c51b30d..0000000 --- a/template/gallery/search_body.html +++ /dev/null @@ -1,83 +0,0 @@ - - -

    {L_SEARCH}

    - -
    - -
    -
    -

    {L_SEARCH_QUERY}

    - -
    -
    -

    {L_SEARCH_KEYWORDS_EXPLAIN}
    -
    -
    -
    -
    -
    -

    {L_SEARCH_AUTHOR_EXPLAIN}
    -
    -
    -
    - -
    -
    - -
    -
    - -

    {L_SEARCH_OPTIONS}

    - -
    -
    -

    {L_SEARCH_ALBUMS_EXPLAIN}
    -
    -
    - -
    -
    -
    - - -
    -
    - - -
    -
    -
    -
    -
    -
    -
    - - -
    - -
    -
    -
    {S_SELECT_SORT_KEY}  - - -
    -
    -
    - -
    -
    - -
    -
    - -
    - {S_HIDDEN_FIELDS}  - -
    - -
    -
    - -
    - - \ No newline at end of file diff --git a/template/gallery/search_results.html b/template/gallery/search_results.html deleted file mode 100644 index ad299d6..0000000 --- a/template/gallery/search_results.html +++ /dev/null @@ -1,121 +0,0 @@ - - -

    {SEARCH_TITLE}{SEARCH_MATCHES}: {SEARCH_WORDS}

    -

    {L_IGNORED_TERMS}: {IGNORED_WORDS}

    - -

    {L_RETURN_TO_SEARCH_ADV}

    - - -
    -
    - - - - - - - -
    -
    - - - - - - - - - - - -
    - - -
    -
    - -
    - - - -

    {MINI_POST_IMG} {L_POST_BY_AUTHOR} {commentrow.POST_AUTHOR_FULL} » {commentrow.TIME}

    -
    {commentrow.TEXT}
    -
    -
    -
    {L_COMMENT_ON}:
    -
    {commentrow.UC_IMAGE_NAME}
    -
    {commentrow.UC_THUMBNAIL}

    - -
    {L_UPLOADED_BY_USER} {commentrow.IMAGE_AUTHOR}
    -
    {commentrow.IMAGE_TIME}
    -
    - -
    -
    - -
    - - - -
    - -
    - {L_PREVIOUS} - {L_NEXT} - - - - -
    - -
    - -
    - - - - - - - \ No newline at end of file diff --git a/template/gallery/ucp_gallery.html b/template/gallery/ucp_gallery.html deleted file mode 100644 index 1a9691d..0000000 --- a/template/gallery/ucp_gallery.html +++ /dev/null @@ -1,295 +0,0 @@ - - - - - - -

    {L_TITLE}

    -
    -
    -

    {L_TITLE_EXPLAIN}

    -
    -
    - {S_HIDDEN_FIELDS} - - {S_FORM_TOKEN} -
    -
    -
    -
    - - - - - - - -

    {L_TITLE}

    -
    -
    -

    {NAVIGATION} [{L_EDIT} | {L_DELETE} | {L_GOTO} | {L_UPLOAD_IMAGE}]

    -
      -
    • -
      -
      {L_ATTACHED_SUBALBUMS}{L_NO_SUBALBUMS}
      -
      -
    • -
    - - - - -
    - -
    - - - {S_FORM_TOKEN} -
    -
    - -
    -
    - - - -

    {L_TITLE}

    -
    -
    -

    {L_TITLE_EXPLAIN}

    - -
    -
    - - - - - \ No newline at end of file diff --git a/template/gallery/viewimage_body.html b/template/gallery/viewimage_body.html deleted file mode 100644 index 65bda73..0000000 --- a/template/gallery/viewimage_body.html +++ /dev/null @@ -1,343 +0,0 @@ - - -

    {IMAGE_NAME}

    - -
    -
    -

    {UC_PREVIOUS_IMAGE}
    {UC_PREVIOUS}

    -

    {UC_NEXT_IMAGE}
    {UC_NEXT}

    -
    {UC_IMAGE} -

    {L_IMAGE_REPORTED} -
    -
    -
    - -
    -
    -
    - - - -

    {IMAGE_NAME}

    -
    - -
    - -
    -
    -
    {CONTEST_RANK}
    -
    - -
    -
    -
    {IMAGE_TIME}
    -
    - -
    -
    -
    -
    - -
    -
    -
    {IMAGE_VIEW}
    -
    - -
    -
    -
    - -
    - -
    - - -
    -
    -
    {CONTEST_RESULT_HIDDEN}{IMAGE_RATING} ({L_YOUR_RATING}: {S_YOUR_RATING})
    -
    - -
    - - -

    {L_EXIF-DATA} - {L_SHOW_EXIF}

    -
    style="display: none;"> - -
    -
    -
    {exif_value.EXIF_VALUE}
    -
    - -
    - -
    - -
    -
    - - {POSTER_AVATAR}{POSTER_AVATAR}
    - - {POSTER_FULL}{POSTER_FULL} -
    - -
    {POSTER_RANK_TITLE}
    {POSTER_RANK_IMG}
    - -
     
    - -
    {L_POSTS}: {POSTER_POSTS}
    -
    {L_IMAGES}: {POSTER_GALLERY_IMAGES}{POSTER_GALLERY_IMAGES}
    -
    {L_JOINED}: {POSTER_JOINED}
    -
    {L_LOCATION}: {POSTER_FROM}
    -
    {L_IP}: {POSTER_IP} [ {L_WHOIS} ]
    - - - -
    {PROFILE_FIELD1_NAME}: {PROFILE_FIELD1_VALUE}
    - - - -
    {custom_fields.PROFILE_FIELD_NAME}: {custom_fields.PROFILE_FIELD_VALUE}
    - - - - -
    - -
    - - -
    -
    -
    - - -
    -
    - - - - {S_FORM_TOKEN} -
    -
    - - - -
    -
    -

    {L_IMAGE_DESC}

    -
    {IMAGE_DESC}
    -
    -
    - - - - -
    -
    -
    -

    {L_POST_COMMENT_RATE_IMAGE}{L_POST_COMMENT}{L_RATE_IMAGE}

    -
    - -
    -
    -
    - - - - - - - {CONTEST_RATING} - -
    -
    - - - -
    -
    -
    -
    - - - - - -
    - - {L_SMILIES}
    - - {smiley.SMILEY_CODE} - - - -
    {L_MORE_SMILIES} - - - -
    - {BBCODE_STATUS}
    - - {IMG_STATUS}
    - {FLASH_STATUS}
    - {URL_STATUS}
    - - {SMILIES_STATUS} - -
    {L_COMMENT_LENGTH} -
    -
    - -
    -
    -
    -
    - -
    - {CONTEST_COMMENTS} - - {S_FORM_TOKEN} -
    -
    -
    - - - - - -
    -
    - {L_IMAGE_COMMENTS_DISABLED}{L_NO_COMMENTS} -
    -
    - - -
    - -
    - - -
    -
    -
    - - - -

    {MINI_POST_IMG} {L_POST_BY_AUTHOR} {commentrow.POST_AUTHOR_FULL} » {commentrow.TIME}

    -
    {commentrow.TEXT}
    -
    {commentrow.EDIT_INFO}
    -
    {commentrow.SIGNATURE}
    -
    -
    -
    - - {commentrow.POSTER_AVATAR}{commentrow.POSTER_AVATAR}
    - - {commentrow.POST_AUTHOR_FULL}{commentrow.POST_AUTHOR_FULL} -
    - -
    {commentrow.RANK_TITLE}
    {commentrow.RANK_IMG}
    - -
     
    - -
    {L_POSTS}: {commentrow.POSTER_POSTS}
    -
    {L_IMAGES}: {commentrow.GALLERY_IMAGES}{commentrow.GALLERY_IMAGES}
    -
    {L_JOINED}: {commentrow.POSTER_JOINED}
    -
    {L_LOCATION}: {commentrow.POSTER_FROM}
    - - - -
    {commentrow.PROFILE_FIELD1_NAME}: {commentrow.PROFILE_FIELD1_VALUE}
    - - - -
    {commentrow.custom_fields.PROFILE_FIELD_NAME}: {commentrow.custom_fields.PROFILE_FIELD_VALUE}
    - - - - -
    - -
    - - -
    -
    -
    - - -
    -
    - -
    -
    -
    - -
    - -
    - - - -

    {L_RETURN_TO} {S_RETURN_LINK}

    -
    -
    - - - -
    -
    - - \ No newline at end of file diff --git a/template/index.htm b/template/index.htm index ee1f723..e69de29 100644 --- a/template/index.htm +++ b/template/index.htm @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/template/index_body.html b/template/index_body.html index bffcf93..73b0451 100644 --- a/template/index_body.html +++ b/template/index_body.html @@ -1,37 +1,76 @@ -
    + rightside">{LAST_VISIT_DATE}{CURRENT_TIME}

    +

    {CURRENT_TIME}

    +******************** --> + + + + + + + + + + +
    -

    {L_LOGIN_LOGOUT}  •  {L_REGISTER}

    +

    {L_LOGIN_LOGOUT}  •  {L_REGISTER}

    -


    + - - + -

    {L_WHO_IS_ONLINE}

    {L_WHO_IS_ONLINE}

    -

    {TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})
    {RECORD_USERS}

    {LOGGED_IN_USER_LIST} -
    {L_LEGEND}: {LEGEND}

    +
    +

    {L_WHO_IS_ONLINE}

    {L_WHO_IS_ONLINE}

    +

    + + {TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})
    {RECORD_USERS}

    {LOGGED_IN_USER_LIST} +
    {L_LEGEND}{L_COLON} {LEGEND} + +

    +
    - -

    {L_BIRTHDAYS}

    -

    {L_CONGRATULATIONS}: {BIRTHDAY_LIST}{L_NO_BIRTHDAYS}

    + +
    +

    {L_BIRTHDAYS}

    +

    + + {L_CONGRATULATIONS}{L_COLON} {birthdays.USERNAME} ({birthdays.AGE}), {L_NO_BIRTHDAYS} + +

    +
    -

    {L_STATISTICS}

    -

    {TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_IMAGES} • {TOTAL_USERS} • {NEWEST_USER}

    +
    +

    {L_STATISTICS}

    +

    + + {TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER} + +

    +
    - \ No newline at end of file + + + + diff --git a/template/jumpbox.html b/template/jumpbox.html index 5f37759..4b9e48a 100644 --- a/template/jumpbox.html +++ b/template/jumpbox.html @@ -1,32 +1,33 @@ + -

    {L_RETURN_TO} {FORUM_NAME}

    +

    {L_RETURN_TO_FORUM}

    -

    {L_RETURN_TO} {L_INDEX}

    +

    {L_RETURN_TO_INDEX}

    -

    {L_RETURN_TO}: {SEARCH_TOPIC}

    +

    {L_RETURN_TO_TOPIC}

    -

    {L_RETURN_TO_SEARCH_ADV}

    +

    {L_GO_TO_SEARCH_ADV}

    -
    - -
    - -
    - - - - -
    - + +
  •    {jumpbox_forums.FORUM_NAME}
  • + + + +
    +
    - -
    - + +

    + +
    diff --git a/template/login_body.html b/template/login_body.html index 229c9e3..ef08035 100644 --- a/template/login_body.html +++ b/template/login_body.html @@ -1,21 +1,21 @@ -
    +
    -
    +
    -

    {LOGIN_EXPLAIN}{L_LOGIN}

    +
    class="fields1"class="fields2">
    {LOGIN_ERROR}
    -
    +
    -
    -
    +
    +
    {L_FORGOT_PASS}
    {L_RESEND_ACTIVATION}
    @@ -32,28 +32,24 @@
    - -
    -
     
    -
    Du kannst Dich auch über unseren SSL-gesicherten Zugang - anmelden.
    -
    - + {S_LOGIN_REDIRECT}
     
    {S_HIDDEN_FIELDS}
    - {S_FORM_TOKEN} - {S_LOGIN_REDIRECT}
    -
    + + + + +
    -
    +

    {L_REGISTER}

    @@ -63,10 +59,10 @@

    {L_REGISTER}

    -
    +
    - \ No newline at end of file + diff --git a/template/login_body.html.original b/template/login_body.html.original deleted file mode 100644 index 352ef66..0000000 --- a/template/login_body.html.original +++ /dev/null @@ -1,67 +0,0 @@ - - -
    -
    -
    - -
    -

    {LOGIN_EXPLAIN}{L_LOGIN}

    - -
    class="fields1"class="fields2"> -
    {LOGIN_ERROR}
    -
    -
    -
    -
    -
    -
    -
    - -
    {L_FORGOT_PASS}
    -
    {L_RESEND_ACTIVATION}
    - -
    - - -
    -

    {L_CONFIRM_CODE_EXPLAIN}
    -
    {CONFIRM_IMAGE}
    -
    -
    - - - -
    -
    -
    -
    - -
    -
     
    -
    {S_HIDDEN_FIELDS}
    -
    - -
    -
    -
    -
    - - -
    -
    - -
    -

    {L_REGISTER}

    -

    {L_LOGIN_INFO}

    -

    {L_TERMS_USE} | {L_PRIVACY}

    -
    -

    {L_REGISTER}

    -
    - -
    -
    - - -
    - - \ No newline at end of file diff --git a/template/login_body_oauth.html b/template/login_body_oauth.html new file mode 100644 index 0000000..156485d --- /dev/null +++ b/template/login_body_oauth.html @@ -0,0 +1,8 @@ +
    + +
    +
     
    +
    {oauth.SERVICE_NAME}
    +
    + +
    diff --git a/template/login_forum.html b/template/login_forum.html index d74de15..7fa9736 100644 --- a/template/login_forum.html +++ b/template/login_forum.html @@ -1,37 +1,36 @@ - - - -

    - -

    {L_LOGIN} {FORUM_NAME}

    +

    {FORUM_NAME}

    {S_FORM_TOKEN}
    -

    {L_LOGIN_FORUM}

    - -
    - -
    -
     
    -
    {LOGIN_ERROR}
    -
    - -
    -
    -
    -
    -
    -
     
    -
    {S_HIDDEN_FIELDS}
    -
    -
    +
    + + +

    {L_LOGIN_FORUM}

    + +
    + +
    +
     
    +
    {LOGIN_ERROR}
    +
    + + +
    +
    +
    +
    + {S_LOGIN_REDIRECT} +
    +
     
    +
    {S_HIDDEN_FIELDS}
    +
    +
    +
    @@ -39,4 +38,4 @@
    - \ No newline at end of file + diff --git a/template/mcp_approve.html b/template/mcp_approve.html index eef8706..f7874ab 100644 --- a/template/mcp_approve.html +++ b/template/mcp_approve.html @@ -1,3 +1,30 @@ + + +

    {MESSAGE_TITLE}

    +

    {MESSAGE_TEXT}

    + + + + + + + + + + + +
    +   + +
    + + +
    @@ -7,27 +34,27 @@
    -

    {MESSAGE_TITLE}

    -

    {ADDITIONAL_MSG}

    +

    {MESSAGE_TITLE}

    +

    {ADDITIONAL_MSG}

    -
    +
     
    - +
    -
    +
    -

    {L_CAN_LEAVE_BLANK}
    +

    {L_CAN_LEAVE_BLANK}
    @@ -39,7 +66,7 @@
    - {S_HIDDEN_FIELDS}  + {S_HIDDEN_FIELDS} 
    @@ -50,4 +77,5 @@ - \ No newline at end of file + + diff --git a/template/mcp_ban.html b/template/mcp_ban.html index 270fd94..5b798d9 100644 --- a/template/mcp_ban.html +++ b/template/mcp_ban.html @@ -5,27 +5,34 @@ var ban_length = new Array(); ban_length[-1] = ''; - - ban_length['{ban_length.BAN_ID}'] = '{ban_length.A_LENGTH}'; - - var ban_reason = new Array(); ban_reason[-1] = ''; - - ban_reason['{ban_reason.BAN_ID}'] = '{ban_reason.A_REASON}'; - - var ban_give_reason = new Array(); ban_give_reason[-1] = ''; - - ban_give_reason['{ban_give_reason.BAN_ID}'] = '{ban_give_reason.A_REASON}'; - + + + ban_length['{bans.BAN_ID}'] = '{bans.A_LENGTH}'; + + ban_reason['{bans.BAN_ID}'] = '{bans.A_REASON}'; + + + ban_give_reason['{bans.BAN_ID}'] = '{bans.A_GIVE_REASON}'; + + function display_details(option) { - document.getElementById('unbangivereason').innerHTML = ban_give_reason[option]; - document.getElementById('unbanreason').innerHTML = ban_reason[option]; document.getElementById('unbanlength').innerHTML = ban_length[option]; + if (option in ban_reason) { + document.getElementById('unbanreason').innerHTML = ban_reason[option]; + } else { + document.getElementById('unbanreason').innerHTML = ''; + } + if (option in ban_give_reason) { + document.getElementById('unbangivereason').innerHTML = ban_give_reason[option]; + } else { + document.getElementById('unbangivereason').innerHTML = ''; + } } // ]]> @@ -42,41 +49,43 @@

    {L_EXPLAIN}

    +
    -
    -
    +
    +
    {L_FIND_USERNAME}
    -
    +
    -
    +
    -
    +

    -

    {L_BAN_EXCLUDE_EXPLAIN}
    +

    {L_BAN_EXCLUDE_EXPLAIN}
    - +
    +
    - {S_HIDDEN_FIELDS}  + {S_HIDDEN_FIELDS}  {S_FORM_TOKEN}
    @@ -89,29 +98,31 @@
    +
    -
    +
    -
    {L_BAN_LENGTH}:
    +
    {L_BAN_LENGTH}{L_COLON}
    -
    {L_BAN_REASON}:
    +
    {L_BAN_REASON}{L_COLON}
    -
    {L_BAN_GIVE_REASON}:
    +
    {L_BAN_GIVE_REASON}{L_COLON}
    +
    - {S_HIDDEN_FIELDS}  + {S_HIDDEN_FIELDS} 
    @@ -125,4 +136,4 @@ - \ No newline at end of file + diff --git a/template/mcp_footer.html b/template/mcp_footer.html index cc150bb..89ce7c3 100644 --- a/template/mcp_footer.html +++ b/template/mcp_footer.html @@ -1,9 +1,8 @@
    -
    - \ No newline at end of file + diff --git a/template/mcp_forum.html b/template/mcp_forum.html index 1ed65ff..06594ca 100644 --- a/template/mcp_forum.html +++ b/template/mcp_forum.html @@ -3,53 +3,99 @@ -

    {L_FORUM}: {FORUM_NAME}

    +

    {L_FORUM}{L_COLON} {FORUM_NAME}

    - - - +
    + +
    -
    +
    {topicrow.REPLIES} {L_REPLIES}
    -
    {L_LAST_POST} {L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL} {L_POSTED_ON_DATE}
    {topicrow.LAST_POST_TIME}
    -
    +
    {L_LAST_POST} {L_POST_BY_AUTHOR} {topicrow.LAST_POST_AUTHOR_FULL}
    {topicrow.LAST_POST_TIME}
    +
    checked="checked" /> 
    + @@ -61,31 +107,35 @@
    - {L_NEXT} - {L_PREVIOUS} - - - + + + +

    - - - +
    + +
    +
    + + {S_FORM_TOKEN}
    +
    - \ No newline at end of file + diff --git a/template/mcp_front.html b/template/mcp_front.html index 8f83fcf..8fe7dfd 100644 --- a/template/mcp_front.html +++ b/template/mcp_front.html @@ -2,6 +2,8 @@

    {PAGE_TITLE}

    + +
    @@ -10,30 +12,31 @@

    {L_LATEST_UNAPPROVED}

    -

    {L_UNAPPROVED_TOTAL}

    +

    {L_UNAPPROVED_TOTAL}

    -
    @@ -52,7 +53,7 @@
    {S_HIDDEN_FIELDS} -   +  
    @@ -60,54 +61,101 @@
    + +

    {L_LATEST_REPORTED}

    -

    {L_REPORTS_TOTAL}

    +

    {L_REPORTS_TOTAL}

    -
      +
      • -
        {L_VIEW_DETAILS}
        +
        {L_VIEW_DETAILS}
        {L_REPORTER} & {L_FORUM}
      -
        +
        • - {report.SUBJECT} {report.ATTACH_ICON_IMG}
          - {L_POSTED} {L_POST_BY_AUTHOR} {report.AUTHOR_FULL} {L_POSTED_ON_DATE} {report.POST_TIME} +
          + {report.SUBJECT} {report.ATTACH_ICON_IMG}
          + {L_POSTED} {L_POST_BY_AUTHOR} {report.AUTHOR_FULL} » {report.POST_TIME} +
          {L_REPORTED} {L_POST_BY_AUTHOR} {report.REPORTER_FULL} {L_REPORTED_ON_DATE} {report.REPORT_TIME}
          - {L_FORUM}: {report.FORUM_NAME}
          + {L_FORUM}{L_COLON} {report.FORUM_NAME}
        - -

        {L_REPORTS_ZERO_TOTAL}

    + + + +
    +
    + +

    {L_LATEST_REPORTED_PMS}

    +

    {L_PM_REPORTS_TOTAL}

    + + +
      +
    • +
      +
      {L_VIEW_DETAILS}
      +
      {L_REPORTER}
      +
      +
    • +
    +
      + + +
    • +
      +
      +
      + {pm_report.PM_SUBJECT} {pm_report.ATTACH_ICON_IMG}
      + {L_MESSAGE_BY_AUTHOR} {pm_report.PM_AUTHOR_FULL} » {pm_report.PM_TIME}
      + {L_MESSAGE_TO} {pm_report.RECIPIENTS} +
      +
      +
      + {L_REPORTED} {L_POST_BY_AUTHOR} {pm_report.REPORTER_FULL} {L_REPORTED_ON_DATE} {pm_report.REPORT_TIME} +
      +
      +
    • + +
    + + +
    +
    + + + +
    - +

    {L_LATEST_LOGS}

    - +
    @@ -130,7 +178,7 @@ - + @@ -140,4 +188,6 @@ - \ No newline at end of file + + + diff --git a/template/mcp_header.html b/template/mcp_header.html index 42924f1..5841c1b 100644 --- a/template/mcp_header.html +++ b/template/mcp_header.html @@ -3,17 +3,15 @@

    {L_MCP}

    -

    - [ {L_MCP} | {L_MODERATE_FORUM} - | {L_MODERATE_TOPIC} - | {L_MODERATE_POST} ] +

    + [ {L_ACP} | {L_MCP} | {L_MODERATE_FORUM} | {L_MODERATE_TOPIC} | {L_MODERATE_POST} ]

    -
    +
    @@ -23,14 +21,14 @@
    -
    -
    {L_ACTION}
    {L_NO_ENTRIES}{L_NO_ENTRIES}
    +
    - - - - + + + + @@ -29,8 +34,8 @@ - - + + @@ -46,23 +51,19 @@
    {L_USERNAME}{L_IP}{L_TIME}{L_ACTION}{L_USERNAME}{L_IP}{L_TIME}{L_ACTION} {L_MARK}
    {log.USERNAME}{log.IP}{log.DATE}{log.IP}{log.DATE} {log.ACTION}
    {log.DATA}
    -
    - {L_NEXT} - {L_PREVIOUS} - - - - -
    +
    + -
    + +
    - {S_FORM_TOKEN}
    @@ -71,7 +72,7 @@
      - +
    {L_MARK_ALL} :: {L_UNMARK_ALL}
    @@ -84,4 +85,4 @@
    - \ No newline at end of file + diff --git a/template/mcp_message.html b/template/mcp_message.html index 1fde48b..062103b 100644 --- a/template/mcp_message.html +++ b/template/mcp_message.html @@ -1,8 +1,8 @@
    -

    {MESSAGE_TITLE}

    +

    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    - \ No newline at end of file + diff --git a/template/mcp_move.html b/template/mcp_move.html index 9aae88a..45a9ae8 100644 --- a/template/mcp_move.html +++ b/template/mcp_move.html @@ -1,19 +1,53 @@ + + +

    {MESSAGE_TITLE}

    +

    {MESSAGE_TEXT}

    + +

    {ADDITIONAL_MSG}

    + + + + + + + + + + + +
    +   + +
    + + + + +
    -

    {MESSAGE_TITLE}

    +

    {MESSAGE_TITLE}

    {ADDITIONAL_MSG}

    -
    +
    -
    +
    +
     
    @@ -22,7 +56,7 @@
    - {S_HIDDEN_FIELDS}  + {S_HIDDEN_FIELDS}  {S_FORM_TOKEN}
    @@ -33,4 +67,5 @@
    - \ No newline at end of file + + diff --git a/template/mcp_notes_front.html b/template/mcp_notes_front.html index b455254..11f3623 100644 --- a/template/mcp_notes_front.html +++ b/template/mcp_notes_front.html @@ -9,7 +9,7 @@
    -
    +
    {L_FIND_USERNAME}
    @@ -19,10 +19,10 @@
    -   +   {S_FORM_TOKEN}
    - \ No newline at end of file + diff --git a/template/mcp_notes_user.html b/template/mcp_notes_user.html index 7be61a0..62d0562 100644 --- a/template/mcp_notes_user.html +++ b/template/mcp_notes_user.html @@ -7,7 +7,7 @@
    -

    {USERNAME}{USERNAME}

    +

    {USERNAME_FULL}

    @@ -16,11 +16,11 @@
    -
    {L_RANK}:
    {RANK_TITLE}
    -
     {L_RANK}:
    {RANK_IMG}
    -
    {L_JOINED}:
    {JOINED}
    -
    {L_TOTAL_POSTS}:
    {POSTS}
    -
    {L_WARNINGS}:
    {WARNINGS}
    +
    {L_RANK}{L_COLON}
    {RANK_TITLE}
    +
     {L_RANK}{L_COLON}
    {RANK_IMG}
    +
    {L_JOINED}{L_COLON}
    {JOINED}
    +
    {L_TOTAL_POSTS}{L_COLON}
    {POSTS}
    +
    {L_WARNINGS}{L_COLON}
    {WARNINGS}
    @@ -42,27 +42,32 @@
    - {S_HIDDEN_FIELDS}  + {S_HIDDEN_FIELDS}  {S_FORM_TOKEN}
    -
    +
    - +
    + {L_SEARCH_KEYWORDS}{L_COLON}   + +
    - +
    - - - + + + @@ -71,41 +76,35 @@ - - + + - + - +
    {L_REPORT_BY}{L_IP}{L_TIME}{L_REPORT_BY}{L_IP}{L_TIME} {L_ACTION_NOTE} {L_MARK}
    {usernotes.REPORT_BY}{usernotes.IP}{usernotes.REPORT_AT}{usernotes.IP}{usernotes.REPORT_AT} {usernotes.ACTION}
    {L_NO_ENTRIES}
    -
    - -
    - {L_NEXT} - {L_PREVIOUS} - - - -
    +
    + -
    - - + +
    -
    +
    @@ -114,9 +113,9 @@
    - +
    - \ No newline at end of file + diff --git a/template/mcp_post.html b/template/mcp_post.html index 90f49a7..e0da0e8 100644 --- a/template/mcp_post.html +++ b/template/mcp_post.html @@ -1,16 +1,20 @@ + +

    {L_PM_REPORT_DETAILS}

    +

    {L_REPORT_DETAILS}

    +
    -

    {L_REPORT_REASON}: {REPORT_REASON_TITLE}

    -

    {L_REPORTED} {L_POST_BY_AUTHOR} {REPORTER_FULL} {L_REPORTED_ON_DATE} {REPORT_DATE}

    - -

    {L_REPORT_CLOSED}

    +

    {L_REPORT_REASON}{L_COLON} {REPORT_REASON_TITLE}

    +

    {L_REPORTED} {L_POST_BY_AUTHOR} {REPORTER_FULL} « {REPORT_DATE}

    + +

    {L_REPORT_CLOSED}

    @@ -24,10 +28,10 @@
    -
    +
    - +   @@ -44,21 +48,52 @@
    - -
      -
    • {L_EDIT_POST}
    • +

      {POST_SUBJECT}

      + + - -

      {POST_SUBJECT}

      -

      {MINI_POST_IMG} {L_POSTED} {L_POST_BY_AUTHOR} {POST_AUTHOR_FULL} {L_POSTED_ON_DATE} {POST_DATE}

      + +

      + {L_SENT_AT}{L_COLON} {POST_DATE} +
      {L_PM_FROM}{L_COLON} {POST_AUTHOR_FULL} +
      {L_TO}{L_COLON} {to_recipient.NAME_FULL}{to_recipient.NAME}  +
      {L_BCC}{L_COLON} {bcc_recipient.NAME_FULL}{bcc_recipient.NAME}  +

      + +

      {MINI_POST_IMG} {L_POSTED} {L_POST_BY_AUTHOR} {POST_AUTHOR_FULL} » {POST_DATE}

      + -

      -   - +

      +   + + + + {S_FORM_TOKEN} +

      + + +
      + +

      +   + + {S_FORM_TOKEN}

      @@ -66,12 +101,12 @@ -

      +

      {REPORTED_IMG} {L_MESSAGE_REPORTED}

      - -
      + +
      {POST_PREVIEW}
      @@ -84,13 +119,20 @@ + +
      + {DELETED_MESSAGE} +
      {L_REASON}{L_COLON} {DELETE_REASON} +
      + +
      {SIGNATURE}

      -
      {L_THIS_POST_IP}: +
      {L_THIS_PM_IP}{L_THIS_POST_IP}{L_COLON} {POST_IPADDR}{POST_IP} ({POST_IP}{L_LOOKUP_IP}) {POST_IPADDR} ({POST_IP}){POST_IP} ({L_LOOKUP_IP}) @@ -102,7 +144,7 @@
      - +
      @@ -112,7 +154,7 @@
      -
      +
      @@ -125,13 +167,15 @@
      - + + +
      -
      +
      {usernotes.ACTION}
      - +
      @@ -194,7 +238,7 @@
    -   +   {S_FORM_TOKEN}
    @@ -211,10 +255,10 @@

    {L_MCP_POST_REPORTS}

    - {L_REPORTED_BY}: {reports.REPORTER}{reports.REPORTER} {L_REPORTED_ON_DATE} {reports.REPORT_TIME} -

    {reports.REASON_TITLE}: {reports.REASON_DESC}
    {reports.REPORT_TEXT}

    + {L_REPORTED_BY}{L_COLON} {reports.REPORTER}{reports.REPORTER} « {reports.REPORT_TIME} +

    {reports.REASON_TITLE}{L_COLON} {reports.REASON_DESC}
    {reports.REPORT_TEXT}

    - +
    @@ -223,13 +267,13 @@
    -

    {L_THIS_POST_IP}: +

    {L_THIS_POST_IP}{L_COLON} {POST_IPADDR}{POST_IP} ({POST_IP}{L_LOOKUP_IP}) {POST_IPADDR} ({POST_IP}){POST_IP} ({L_LOOKUP_IP})

    - +
    @@ -250,7 +294,7 @@
    {L_OTHER_USERS}
    - +
    @@ -281,4 +325,4 @@ - \ No newline at end of file + diff --git a/template/mcp_queue.html b/template/mcp_queue.html index c23ff03..b192d46 100644 --- a/template/mcp_queue.html +++ b/template/mcp_queue.html @@ -3,7 +3,7 @@
    - + {S_FORM_TOKEN}
    @@ -16,44 +16,57 @@

    {L_EXPLAIN}

    - -
      +
      + +
      + +
      • -
        {L_TOPIC}{L_POST}
        +
        {L_TOPIC}{L_POST}
        {L_TOPIC} & {L_FORUM}
        {L_MARK}
      -
        +
        - {L_NEXT} - {L_PREVIOUS} - + @@ -71,14 +82,25 @@
        - +
        + +
        + -

        {L_NO_TOPICS_QUEUE}{L_UNAPPROVED_POSTS_ZERO_TOTAL}

        +

        + + {L_NO_TOPICS_DELETED}{L_NO_POSTS_DELETED} + + {L_NO_TOPICS_QUEUE}{L_NO_POSTS_QUEUE} + +

        @@ -86,11 +108,22 @@
        + +   + +   - + +
        - \ No newline at end of file + diff --git a/template/mcp_reports.html b/template/mcp_reports.html index 9c8469e..eb380d0 100644 --- a/template/mcp_reports.html +++ b/template/mcp_reports.html @@ -2,11 +2,13 @@
        +
        - + {S_FORM_TOKEN}
        +

        {L_TITLE}

        @@ -16,34 +18,61 @@

        {L_EXPLAIN}

        - -
          +
          + +
          + +
          • -
            {L_VIEW_DETAILS}
            -
            {L_REPORTER} & {L_FORUM}
            +
            {L_VIEW_DETAILS}
            +
            {L_REPORTER} & {L_FORUM}
            {L_MARK}
          -
            +
            • +
              - {postrow.POST_SUBJECT} {postrow.ATTACH_ICON_IMG}
              - {L_POSTED} {L_POST_BY_AUTHOR} {postrow.POST_AUTHOR_FULL} {L_POSTED_ON_DATE} {postrow.POST_TIME} +
              + {postrow.PM_SUBJECT}
              + {L_MESSAGE_BY_AUTHOR} {postrow.PM_AUTHOR_FULL} » {postrow.PM_TIME}
              + {L_MESSAGE_TO} {postrow.RECIPIENTS} + +
              - {postrow.REPORTER_FULL} {L_REPORTED_ON_DATE} {postrow.REPORT_TIME}
              - {L_FORUM}: {postrow.FORUM_NAME}
              + {postrow.REPORTER_FULL} « {postrow.REPORT_TIME}
              + +
              +
              + {postrow.POST_SUBJECT} {postrow.ATTACH_ICON_IMG}
              + {L_POSTED} {L_POST_BY_AUTHOR} {postrow.POST_AUTHOR_FULL} » {postrow.POST_TIME} + +
              +
              +
              + {postrow.REPORTER_FULL} « {postrow.REPORT_TIME}
              + {L_FORUM}{L_COLON} {postrow.FORUM_NAME}{postrow.FORUM_NAME}
              +
              +
            • @@ -51,20 +80,24 @@
            - {L_NEXT} - {L_PREVIOUS} - +
            +
            - + +
            + +

            {L_NO_REPORTS}

            @@ -74,7 +107,7 @@ -
            +
              @@ -82,4 +115,4 @@ - \ No newline at end of file + diff --git a/template/mcp_topic.html b/template/mcp_topic.html index de27091..e18e3dc 100644 --- a/template/mcp_topic.html +++ b/template/mcp_topic.html @@ -1,87 +1,79 @@ -

            {L_TOPIC}: {TOPIC_TITLE}

            - - - -
            +
            +
            -
            +
            -

            {L_POSTS_PER_PAGE_EXPLAIN}
            -
            +

            {L_POSTS_PER_PAGE_EXPLAIN}
            +
            -
            +
            {S_SELECT_SORT_DAYS}  
            -
            +

            {L_SPLIT_TOPIC_EXPLAIN}

            -
            +
            +
            -
            -
            +
            +
            +
            -
            +
            -
            +

            {L_MERGE_TOPIC_EXPLAIN}

            -
            +
            - + {L_SELECT_TOPIC}
            {TO_TOPIC_INFO}
            @@ -95,26 +87,48 @@ onload_functions.push('subPanels()');
            -

            +

            {L_EXPAND_VIEW} - {L_TOPIC_REVIEW}: {TOPIC_TITLE} + {L_TOPIC_REVIEW}{L_COLON} {TOPIC_TITLE}

            -
            +
            -
            {L_POST_DETAILS} | {L_SELECT}: checked="checked" />
            +

            {postrow.POST_SUBJECT}

            {postrow.MINI_POST_IMG} {L_POSTED} {postrow.POST_DATE} {L_POST_BY_AUTHOR} {postrow.POST_AUTHOR_FULL} [ {L_POST_DETAILS} ]

            - -

            - {UNAPPROVED_IMG} {L_POST_UNAPPROVED} - {REPORTED_IMG} {L_POST_REPORTED} + +

            + {L_POST_UNAPPROVED} +

            + + + +

            + {L_POST_DELETED} +

            + + + +

            + {L_POST_REPORTED}

            @@ -138,14 +152,16 @@ onload_functions.push('subPanels()');
            - - - +
            + +
            @@ -156,15 +172,17 @@ onload_functions.push('subPanels()'); + +   - + {S_HIDDEN_FIELDS} {S_FORM_TOKEN}
            - \ No newline at end of file + diff --git a/template/mcp_viewlogs.html b/template/mcp_viewlogs.html deleted file mode 100644 index 264152d..0000000 --- a/template/mcp_viewlogs.html +++ /dev/null @@ -1,53 +0,0 @@ - - -
            - -
    {L_IPS_POSTED_FROM}
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - {S_FORM_TOKEN} -
    -
    {L_DISPLAY_OPTIONS}
    {L_DISPLAY_LOG}: {S_SELECT_SORT_DAYS} {L_SORT_BY} {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR} 
    {L_USERNAME}{L_IP}{L_TIME}{L_ACTION}
    {L_LOGS_CURRENT_TOPIC} {TOPIC_NAME}
    {log.USERNAME}{log.IP}{log.TIME}{log.ACTION}{L_VIEW_TOPIC} | {L_VIEW_TOPIC_LOGS}
    {L_NO_ENTRIES}
    - - - - - - - -
    {L_GOTO_PAGE} {L_PREVIOUS}  {PAGINATION}  {L_NEXT}
    - - \ No newline at end of file diff --git a/template/mcp_warn_front.html b/template/mcp_warn_front.html index bec77cb..9b188b5 100644 --- a/template/mcp_warn_front.html +++ b/template/mcp_warn_front.html @@ -11,7 +11,7 @@
    -
    +
    {L_FIND_USERNAME}
    @@ -21,7 +21,7 @@
    -   +   {S_FORM_TOKEN}
    @@ -33,7 +33,7 @@

    {L_MOST_WARNINGS}

    - +
    @@ -51,11 +51,11 @@ - +
    {L_USERNAME}{highest.WARNING_TIME} {L_VIEW_NOTES}
    -

    {L_WARNINGS_ZERO_TOTAL}

    +

    {L_NO_WARNINGS}

    @@ -67,7 +67,7 @@

    {L_LATEST_WARNINGS}

    - +
    @@ -88,10 +88,10 @@
    {L_USERNAME}
    -

    {L_WARNINGS_ZERO_TOTAL}

    +

    {L_NO_WARNINGS}

    - \ No newline at end of file + diff --git a/template/mcp_warn_list.html b/template/mcp_warn_list.html index 9fe2309..779bf6a 100644 --- a/template/mcp_warn_list.html +++ b/template/mcp_warn_list.html @@ -10,14 +10,18 @@

    {L_WARNED_USERS_EXPLAIN}

    - - - +
    + +
    + +
    @@ -38,22 +42,28 @@
    {L_USERNAME}
    - +
    - +
    +
    - - + +
    + +
    + -

    {L_WARNINGS_ZERO_TOTAL}

    +

    {L_NO_WARNINGS}

    @@ -63,4 +73,4 @@ - \ No newline at end of file + diff --git a/template/mcp_warn_post.html b/template/mcp_warn_post.html index 61162bc..5e39480 100644 --- a/template/mcp_warn_post.html +++ b/template/mcp_warn_post.html @@ -16,11 +16,11 @@
    -
    {L_RANK}:
    {RANK_TITLE}
    -
     {L_RANK}:
    {RANK_IMG}
    -
    {L_JOINED}:
    {JOINED}
    -
    {L_TOTAL_POSTS}:
    {POSTS}
    -
    {L_WARNINGS}:
    {WARNINGS}
    +
    {L_RANK}{L_COLON}
    {RANK_TITLE}
    +
     {L_RANK}{L_COLON}
    {RANK_IMG}
    +
    {L_JOINED}{L_COLON}
    {JOINED}
    +
    {L_TOTAL_POSTS}{L_COLON}
    {POSTS}
    +
    {L_WARNINGS}{L_COLON}
    {WARNINGS}
    @@ -44,6 +44,8 @@ + +
    @@ -52,21 +54,25 @@
    +

     
    +
    + +
    -   +   {S_FORM_TOKEN}
    - \ No newline at end of file + diff --git a/template/mcp_warn_user.html b/template/mcp_warn_user.html index a45d8cd..f4dbf28 100644 --- a/template/mcp_warn_user.html +++ b/template/mcp_warn_user.html @@ -7,7 +7,7 @@
    -

    {USERNAME}{USERNAME}

    +

    {USERNAME_FULL}

    @@ -16,11 +16,11 @@
    -
    {L_RANK}:
    {RANK_TITLE}
    -
     {L_RANK}:
    {RANK_IMG}
    -
    {L_JOINED}:
    {JOINED}
    -
    {L_TOTAL_POSTS}:
    {POSTS}
    -
    {L_WARNINGS}:
    {WARNINGS}
    +
    {L_RANK}{L_COLON}
    {RANK_TITLE}
    +
     {L_RANK}{L_COLON}
    {RANK_IMG}
    +
    {L_JOINED}{L_COLON}
    {JOINED}
    +
    {L_TOTAL_POSTS}{L_COLON}
    {POSTS}
    +
    {L_WARNINGS}{L_COLON}
    {WARNINGS}
    @@ -28,6 +28,8 @@
    + +
    @@ -36,21 +38,25 @@
    +

     
    +
    + +
    -   +   {S_FORM_TOKEN}
    - \ No newline at end of file + diff --git a/template/mcp_whois.html b/template/mcp_whois.html index cfcf10b..1d08a46 100644 --- a/template/mcp_whois.html +++ b/template/mcp_whois.html @@ -3,14 +3,20 @@ - \ No newline at end of file + diff --git a/template/memberlist_body.html b/template/memberlist_body.html index ec4bcd2..997147f 100644 --- a/template/memberlist_body.html +++ b/template/memberlist_body.html @@ -1,117 +1,103 @@ -
    - - - - - + + - - style="color:#{GROUP_COLOR};">{GROUP_NAME} +

    style="color:#{GROUP_COLOR};">{GROUP_NAME}

    + +

    {L_MANAGE_GROUP}

    +

    {GROUP_DESC} {GROUP_TYPE}

    +

    {AVATAR_IMG} {RANK_IMG} {GROUP_RANK}

    - -

    {PAGE_TITLE}: {SEARCH_WORDS}

    - -
    -
    - - - +

    {PAGE_TITLE}{L_COLON} {SEARCH_WORDS}

    + +
    + + +
    +
    - +
    - + - + + - + +
    {L_RANK}{L_GROUP_LEADER}{L_USERNAME}{L_RANK}{L_GROUP_LEADER}{L_USERNAME} {L_POSTS}{L_WEBSITE}{L_COMMA_SEPARATOR}{L_LOCATION}{L_COMMA_SEPARATOR} {custom_fields.PROFILE_FIELD_NAME} {L_JOINED} {L_LAST_ACTIVE}
     
    - -
    + +
    - +
    + + + + + + + - - - - + + + + + @@ -119,12 +105,12 @@ - - - - + + + + - + @@ -151,20 +137,24 @@
    - {L_PREVIOUS} - {L_NEXT} - - + + +
    -
    - - +
    + +
    diff --git a/template/memberlist_email.html b/template/memberlist_email.html index 465f784..eea699d 100644 --- a/template/memberlist_email.html +++ b/template/memberlist_email.html @@ -1,48 +1,90 @@ -

    {L_SEND_EMAIL_USER} {USERNAME}

    + + + +

    {L_CONTACT_ADMIN}

    + +

    {L_SEND_EMAIL_USER}

    + +

    {L_EMAIL_TOPIC}

    + -
    -
    + +
    +
    +
    +
    + {CONTACT_INFO} +
    +
    +
    +
    +
    + +
    +
    +

    {ERROR_MESSAGE}

    -
    -
    {USERNAME}
    +
    +
    {USERNAME_FULL}
    -
    +
    + +
    +
    +
    {L_ADMINISTRATOR}
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    -
    -
    +
    +
    -
    +
    -

    +

    {L_DEST_LANG_EXPLAIN}
    -

    +

    {L_EMAIL_BODY_EXPLAIN}
    +
     
    -
    +
    +
    @@ -62,4 +104,4 @@ - \ No newline at end of file + diff --git a/template/memberlist_im.html b/template/memberlist_im.html index 815a206..beed0aa 100644 --- a/template/memberlist_im.html +++ b/template/memberlist_im.html @@ -1,79 +1,41 @@ - -

    {L_SEND_IM}

    +

    {L_SEND_IM}

    - +

    {L_SEND_IM_EXPLAIN}

    + +

    {L_IM_SENT_JABBER}

    + +
    -
    -
    {USERNAME} [ {IM_CONTACT} ] {PRESENCE_IMG}
    +
    +
    {USERNAME} [ {IM_CONTACT} ] {PRESENCE_IMG}
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
     
    -
    -
    - - - - - - -
    -
     
    -
    {L_IM_ADD_CONTACT}
    -
    {L_IM_SEND_MESSAGE}
    -
    {L_IM_DOWNLOAD_APP} | {L_IM_AIM_EXPRESS}
    -
    - - - -
    -
     
    -
    -
    {L_IM_ADD_CONTACT}
    -
    {L_IM_SEND_MESSAGE}
    -
    - -
    -
    +
     
    - - -
     
    -
    {L_IM_NO_JABBER}
    +
    {L_IM_SENT_JABBER}
    - - - +
     
    -
    {L_IM_SENT_JABBER}
    +
    {L_IM_NO_JABBER}
    {S_FORM_TOKEN} @@ -81,77 +43,8 @@
    -{L_CLOSE_WINDOW} - +{L_CLOSE_WINDOW} - \ No newline at end of file + diff --git a/template/memberlist_leaders.html b/template/memberlist_leaders.html deleted file mode 100644 index c93a19a..0000000 --- a/template/memberlist_leaders.html +++ /dev/null @@ -1,76 +0,0 @@ - - -

    {PAGE_TITLE}

    - -
    - -
    -
    - -
    {L_RANK}{L_GROUP_MEMBERS}{L_USERNAME}{L_POSTS}{L_COMMA_SEPARATOR} {custom_fields.PROFILE_FIELD_NAME}{L_JOINED}{L_LAST_ACTIVE} {L_GROUP_MEMBERS}    {L_POSTS}{L_COMMA_SEPARATOR} {custom_fields.PROFILE_FIELD_NAME}{L_JOINED}{L_LAST_ACTIVE}
    {memberrow.RANK_IMG}{memberrow.RANK_TITLE} {memberrow.USERNAME_FULL}
    {L_SELECT} ]
    {memberrow.POSTS}{memberrow.POSTS}
    {memberrow.LOCATION}
     
    {memberrow.RANK_IMG}{memberrow.RANK_TITLE} {memberrow.USERNAME_FULL} ({L_INACTIVE})
    {L_SELECT} ]
    {memberrow.POSTS}{memberrow.POSTS}
    {memberrow.custom_fields.PROFILE_FIELD_VALUE}
     
    {memberrow.JOINED}{memberrow.VISITED} {memberrow.LAST_ACTIVE} 
    - - - - - - - - - - - - - - - - - - - - -
    {L_RANK} {L_ADMINISTRATORS}{L_PRIMARY_GROUP}{L_FORUMS}
    {admin.RANK_IMG}{admin.RANK_TITLE}{admin.USERNAME_FULL} - style="font-weight: bold; color:#{admin.GROUP_COLOR}" href="{admin.U_GROUP}">{admin.GROUP_NAME} - - {admin.GROUP_NAME} - -
    {L_NO_MEMBERS}
    - -
    -
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - -
    {L_MODERATORS}  
    {mod.RANK_IMG}{mod.RANK_TITLE}{mod.USERNAME_FULL} - style="font-weight: bold; color:#{mod.GROUP_COLOR}" href="{mod.U_GROUP}">{mod.GROUP_NAME} - - {mod.GROUP_NAME} - {L_ALL_FORUMS}
    {L_NO_MEMBERS}
    - -
    -
    - - - - - \ No newline at end of file diff --git a/template/memberlist_search.html b/template/memberlist_search.html index 92aa638..b1c7a81 100644 --- a/template/memberlist_search.html +++ b/template/memberlist_search.html @@ -1,45 +1,3 @@ - - - - - -

    {L_FIND_USERNAME}

    @@ -48,62 +6,69 @@ function insert_single(user)

    {L_FIND_USERNAME_EXPLAIN}

    +
    -
    -
    -
    +
    +
    +
    + + +
    +
    -
    +
    + +
    -
    -
    -
    -
    -
    -
    +
    +
    +
    -
    -
    +
    +
    +
    -
    -
    +
    +
    -
    +
    -
    +
    -
    -
    +
    +
    -
    +
    -
    -
    -
    -
    -
    -
    -
    -
    +
    diff --git a/template/memberlist_team.html b/template/memberlist_team.html new file mode 100644 index 0000000..327dde4 --- /dev/null +++ b/template/memberlist_team.html @@ -0,0 +1,47 @@ + + +

    {PAGE_TITLE}

    + + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    {L_RANK} {group.GROUP_NAME}{group.GROUP_NAME}{L_PRIMARY_GROUP}{L_MODERATOR}
    {group.user.RANK_IMG}{group.user.RANK_TITLE}{group.user.USERNAME_FULL} ({L_INACTIVE}) + style="font-weight: bold; color: #{group.user.GROUP_COLOR}" href="{group.user.U_GROUP}">{group.user.GROUP_NAME} + + {group.user.GROUP_NAME} + {group.user.FORUMS}-
    {L_NO_MEMBERS}
    + +
    +
    + + +
    + + + diff --git a/template/memberlist_view.html b/template/memberlist_view.html index ef2f79d..a7439bc 100644 --- a/template/memberlist_view.html +++ b/template/memberlist_view.html @@ -1,74 +1,95 @@ -

    {PAGE_TITLE}

    +

    {PAGE_TITLE}

    + +
    - +
    -
    {AVATAR_IMG}
    +
    {AVATAR_IMG}
    +
    {RANK_TITLE}
    {RANK_IMG}
    +
    -
    -
    {L_USERNAME}:
    +
    +
    {L_USERNAME}{L_COLON}
    {USERNAME} + [ {L_EDIT_PROFILE} ] [ {L_USER_ADMIN} ] + [ {L_USER_BAN} ] [ {L_USE_PERMISSIONS} ]
    -
    {L_RANK}:
    {RANK_TITLE}
    -
     {L_RANK}:
    {RANK_IMG}
    + +
    {L_RANK}{L_COLON}
    {RANK_TITLE}
    +
     {L_RANK}{L_COLON}
    {RANK_IMG}
    + -
    {L_USER_IS_INACTIVE}:
    {USER_INACTIVE_REASON}
    -
    {L_LOCATION}:
    {LOCATION}
    -
    {L_AGE}:
    {AGE}
    -
    {L_OCCUPATION}:
    {OCCUPATION}
    -
    {L_INTERESTS}:
    {INTERESTS}
    -
    {L_USERGROUPS}:
    -
    {L_GALLERY}:
    {SHOW_PERSONAL_ALBUM_OF}
    -
    {custom_fields.PROFILE_FIELD_NAME}:
    {custom_fields.PROFILE_FIELD_VALUE}
    +
    {L_USER_IS_INACTIVE}{L_COLON}
    {USER_INACTIVE_REASON}
    +
    {L_AGE}{L_COLON}
    {AGE}
    +
    {L_USERGROUPS}{L_COLON}
    + + + +
    {custom_fields.PROFILE_FIELD_NAME}{L_COLON}
    {custom_fields.PROFILE_FIELD_VALUE}
    + + + + - -
     
    {L_ADD_FRIEND}
    -
     
    {L_ADD_FOE}
    + +
     
    {L_REMOVE_FRIEND}
    + +
     
    {L_REMOVE_FOE}
    - -
     
    {L_REMOVE_FRIEND}
    - -
     
    {L_REMOVE_FOE}
    + +
     
    {L_ADD_FRIEND}
    + + +
     
    {L_ADD_FOE}
    +
    +
    +
    +

    {L_CONTACT_USER}

    -

    {L_CONTACT_USER} {USERNAME}

    -
    -
    {L_EMAIL_ADDRESS}:
    {L_SEND_EMAIL_USER} {USERNAME}
    -
    {L_WEBSITE}:
    {U_WWW}
    -
    {L_PM}:
    {L_SEND_PRIVATE_MESSAGE}
    - -
    {L_MSNM}:
    {L_SEND_MSNM_MESSAGE}{USER_MSN}
    -
    {L_YIM}:
    {L_SEND_YIM_MESSAGE}{USER_YIM}
    -
    {L_AIM}:
    {L_SEND_AIM_MESSAGE}{USER_AIM}
    -
    {L_ICQ}:
    {L_SEND_ICQ_MESSAGE}{USER_ICQ}
    -
    {L_JABBER}:
    {L_SEND_JABBER_MESSAGE}
    {L_JABBER}:
    {USER_JABBER}
    - +
    {L_EMAIL_ADDRESS}{L_COLON}
    {L_SEND_EMAIL_USER}
    +
    {L_PM}{L_COLON}
    {L_SEND_PRIVATE_MESSAGE}
    +
    {L_JABBER}{L_COLON}
    {L_SEND_JABBER_MESSAGE}
    {L_JABBER}{L_COLON}
    {USER_JABBER}
    + + + +
    {custom_fields.PROFILE_FIELD_NAME}{L_COLON}
    + +
    {custom_fields.PROFILE_FIELD_DESC}
    + +
    {custom_fields.PROFILE_FIELD_VALUE}
    + + + + + -
    {postrow.PROFILE_FIELD1_NAME}:
    {postrow.PROFILE_FIELD1_VALUE}
    +
    {PROFILE_FIELD1_NAME}{L_COLON}
    {PROFILE_FIELD1_VALUE}
    @@ -76,33 +97,37 @@

    {L_USER_FORUM}

    -
    {L_JOINED}:
    {JOINED}
    -
    {L_VISITED}:
    {VISITED}
    - -
    {L_WARNINGS}:
    -
    {WARNINGS} [ {L_VIEW_NOTES} | {L_WARN_USER} ]
    + +
    {L_JOINED}{L_COLON}
    {JOINED}
    +
    {L_LAST_ACTIVE}{L_COLON}
    {LAST_ACTIVE}
    + +
    {L_WARNINGS}{L_COLON}
    +
    {WARNINGS} [ {L_VIEW_NOTES} | {L_WARN_USER} ]
    -
    {L_TOTAL_POSTS}:
    {POSTS} | {L_SEARCH_USER_POSTS}
    ({POSTS_PCT} / {POSTS_DAY})
    +
    {L_TOTAL_POSTS}{L_COLON}
    +
    {POSTS} | {L_SEARCH_USER_POSTS} +
    ({POSTS_PCT} / {POSTS_DAY}) +
    ({L_POSTS_IN_QUEUE})
    ({L_POSTS_IN_QUEUE}) +
    -
    {L_ACTIVE_IN_FORUM}:
    {ACTIVE_FORUM}
    ({ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT}) -
    -
    {L_ACTIVE_IN_TOPIC}:
    {ACTIVE_TOPIC}
    ({ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT}) -
    +
    {L_ACTIVE_IN_FORUM}{L_COLON}
    {ACTIVE_FORUM}
    ({ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT}) -
    +
    {L_ACTIVE_IN_TOPIC}{L_COLON}
    {ACTIVE_TOPIC}
    ({ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT}) -
    +
    +
    -

    + + -

    +
    -

    {L_SIGNATURE}

    - -
    -
    {SIGNATURE}
    -
    -
    + +
    {SIGNATURE}
    @@ -110,6 +135,8 @@ + + - \ No newline at end of file + diff --git a/template/message_body.html b/template/message_body.html index 58818b9..330203e 100644 --- a/template/message_body.html +++ b/template/message_body.html @@ -1,11 +1,25 @@ - + + + + +
    -

    {MESSAGE_TITLE}

    +

    {MESSAGE_TITLE}

    {MESSAGE_TEXT}

    -

    {L_RETURN_TO_SEARCH_ADV}

    + +

    + + {L_GO_TO_SEARCH_ADV} + +

    +
    - \ No newline at end of file + + + + + diff --git a/template/navbar_footer.html b/template/navbar_footer.html new file mode 100644 index 0000000..0f93d59 --- /dev/null +++ b/template/navbar_footer.html @@ -0,0 +1,26 @@ + diff --git a/template/navbar_header.html b/template/navbar_header.html new file mode 100644 index 0000000..5825984 --- /dev/null +++ b/template/navbar_header.html @@ -0,0 +1,70 @@ + diff --git a/template/notification_dropdown.html b/template/notification_dropdown.html new file mode 100644 index 0000000..13d90a9 --- /dev/null +++ b/template/notification_dropdown.html @@ -0,0 +1,45 @@ + diff --git a/template/overall_footer.html b/template/overall_footer.html index 8802e25..a97936c 100644 --- a/template/overall_footer.html +++ b/template/overall_footer.html @@ -1,38 +1,58 @@ + + + + +
    -
    -
    - + + + + + + + + + + +{$SCRIPTS} + + + + - \ No newline at end of file + diff --git a/template/overall_header.html b/template/overall_header.html index 6f38707..dd975f0 100644 --- a/template/overall_header.html +++ b/template/overall_header.html @@ -1,180 +1,133 @@ - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +{META} +<!-- IF UNREAD_NOTIFICATIONS_COUNT -->({UNREAD_NOTIFICATIONS_COUNT}) <!-- ENDIF --><!-- IF not S_VIEWTOPIC and not S_VIEWFORUM -->{SITENAME} - <!-- ENDIF --><!-- IF S_IN_MCP -->{L_MCP} - <!-- ELSEIF S_IN_UCP -->{L_UCP} - <!-- ENDIF -->{PAGE_TITLE}<!-- IF S_VIEWTOPIC or S_VIEWFORUM --> - {SITENAME}<!-- ENDIF --> + - - - - - - + + + + + + + + + + + + - - -{META} -<!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE} • {SITENAME} - - - - - - - - - + + + + - + + + + + + + + + +{$STYLESHEETS} + + + + + + + - - -
    - +
    +