footer.php 7.32 KB

<?//$APPLICATION->AddBufferContent(function() {
global $APPLICATION;
    if(!$APPLICATION->GetProperty('HIDE_CENTRING_WRAP')) echo '</div><!-- </div class="centering"> -->';
    if(!$APPLICATION->GetProperty('HIDE_PAGE_CONTENT')) echo '</div><!-- </div class="page-content"> -->';
//})?>

</div>>


<? if(isProduction()) include INCLUDE_PATH . 'counters-before-footer.php' ?>

<? if(!$APPLICATION->GetProperty('HIDE_FOOTER')) { ?>
<footer class="footer">
    <div class="copy">© <?= date('Y') ?> ООО «Строй Хауз»</div>

          <?
//26.04.2017 Hawks
          CModule::IncludeModule('nurgush.mobiledetect');

          $detect = new Nurgush\MobileDetect\Main();
// Для мобыльных 
          if(!$detect->isMobile() && !$detect->isTablet()){?>
                    <div class="js-project">
                      <a href="#order_price" class='js-order-project'><div id="call-button"></div></a>
                    </div>
                    <?$APPLICATION->IncludeComponent('cpeople:form', 'callback')?>
           <div id="call-button"></div>
          <?}else{?>
          <?}?> 
        
           <div id="upbutton"></div>
       <?

//22.06.2017 Hawks
CModule::IncludeModule('nurgush.mobiledetect');

$detect = new Nurgush\MobileDetect\Main();
// Для мобыльных и планшетов
if($detect->isMobile() || $detect->isTablet()){?>
<a class="author" href="/company/" >Наша компания</a>
<a class="author" href="/projects/">Список проектов</a>
<a class="author" href="/services/">Услуги</a>
<a class="author" href="price/design-cost/" ">Цены</a>
<a class="author" href="/info/lumber/">Полезная информация</a>
<a class="author" href="/contacts/">Контакты</a>
<? if (isset($_COOKIE['mobile'])) { ?><meta name=viewport content="width=1024, initial-scale=0.1"><? } else { ?><meta name=viewport content="width=device-width, initial-scale=1"><? } ?>

<? if (isset($_COOKIE['mobile']) and $_COOKIE['mobile']=="no") { ?><a class="author" href="" onclick="SetCookie('mobile=yes', 0);">На мобильную версию</a><? }else{ ?> <a class="author" href="" onclick="SetCookie('mobile=no', 30);">На обычную версию</a><? } ?>
<?}else{?> 

  <?}?>
    <!--noindex-->
    <ul class="social-links">
        <?/*<li class="social-links-item"><a href="http://twitter.com/stroyhouse" class="social-links-link _tw" target="_blank" rel="nofollow"></a></li>*/?>
        <li class="social-links-item"><a href="//www.facebook.com/pages/Derevannye-doma-ot-Stroj-Hauz/161048223937817" class="social-links-link _fb" target="_blank" rel="nofollow"></a></li>
        <li class="social-links-item"><a href="//vkontakte.ru/club21826597" class="social-links-link _vk" target="_blank" rel="nofollow"></a></li>
        <?/*<li class="social-links-item"><a href="//www.odnoklassniki.ru/group/55514216595503" class="social-links-link _ok" target="_blank" rel="nofollow"></a></li>*/?>
        <li class="social-links-item"><a href="//www.youtube.com/user/StroyHouse" class="social-links-link _yt" target="_blank" rel="nofollow"></a></li>
        <li class="social-links-item"><a href="//instagram.com/stroyhouse/" class="social-links-link _inst"></a></li>
    </ul>
    <!--/noindex-->
    <div class="author">Сайт срубили — <a href="http://cpeople.ru/">CreativePeople</a></div>
</footer>
  <?}?>

<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,700italic,800,800italic,300italic,300&subset=latin,cyrillic-ext' rel='stylesheet' type='text/css'>
<script>if (screen.width<=768) {document.write('<link rel="stylesheet" href="/css/main.css?<?=filemtime(BASE_PATH . '/css/main.css')?>" id="pre_load">');document.body.style.display="block";}</script>
<link rel="stylesheet" type='text/css' href="/css/flaticon.css">
<link rel="stylesheet" type='text/css' href="/css/media.css" >
<script>
//Ставим Куки
function SetCookie(id, days){
var ws=new Date();
ws.setDate((days-0+ws.getDate()));
document.cookie=id+"; path=/; expires="+ws.toGMTString();
}
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//maps.googleapis.com/maps/api/js?v=3.exp"></script>
<script src="/js/compiled.js?<?=filemtime(BASE_PATH . '/js/compiled.js')?>" type="text/javascript"></script>
<script src="/js/jquery.maskedinput.js?<?=filemtime(BASE_PATH . '/js/jquery.maskedinput.js')?>" type="text/javascript"></script>

<script src="/js/index.js"></script>
<script>
//Код jQuery, установливающий маску для ввода телефона элементу input
//1. После загрузки страницы,  когда все элементы будут доступны выполнить...
$(function(){
  //2. Получить элемент, к которому необходимо добавить маску
  $("#phone").mask("8(999) 999-9999");
   $("#phone-feed").mask("8(999) 999-9999");
    $("#phone-cal").mask("8(999) 999-9999");
     $("#phone-order").mask("8(999) 999-9999");
      $("#phone-start").mask("8(999) 999-9999");
       $("#phone-popup").mask("8(999) 999-9999");
       $("#phone-proj").mask("8(999) 999-9999");
       $("#phone-credit").mask("8(999) 999-9999");
});
</script>
<script>

$(document).ready(function() {
    $("a.show-block").click(function() {
        $($(this).attr('href')).toggle('slow');
        return false;
    });
});
</script>
<!-- <script>
$(document).ready(function() {
  $('.block').on('click', '.extremum-click', function() {
    $(this).toggleClass('red').siblings('.extremum-slide').slideToggle(0);
  });
});
</script> -->

<script>
    $(window).scroll(function() {
        if ($(this).scrollTop() > 100) {
            if ($('#upbutton').is(':hidden')) {
                $('#upbutton').css({opacity : 1}).fadeIn('slow');
            }
        } else { $('#upbutton').stop(true, false).fadeOut('fast'); }
    });
    $('#upbutton').click(function() {
        $('html, body').stop().animate({scrollTop : 0}, 300);
    });
</script>
<script>
    $(window).scroll(function() {
        if ($(this).scrollTop() > -10) {
            if ($('#call-button').is(':hidden')) {
                $('#call-button').css({opacity : 1}).fadeIn('slow');
            }
        } else { $('#call-button').stop(true, false).fadeOut('fast'); }
    });
    // $('#call-button').click(function() {
    //     $('html, body').stop().animate({scrollTop : 0}, 300);
    // });
</script>
<script>
  $(window).scroll(function(){
    if ($(window).scrollTop() > 200) {
        $('.header').addClass('scroll');
    }
    else {
        $('.header').removeClass('scroll')
    }
});
</script>
<?php if ((strpos($_SERVER["REQUEST_URI"],'/projects/')!==false)||(strpos($_SERVER["REQUEST_URI"],'/price/')!==false)||(strpos($_SERVER["REQUEST_URI"],'/contacts/')!==false)) { ?>
<!-- BEGIN JIVOSITE CODE {literal} -->
<script type='text/javascript'>
(function(){ var widget_id = 'sfDg6YF840';var d=document;var w=window;function l(){
var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = '//code.jivosite.com/script/widget/'+widget_id; var ss = document.getElementsByTagName('script')[0]; ss.parentNode.insertBefore(s, ss);}if(d.readyState=='complete'){l();}else{if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})();</script>
<!-- {/literal} END JIVOSITE CODE -->
<?php } ?>

</body>
</html>