$_SERVER['HTTPS'] = 'on';
define('FORCE_SSL_ADMIN', true);
define('FORCE_SSL_LOGIN', true);
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
<li class="{% block home %}{% endblock %} treeview">
<a href="/">
<i class="fa fa-rocket"></i>
<span>Главная</span>
</a>
</li>
{% block home %}active{% endblock %}
$('.tabs li').not('.saled').click(function(){
var index = $(this).index();
$(this).addClass('active').siblings().removeClass('active');
$(this).parent().siblings('.tabs-content').find('li').eq(index).addClass('active').siblings().removeClass('active');
});
$('.tabs li').not('.saled').click(function(){
var index = $(this).index();
$(this).addClass('active').siblings().removeClass('active');
$(this).parent().siblings('.tabs-content').children('li').eq(index).addClass('active').siblings().removeClass('active');
});
$(window).load(function() {
$('#status').delay(100).fadeOut('slow');
$('#preloader').delay(500).fadeOut('slow');
$('body').delay(500).css({'overflow':'visible'});
});
<!--==========Header===========-->
<div id="preloader">
<div id="status">
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
</div>
</div>
@font-face {
font-family: 'Intro';
src: url('../fonts/intro/intro.eot');
src: url('../fonts/intro/intro.eot?#iefix') format('embedded-opentype'),
url('../fonts/intro/intro.woff') format('woff'),
url('../fonts/intro/intro.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}