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 106716f7
authored
Sep 14, 2017
by
Semenenko Timofey
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Новые рекомендации по карте проектов.
1 parent
3e1bd2e7
Pipeline
#2944
for
106716f7
skipped
in 0 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
local/components/cpeople/contacts/templates/.default/tab-office.php
local/components/cpeople/contacts/templates/.default/template.php
local/templates/main/header.php
local/components/cpeople/contacts/templates/.default/tab-office.php
View file @
106716f
...
...
@@ -6,7 +6,7 @@
<div
class=
"contacts-tabs-item _active js-tab"
data-id=
"1"
>
<ul
class=
"contacts-list js-list-container"
>
<?
foreach
(
$arResult
[
'OFFICES'
]
as
$i
=>
$item
)
{
?>
<li
class=
"contacts-list-item _collapsable js-collapsable
<?
if
(
!
$i
)
{
?>
_active
<?
}
?>
"
itemscope
itemtype=
"http://schema.org/Organization"
>
<li
class=
"contacts-list-item _collapsable js-collapsable
<?
if
(
!
$i
)
{
?>
<?
}
?>
"
itemscope
itemtype=
"http://schema.org/Organization"
>
<span
style=
"display:none"
itemprop=
"name"
>
Stroy House
<?
if
(
$subtitle
=
$item
->
getSubtitle
())
{
?>
(
<?=
$subtitle
?>
)
<?
}
?>
</span>
<a
href=
"#!"
class=
"contacts-list-item-title js-collapsable-toggle js-office"
data-id=
"
<?=
$item
->
ID
?>
"
>
<b>
<?=
$item
->
getName
()
?>
</b>
...
...
local/components/cpeople/contacts/templates/.default/template.php
View file @
106716f
<?
require
(
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/bitrix/header.php"
);
?>
<div
class=
"contacts"
>
<div
class=
"contacts-wr"
>
<div
class=
"contacts-map"
data-default-center=
"50,42"
>
<div
class=
"contacts-map"
>
<!--
<?=
getBreadCrumbsHtml
()
?>
-->
<a
href=
"#!"
class=
"contacts-map-zoom _in js-zoom-in"
></a>
<a
href=
"#!"
class=
"contacts-map-zoom _out js-zoom-out"
></a>
...
...
@@ -10,7 +10,7 @@
<div
class=
"contacts-content"
>
<div
class=
"contacts-content-wr"
>
<div
class=
"contacts-tabs-head"
>
<a
href=
"
#!"
class=
"contacts-tabs-head-item _active js-tab-toggle"
data-id=
"1"
>
Офисы
</a>
<a
href=
"
/contacts/"
class=
"contacts-tabs-head-item _active"
>
Офисы
</a>
<?
foreach
(
$arResult
[
'CONTACT_SECTIONS'
]
as
$section
)
{
?>
<a
href=
"#!"
class=
"contacts-tabs-head-item js-tab-toggle"
data-id=
"
<?=
$section
->
ID
?>
"
>
<?=
$section
->
NAME
?>
</a>
<?
}
?>
...
...
local/templates/main/header.php
View file @
106716f
...
...
@@ -208,11 +208,15 @@ if ($APPLICATION->GetCurPage() == '/projects/online/') echo '<meta name="robots"
</div>
<?
return
ob_get_clean
();
});
?>
<?
if
(
strpos
(
$_SERVER
[
'REQUEST_URI'
],
'projects'
)
==
fals
e
){
?>
<?
if
(
strpos
(
$_SERVER
[
'REQUEST_URI'
],
'projects'
)
==
tru
e
){
?>
<?
$APPLICATION
->
AddBufferContent
(
function
()
{
global
$APPLICATION
;
$result
=
''
;
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_PAGE_CONTENT'
))
$result
.=
'<div class="page-content">'
;
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_PAGE_CONTENT'
)
&&
(
$_SERVER
[
'REQUEST_URI'
]
==
'/projects/map/'
)){
$result
.=
'<div class="page-content">'
;
}
else
{
$result
.=
'<div class="page-contents">'
;
}
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_CENTRING_WRAP'
)
&&
(
$_SERVER
[
'REQUEST_URI'
]
!==
'/contacts/'
))
$result
.=
'<div class="centering">'
;
return
$result
;
})
?>
...
...
@@ -220,7 +224,11 @@ if ($APPLICATION->GetCurPage() == '/projects/online/') echo '<meta name="robots"
<?
$APPLICATION
->
AddBufferContent
(
function
()
{
global
$APPLICATION
;
$result
=
''
;
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_PAGE_CONTENT'
))
$result
.=
'<div class="page-contents">'
;
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_PAGE_CONTENT'
)
&&
(
$_SERVER
[
'REQUEST_URI'
]
==
'/contacts/'
)
){
$result
.=
'<div class="page-contents">'
;
}
else
{
$result
.=
'<div class="page-content">'
;
}
if
(
!
$APPLICATION
->
GetProperty
(
'HIDE_CENTRING_WRAP'
)
&&
(
$_SERVER
[
'REQUEST_URI'
]
!==
'/contacts/'
))
$result
.=
'<div class="centering">'
;
return
$result
;
})
?>
...
...
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