Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Яков
idivbanu
Commits
48680c56
Commit
48680c56
authored
May 29, 2018
by
Яков
Browse files
first
parents
Changes
359
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
359 of 359+
files are displayed.
Plain diff
Email patch
apps/www/templates/footer.php
0 → 100644
View file @
48680c56
<?php
if
(
sfConfig
::
get
(
'sf_environment'
)
==
'prod'
){
?>
<!-- Yandex.Metrika counter -->
<script
type=
"text/javascript"
>
(
function
(
d
,
w
,
c
)
{
(
w
[
c
]
=
w
[
c
]
||
[]).
push
(
function
()
{
try
{
w
.
yaCounter48466937
=
new
Ya
.
Metrika
({
id
:
48466937
,
clickmap
:
true
,
trackLinks
:
true
,
accurateTrackBounce
:
true
,
webvisor
:
true
});
}
catch
(
e
)
{
}
});
var
n
=
d
.
getElementsByTagName
(
"
script
"
)[
0
],
s
=
d
.
createElement
(
"
script
"
),
f
=
function
()
{
n
.
parentNode
.
insertBefore
(
s
,
n
);
};
s
.
type
=
"
text/javascript
"
;
s
.
async
=
true
;
s
.
src
=
"
https://mc.yandex.ru/metrika/watch.js
"
;
if
(
w
.
opera
==
"
[object Opera]
"
)
{
d
.
addEventListener
(
"
DOMContentLoaded
"
,
f
,
false
);
}
else
{
f
();
}
})(
document
,
window
,
"
yandex_metrika_callbacks
"
);
</script>
<noscript><div><img
src=
"https://mc.yandex.ru/watch/48466937"
style=
"position:absolute; left:-9999px;"
alt=
""
/></div></noscript>
<!-- /Yandex.Metrika counter -->
<?php
}
?>
<script
type=
"text/javascript"
>
basket
.
lang
=
'
<?php
echo
$sf_user
->
getCulture
();
?>
'
;
</script>
</body>
</html>
\ No newline at end of file
apps/www/templates/header.php
0 → 100644
View file @
48680c56
<!DOCTYPE html>
<html>
<head>
<link
rel=
"icon"
href=
"/i/favicon.png"
type=
"image/x-icon"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale = 1.0,maximum-scale = 1.0"
>
<?php
include_http_metas
();
include_metas
();
include_stylesheets
();
include_javascripts
();
?>
<title>
<?php
include_slot
(
'title'
,
sfConfig
::
get
(
'app_www_title'
));
?>
</title>
</head>
<body
<?php
echo
(
$sf_request
->
hasParameter
(
'url'
)
?
'class="scroll_hidden overlay_discount_active"'
:
''
)
?>
>
<script
type=
"text/javascript"
>
var
culture
=
'
<?php
echo
$sf_user
->
getCulture
();
?>
'
;
</script>
\ No newline at end of file
apps/www/templates/layout.php
0 → 100644
View file @
48680c56
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/header.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/top.php'
);
?>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr
valign=
"top"
>
<td>
<div
class=
"content__main max_width"
>
<?php
echo
$sf_content
;
?>
</div>
</td>
</tr>
</table>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/bottom.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/footer.php'
);
?>
apps/www/templates/layout404.php
0 → 100644
View file @
48680c56
<?php
slot
(
'title'
,
'Страница не найдена'
);
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/header.php'
);
?>
<a
href=
"
<?php
echo
url_for
(
"@homepage"
);
?>
"
class=
"error_404__logo"
></a>
<div
class=
"error_404__info"
>
<div
class=
"error_404__info__numbers"
></div>
<div
class=
"error_404__info__text"
>
Страница не найдена, но вы можете посмотреть другие
</div>
<ul
class=
"error_404__info__menu"
>
<li><a
href=
"
<?php
echo
url_for
(
"@catalog"
);
?>
"
>
Каталог
</a></li>
<li><a
href=
"
<?php
echo
url_for
(
"@video"
);
?>
"
>
Смотреть
</a></li>
<li><a
href=
"
<?php
echo
url_for
(
"@article"
);
?>
"
>
Читать
</a></li>
<li><a
href=
"
<?php
echo
url_for
(
"@review"
);
?>
"
>
Отзывы
</a></li>
</ul>
<div
class=
"error_404__info__search"
>
<form>
<input
type=
"text"
placeholder=
"Поиск по сайту"
>
<input
type=
"submit"
value=
" "
>
</form>
</div>
</div>
<div
class=
"error_404__stone"
></div>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/footer.php'
);
?>
\ No newline at end of file
apps/www/templates/layoutFullWidth.php
0 → 100644
View file @
48680c56
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/header.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/top.php'
);
?>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr
valign=
"top"
>
<td>
<?php
echo
$sf_content
;
?>
</td>
</tr>
</table>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/bottom.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/footer.php'
);
?>
\ No newline at end of file
apps/www/templates/layoutHome.php
0 → 100644
View file @
48680c56
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/header.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/top.php'
);
?>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr
valign=
"top"
>
<td>
<div
class=
"er_content__main"
>
<?php
echo
$sf_content
;
?>
</div>
</td>
</tr>
</table>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/bottom.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/footer.php'
);
?>
\ No newline at end of file
apps/www/templates/layoutLkLeftMenu.php
0 → 100644
View file @
48680c56
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/header.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/topNotLeftMenu.php'
);
?>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr
valign=
"top"
>
<td
width=
"1"
>
<div
class=
"er_wrap_right"
style=
"width:260px;"
>
<?php
include_component
(
'catalog'
,
'lkLeftMenu'
);
?>
</div>
</td>
<td>
<div
class=
"er_content__main"
>
<?php
echo
$sf_content
;
?>
<i
class=
"br80"
></i>
</div>
</td>
</tr>
</table>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/bottom.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/footer.php'
);
?>
\ No newline at end of file
apps/www/templates/layoutNotLeftMenu.php
0 → 100644
View file @
48680c56
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/header.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/topNotLeftMenu.php'
);
?>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr
valign=
"top"
>
<td>
<div
class=
"er_content__main"
>
<?php
echo
$sf_content
;
?>
<i
class=
"br80"
></i>
</div>
</td>
</tr>
</table>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/bottom.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/footer.php'
);
?>
\ No newline at end of file
apps/www/templates/layoutNotLeftMenuNotSearchField.php
0 → 100644
View file @
48680c56
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/header.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/topNotSearchField.php'
);
?>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr
valign=
"top"
>
<td>
<div
class=
"er_content__main"
>
<?php
echo
$sf_content
;
?>
<i
class=
"br80"
></i>
</div>
</td>
</tr>
</table>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/bottom.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/footer.php'
);
?>
\ No newline at end of file
apps/www/templates/layoutOrderComplite.php
0 → 100644
View file @
48680c56
<!DOCTYPE html>
<html>
<head>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1"
>
<?php
include_http_metas
();
include_metas
();
?>
<title>
<?php
include_slot
(
'title'
,
__
(
sfConfig
::
get
(
'app_www_title'
)));
?>
</title>
<?php
include_stylesheets
();
include_javascripts
();
get_javascripts
();
?>
</head>
<style>
.header404
{
height
:
110px
;
background-color
:
#8EC24F
;
background-image
:
url("../i/logotype.png")
;
background-repeat
:
no-repeat
;
background-position
:
50%
50%
;
background-size
:
211px
58px
;
}
</style>
<script>
$
(
document
).
ready
(
function
()
{
var
h
=
document
.
body
.
clientHeight
;
var
h_header
=
$
(
'
.header_orderComplite
'
).
outerHeight
();
var
h_footer
=
$
(
'
.er_footer
'
).
outerHeight
();
var
h_page
=
$
(
'
.page_orderComplite
'
).
outerHeight
();
var
min_h
=
h
-
h_header
-
h_footer
;
var
margin
=
(
min_h
-
h_page
)
/
2
;
$
(
'
.er_content__main
'
).
css
(
'
min-height
'
,
min_h
+
'
px
'
);
console
.
log
(
margin
);
$
(
'
.page_orderComplite
'
).
css
(
'
margin-top
'
,
(
margin
+
h_header
)
/
2
+
'
px
'
);
$
(
'
.page_orderComplite
'
).
css
(
'
margin-bottom
'
,
(
margin
+
h_header
)
/
2
+
'
px
'
);
});
</script>
<body>
<div
class=
"header_orderComplite"
>
<a
href=
"/"
>
<div
style=
"margin: 0 auto; border-bottom: none"
class=
"logotype"
></div>
</a>
</div>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr
valign=
"top"
>
<td>
<div
class=
"er_content__main"
>
<?php
echo
$sf_content
;
?>
</div>
</td>
</tr>
</table>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/bottom.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/footer.php'
);
?>
\ No newline at end of file
apps/www/templates/layoutPage.php
0 → 100644
View file @
48680c56
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/header.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/top.php'
);
?>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr
valign=
"top"
>
<td>
<?php
echo
$sf_content
;
?>
</td>
</tr>
</table>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/bottom.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/footer.php'
);
?>
\ No newline at end of file
apps/www/templates/mail_footer.php
0 → 100644
View file @
48680c56
</body>
</html>
\ No newline at end of file
apps/www/templates/mail_header.php
0 → 100644
View file @
48680c56
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<title>
#TITLE#
</title>
<style
type=
"text/css"
>
body
{
height
:
100%
!important
;
width
:
100%
!important
;
margin
:
0
;
padding
:
0
;
}
body
,
table
,
td
,
p
,
a
,
li
,
blockquote
{
-ms-text-size-adjust
:
100%
;
-webkit-text-size-adjust
:
100%
;
}
table
{
border-spacing
:
0
;
}
table
,
td
{
border-collapse
:
collapse
;
mso-table-lspace
:
0pt
;
mso-table-rspace
:
0pt
;
}
img
{
-ms-interpolation-mode
:
bicubic
;
}
img
,
a
img
{
border
:
0
;
outline
:
none
;
text-decoration
:
none
;
}
</style>
</head>
<body
leftmargin=
"0"
topmargin=
"0"
marginwidth=
"0"
marginheight=
"0"
bgcolor=
"#ffffff"
style=
"margin:0; padding:0; -webkit-text-size-adjust:none; -ms-text-size-adjust:none;"
>
<div
style=
"height:70px;margin-bottom: 20px;background:#65abd0;"
>
<img
src=
"http://app.elektro-ufa.ru/i/mail_logo.png"
border=
"0"
width=
"240"
height=
"70"
style=
""
>
</div>
<br><br>
<div
border=
"0"
width=
"600"
cellpadding=
"0"
cellspacing=
"0"
style=
"width: 600px; font-family: 'Arial'; font-size: 14px;"
>
apps/www/templates/top.php
0 → 100644
View file @
48680c56
<div
class=
"overlay_callback"
onclick=
"callback.close();"
>
<div
class=
"overlay_callback__item"
onclick=
"event.stopPropagation();"
>
<?php
include_component
(
'callback'
,
'callback'
);
?>
</div>
</div>
<?php
if
(
$sf_request
->
hasParameter
(
'url'
))
{
echo
'<div class="overlay_discount overlay_discount_active" onclick="discount.close();"><div class="overlay_discount__item" onclick="event.stopPropagation();">'
;
include_component
(
'discount'
,
'form'
);
echo
'</div></div>'
;
}
?>
<div
id=
"panel"
></div>
<div
class=
"search_overlay"
onclick=
"search.close();"
>
<div
class=
"search_overlay__line"
onclick=
"event.stopPropagation();"
>
<div
class=
"max_width"
>
<form
method=
"get"
action=
"
<?php
echo
url_for
(
'@search'
);
?>
"
>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tbody>
<tr>
<td>
<input
type=
"text"
class=
"search_overlay__line__inp"
autocomplete=
"off"
name=
"q"
placeholder=
"
<?php
echo
__
(
'Поиск'
);
?>
"
onkeyup=
"search.onKeyup(this);"
/>
</td>
<td
width=
"1"
>
<button
class=
"search_overlay__line__btn search_btn"
type=
"submit"
></button>
</td>
<td
width=
"20"
></td>
<td
width=
"1"
>
<div
class=
"search_overlay__close"
onclick=
"search.close();"
></div>
</td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
<div
class=
"search_overlay__result max_width"
onclick=
"event.stopPropagation();"
></div>
</div>
<div
class=
"body_wrapper_wrapper"
>
<table
class=
"body_wrapper"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
heigth=
"100%"
>
<tr>
<td
heigth=
"100%"
align=
"center"
>
<table
class=
"root_table"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
valign=
"top"
>
<td
class=
"root_table__top"
align=
"center"
>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/top_desktop.php'
);
?>
<?php
include
(
sfConfig
::
get
(
'sf_app_template_dir'
)
.
'/top_mobile.php'
);
?>
</td>
</tr>
<tr
valign=
"top"
onclick=
"$('.body_wrapper_search').removeClass('show');"
>
<td
class=
"root_table__middle"
align=
"center"
height=
"100%"
colspan=
"2"
>
<div
class=
"btn_to_up"
onclick=
"$('html, body').animate({scrollTop:0}, 600);"
></div>
<div
class=
"er_content"
>
apps/www/templates/topNotLeftMenu.php
0 → 100644
View file @
48680c56
<div
id=
"panel"
></div>
<div
class=
"body_wrapper_wrapper"
>
<table
class=
"body_wrapper"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
heigth=
"100%"
>
<tr>
<td
heigth=
"100%"
align=
"center"
>
<table
class=
"root_table"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
valign=
"top"
>
<td
class=
"root_table__top"
align=
"center"
width=
"260"
>
<a
href=
"/"
><div
style=
"border: none !important;"
class=
"logotype"
></div></a>
</td>
<td
class=
"root_table__top"
align=
"center"
>
<div
class=
"er_header"
>
<div
class=
"max_width"
>
<div
id=
"head_wrapper"
align=
"center"
>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr>
<td
align=
"center"
>
<div
class=
"max_width"
>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
class=
"fs_14"
>
<tr
valign=
"middle"
>
<td
class=
""
>
<div
class=
"zt_header__auth"
onclick=
"event.stopPropagation();"
>
<?php
include_component
(
'pages'
,
'subMenu'
,
array
(
'marking'
=>
'top'
));
?>
</div>
</td>
<td
width=
"1%"
>
<a
href=
"/personal/cart/"
class=
"er_header__cart green_button basket_button"
style=
"min-width: 192px;"
>
<nobr>
<?php
include_component
(
'basket'
,
'counter'
);
?>
</nobr>
</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
<table
class=
"header_search_authorize_section"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
valign=
"top"
>
<td>
<div
class=
"er_content__main__search"
>
<form
class=
"search_form"
action=
"
<?php
echo
url_for
(
'@search'
)
?>
"
>
<table
cellpadding=
"0"
cellspacing=
"0"
width=
"100%"
>
<tr>
<td
style=
"height: 63px; border: none"
>
<div
class=
"search_form_inp__wrap"
>
<input
id=
"title-search-input"
type=
"text"
name=
"query"
value=
"
<?php
include_slot
(
'search_query'
)
?>
"
onkeyup=
"search.quickSearch($(this).val())"
autocomplete=
"off"
placeholder=
"Поиск"
/>
<button
id=
"search-submit-button"
type=
"submit"
class=
"er_content__main__search__btn"
></button>
<div
class=
"search_result"
>
<div
id=
"search_div"
class=
"title-search-result sq_ct"
></div>
</div>
</div>
<input
type=
"hidden"
name=
"offset"
id=
"search_offset"
value=
"0"
/>
</td>
</tr>
</table>
</form>
</div>
</td>
<td
valign=
"middle"
width=
"350px"
>
<div
class=
"header_authorize_wrap"
>
<?php
if
(
$this
->
context
->
getUser
()
->
isAuthenticated
())
{
echo
'<div class="personal_avatar"></div><a class="personal" href="'
.
url_for
(
'@personal_profile'
)
.
'">'
.
$this
->
context
->
getUser
()
->
getAccount
()
->
getOrganization
()
.
'</a><a href="'
.
url_for
(
'@personal_login'
)
.
'?exit">Выход</a>'
;
}
else
{
echo
'<a href="'
.
url_for
(
'@registration'
)
.
'">Зарегистрироваться</a>'
;
?>
<a
href=
""
onclick=
"$(this).next().toggleClass('zt_header__auth__block_active');return false;"
>
<nobr>
Войти
</nobr>
</a>
<div
class=
"zt_header__auth__block"
>
<div
class=
"bx-system-auth-form"
>
<?php
include_component
(
'personal_area'
,
'loginForm'
,
array
(
'view'
=>
'header'
))
?>
</div>
</div>
<?php
}
?>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr
valign=
"top"
>
<td
class=
"root_table__middle"
align=
"center"
height=
"100%"
colspan=
"2"
>
<div
class=
"er_content"
>
<div
class=
"max_width"
>
apps/www/templates/topNotSearchField.php
0 → 100644
View file @
48680c56
<div
id=
"panel"
></div>
<div
class=
"body_wrapper_wrapper"
>
<table
class=
"body_wrapper"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
heigth=
"100%"
>
<tr>
<td
heigth=
"100%"
align=
"center"
>
<table
class=
"root_table"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
valign=
"top"
>
<td
class=
"root_table__top"
align=
"center"
>
<div
class=
"er_header"
>
<div
class=
"max_width"
>
<div
id=
"head_wrapper"
align=
"center"
>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr><td
align=
"center"
>
<div
class=
"max_width"
>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
class=
"fs_14"
>
<tr
valign=
"middle"
>
<td
width=
"1"
><a
href=
"/"
class=
"anb"
><img
src=
"/i/n.gif"
class=
"header__logo"
style=
"background: url(/i/logo.png) no-repeat 0 0;"
width=
"198"
height=
"31"
/></a></td>
<td
width=
"100%"
align=
"center"
>
<a
style=
"width:150px;vertical-align:top;"
href=
"//app.elektro-ufa.ru/u/Прайс_0.xls"
class=
"anb download_link"
><div
class=
"download_link__img"
style=
"margin-top:5px; background-position:-0px bottom;"
></div><span
class=
"txt"
>
Прайс без изображений
</span></a><a
style=
"width:150px;vertical-align:top;"
href=
"//app.elektro-ufa.ru/u/Прайс_изображения_0.xls"
class=
"anb download_link"
><div
class=
"download_link__img"
style=
"margin-top:5px; background-position:-0px bottom;"
></div><span
class=
"txt"
>
Прайс с изображениями
</span></a>
</td>
<td
class=
"header__contact pr_20"
>
<nobr>
ул. Комаринская, 8, д.Карпово,
</nobr>
<i
class=
"br5"
></i>
<nobr><b>
+7 (917) 795-79-16
</b></nobr>
</td>
<td
class=
"pr_20"
>
<div
class=
"zt_header__auth"
onclick=
"event.stopPropagation();"
>
<?php
if
(
$this
->
context
->
getUser
()
->
isAuthenticated
())
{
include_component
(
'personal_area'
,
'headerMenu'
);
}
else
{
?>
<a
href=
""
class=
"zt_header__auth__link blue_border_btn"
onclick=
"$(this).next().toggleClass('zt_header__auth__block_active');$(this).toggleClass('zt_header__auth__link_active');return false;"
>
<nobr>
Войти
</nobr>
</a>
<div
class=
"zt_header__auth__block"
>
<div
class=
"bx-system-auth-form"
>
<?php
include_component
(
'personal_area'
,
'loginForm'
,
array
(
'view'
=>
'header'
))
?>
</div>
</div>
<?php
}
?>
</div>
</td>
<td>
<a
href=
"/personal/cart/"
class=
"er_header__cart green_button"
style=
"min-width: 110px;"
>
<nobr>
<?php
include_component
(
'basket'
,
'counter'
)
?>
</nobr>
</a>
</td>
</tr>
</table>
</div>
</td></tr>
</table>
</div>
<div
style=
"height: 65px;"
></div>
<?php
include_component
(
'pages'
,
'subMenu'
,
array
(
'marking'
=>
'top'
));
?>
</div>
</div>
</td>
</tr>
<tr
valign=
"top"
>
<td
class=
"root_table__middle"
align=
"center"
height=
"100%"
>
<div
class=
"er_content"
>
<div
class=
"max_width"
>
<i
class=
"br2"
></i>
\ No newline at end of file
apps/www/templates/top_desktop.php
0 → 100644
View file @
48680c56
<table
class=
"header mobile_hide"
cellpadding=
"0"
cellspacing=
"0"
width=
"100%"
>
<tbody>
<tr>
<td>
<div
class=
"max_width"
>
<table
class=
"root_table__top__wrap"
width=
"100%"
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<td
class=
"top_left"
>
<div
class=
"top_left__switcher"
>
<?php
$culture
=
$this
->
context
->
getUser
()
->
getCulture
();
?>
<table
class=
"swicher_table"
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<td
valign=
"bottom"
>
RU
</td>
<td
valign=
"bottom"
>
<a
class=
"btn_all"
style=
"border-bottom: none;"
href=
"
<?php
echo
LangHelper
::
urlOtherLang
(
$culture
);
?>
"
>
<div
class=
"swicher_lang swicher_sprite_
<?php
echo
$culture
?>
"
></div>
</a></td>
<td
valign=
"bottom"
>
EN
</td>
</tr>
</table>
</div>
<?php
/*<div class="region"><a href="" class="green_link bbs_d">Уфа, Респ. Башкортостан</a></div>*/
if
(
csSettings
::
get
(
'phone'
))
{
echo
'<div class="header__phone">'
.
__
(
'Телефон'
)
.
': <a href="tel:'
.
preg_replace
(
'/[^+0-9]/'
,
''
,
csSettings
::
get
(
'phone'
))
.
'">'
.
csSettings
::
get
(
'phone'
)
.
'</a></div>'
;
}
if
(
csSettings
::
get
(
'email'
))
{
echo
'<div><nobr>'
.
__
(
'Эл. почта'
)
.
'</nobr>: <a href="mailto:'
.
csSettings
::
get
(
'email'
)
.
'">'
.
csSettings
::
get
(
'email'
)
.
'</a></div>'
;
}
?>
</td>
<td
class=
"top_right"
>
<a
href=
""
class=
"callback_open_link green_link bbs_d"
onclick=
"callback.open();return false;"
>
<?php
echo
__
(
'Заказать звонок'
);
?>
</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<div
class=
"max_width header__main"
style=
"height: 100%;"
>
<table
class=
"second_floor__table"
style=
"width: 100%; height: 100%"
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<?php
if
(
$sf_user
->
hasAttribute
(
'active_discount'
)
&&
$sf_user
->
getAttribute
(
'active_discount'
)
!=
false
)
{
$active_discount
=
$sf_user
->
getAttribute
(
'active_discount'
);
}
$module_action
=
$sf_request
->
getParameter
(
'module'
)
.
'_'
.
$sf_request
->
getParameter
(
'action'
);
echo
'<td width="100'
.
(
$module_action
==
'basket_complete'
?
'%'
:
''
)
.
'" align="center">'
;
$logo
=
'<img width="100" height="51" src="/i/logo.svg" />'
;
echo
(
in_array
(
$sf_request
->
getPathInfo
(),
array
(
'/ru/'
,
'/en/'
))
?
$logo
:
'<a style="border: none" href="'
.
url_for
(
'@homepage'
)
.
'">'
.
$logo
.
'</a>'
);
echo
'</td>'
;
if
(
$module_action
!=
'basket_complete'
){
echo
'<td class="top_menu">'
;
include_component
(
'main'
,
'menu'
);
echo
'</td>'
;
echo
'<td style="position: relative;" class="top_right '
.
(
$module_action
==
'basket_index'
?
(
isset
(
$active_discount
)
?
'discount_basket'
:
''
)
:
(
isset
(
$active_discount
)
?
'discount d'
.
$active_discount
:
''
)
)
.
'">'
;
if
(
$module_action
!=
'search_search'
){
echo
'<div class="search_btn" onclick="search._show();"></div>'
;
}
$basket_page
=
(
$module_action
==
'basket_index'
);
$basket_info
=
$sf_user
->
getBasketInfo
();
echo
'<'
.
(
$basket_page
?
'span'
:
'a href="'
.
url_for
(
'@basket'
)
.
'"'
)
.
' class="btn white_b_btn basket_btn'
.
(
$basket_info
[
'offerCount'
]
>
0
?
' basket_btn_full'
:
''
)
.
' '
.
(
$basket_page
?
'basket_btn_disabled'
:
''
)
.
'">'
;
echo
'<div class="basket_btn__empty">'
.
__
(
'Корзина'
)
.
'</div>'
;
echo
'<div class="basket_btn__product_count">'
.
$basket_info
[
'offerCountText'
]
.
'</div>'
;
echo
'<div class="basket_btn__price"><span class="basket_btn__price__val">'
.
$basket_info
[
'priceText'
]
.
'</span> <span class="rub">i</span></div>'
;
echo
'</'
.
(
$basket_page
?
'span'
:
'a'
)
.
'>'
;
echo
'</td>'
;
}
?>
</tr>
</table>
</div>
</td>
</tr>
</tbody>
</table>
\ No newline at end of file
apps/www/templates/top_mobile.php
0 → 100644
View file @
48680c56
<?php
if
(
$sf_user
->
hasAttribute
(
'active_discount'
)
&&
$sf_user
->
getAttribute
(
'active_discount'
)
!=
false
)
{
$discount
=
$sf_user
->
getAttribute
(
'active_discount'
);
}
else
{
$discount
=
false
;
}
?>
<div
class=
"header_mobile mobile
<?php
echo
(
$discount
?
'discount d'
.
$discount
:
''
)
?>
"
>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tbody
align=
"left"
valign=
"middle"
>
<tr>
<td
colspan=
"2"
>
<?php
echo
csSettings
::
get
(
'phone'
)
?
'<a href="tel:'
.
csSettings
::
get
(
'phone'
)
.
'" class="header_mobile__phone_link">'
.
csSettings
::
get
(
'phone'
)
.
'</a>'
:
''
;
?>
</td>
<td
width=
"1"
align=
"right"
>
<a
href=
"
<?php
echo
url_for
(
"@search"
);
?>
"
class=
"header_mobile__search_link"
></a>
</td>
</tr>
<tr>
<td
width=
"1"
>
<a
href=
""
class=
"header_mobile__menu_link"
></a>
</td>
<td
align=
"center"
>
<a
href=
"
<?php
echo
url_for
(
"@homepage"
);
?>
"
class=
"header_mobile__logo"
></div>
</td>
<td
width=
"1"
align=
"right"
>
<a
href=
"
<?php
echo
url_for
(
"@basket"
);
?>
"
class=
"header_mobile__basket_link"
></a>
</td>
</tr>
</tbody>
</table>
</div>
<div
class=
"burder mobile"
>
<div
class=
"burger__close"
></div>
<ul
class=
"burder__menu"
>
<li><a
href=
"
<?php
echo
url_for
(
"@catalog"
);
?>
"
>
Каталог
</a></li>
<li><a
href=
"
<?php
echo
url_for
(
"@video"
);
?>
"
>
Смотреть
</a></li>
<li><a
href=
"
<?php
echo
url_for
(
"@article"
);
?>
"
>
Читать
</a></li>
<li><a
href=
"
<?php
echo
url_for
(
"@review"
);
?>
"
>
Отзывы
</a></li>
<li><a
href=
"
<?php
echo
url_for
(
"@page_show?alias=delivery"
);
?>
"
>
Доставка
</a></li>
</ul>
<div
class=
"burder__contacts"
>
<?php
if
(
csSettings
::
get
(
'phone'
))
{
echo
__
(
'Телефон'
)
.
': <a href="tel:'
.
preg_replace
(
'/[^+0-9]/'
,
''
,
csSettings
::
get
(
'phone'
))
.
'" class="anb">'
.
csSettings
::
get
(
'phone'
)
.
'</a><i class="br10"></i>'
;
}
if
(
csSettings
::
get
(
'email'
))
{
echo
__
(
'Эл. почта'
)
.
'</nobr>: <a href="mailto:'
.
csSettings
::
get
(
'email'
)
.
'">'
.
csSettings
::
get
(
'email'
)
.
'</a>'
;
}
?>
</div>
<a
href=
""
class=
"btn white_b_btn burder__callback_link"
onclick=
"callback.open();return false;"
>
Заказать звонок
</a>
</div>
<script>
$
(
'
.header_mobile__menu_link
'
).
click
(
function
(
e
){
$
(
'
.burder
'
).
addClass
(
'
show
'
);
$
(
'
body
'
).
css
(
'
overflow-y
'
,
'
hidden
'
);
return
false
;
});
$
(
'
.burger__close
'
).
click
(
function
(
e
){
$
(
'
.burder
'
).
removeClass
(
'
show
'
);
$
(
'
body
'
).
css
(
'
overflow-y
'
,
'
auto
'
);
return
false
;
});
</script>
\ No newline at end of file
apps/www/templates/top_old.php
0 → 100644
View file @
48680c56
<div
id=
"panel"
></div>
<div
class=
"body_wrapper_wrapper"
>
<table
class=
"body_wrapper"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
heigth=
"100%"
>
<tr>
<td
heigth=
"100%"
align=
"center"
>
<table
class=
"root_table"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
valign=
"top"
>
<td
class=
"root_table__top"
align=
"center"
width=
"260"
>
<a
href=
"/"
><div
class=
"logotype"
></div></a>
</td>
<td
class=
"root_table__top"
align=
"center"
>
<div
class=
"er_header"
>
<div
class=
"max_width"
>
<div
id=
"head_wrapper"
align=
"center"
>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
>
<tr>
<td
align=
"center"
>
<div
class=
"max_width"
>
<table
cellspacing=
"0"
cellpadding=
"0"
width=
"100%"
class=
"fs_14"
>
<tr
valign=
"middle"
>
<td
class=
""
>
<div
class=
"zt_header__auth"
onclick=
"event.stopPropagation();"
>
<?php
//include_component('pages', 'subMenu', array('marking' => 'top'));
?>
</div>
</td>
<td
width=
"1%"
>
<a
href=
"/personal/cart/"
class=
"er_header__cart green_button basket_button"
style=
"min-width: 192px;"
>
<nobr>
<?php
//include_component('basket', 'counter');
?>
</nobr>
</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
<table
class=
"header_search_authorize_section"
width=
"100%"
cellspacing=
"0"
cellpadding=
"0"
>
<tr
valign=
"top"
>
<td>
<div
class=
"er_content__main__search"
>
<form
class=
"search_form"
action=
"
<?php
echo
url_for
(
'@search'
)
?>
"
>
<table
cellpadding=
"0"
cellspacing=
"0"
width=
"100%"
>
<tr>
<td
style=
"height: 63px; border: none"
>
<div
class=
"search_form_inp__wrap"
>
<input
id=
"title-search-input"
type=
"text"
name=
"query"
value=
"
<?php
include_slot
(
'search_query'
)
?>
"
onkeyup=
"search.quickSearch($(this).val())"
autocomplete=
"off"
placeholder=
"Поиск"
/>
<button
id=
"search-submit-button"
type=
"submit"
class=
"er_content__main__search__btn"
></button>
<div
class=
"search_result"
>
<div
id=
"search_div"
class=
"title-search-result sq_ct"
></div>
</div>
</div>
<input
type=
"hidden"
name=
"offset"
id=
"search_offset"
value=
"0"
/>
</td>
</tr>
</table>
</form>
</div>
</td>
<td
valign=
"middle"
width=
"350px"
>
<div
class=
"header_authorize_wrap"
>
<?php
if
(
$this
->
context
->
getUser
()
->
isAuthenticated
())
{
echo
'<div class="personal_avatar"></div><a class="personal" href="'
.
url_for
(
'@personal_profile'
)
.
'">'
.
$this
->
context
->
getUser
()
->
getAccount
()
->
getOrganization
()
.
'</a><a href="'
.
url_for
(
'@personal_login'
)
.
'?exit">Выход</a>'
;
}
else
{
echo
'<a href="'
.
url_for
(
'@registration'
)
.
'">Зарегистрироваться</a>'
;
?>
<a
href=
""
onclick=
"$(this).next().toggleClass('zt_header__auth__block_active');return false;"
>
<nobr>
Войти
</nobr>
</a>
<div
class=
"zt_header__auth__block"
>
<div
class=
"bx-system-auth-form"
>
<?php
//include_component('personal_area', 'loginForm', array('view' => 'header'))
?>
</div>
</div>
<?php
}
?>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr
valign=
"top"
>
<td
class=
"root_table__middle"
align=
"center"
height=
"100%"
colspan=
"2"
>
<div
class=
"er_content"
>
<div
class=
"max_width"
>
config/ProjectConfiguration.class.php
0 → 100644
View file @
48680c56
<?php
require_once
__DIR__
.
'/../vendor/lib/autoload/sfCoreAutoload.class.php'
;
sfCoreAutoload
::
register
();
class
ProjectConfiguration
extends
sfProjectConfiguration
{
public
function
setup
()
{
$this
->
enablePlugins
(
'sfDoctrinePlugin'
);
$this
->
enablePlugins
(
'sfImageTransformPlugin'
);
$this
->
enablePlugins
(
'sfCaptchaGDPlugin'
);
$this
->
enablePlugins
(
'doAuthPlugin'
);
$this
->
enablePlugins
(
'sfRUtilsPlugin'
);
$this
->
enablePlugins
(
'sfSphinxPlugin'
);
$this
->
enablePlugins
(
'csSettingsPlugin'
);
}
}
class
ProjectUtils
{
public
static
function
get
(
$url
)
{
$ch
=
curl_init
();
@
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
true
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
false
);
$r
=
curl_exec
(
$ch
);
curl_close
(
$ch
);
return
$r
;
}
}
class
ProjectUlils
{
public
static
function
post
(
$url
,
$data
)
{
$ch
=
curl_init
();
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
curl_setopt
(
$ch
,
CURLOPT_POST
,
true
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
true
);
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
$data
);
curl_setopt
(
$ch
,
CURLOPT_SSL_VERIFYPEER
,
false
);
$r
=
curl_exec
(
$ch
);
curl_close
(
$ch
);
}
public
static
function
generateUuid
()
{
mt_srand
((
double
)
microtime
()
*
10000
);
$charid
=
strtolower
(
md5
(
uniqid
(
rand
(),
true
)));
$hyphen
=
chr
(
45
);
$uuid
=
substr
(
$charid
,
0
,
8
)
.
$hyphen
.
substr
(
$charid
,
8
,
4
)
.
$hyphen
.
substr
(
$charid
,
12
,
4
)
.
$hyphen
.
substr
(
$charid
,
16
,
4
)
.
$hyphen
.
substr
(
$charid
,
20
,
12
);
return
$uuid
;
}
static
public
function
rusDate
(
$date
,
$time
=
false
,
$skip_year
=
false
)
{
$a
=
array
(
'01'
=>
'января'
,
'02'
=>
'февраля'
,
'03'
=>
'марта'
,
'04'
=>
'апреля'
,
'05'
=>
'мая'
,
'06'
=>
'июня'
,
'07'
=>
'июля'
,
'08'
=>
'августа'
,
'09'
=>
'сентября'
,
'10'
=>
'октября'
,
'11'
=>
'ноября'
,
'12'
=>
'декабря'
,
);
$ex
=
explode
(
' '
,
$date
);
if
(
count
(
$ex
)
==
2
)
{
$timeex
=
explode
(
':'
,
$ex
[
1
]);
}
$ex
=
explode
(
'-'
,
$ex
[
0
]);
return
intval
(
$ex
[
2
])
.
' '
.
$a
[
$ex
[
1
]]
.
(
$skip_year
&&
$ex
[
0
]
==
date
(
'Y'
)
?
''
:
' '
.
$ex
[
0
])
.
(
$time
?
' '
.
$timeex
[
0
]
.
':'
.
$timeex
[
1
]
:
''
);
}
}
function
object2array
(
$object
)
{
return
@
json_decode
(
@
json_encode
(
$object
),
1
);
}
\ No newline at end of file
Prev
1
…
11
12
13
14
15
16
17
18
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment