Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Тимофей Семененко
/
shold.dev5.ashmanov.com
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c415b598
authored
Aug 14, 2017
by
Тимофей Семененко
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
filter new part1
1 parent
34c2261a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
200 additions
and
410 deletions
404.php
css/main.css
css/media.css
js/index.js
local/include/project-filter.php
local/templates/main/footer.php
404.php
View file @
c415b59
<?
<?
require_once
$_SERVER
[
'DOCUMENT_ROOT'
]
.
'/bitrix/modules/main/include/urlrewrite.php'
;
require_once
$_SERVER
[
'DOCUMENT_ROOT'
]
.
'/bitrix/modules/main/include/urlrewrite.php'
;
require_once
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/bitrix/modules/main/include/prolog_before.php"
;
require_once
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/bitrix/modules/main/include/prolog_before.php"
;
if
(
!
isAjax
())
{
if
(
!
isAjax
())
{
CHTTP
::
SetStatus
(
"404 Not Found"
);
CHTTP
::
SetStatus
(
"404 Not Found"
);
}
}
@
define
(
'ERROR_404'
,
'Y'
);
@
define
(
'ERROR_404'
,
'Y'
);
global
$APPLICATION
;
global
$APPLICATION
;
global
$USER
;
global
$USER
;
$APPLICATION
->
RestartBuffer
();
$APPLICATION
->
RestartBuffer
();
//while(ob_get_clean());
//while(ob_get_clean());
$APPLICATION
->
SetPageProperty
(
'BODY_CLASS'
,
''
);
$APPLICATION
->
SetPageProperty
(
'BODY_CLASS'
,
''
);
$APPLICATION
->
SetPageProperty
(
'CONTAINER_EXTRA_CLASS'
,
''
);
$APPLICATION
->
SetPageProperty
(
'CONTAINER_EXTRA_CLASS'
,
''
);
$APPLICATION
->
SetPageProperty
(
'HIDE_PAGE_HEAD'
,
''
);
$APPLICATION
->
SetPageProperty
(
'HIDE_PAGE_HEAD'
,
''
);
$APPLICATION
->
SetPageProperty
(
'PAGE_HEAD_EXTRA_CLASS'
,
''
);
$APPLICATION
->
SetPageProperty
(
'PAGE_HEAD_EXTRA_CLASS'
,
''
);
$APPLICATION
->
SetPageProperty
(
'PAGE_HEAD_PIC_STYLE'
,
''
);
$APPLICATION
->
SetPageProperty
(
'PAGE_HEAD_PIC_STYLE'
,
''
);
$APPLICATION
->
SetPageProperty
(
'HIDE_CENTRING_WRAP'
,
''
);
$APPLICATION
->
SetPageProperty
(
'HIDE_CENTRING_WRAP'
,
''
);
$APPLICATION
->
SetPageProperty
(
'HIDE_FOOTER'
,
''
);
$APPLICATION
->
SetPageProperty
(
'HIDE_FOOTER'
,
''
);
require
BASE_PATH
.
'/local/templates/main/header.php'
;
require
BASE_PATH
.
'/local/templates/main/header.php'
;
require
INCLUDE_PATH
.
'sitemap.php'
;
require
INCLUDE_PATH
.
'sitemap.php'
;
require
BASE_PATH
.
'/local/templates/main/footer.php'
;
require
BASE_PATH
.
'/local/templates/main/footer.php'
;
require
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/bitrix/footer.php"
;
require
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/bitrix/footer.php"
;
//require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php");
//require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php");
$APPLICATION
->
SetTitle
(
"Страница не найдена"
);
$APPLICATION
->
SetTitle
(
"Страница не найдена"
);
\ No newline at end of file
\ No newline at end of file
css/main.css
View file @
c415b59
This diff could not be displayed because it is too large.
css/media.css
View file @
c415b59
...
@@ -150,7 +150,7 @@ li.additional_list_item{margin-bottom:20px;float:left;}
...
@@ -150,7 +150,7 @@ li.additional_list_item{margin-bottom:20px;float:left;}
.header._fixed
.fav-link
{
top
:
8px
;}
.header._fixed
.fav-link
{
top
:
8px
;}
.header
.fav-link-icon
:after
{
margin
:
-12px
0
0
-11px
;}
.header
.fav-link-icon
:after
{
margin
:
-12px
0
0
-11px
;}
.header
.fav-link-count
,
.header
.fav-link-clear
{
left
:
5px
;}
.header
.fav-link-count
,
.header
.fav-link-clear
{
left
:
5px
;}
.out_sub_menu
{
/*top:193px*/
;
z-index
:
10
;}
.out_sub_menu
{
top
:
220px
;
z-index
:
10
;}
.page-head._bigger
+
.page-content
{
/* padding-top:180px; */
}
.page-head._bigger
+
.page-content
{
/* padding-top:180px; */
}
.projects-list
{
margin-top
:
0
;
position
:
relative
;
z-index
:
20
;}
.projects-list
{
margin-top
:
0
;
position
:
relative
;
z-index
:
20
;}
.filter._inner-page
{
margin
:
0
;
bottom
:
auto
;
left
:
0
;
width
:
100%
;
top
:
100%
;}
.filter._inner-page
{
margin
:
0
;
bottom
:
auto
;
left
:
0
;
width
:
100%
;
top
:
100%
;}
...
@@ -195,7 +195,7 @@ li.additional_list_item{margin-bottom:20px;float:left;}
...
@@ -195,7 +195,7 @@ li.additional_list_item{margin-bottom:20px;float:left;}
.main-menu-item-link
,
._fixed
.main-menu-item-link
{
line-height
:
45px
;}
.main-menu-item-link
,
._fixed
.main-menu-item-link
{
line-height
:
45px
;}
span
.mobile_menu_wrap
{
width
:
37px
;
height
:
37px
;
background-image
:
url(/img/png/logo_y.png)
;
background-size
:
cover
;
position
:
absolute
;
right
:
54px
;
top
:
18px
;
-webkit-transition
:
all
0.4s
;
transition
:
all
0.4s
;
cursor
:
pointer
;}
span
.mobile_menu_wrap
{
width
:
37px
;
height
:
37px
;
background-image
:
url(/img/png/logo_y.png)
;
background-size
:
cover
;
position
:
absolute
;
right
:
54px
;
top
:
18px
;
-webkit-transition
:
all
0.4s
;
transition
:
all
0.4s
;
cursor
:
pointer
;}
span
.mobile_menu_wrap.mobile
{
width
:
37px
;
height
:
37px
;
background-image
:
url(/img/png/logo_y.png)
;
background-size
:
cover
;
position
:
absolute
;
right
:
11px
;
top
:
18px
;
-webkit-transition
:
all
0.4s
;
transition
:
all
0.4s
;
cursor
:
pointer
;}
span
.mobile_menu_wrap.mobile
{
width
:
37px
;
height
:
37px
;
background-image
:
url(/img/png/logo_y.png)
;
background-size
:
cover
;
position
:
absolute
;
right
:
11px
;
top
:
18px
;
-webkit-transition
:
all
0.4s
;
transition
:
all
0.4s
;
cursor
:
pointer
;}
span
.mobile_menu_wrap_phone
{
width
:
37px
;
height
:
37px
;
background-image
:
url(/img/svg/Vector.svg)
;
background-size
:
cover
;
position
:
absolute
;
right
:
104px
;
top
:
18px
;
-webkit-transition
:
all
0.4s
;
transition
:
all
0.4s
;
cursor
:
pointer
;}
span
.mobile_menu_wrap_phone
{
width
:
37px
;
height
:
37px
;
background-image
:
url(/img/svg/Vector.svg)
;
background-size
:
cover
;
position
:
absolute
;
right
:
104px
;
top
:
18px
;
-webkit-transition
:
all
0.4s
;
transition
:
all
0.4s
;
cursor
:
pointer
;}
span
.mobile_menu_wrap_phone.mobile
{
width
:
37px
;
height
:
37px
;
background-image
:
url(/img/svg/Vector.svg)
;
background-size
:
cover
;
position
:
absolute
;
right
:
51px
;
top
:
18px
;
-webkit-transition
:
all
0.4s
;
transition
:
all
0.4s
;
cursor
:
pointer
;}
span
.mobile_menu_wrap_phone.mobile
{
width
:
37px
;
height
:
37px
;
background-image
:
url(/img/svg/Vector.svg)
;
background-size
:
cover
;
position
:
absolute
;
right
:
51px
;
top
:
18px
;
-webkit-transition
:
all
0.4s
;
transition
:
all
0.4s
;
cursor
:
pointer
;}
._fixed
.secret-button
{
top
:
18px
;}
._fixed
.secret-button
{
top
:
18px
;}
.logo
{
left
:
11px
;}
.logo
{
left
:
11px
;}
...
@@ -206,7 +206,7 @@ li.additional_list_item{margin-bottom:20px;float:left;}
...
@@ -206,7 +206,7 @@ li.additional_list_item{margin-bottom:20px;float:left;}
.path-current
{
padding
:
0
5px
;}
.path-current
{
padding
:
0
5px
;}
.page-head._bigger
.path-current
{
margin-bottom
:
6px
;}
.page-head._bigger
.path-current
{
margin-bottom
:
6px
;}
.page-head._mp
{
overflow
:
hidden
;}
.page-head._mp
{
overflow
:
hidden
;}
.page-content
{
padding
:
63px
0
30px
0
;
}
.page-content
{
/* padding: 200px 0 30px 0; */
}
._top
.path
{
padding-top
:
70px
;
text-align
:
center
;
margin
:
0
;}
._top
.path
{
padding-top
:
70px
;
text-align
:
center
;
margin
:
0
;}
.page-head._bigger
.path
{
padding-top
:
3px
;
margin
:
0
;
text-align
:
center
;}
.page-head._bigger
.path
{
padding-top
:
3px
;
margin
:
0
;
text-align
:
center
;}
.page-head._bigger
.phone
{
/* bottom:7px; */
top
:
auto
;
left
:
0
;
width
:
100%
;}
.page-head._bigger
.phone
{
/* bottom:7px; */
top
:
auto
;
left
:
0
;
width
:
100%
;}
...
@@ -442,16 +442,16 @@ li.additional_list_item{margin-bottom:20px;float:left;}
...
@@ -442,16 +442,16 @@ li.additional_list_item{margin-bottom:20px;float:left;}
height
:
250px
;
height
:
250px
;
}
}
.header
.fav-link-icon
{
.header
.fav-link-icon
{
position
:
absolute
;
position
:
absolute
;
width
:
37px
;
width
:
37px
;
height
:
37px
;
height
:
37px
;
left
:
38%
;
left
:
38%
;
top
:
8px
;
top
:
8px
;
}
}
.page-head._bigger
{
.page-head._bigger
{
height
:
100px
;
height
:
100px
;
}
}
.footer
>
*
{
.footer
>
*
{
display
:
block
;
display
:
block
;
...
...
js/index.js
View file @
c415b59
...
@@ -435,7 +435,7 @@ $(document).ready(function() {
...
@@ -435,7 +435,7 @@ $(document).ready(function() {
},
4000
);
},
4000
);
}
}
// вызов
// вызов
printNumbersTimeout
();
printNumbersTimeout
();
});
});
...
@@ -481,5 +481,51 @@ $(document).ready(function() {
...
@@ -481,5 +481,51 @@ $(document).ready(function() {
});
});
// фильтры для мобильной версии
$
(
document
).
ready
(
function
()
{
//Horizontal Tab
$
(
'#parentHorizontalTab'
).
easyResponsiveTabs
({
type
:
'default'
,
//Types: default, vertical, accordion
width
:
'auto'
,
//auto or any width like 600px
fit
:
true
,
// 100% fit in a container
tabidentify
:
'hor_1'
,
// The tab groups identifier
activate
:
function
(
event
)
{
// Callback function if tab is switched
var
$tab
=
$
(
this
);
var
$info
=
$
(
'#nested-tabInfo'
);
var
$name
=
$
(
'span'
,
$info
);
$name
.
text
(
$tab
.
text
());
$info
.
show
();
}
});
// Child Tab
$
(
'#ChildVerticalTab_1'
).
easyResponsiveTabs
({
type
:
'vertical'
,
width
:
'auto'
,
fit
:
true
,
tabidentify
:
'ver_1'
,
// The tab groups identifier
activetab_bg
:
'#fff'
,
// background color for active tabs in this group
inactive_bg
:
'#F5F5F5'
,
// background color for inactive tabs in this group
active_border_color
:
'#c1c1c1'
,
// border color for active tabs heads in this group
active_content_border_color
:
'#5AB1D0'
// border color for active tabs contect in this group so that it matches the tab head border
});
//Vertical Tab
$
(
'#parentVerticalTab'
).
easyResponsiveTabs
({
type
:
'vertical'
,
//Types: default, vertical, accordion
width
:
'auto'
,
//auto or any width like 600px
fit
:
true
,
// 100% fit in a container
closed
:
'accordion'
,
// Start closed if in accordion view
tabidentify
:
'hor_1'
,
// The tab groups identifier
activate
:
function
(
event
)
{
// Callback function if tab is switched
var
$tab
=
$
(
this
);
var
$info
=
$
(
'#nested-tabInfo2'
);
var
$name
=
$
(
'span'
,
$info
);
$name
.
text
(
$tab
.
text
());
$info
.
show
();
}
});
});
local/include/project-filter.php
View file @
c415b59
<?
$projectFilter
=
\SH\ProjectFilter
::
getInstance
()
;
?>
<form
class=
"js-filter form-filter
<?
if
(
$arParams
[
'IS_AJAX_FILTER'
])
{
?>
ajax-filter
<?
}
?>
"
method=
"get"
action=
"/projects/
<?
if
(
!
empty
(
$arParams
[
'IS_FAVE'
]))
{
?>
fave/
<?
}
?>
"
id=
'search_form_main'
>
<?
foreach
(
$projectFilter
->
getFilterData
()
as
$key
=>
$filterData
)
{
?>
<?
foreach
(
$filterData
[
'items'
]
as
$code
=>
$filterItem
)
{
$key
==
'section'
?
$input_class
=
'section_input'
:
$input_class
=
'value_input'
;
?>
<?
if
(
$code
==
'all'
)
{
if
(
$APPLICATION
->
GetCurPage
()
!=
'/'
)
{
?>
<input
type=
"hidden"
name=
"
<?=
$key
?>
[
<?=
$code
?>
]"
value=
"
<?=
$filterItem
[
'selected'
]
?
1
:
0
?>
"
id=
"
<?=
$key
?>
-
<?=
$code
?>
"
class=
"
<?=
$input_class
;
?>
"
>
<?
}
}
else
{
if
(
$APPLICATION
->
GetCurPage
()
==
'/'
)
{
?>
<input
type=
"hidden"
name=
"
<?=
$key
?>
[
<?=
$code
?>
]"
value=
"
<?=
$code
==
'house'
?
1
:
0
?>
"
id=
"
<?=
$key
?>
-
<?=
$code
?>
"
class=
"
<?=
$input_class
;
?>
"
>
<?
}
else
{
?>
<input
type=
"hidden"
name=
"
<?=
$key
?>
[
<?=
$code
?>
]"
value=
"
<?=
$filterItem
[
'selected'
]
?
1
:
0
?>
"
id=
"
<?=
$key
?>
-
<?=
$code
?>
"
class=
"
<?=
$input_class
;
?>
"
>
<?
}
}
?>
<?
}
?>
<?
}
?>
<div
class=
"filter
<?
if
(
$APPLICATION
->
GetCurPage
()
==
'/'
)
{
?>
_main-page
<?
}
else
{
?>
_inner-page
<?
}
?>
"
>
<div
class=
"filter-element _type"
>
<?
$key
=
'section'
;
$filterData
=
$projectFilter
->
getFilterData
(
$key
)
?>
<?
foreach
(
$filterData
[
'items'
]
as
$code
=>
$filterItem
)
{
?>
<?
if
(
$code
==
'all'
)
{
// не выводим раздел "все" на главной стр
if
(
$APPLICATION
->
GetCurPage
()
!=
'/'
)
{
?>
<a
href=
"
<?=
$filterItem
[
'url'
]
?>
"
class=
"filter-type"
data-input=
"
<?=
$key
?>
-
<?=
$code
?>
"
data-type=
"
<?=
$code
?>
"
>
<?=
$filterItem
[
'name'
]
?>
</a>
<?
}
}
else
{
?>
<a
href=
"
<?=
$filterItem
[
'url'
]
?>
"
class=
"filter-type"
data-input=
"
<?=
$key
?>
-
<?=
$code
?>
"
data-type=
"
<?=
$code
?>
"
>
<?=
$filterItem
[
'name'
]
?>
</a>
<?
}
?>
<?
}
?>
</div>
<?
if
(
$APPLICATION
->
GetCurPage
()
!=
'/'
)
{
?>
</div>
<?
if
(
$_SERVER
[
'REQUEST_URI'
]
==
'/projects/'
)
{
?>
<style>
.text-content
H1
{
margin
:
0
;
padding
:
0
;
}
.static-content
{
padding-bottom
:
0
;
margin-top
:
60px
;
}
@media
(
max-width
:
1000px
)
{
@media
(
max-width
:
1024px
)
{
.page-head._bigger
+
.page-content
{
padding-top
:
0px
;
}
}
</style>
<?
}
?>
<?
if
(
$_SERVER
[
'REQUEST_URI'
]
==
'/projects/doma-iz-kleenogo-brusa/'
){
?>
<style>
.page-content
{
/*padding: 100px 0 30px 0;*/
}
.projects-list
{
margin-top
:
75px
;
}
.text-content
H1
{
margin
:
0
;
padding
:
0
;
}
.static-content
{
padding-bottom
:
0
;
margin-top
:
90px
;
}
@media
(
max-width
:
1000px
)
{
.out_sub_menu
{
/* top: 193px;*/
z-index
:
10
;
}
}
@media
(
max-width
:
1024px
)
{
.page-head._bigger
+
.page-content
{
padding-top
:
200px
;
}
}
</style>
<?
}
if
(
$_SERVER
[
'REQUEST_URI'
]
==
'/projects/bani-iz-kleenogo-brusa/'
){
?>
<style>
.page-content
{
/*padding: 100px 0 30px 0;*/
}
.projects-list
{
margin-top
:
45px
;
}
.text-content
H1
{
margin
:
0
;
padding
:
0
;
}
.static-content
{
padding-bottom
:
0
;
margin-top
:
60px
;
}
@media
(
max-width
:
1000px
)
{
.out_sub_menu
{
/*top: 193px;*/
z-index
:
10
;
}
}
@media
(
max-width
:
1024px
)
{
.page-head._bigger
+
.page-content
{
padding-top
:
100px
;
}
}
</style>
<?
}
if
(
$_SERVER
[
'REQUEST_URI'
]
==
'/projects/raznye-proekty/'
){
?>
<style>
.page-content
{
/*padding: 100px 0 30px 0;*/
}
.projects-list
{
margin-top
:
60px
;
}
.text-content
H1
{
margin
:
0
;
padding
:
0
;
}
.static-content
{
padding-bottom
:
0
;
margin-top
:
60px
;
}
@media
(
max-width
:
1000px
)
{
.out_sub_menu
{
/*top: 193px;*/
z-index
:
10
;
}
}
@media
(
max-width
:
1024px
)
{
.page-head._bigger
+
.page-content
{
padding-top
:
100px
;
}
}
</style>
<?
}
?>
<?
}
?>
<?
if
(
$APPLICATION
->
GetCurPage
()
!=
'/'
)
{
?>
<div
class=
'out_sub_menu'
>
<?
}
?>
<div
class=
"filter-element _parent"
>
<div
class=
"filter-element _house _inactive"
data-type=
"house"
>
<div
class=
"filter-element _select _house-area"
>
<?
if
(
$APPLICATION
->
GetCurPage
()
==
'/'
)
{
?>
<a
href=
"#!"
class=
"filter-select-title"
>
площадь
</a>
<?
}
?>
<div
class=
"filter-select"
>
<div
class=
'filter-inner-wrap'
>
<?
$key
=
'square'
;
$filterData
=
$projectFilter
->
getFilterData
(
$key
)
;
?>
<?
foreach
(
$filterData
[
'items'
]
as
$code
=>
$filterItem
)
{
?>
<a
href=
"#!"
class=
"filter-select-item filter-chosable"
data-name=
"
<?=
$key
?>
:
<?=
$code
?>
"
data-input=
"
<?=
$key
?>
-
<?=
$code
?>
"
><span>
<?=
$filterItem
[
'name'
]
?>
</span></a>
<?
}
?>
</div>
</div>
</div>
<div
class=
"filter-element _select _house-floors"
>
<?
if
(
$APPLICATION
->
GetCurPage
()
==
'/'
)
{
?>
<a
href=
"#!"
class=
"filter-select-title"
>
этажи
</a>
<?
}
?>
<div
class=
"filter-select"
>
<div
class=
'filter-inner-wrap'
>
<?
$key
=
'floors'
;
$filterData
=
$projectFilter
->
getFilterData
(
$key
)
?>
<?
foreach
(
$filterData
[
'items'
]
as
$code
=>
$filterItem
)
{
?>
<a
href=
"#!"
class=
"filter-select-item filter-chosable"
data-name=
"
<?=
$key
?>
:
<?=
$code
?>
"
data-input=
"
<?=
$key
?>
-
<?=
$code
?>
"
><span>
<?=
$filterItem
[
'name'
]
?>
</span></a>
<?
}
?>
</div>
</div>
</div>
<div
class=
"filter-element _select _house-bedrooms"
>
<?
if
(
$APPLICATION
->
GetCurPage
()
==
'/'
)
{
?>
<a
href=
"#!"
class=
"filter-select-title"
>
спальни
</a>
<?
}
?>
<div
class=
"filter-select"
>
<div
class=
'filter-inner-wrap'
>
<?
$key
=
'bedrooms'
;
$filterData
=
$projectFilter
->
getFilterData
(
$key
)
?>
<?
foreach
(
$filterData
[
'items'
]
as
$code
=>
$filterItem
)
{
?>
<a
href=
"#!"
class=
"filter-select-item filter-chosable"
data-name=
"
<?=
$key
?>
:
<?=
$code
?>
"
data-input=
"
<?=
$key
?>
-
<?=
$code
?>
"
><span>
<?=
$filterItem
[
'name'
]
?>
</span></a>
<?
}
?>
</div>
</div>
</div>
<div
class=
"filter-element _select _house-combo"
>
<?
if
(
$APPLICATION
->
GetCurPage
()
==
'/'
)
{
?>
<a
href=
"#!"
class=
"filter-select-title"
>
Тип
</a>
<?
}
?>
<div
class=
"filter-select"
>
<div
class=
'filter-inner-wrap'
>
<?
$key
=
'combo'
;
$filterData
=
$projectFilter
->
getFilterData
(
$key
)
;
?>
<?
foreach
(
$filterData
[
'items'
]
as
$code
=>
$filterItem
)
{
?>
<a
href=
"#!"
class=
"filter-select-item filter-chosable"
data-name=
"
<?=
$key
?>
:
<?=
$code
?>
"
data-input=
"
<?=
$key
?>
-
<?=
$code
?>
"
><span>
<?=
$filterItem
[
'name'
]
?>
</span></a>
<?
}
?>
</div>
</div>
</div>
</div>
<div
class=
"filter-element _bathhouse _inactive"
data-type=
"bathhouse"
>
<?
$key
=
'bathhouse-floors'
;
$filterData
=
$projectFilter
->
getFilterData
(
$key
)
?>
<?
foreach
(
$filterData
[
'items'
]
as
$code
=>
$filterItem
)
{
?>
<a
href=
"#!"
class=
"filter-option filter-chosable"
data-name=
"
<?=
$key
?>
:
<?=
$code
?>
"
data-input=
"
<?=
$key
?>
-
<?=
$code
?>
"
><span>
<?=
$filterItem
[
'name'
]
?>
</span></a>
<?
}
?>
</div>
<div
class=
"filter-element _misc _inactive"
data-type=
"misc"
>
<?
$key
=
'misc-type'
;
$filterData
=
$projectFilter
->
getFilterData
(
$key
)
;
?>
<?
foreach
(
$filterData
[
'items'
]
as
$code
=>
$filterItem
)
{
?>
<a
href=
"#!"
class=
"filter-option filter-chosable"
data-name=
"
<?=
$key
?>
:
<?=
$code
?>
"
data-input=
"
<?=
$key
?>
-
<?=
$code
?>
"
><span>
<?=
$filterItem
[
'name'
]
?>
</span></a>
<?
}
?>
</div>
<div
class=
"filter-element _all _inactive"
data-type=
"all"
></div>
</div>
<?
if
(
$APPLICATION
->
GetCurPage
()
==
'/'
)
{
?>
<button
class=
"filter-element _submit filter-submit-button"
type=
"submit"
>
подобрать
</button>
<?
}
?>
</div>
</form>
\ No newline at end of file
\ No newline at end of file
<?
$projectFilter
=
\SH\ProjectFilter
::
getInstance
();
?>
<?
//26.04.2017 Hawks
CModule
::
IncludeModule
(
'nurgush.mobiledetect'
);
$detect
=
new
Nurgush\MobileDetect\Main
();
// Для мобыльных
if
(
$detect
->
isMobile
()
&&
!
$detect
->
isTablet
())
{
?>
<?
include
'filter_params_mobile.php'
;
?>
<?
}
else
{
?>
<?
include
'filter_params.php'
;
?>
<?
}
?>
\ No newline at end of file
\ No newline at end of file
local/templates/main/footer.php
View file @
c415b59
<?
//$APPLICATION->AddBufferContent(function() {
<?
//$APPLICATION->AddBufferContent(function() {
global
$APPLICATION
;
global
$APPLICATION
;
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_CENTRING_WRAP'
))
echo
'</div><!-- </div class="centering"> -->'
;
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_CENTRING_WRAP'
))
echo
'</div><!-- </div class="centering"> -->'
;
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_PAGE_CONTENT'
))
echo
'</div><!-- </div class="page-content"> -->'
;
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_PAGE_CONTENT'
))
echo
'</div><!-- </div class="page-content"> -->'
;
//})?>
//})?>
</
div
>
</
div
>
<?
if
(
isProduction
())
include
INCLUDE_PATH
.
'counters-before-footer.php'
?>
<?
if
(
isProduction
())
include
INCLUDE_PATH
.
'counters-before-footer.php'
?>
<?
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_FOOTER'
))
{
?>
<?
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_FOOTER'
))
{
?>
<footer
class=
"footer"
>
<footer
class=
"footer"
>
<?
//26.04.2017 Hawks
<?
//26.04.2017 Hawks
CModule
::
IncludeModule
(
'nurgush.mobiledetect'
);
CModule
::
IncludeModule
(
'nurgush.mobiledetect'
);
$detect
=
new
Nurgush\MobileDetect\Main
();
$detect
=
new
Nurgush\MobileDetect\Main
();
// Для мобыльных
// Для мобыльных
if
(
$detect
->
isMobile
()
&&
!
$detect
->
isTablet
()){
?>
if
(
$detect
->
isMobile
()
&&
!
$detect
->
isTablet
()){
?>
<?
}
else
{
?>
<?
}
else
{
?>
<div
class=
"copy"
>
©
<?=
date
(
'Y'
)
?>
ООО «Строй Хауз»
</div>
<div
class=
"copy"
>
©
<?=
date
(
'Y'
)
?>
ООО «Строй Хауз»
</div>
<?
}
?>
<?
}
?>
<div
id=
"upbutton"
></div>
<div
id=
"upbutton"
></div>
<?
//22.06.2017 Hawks
<?
//22.06.2017 Hawks
CModule
::
IncludeModule
(
'nurgush.mobiledetect'
);
CModule
::
IncludeModule
(
'nurgush.mobiledetect'
);
$detect
=
new
Nurgush\MobileDetect\Main
();
$detect
=
new
Nurgush\MobileDetect\Main
();
// Для мобыльных и планшетов
// Для мобыльных и планшетов
if
(
$detect
->
isMobile
()
||
$detect
->
isTablet
()){
?>
if
(
$detect
->
isMobile
()
||
$detect
->
isTablet
()){
?>
<span><a
class=
"menu"
href=
"/company/"
>
Наша компания
</a><a
class=
"menu"
href=
"/projects/"
>
Список проектов
</a></span>
<span><a
class=
"menu"
href=
"/company/"
>
Наша компания
</a><a
class=
"menu"
href=
"/projects/"
>
Список проектов
</a></span>
<span><a
class=
"menu"
href=
"/services/"
>
Услуги
</a><a
class=
"menu"
href=
"/info/lumber/"
>
Полезная информация
</a></span>
<span><a
class=
"menu"
href=
"/services/"
>
Услуги
</a><a
class=
"menu"
href=
"/info/lumber/"
>
Полезная информация
</a></span>
<span><a
class=
"menu"
href=
"price/design-cost/"
"
>
Цены
</a><a
class=
"menu"
href=
"/contacts/"
>
Контакты
</a></span>
<span><a
class=
"menu"
href=
"price/design-cost/"
"
>
Цены
</a><a
class=
"menu"
href=
"/contacts/"
>
Контакты
</a></span>
<?
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'
]))
{
?>
<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>
<?
}
?>
<?
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>
<?
}
?>
<a
class=
"author"
>
Stroy House
</a>
<a
class=
"author"
>
Stroy House
</a>
<a
class=
"author"
>
info@s-h.ru
</a>
<a
class=
"author"
>
info@s-h.ru
</a>
<!-- <a class="author">Россия, Московская область, Истринский район, Веледниково, улица Живописная, дом 25.</a>-->
<!-- <a class="author">Россия, Московская область, Истринский район, Веледниково, улица Живописная, дом 25.</a>-->
<a
class=
"author"
>
+7 (495) 645–44–30
</a>
<a
class=
"author"
>
+7 (495) 645–44–30
</a>
<a
class=
"author"
>
Россия, Москва, Селивёрстов переулок, 1А
</a>
<a
class=
"author"
>
Россия, Москва, Селивёрстов переулок, 1А
</a>
<?
}
else
{
?>
<?
}
else
{
?>
<?
}
?>
<?
}
?>
<!--noindex-->
<!--noindex-->
<?
<?
//26.04.2017 Hawks
//26.04.2017 Hawks
CModule
::
IncludeModule
(
'nurgush.mobiledetect'
);
CModule
::
IncludeModule
(
'nurgush.mobiledetect'
);
$detect
=
new
Nurgush\MobileDetect\Main
();
$detect
=
new
Nurgush\MobileDetect\Main
();
// Для мобыльных
// Для мобыльных
if
(
!
$detect
->
isMobile
()
&&
!
$detect
->
isTablet
()){
?>
if
(
!
$detect
->
isMobile
()
&&
!
$detect
->
isTablet
()){
?>
<ul
class=
"social-links"
>
<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="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=
"//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=
"//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.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=
"//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>
<li
class=
"social-links-item"
><a
href=
"//instagram.com/stroyhouse/"
class=
"social-links-link _inst"
></a></li>
</ul>
</ul>
<!--/noindex-->
<!--/noindex-->
<div
class=
"author"
>
Сайт срубили —
<a
href=
"http://cpeople.ru/"
>
CreativePeople
</a></div>
<div
class=
"author"
>
Сайт срубили —
<a
href=
"http://cpeople.ru/"
>
CreativePeople
</a></div>
</footer>
</footer>
<?
}
else
{
?>
<?
}
else
{
?>
<ul
class=
"social-links"
>
<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="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=
"//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=
"//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.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=
"//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>
<li
class=
"social-links-item"
><a
href=
"//instagram.com/stroyhouse/"
class=
"social-links-link _inst"
></a></li>
</ul>
</ul>
<!--/noindex-->
<!--/noindex-->
<div
class=
"author"
>
Сайт срубили —
<a
href=
"http://cpeople.ru/"
>
CreativePeople
</a></div>
<div
class=
"author"
>
Сайт срубили —
<a
href=
"http://cpeople.ru/"
>
CreativePeople
</a></div>
<div
class=
"copy"
>
©
<?=
date
(
'Y'
)
?>
ООО «Строй Хауз»
</div>
<div
class=
"copy"
>
©
<?=
date
(
'Y'
)
?>
ООО «Строй Хауз»
</div>
</footer>
</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'
>
<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>
<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/flaticon.css"
>
<link
rel=
"stylesheet"
type=
'text/css'
href=
"/css/media.css"
>
<link
rel=
"stylesheet"
type=
'text/css'
href=
"/css/media.css"
>
<!-- Add mousewheel plugin (this is optional) -->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/easy-responsive-tabs.css "
/>
</script>
<!-- Add mousewheel plugin (this is optional) -->
<script
src=
"//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
></script>
</script>
<script
src=
"//maps.googleapis.com/maps/api/js?v=3.exp"
></script>
<script
src=
"/js/jquery-1.9.1.min.js?
<?=
filemtime
(
BASE_PATH
.
'/js/jquery-1.9.1.min.js'
)
?>
"
></script>
<script
src=
"/js/compiled.js?
<?=
filemtime
(
BASE_PATH
.
'/js/compiled.js'
)
?>
"
type=
"text/javascript"
></script>
<script
src=
"//maps.googleapis.com/maps/api/js?v=3.exp"
></script>
<script
src=
"//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"
></script>
<script
src=
"/js/compiled.js?
<?=
filemtime
(
BASE_PATH
.
'/js/compiled.js'
)
?>
"
type=
"text/javascript"
></script>
<script
src=
"//yastatic.net/share2/share.js"
></script>
<script
src=
"//yastatic.net/es5-shims/0.0.2/es5-shims.min.js"
></script>
<script
src=
"/js/jquery.maskedinput.js?
<?=
filemtime
(
BASE_PATH
.
'/js/jquery.maskedinput.js'
)
?>
"
type=
"text/javascript"
></script>
<script
src=
"//yastatic.net/share2/share.js"
></script>
<script
src=
"/js/index.js"
></script>
<script
src=
"/js/easyResponsiveTabs.js?
<?=
filemtime
(
BASE_PATH
.
'/js/easyResponsiveTabs.js'
)
?>
"
></script>
<?php
if
((
strpos
(
$_SERVER
[
"REQUEST_URI"
],
'/projects/'
)
!==
false
)
||
(
strpos
(
$_SERVER
[
"REQUEST_URI"
],
'/price/'
)
!==
false
)
||
(
strpos
(
$_SERVER
[
"REQUEST_URI"
],
'/contacts/'
)
!==
false
))
{
?>
<script
src=
"/js/jquery.maskedinput.js?
<?=
filemtime
(
BASE_PATH
.
'/js/jquery.maskedinput.js'
)
?>
"
type=
"text/javascript"
></script>
<!-- BEGIN JIVOSITE CODE {literal} -->
<script
src=
"/js/index.js"
></script>
<script
type=
'text/javascript'
>
<?php
if
((
strpos
(
$_SERVER
[
"REQUEST_URI"
],
'/projects/'
)
!==
false
)
||
(
strpos
(
$_SERVER
[
"REQUEST_URI"
],
'/price/'
)
!==
false
)
||
(
strpos
(
$_SERVER
[
"REQUEST_URI"
],
'/contacts/'
)
!==
false
))
{
?>
(
function
(){
var
widget_id
=
'sfDg6YF840'
;
var
d
=
document
;
var
w
=
window
;
function
l
(){
<!-- BEGIN JIVOSITE CODE {literal} -->
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>
<script
type=
'text/javascript'
>
<!-- {/literal} END JIVOSITE CODE -->
(
function
(){
var
widget_id
=
'sfDg6YF840'
;
var
d
=
document
;
var
w
=
window
;
function
l
(){
<?php
}
?>
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>
</body>
<!-- {/literal} END JIVOSITE CODE -->
<?php
}
?>
</body>
</html>
</html>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment