<!-- IF SIMPLE_FOOTER --><div class="copyright tCenter" id="t2t">{POWERED}</div><!-- ELSEIF IN_ADMIN --><!-- ELSE -->

<!-- IF SHOW_SIDEBAR2 -->
<div class="col-md-3" id="sidebar2">

<!-- IF SHOW_BT_USERDATA -->
<div class="box box-primary">
	<div class="box-body"><div class="profile-user-border img-circle text-center">{THIS_AVATAR}</div>
	<h3 class="widget-user-username text-center">{THIS_USER}</h3>
	<div class="box-footer no-padding">
	<ul class="nav nav-stacked">
		<li><a href="#">{L_USER_RATIO} <span class="pull-right"><!-- IF DOWN_TOTAL_BYTES gt MIN_DL_BYTES -->{USER_RATIO}<!-- ELSE --><b>{L_NONE}</b> (DL < {MIN_DL_FOR_RATIO})<!-- ENDIF --></span></a></li>
		<li><a href="#">{L_DOWNLOADED} <span class="pull-right badge bg-red">{DOWN_TOTAL}</span></a></li>
		<li><a href="#">{L_UPLOADED} <span class="pull-right badge bg-green">{UP_TOTAL}</span></a></li>
		<li><a href="#">{L_RELEASED} <span class="pull-right badge bg-green">{RELEASED}</span></a></li>
		<li><a href="#">{L_BONUS} <span class="pull-right badge bg-green">{UP_BONUS}</span></a></li>
		<!-- IF $bb_cfg['seed_bonus_enabled'] --><li><a href="profile.php?mode=bonus">{L_SEED_BONUS} <span class="pull-right badge bg-blue">{POINTS}</span></a></li><!-- ENDIF -->
	</ul>
	</div>
	</div>
</div>
<!-- ENDIF -->

<!-- IF HTML_SIDEBAR_2 -->
	<?php include($V['HTML_SIDEBAR_2']); ?>
<!-- ENDIF -->

</div><!--/sidebar2-->
<!-- ENDIF -->

</div><!--/row-->
</section>
</div>

<footer class="main-footer">
<div class="row">
	<div class="col-sm-8 small">
		<b class="text-red">{L_NOTICE}</b><br>
		<p>{L_COPY}</p>
	</div>
	<div class="col-sm-4 small">
		<strong><div id="t2t">{POWERED}</div></strong>
		<ul class="list-unstyled">
			<!-- IF HTML_AGREEMENT -->
			<li><a href="{$bb_cfg['user_agreement_url']}" data-toggle="modal" data-target="#html_agreement">{L_USER_AGREEMENT}</a></li>
			<div class="modal fade" id="html_agreement" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog modal-lg" role="document"><div class="modal-content"></div></div>
			</div>  
			<!-- ENDIF -->
			<!-- IF HTML_COPYRIGHT -->
			<li><a href="{$bb_cfg['copyright_holders_url']}" data-toggle="modal" data-target="#html_copyright">{L_COPYRIGHT_HOLDERS}</a></li>
			<div class="modal fade" id="html_copyright" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog modal-lg" role="document"><div class="modal-content"></div></div>
			</div>  
			<!-- ENDIF -->
			<!-- IF HTML_ADVERT -->
			<li><a href="{$bb_cfg['advert_url']}" data-toggle="modal" data-target="#html_advert">{L_ADVERT}</a></li>
			<div class="modal fade" id="html_advert" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
				<div class="modal-dialog modal-lg" role="document"><div class="modal-content"></div></div>
			</div>  
			<!-- ENDIF -->
			<!-- IF SHOW_ADMIN_LINK -->
			<li><a href="{ADMIN_LINK_HREF}" class="text-red">{L_ADMIN_PANEL}</a></li>
			<!-- ENDIF -->
		</ul>
	</div>
</div>
</footer>

<aside class="control-sidebar control-sidebar-dark">
	<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
		<li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
	</ul>

	<div class="tab-content">
	<div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
		<div class="tab-pane" id="control-sidebar-settings-tab">

			<!-- IF SHOW_ONLY_NEW_MENU -->
			<fieldset id="show-only">
			<h3 class="control-sidebar-heading">{L_SHOW_ONLY}</h3>
			<div class="form-group">
				<label class="control-sidebar-subheading">
					{L_ONLY_NEW_POSTS}
					<input class="pull-right" id="only_new_posts" type="checkbox" <!-- IF ONLY_NEW_POSTS_ON -->{CHECKED}<!-- ENDIF -->
						onclick="
							user.set('only_new', ( this.checked ? {ONLY_NEW_POSTS} : 0 ), 365, true);
							$('#only_new_topics').attr('checked', false);
						" />
				</label>
			</div>
			<div class="form-group">
				<label class="control-sidebar-subheading">
					{L_ONLY_NEW_TOPICS}
					<input class="pull-right" id="only_new_topics" type="checkbox" <!-- IF ONLY_NEW_TOPICS_ON -->{CHECKED}<!-- ENDIF -->
						onclick="
							user.set('only_new', ( this.checked ? {ONLY_NEW_TOPICS} : 0 ), 365, true);
							$('#only_new_posts').attr('checked', false);
						" />
				</label>
			</div>
			</fieldset>
			<!-- IF USER_HIDE_CAT -->
			<fieldset id="user_hide_cat">
			<h3 class="control-sidebar-heading">{L_HIDE_CAT}</h3>
			<div id="h-cat-ctl">
				<form autocomplete="off">
					<!-- BEGIN h_c -->
					<div class="form-group">
						<label class="control-sidebar-subheading">{h_c.H_C_TITLE}
							<input class="h-cat-cbx pull-right" type="checkbox" value="{h_c.H_C_ID}" {h_c.H_C_CHEKED} />
						</label>
					</div>
					<!-- END h_c -->
				</form>
				<div class="text-center">
					<!-- IF H_C_AL_MESS -->
					<button type="button" class="btn btn-block btn-success" onclick="$('input.h-cat-cbx').attr('checked', false); $('input#sec_h_cat').click(); return false;">{L_RESET}</button>
					<!-- ENDIF -->
					<button type="button" class="btn btn-block btn-success" id="sec_h_cat" onclick="set_h_cat();">{L_SUBMIT}</button>
					<script type="text/javascript">
					function set_h_cat ()
					{
						h_cats = [];
						$.each($('input.h-cat-cbx:checked'), function(i,el){
							h_cats.push( $(this).val() );
						});
						user.set('h_cat', h_cats.join('-'), 365, true);
					}
					</script>
				</div>
			</div>
			</fieldset>
			<!-- ENDIF -->
			<!-- ENDIF / SHOW_ONLY_NEW_MENU -->

			<!-- IF SHOW_JUMPBOX -->
			<!-- IF LOGGED_IN -->
			<fieldset id="show-only">
			<h3 class="control-sidebar-heading">{L_HIDE_IN_TOPIC}</h3>
			<div class="form-group">
				<label class="control-sidebar-subheading">{L_AVATARS}
					<input type="checkbox" class="pull-right" <!-- IF HIDE_AVATAR -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('h_av', this.checked ? 1 : 0);"
					/>
				</label>
			</div>
			<div class="form-group">
				<label class="control-sidebar-subheading">{L_RANK_IMAGES}
					<input type="checkbox" class="pull-right" <!-- IF HIDE_RANK_IMG -->{CHECKED}<!-- ENDIF --><!-- IF HIDE_RANK_IMG_DIS -->{DISABLED}<!-- ENDIF -->
						onclick="user.set('h_rnk_i', this.checked ? 1 : 0);"
					/>
				</label>
			</div>
			<div class="form-group">
				<label class="control-sidebar-subheading">{L_POST_IMAGES}
					<input type="checkbox" class="pull-right" <!-- IF HIDE_POST_IMG -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('h_post_i', this.checked ? 1 : 0);"
					/>
				</label>
			</div>
			<div class="form-group">
				<label class="control-sidebar-subheading">{L_SMILIES}
					<input type="checkbox" class="pull-right" <!-- IF HIDE_SMILE -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('h_smile', this.checked ? 1 : 0);"
					/>
				</label>
			</div>
			<div class="form-group">
				<label class="control-sidebar-subheading">{L_SIGNATURES}
					<input type="checkbox" class="pull-right" <!-- IF HIDE_SIGNATURE -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('h_sig', this.checked ? 1 : 0);"
					/>
				</label>
			</div>
			</fieldset>
			<fieldset id="spoiler-opt">
			<h3 class="control-sidebar-heading">{L_SHOW}</h3>
			<div class="form-group">
				<label class="control-sidebar-subheading">{L_SHOW_OPENED}
					<input type="checkbox" class="pull-right" <!-- IF SPOILER_OPENED -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('sp_op', this.checked ? 1 : 0);"
					/>
				</label>
			</div>
			<div class="form-group">
				<label class="control-sidebar-subheading">{L_DOWNLOAD_PIC}
					<input type="checkbox" class="pull-right" <!-- IF SHOW_IMG_AFTER_LOAD -->{CHECKED}<!-- ENDIF -->
						onclick="user.set('i_aft_l', this.checked ? 1 : 0);"
					/>
				</label>
			</div>
			</fieldset>
			<button type="button" class="btn btn-block btn-success" onclick="window.location.reload();">{L_SUBMIT}</button>
			<!-- ENDIF / LOGGED_IN -->
			<!-- ENDIF / SHOW_JUMPBOX -->
		</div>
	</div>
</aside>

<div class="control-sidebar-bg"></div>

<script type="text/javascript" src="{SITE_URL}styles/bootstrap/js/bootstrap.min.js?v={$bb_cfg['js_ver']}"></script>
<script type="text/javascript" src="{SITE_URL}styles/js/app.min.js"></script>
<script type="text/javascript" src="{SITE_URL}styles/js/demo.js"></script>
<script type="text/javascript">
$(document).ajaxStart(function() { Pace.restart(); });

//iCheck for checkbox and radio inputs
$(document).ready(function(){
	$('input').iCheck({
		checkboxClass: 'icheckbox_{$bb_cfg['icheck']['class']}',
		radioClass: 'iradio_{$bb_cfg['icheck']['class']}',
		increaseArea: '20%' // optional
	});
});
</script>
<!-- IF ONLOAD_FOCUS_ID -->
<script type="text/javascript">
$p('{ONLOAD_FOCUS_ID}').focus();
</script>
<!-- ENDIF -->

<!-- ENDIF -->