Skip to content

Commit

Permalink
added ComBoot style
Browse files Browse the repository at this point in the history
  • Loading branch information
LMOspaceace committed Jul 27, 2016
1 parent 56f8a4f commit ee875df
Show file tree
Hide file tree
Showing 12 changed files with 450 additions and 0 deletions.
98 changes: 98 additions & 0 deletions styles/ComBoot Free/template/chat_body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<!-- IF S_CHAT_ENABLED -->
<!-- IF S_AJAXCHAT_VIEW -->
<!-- IF S_GET_CHAT -->
<!-- INCLUDE chat_body_readadd.html -->
<!-- ELSE -->
<!-- IF SCRIPT_NAME == 'app/chat' -->
<!-- INCLUDE overall_header.html -->
<!-- ENDIF -->
<!-- IF SCRIPT_NAME == 'app/chat/popup' or SCRIPT_NAME == 'app/chat/archive' -->
<!-- INCLUDE simple_header.html -->
<div>
<!-- ENDIF -->
<script type="text/javascript">
// <![CDATA[
var last_time = {TIME};
var last_id = {LAST_ID};
var post_time = {LAST_POST};
var read_interval = ({REFRESH_TIME} * 1000);
var chat_empty = '{{ lang('EMPTY')|e('js') }}';
var ie_no_ajax = '{{ lang('IE_NO_AJAX')|e('js') }}';
var cookie_name = '{COOKIE_NAME}';
var upgrade_browser = '{{ lang('UPGRADE_BROWSER')|e('js') }}';
var query_url = '{FILENAME}';
<!-- IF S_POPUP -->
var query_url = '{FILENAME}/popup';
<!-- ELSEIF S_ARCHIVE -->
var query_url = '{FILENAME}/archive';
<!-- ENDIF -->
<!-- IF S_AJAXCHAT_BBCODE -->
var chatbbcodetrue = true;
<!-- ELSE -->
var chatbbcodetrue = false;
<!-- ENDIF -->
<!-- IF S_AJAX_CHAT_MESSAGES_DOWN -->
var chatmessagedown = false;
<!-- ELSE -->
var chatmessagedown = true;
<!-- ENDIF -->
//]]>
</script>
<!-- INCLUDEJS @spaceace_ajaxchat/js/ajax_chat.js -->
<div id="ajaxchat">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title chat-header-link"><!-- IF SCRIPT_NAME == 'index' --><a href="{U_CHAT}">{{ lang('CHAT_EXPLAIN') }}</a><!-- ELSE -->{{ lang('CHAT_EXPLAIN') }}<!-- ENDIF --></h3>
<!-- IF SCRIPT_NAME neq 'app/chat/archive' -->
<!-- IF S_AJAX_CHAT_MESSAGES_DOWN -->
<!-- INCLUDE chat_body_input.html -->
<!-- ENDIF -->
<!-- ENDIF -->
</div>
</div>
<!-- IF CHAT_RULES and SCRIPT_NAME neq 'app/chat/archive' -->
<div class="navbar chatrules">
<span>{CHAT_RULES}</span>
</div>
<!-- ENDIF -->
<div>
<div class="shout-body<!-- IF S_WHOIS_CHATTING --><!-- IF S_AJAX_CHAT_ONLINELIST and SCRIPT_NAME neq 'app/chat/archive' --> shouts<!-- ENDIF --><!-- ENDIF --><!-- IF not S_AJAX_CHAT_ONLINELIST or SCRIPT_NAME == 'app/chat/archive' or not S_WHOIS_CHATTING --> chat_online_off<!-- ENDIF --><!-- IF S_CHAT or S_POPUP or SCRIPT_NAME == 'app/chat/archive' --> main<!-- ENDIF -->">
<div id="chat" <!-- IF not S_AJAX_CHAT_MESSAGES_DOWN -->class="chat-messages-down"<!-- ENDIF --> >
<!-- INCLUDE chat_body_chatrow.html -->
</div>
</div>
<!-- IF S_WHOISONLINE -->
<div class="whois whois-comboot<!-- IF S_CHAT or S_POPUP --> main<!-- ENDIF --><!-- IF not S_AJAX_CHAT_ONLINELIST or SCRIPT_NAME == 'app/chat/archive' or not S_WHOIS_CHATTING --> whois_online_off<!-- ENDIF -->">
<h3>
{{ lang('WHOIS_CHATTING') }}
</h3>
<div id="whois_online">
<!-- INCLUDE chat_body_whois.html -->
</div>
</div>
<!-- ENDIF -->
</div>
<div class="breadcrumb no-margin-bottom">
<!-- IF SCRIPT_NAME neq 'app/chat/archive' -->
<!-- IF not S_AJAX_CHAT_MESSAGES_DOWN -->
<!-- INCLUDE chat_body_input.html -->
<!-- ENDIF -->
<!-- ENDIF -->
<div class="chatform">
<span class="list chat-icon details">{{ lang('DETAILS') }}</span>
<img src="{BOARD_URL}ext/spaceace/ajaxchat/styles/all/theme/images/check_indicator.gif" id="check_indicator" alt="check_indicator" title="{{ lang('VERSION') }}" />
<img src="{BOARD_URL}ext/spaceace/ajaxchat/styles/all/theme/images/act_indicator.gif" id="act_indicator" alt="act_indicator" title="{{ lang('VERSION') }}" />
<strong>&nbsp;{{ lang('UPDATES') }}<span id="update_seconds">&nbsp;{REFRESH_TIME}</span>&nbsp;{{ lang('UNIT') }}</strong>
</div>
</div>
</div>
<!-- IF SCRIPT_NAME == 'app/chat' -->
<!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->
<!-- IF SCRIPT_NAME == 'app/chat/popup' or SCRIPT_NAME == 'app/chat/archive' -->
</div>
<!-- INCLUDE simple_footer.html -->
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->
<!-- ENDIF -->
42 changes: 42 additions & 0 deletions styles/ComBoot Free/template/chat_body_chatrow.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!-- BEGIN chatrow -->
<div id="p{chatrow.MESSAGE_ID}" class="chatpost <!-- IF not S_AJAX_CHAT_CHATROW_FULL -->original <!-- ENDIF -->bg{chatrow.CLASS}<!-- IF not S_AJAX_CHAT_MESSAGES_DOWN --> chat-messages-down<!-- ENDIF -->">
<div class="chat-postbody">
<div class="<!-- IF S_AJAX_CHAT_AVATARS -->chat-postprofile<!-- ELSE -->chat-postprofile-no-avatar<!-- ENDIF -->" id="profile{chatrow.MESSAGE_ID}">
<div <!-- IF S_AJAX_CHAT_AVATARS -->class="chat-avatars"<!-- ENDIF -->>
<!-- IF S_AJAX_CHAT_AVATARS -->
<!-- IF chatrow.USER_AVATAR -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>{chatrow.USER_AVATAR}</span>
<!-- ENDIF -->
{chatrow.USER_AVATAR_THUMB}
<!-- ELSE -->
<!-- IF S_AJAX_CHAT_AVATAR_HOVER -->
<span>
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="128" alt="" />
</span>
<!-- ENDIF -->
<img src="{STYLE_PATH}/theme/images/no_avatar.gif" height="20" alt="" />
<!-- ENDIF -->
<!-- ENDIF -->
</div>
<div class="chat-usernames">
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN and SCRIPT_NAME neq 'app/chat/archive' -->
<!-- IF chatrow.USER_COLOR -->
<a href="#" style="color: #{chatrow.USER_COLOR}" onclick="insert_text('[color=#{chatrow.USER_COLOR}][b]&#64;{chatrow.USERNAME_A}&nbsp;:&nbsp;[/color][/b]', true);return false;" title="{L_RESPOND}">&#64;</a>
<!-- ELSE -->
<a href="#" onclick="insert_text('[b]&#64;{chatrow.USERNAME_A}&nbsp;:&nbsp;[/b]', true);return false;" title="{L_RESPOND}">&#64;</a>
<!-- ENDIF -->
<!-- ELSE -->
&#64;
<!-- ENDIF -->
{chatrow.USERNAME_FULL}&nbsp;<b class="chat-time">&laquo;&nbsp;{chatrow.TIME}&nbsp;&raquo;</b>
</div>
</div>
{SMILIES_PATH}
<div class="message-comboot">
<!-- INCLUDE chatrow_message_icons.html -->
{chatrow.MESSAGE}
</div>
</div>
</div>
<!-- END chatrow -->
71 changes: 71 additions & 0 deletions styles/ComBoot Free/template/chat_body_font_colour_hold.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<div id="chat_colour_palette" style="display: none;">
<table width="50%">
<div id="fc">
</div>
<div class="select_color">
{{ lang('SELECT_COLOR') }}
</div>
<tr>
<td valign="top">
<script type="text/javascript">
// <![CDATA[
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('<table cellspacing="1" cellpadding="0" border="0">');

for (r = 0; r < 5; r++)
{
if (dir == 'h')
{
document.writeln('<tr>');
}

for (g = 0; g < 5; g++)
{
if (dir == 'v')
{
document.writeln('<tr>');
}
for (b = 0; b < 5; b++)
{
color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]);
document.write('<td bgcolor="#' + color + '" style="width: ' + width + 'px; height: ' + height + 'px;">');
document.write('<div onmouseover="this.style.cursor=\'pointer\'" onmousedown="setCookie(\'' + cookie_name + '\', \'[color2=#' + color + ']\',\'1000\'); blkopen = \'[color2=#' + color + ']\'; hilite(\'#' + color + ' \'); blkclose = \'[/color2]\'; return false;"><img src="{BOARD_URL}images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></div>');
document.writeln('</td>');
}
if (dir == 'v')
{
document.writeln('</tr>');
}
}
if (dir == 'h')
{
document.writeln('</tr>');
}
}
document.writeln('</table>');
}
colorPalette('h', 15, 10);
function hilite(value)
{
var cur_color = value;
document.getElementById("fc").style.backgroundColor = cur_color;
}
// ]]>
</script>
</td>
</tr>
</table>
<div>{{ lang('DELETE_CHAT_COOKIE_EXPLAIN') }}</div>
<button type="button" class="btn btn-primary" name="{{ lang('DELETE_CHAT_COOKIE') }}" title="{{ lang('DELETE_CHAT_COOKIE') }}" onclick="deletecookie();">{{ lang('DELETE_CHAT_COOKIE') }}</button>
</div>
5 changes: 5 additions & 0 deletions styles/ComBoot Free/template/chat_body_input.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- IF S_AJAX_CHAT_INPUT_FULL -->
<!-- INCLUDE chat_body_input_full.html -->
<!-- ELSE -->
<!-- INCLUDE chat_body_input_original.html -->
<!-- ENDIF -->
31 changes: 31 additions & 0 deletions styles/ComBoot Free/template/chat_body_input_full.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<dt class="chatform">
<!-- IF not S_IS_BOT -->
<!-- IF S_AJAXCHAT_POST -->
<form name="postform" id="chat-text" method="post" action="javascript:void(0);" onsubmit="handle_send('add', this)">
<fieldset>
{S_FORM_TOKEN}
<!-- INCLUDE chat_body_font_colour_hold.html -->
<input type="text" tabindex="1" name="message" id="message-comboot" class="inputbox chatinput"<!-- IF not S_AJAX_CHAT_AUTOCOMPLETE --> autocomplete="off"<!-- ENDIF --> />
<br />
<input type="submit" class="btn btn-primary" value="{{ lang('SUBMIT') }}" title="{{ lang('CHAT_SUBMIT_MESSAGE') }}" name="submit" tabindex="6" accesskey="s" />
<!-- IF S_AJAXCHAT_BBCODE -->
<input type="button" class="btn btn-primary" id="bbcodes" value="{{ lang('BBCODES') }}" />
<!-- ENDIF -->
<!-- IF S_SMILIES_ALLOWED -->
<input type="button" class="btn btn-primary" name="smilies" id="smilies" value="{{ lang('SMILIES') }}" />
<!-- ENDIF -->
<input type="button" class="btn btn-primary" onclick="popup('{FILENAME}/archive', 1000, 565); return false;" value="{{ lang('CHAT_ARCHIVE') }}" title="{{ lang('CHAT_ARCHIVE_EXPLAIN') }}" />
<input type="button" class="btn btn-primary" onclick="popup('{FILENAME}/popup', 1000, 665); return false;" value="{{ lang('CHAT_POPUP') }}" title="{{ lang('CHAT_POPUP_EXPLAIN') }}" />
<!-- IF S_AJAXCHAT_BBCODE -->
<input type="button" class="btn btn-primary" name="chat_bbpalette" id="chat_bbpalette" value="{{ lang('CHAT_FONT_COLOR') }}" />
<!-- ENDIF -->
</fieldset>
<!-- INCLUDE chat_body_buttons.html -->
</form>
<!-- ELSE -->
{{ lang('NO_POST_IN_CHAT') }}
<!-- ENDIF -->
<!-- ELSE -->
<div class="input_message">{{ lang('GUEST_MESSAGE') }}</div>
<!-- ENDIF -->
</dt>
17 changes: 17 additions & 0 deletions styles/ComBoot Free/template/chat_body_input_original.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<dt class="chatform">
<!-- IF not S_IS_BOT -->
<!-- IF S_AJAXCHAT_POST -->
<form name="postform" id="chat-text" method="post" action="javascript:void(0);" onsubmit="handle_send('add', this)">
<fieldset>
{S_FORM_TOKEN}
<input type="submit" class="btn btn-primary" value="{{ lang('SUBMIT') }}" title="{{ lang('CHAT_SUBMIT_MESSAGE') }}" name="submit" tabindex="6" accesskey="s" />
<input type="text" tabindex="1" name="message" id="message-comboot" class="inputbox chatinput nomargin"<!-- IF not S_AJAX_CHAT_AUTOCOMPLETE --> autocomplete="off"<!-- ENDIF --> />
</fieldset>
</form>
<!-- ELSE -->
{{ lang('NO_POST_IN_CHAT') }}
<!-- ENDIF -->
<!-- ELSE -->
<div class="input_message">{{ lang('GUEST_MESSAGE') }}</div>
<!-- ENDIF -->
</dt>
5 changes: 5 additions & 0 deletions styles/ComBoot Free/template/chat_body_whois.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- BEGIN whoisrow -->
<div class="whois_status<!-- IF not S_AJAX_CHAT_ONLINELIST or SCRIPT_NAME == 'app/chat/archive' or not S_WHOIS_CHATTING --> whois_online_off<!-- ENDIF -->">
<img src="{BOARD_URL}ext/spaceace/ajaxchat/styles/all/theme/images/{whoisrow.USER_STATUS}.png" class="status_img" alt="{whoisrow.USER_STATUS}" />&nbsp;{whoisrow.USERNAME_FULL}&nbsp;
</div>
<!-- END whoisrow -->
40 changes: 40 additions & 0 deletions styles/ComBoot Free/template/chat_edit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!-- INCLUDE simple_header.html -->
<script type="text/javascript">
// <![CDATA[
var last_time = {TIME};
var last_id = {LAST_ID};
var read_interval = ({REFRESH_TIME} * 1000);
var cookie_name = '{COOKIE_NAME}';
var query_url = '{FILENAME}';
<!-- IF S_AJAXCHAT_BBCODE -->
var chatbbcodetrue = true;
<!-- ELSE -->
var chatbbcodetrue = false;
<!-- ENDIF -->
<!-- IF S_AJAX_CHAT_MESSAGES_DOWN -->
var chatmessagedown = false;
<!-- ELSE -->
var chatmessagedown = true;
<!-- ENDIF -->
//]]>
</script>
<!-- INCLUDEJS @spaceace_ajaxchat/js/ajax_chat.js -->
<form method="post" action="" id="chat_edit">
<div class="panel chat_edit">
<div class="inner">
<h2>{{ lang('CHAT_EDIT') }}</h2>
<fieldset class="fields1">
<div>
<textarea id="message" style="height: 9em;" name="message" rows="7" cols="76" tabindex="3" class="inputbox" >{MESSAGE}</textarea>
</div>
<input type="hidden" name="chat_id" value="{CHAT_ID}" />
</fieldset>
<fieldset class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('SUBMIT') }}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{{ lang('RESET') }}" />
</fieldset>
</div>
</div>
</form>

<!-- INCLUDE simple_footer.html -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- IF S_CHAT_ENABLED and S_CHAT_QUICK_LINK and SCRIPT_NAME neq 'app/chat' -->
<!-- IF S_AJAXCHAT_VIEW -->
<li><a href="{U_CHAT}" title="{{ lang('CHAT_EXPLAIN') }}" role="menuitem"><i class="fa fa-comments fa-fw" aria-hidden="true"></i> {{ lang('CHAT_EXPLAIN') }}</a></li>
<!-- ENDIF -->
<!-- ENDIF -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- IF S_CHAT_ENABLED and S_CHAT_NAV_LINK and SCRIPT_NAME neq 'app/chat' -->
<!-- IF S_AJAXCHAT_VIEW -->
<li><a href="{U_CHAT}" title="{{ lang('CHAT_EXPLAIN') }}" role="menuitem"><i class="fa fa-comments fa-fw" aria-hidden="true"></i> {{ lang('CHAT_EXPLAIN') }}</a></li>
<!-- ENDIF -->
<!-- ENDIF -->
Loading

0 comments on commit ee875df

Please sign in to comment.