2021-12-01 16:19:37 +03:00
|
|
|
{var instance_name = OPENVK_ROOT_CONF['openvk']['appearance']['name']}
|
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
<html n:if="!isset($parentModule) || substr($parentModule, 0, 21) === 'libchandler:absolute.'">
|
|
|
|
<head>
|
|
|
|
<title>
|
2021-12-01 16:19:37 +03:00
|
|
|
{ifset title}{include title} - {/ifset}{$instance_name}
|
2020-06-07 19:04:43 +03:00
|
|
|
</title>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<link rel="shortcut icon" href="/assets/packages/static/openvk/img/icon.ico" />
|
2021-12-01 16:19:37 +03:00
|
|
|
<meta name="application-name" content="{$instance_name}" />
|
2020-06-07 19:04:43 +03:00
|
|
|
<meta n:ifset="$csrfToken" name="csrf" value="{$csrfToken}" />
|
2021-12-04 16:06:28 +03:00
|
|
|
<script src="/language/{php echo getLanguage()}.js" crossorigin="anonymous"></script>
|
2020-06-29 23:05:20 +03:00
|
|
|
{script "js/node_modules/jquery/dist/jquery.min.js"}
|
2020-06-07 19:04:43 +03:00
|
|
|
{script "js/node_modules/umbrellajs/umbrella.min.js"}
|
2021-12-04 16:06:28 +03:00
|
|
|
{script "js/l10n.js"}
|
2020-06-07 19:04:43 +03:00
|
|
|
{script "js/openvk.cls.js"}
|
2020-11-22 13:06:49 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
{ifset $thisUser}
|
2021-01-07 19:19:36 +03:00
|
|
|
{if $thisUser->getNsfwTolerance() < 2}
|
|
|
|
{css "css/nsfw-posts.css"}
|
|
|
|
{/if}
|
|
|
|
|
2021-11-06 23:43:48 +03:00
|
|
|
{if $theme !== null}
|
|
|
|
{if $theme->inheritDefault()}
|
2020-11-22 13:06:49 +03:00
|
|
|
{css "css/style.css"}
|
|
|
|
{css "css/dialog.css"}
|
2021-10-14 22:21:10 +03:00
|
|
|
{css "css/notifications.css"}
|
2020-12-29 01:39:55 +03:00
|
|
|
{if $isXmas}
|
|
|
|
{css "css/xmas.css"}
|
|
|
|
{/if}
|
2020-11-22 13:06:49 +03:00
|
|
|
{/if}
|
|
|
|
|
2020-06-11 23:21:49 +03:00
|
|
|
<link rel="stylesheet" href="/themepack/{$theme->getId()}/{$theme->getVersion()}/stylesheet/styles.css" />
|
2020-12-29 01:39:55 +03:00
|
|
|
{if $isXmas}
|
2021-12-02 15:00:15 +03:00
|
|
|
<link rel="stylesheet" href="/themepack/{$theme->getId()}/{$theme->getVersion()}/resource/xmas.css" />
|
2020-12-29 01:39:55 +03:00
|
|
|
{/if}
|
2020-11-22 13:06:49 +03:00
|
|
|
{else}
|
|
|
|
{css "css/style.css"}
|
|
|
|
{css "css/dialog.css"}
|
2021-10-14 22:21:10 +03:00
|
|
|
{css "css/notifications.css"}
|
2020-12-29 01:39:55 +03:00
|
|
|
{if $isXmas}
|
|
|
|
{css "css/xmas.css"}
|
|
|
|
{/if}
|
2020-06-07 19:04:43 +03:00
|
|
|
{/if}
|
2020-06-15 21:24:51 +03:00
|
|
|
|
|
|
|
{if $thisUser->getStyleAvatar() == 1}
|
2020-06-14 14:09:41 +03:00
|
|
|
{css "css/avatar.1.css"}
|
|
|
|
{/if}
|
|
|
|
{if $thisUser->getStyleAvatar() == 2}
|
2020-06-15 21:24:51 +03:00
|
|
|
{css "css/avatar.2.css"}
|
|
|
|
{/if}
|
2021-01-04 20:33:25 +03:00
|
|
|
|
|
|
|
|
|
|
|
{if $thisUser->hasMicroblogEnabled() == 1}
|
|
|
|
{css "css/microblog.css"}
|
|
|
|
{/if}
|
2020-11-22 13:06:49 +03:00
|
|
|
{else}
|
|
|
|
{css "css/style.css"}
|
|
|
|
{css "css/dialog.css"}
|
2021-01-07 19:19:36 +03:00
|
|
|
{css "css/nsfw-posts.css"}
|
2021-10-14 22:21:10 +03:00
|
|
|
{css "css/notifications.css"}
|
2021-01-07 19:19:36 +03:00
|
|
|
|
2020-12-29 01:39:55 +03:00
|
|
|
{if $isXmas}
|
|
|
|
{css "css/xmas.css"}
|
|
|
|
{/if}
|
2020-06-15 21:24:51 +03:00
|
|
|
{/ifset}
|
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
{ifset headIncludes}{include headIncludes}{/ifset}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="sudo-banner" n:if="isset($thisUser) && $userTainted">
|
|
|
|
<p>
|
|
|
|
Вы вошли как <b>{$thisUser->getCanonicalName()}</b>. Пожалуйста, уважайте
|
|
|
|
право на тайну переписки других людей и не злоупотребляйте подменой пользователя.
|
|
|
|
Нажмите <a href="/setSID/unset?hash={rawurlencode($csrfToken)}">здесь</a>, чтобы выйти.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div n:if="OPENVK_ROOT_CONF['openvk']['preferences']['bellsAndWhistles']['testLabel']" id="test-label">FOR TESTING PURPOSES ONLY</div>
|
2021-10-14 22:21:10 +03:00
|
|
|
<div class="notifications_global_wrap"></div>
|
2020-06-07 19:04:43 +03:00
|
|
|
<div class="dimmer"></div>
|
|
|
|
<div class="toTop">
|
|
|
|
⬆ Вверх
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="layout">
|
2020-06-11 23:21:49 +03:00
|
|
|
<div id="xhead" class="dm"></div>
|
2021-12-01 16:19:37 +03:00
|
|
|
<div class="page_header {if $instance_name != OPENVK_DEFAULT_INSTANCE_NAME}page_custom_header{/if}">
|
|
|
|
<a href="/" class="home_button {if $instance_name != OPENVK_DEFAULT_INSTANCE_NAME}home_button_custom{/if}" title="{$instance_name}">{$instance_name}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
<div n:if="isset($thisUser) ? !$thisUser->isBanned() : true" class="header_navigation">
|
|
|
|
{ifset $thisUser}
|
|
|
|
<div class="link">
|
|
|
|
<a href="/">{_"header_home"}</a>
|
|
|
|
</div>
|
|
|
|
<div class="link">
|
|
|
|
<a href="/search?type=groups">{_"header_groups"}</a>
|
|
|
|
</div>
|
|
|
|
<div class="link">
|
|
|
|
<a href="/search">{_"header_search"}</a>
|
|
|
|
</div>
|
2021-12-15 17:25:07 +03:00
|
|
|
<div class="link">
|
|
|
|
<a href="/invite">
|
|
|
|
{_"header_invite"}
|
|
|
|
</a>
|
|
|
|
</div>
|
2020-06-07 19:04:43 +03:00
|
|
|
<div class="link">
|
2021-11-27 12:24:34 +03:00
|
|
|
<a href="/support">
|
|
|
|
{_"header_help"}
|
|
|
|
<b n:if="$ticketAnsweredCount > 0">({$ticketAnsweredCount})</b>
|
|
|
|
</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div class="link">
|
2021-12-05 01:48:25 +03:00
|
|
|
<a href="/logout?hash={urlencode($csrfToken)}">{_"header_log_out"}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div class="link">
|
2020-06-23 23:02:52 +03:00
|
|
|
<form action="/search" method="get">
|
2021-11-04 00:23:29 +03:00
|
|
|
<input type="search" name="query" placeholder="{_"header_search"}" style="height: 20px;background: url('/assets/packages/static/openvk/img/search_icon.png') no-repeat 3px 4px; background-color: #fff; padding-left: 18px;width: 120px;" />
|
2020-06-07 19:04:43 +03:00
|
|
|
</form>
|
|
|
|
</div>
|
2020-06-26 12:32:30 +03:00
|
|
|
|
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
{else}
|
|
|
|
<div class="link">
|
2021-09-18 07:35:40 +03:00
|
|
|
<a href="/login">{_"header_login"}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
2021-09-13 19:00:54 +03:00
|
|
|
<div n:if="OPENVK_ROOT_CONF['openvk']['preferences']['registration']['enable']" class="link">
|
2021-09-18 07:35:40 +03:00
|
|
|
<a href="/reg">{_"header_registration"}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
<div class="link">
|
2021-09-18 07:35:40 +03:00
|
|
|
<a href="/support">{_"header_help"}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
{/ifset}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="sidebar">
|
|
|
|
<div class="navigation">
|
|
|
|
{ifset $thisUser}
|
|
|
|
{if !$thisUser->isBanned()}
|
|
|
|
<a href="/edit" class="link edit-button">{_"edit_button"}</a>
|
|
|
|
<a href="{$thisUser->getURL()}" class="link">{_"my_page"}</a>
|
|
|
|
<a href="/friends{$thisUser->getId()}" class="link">{_"my_friends"}
|
2020-12-28 03:00:57 +03:00
|
|
|
{if $thisUser->getFollowersCount() > 0}
|
|
|
|
<object type="internal/link">
|
|
|
|
<a href="/friends{$thisUser->getId()}?act=incoming">
|
|
|
|
(<b>{$thisUser->getFollowersCount()}</b>)
|
|
|
|
</a>
|
|
|
|
</object>
|
|
|
|
{/if}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
<a n:if="$thisUser->getLeftMenuItemStatus('photos')" href="/albums{$thisUser->getId()}" class="link">{_"my_photos"}</a>
|
|
|
|
<a n:if="$thisUser->getLeftMenuItemStatus('videos')" href="/videos{$thisUser->getId()}" class="link">{_"my_videos"}</a>
|
2021-01-07 19:19:36 +03:00
|
|
|
<a n:if="$thisUser->getLeftMenuItemStatus('messages')" href="/im" class="link">{_"my_messages"}
|
|
|
|
{if $thisUser->getUnreadMessagesCount() > 0}
|
|
|
|
<object type="internal/link">
|
|
|
|
(<b>{$thisUser->getUnreadMessagesCount()}</b>)
|
|
|
|
</object>
|
|
|
|
|
|
|
|
{/if}
|
|
|
|
</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
<a n:if="$thisUser->getLeftMenuItemStatus('notes')" href="/notes{$thisUser->getId()}" class="link">{_"my_notes"}</a>
|
|
|
|
<a n:if="$thisUser->getLeftMenuItemStatus('groups')" href="/groups{$thisUser->getId()}" class="link">{_"my_groups"}</a>
|
|
|
|
<a n:if="$thisUser->getLeftMenuItemStatus('news')" href="/feed" class="link">{_"my_feed"}</a>
|
|
|
|
<a href="/notifications" class="link">{_my_feedback}
|
|
|
|
{if $thisUser->getNotificationsCount() > 0}
|
|
|
|
(<b>{$thisUser->getNotificationsCount()}</b>)
|
|
|
|
{/if}
|
|
|
|
</a>
|
|
|
|
<a href="/settings" class="link">{_"my_settings"}</a>
|
2021-12-03 21:45:59 +03:00
|
|
|
{var canAccessAdminPanel = $thisUser->getChandlerUser()->can("access")->model("admin")->whichBelongsTo(NULL)}
|
|
|
|
{var canAccessHelpdesk = $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)}
|
2021-12-17 19:58:31 +03:00
|
|
|
{var menuLinksAvaiable = sizeof(OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links']) > 0 && $thisUser->getLeftMenuItemStatus('links')}
|
2021-12-04 23:59:21 +03:00
|
|
|
<div n:if="$canAccessAdminPanel || $canAccessHelpdesk || $menuLinksAvaiable" class="menu_divider"></div>
|
2021-12-03 21:45:59 +03:00
|
|
|
{if $canAccessAdminPanel}
|
2021-09-12 06:43:25 +03:00
|
|
|
<a href="/admin" class="link">Админ-панель</a>
|
|
|
|
{/if}
|
2021-12-03 21:45:59 +03:00
|
|
|
{if $canAccessHelpdesk}
|
2021-12-04 23:15:13 +03:00
|
|
|
<a href="/support/tickets" class="link">Helpdesk
|
2021-12-05 14:54:39 +03:00
|
|
|
{if $helpdeskTicketNotAnsweredCount > 0}
|
2021-12-05 01:56:42 +03:00
|
|
|
(<b>{$helpdeskTicketNotAnsweredCount}</b>)
|
2021-12-04 23:15:13 +03:00
|
|
|
{/if}
|
|
|
|
</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
{/if}
|
|
|
|
<a
|
2021-12-17 19:58:31 +03:00
|
|
|
n:if="$thisUser->getLeftMenuItemStatus('links')"
|
2020-06-07 19:04:43 +03:00
|
|
|
n:foreach="OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links'] as $menuItem"
|
|
|
|
href="{$menuItem['url']}"
|
|
|
|
target="_blank"
|
2021-12-17 18:28:21 +03:00
|
|
|
class="link">{strpos($menuItem["name"], "@") === 0 ? tr(substr($menuItem["name"], 1)) : $menuItem["name"]}</a>
|
2021-12-04 23:59:21 +03:00
|
|
|
<div id="_groupListPinnedGroups">
|
|
|
|
<div n:if="$thisUser->getPinnedClubCount() > 0" class="menu_divider"></div>
|
|
|
|
<a
|
|
|
|
n:foreach="$thisUser->getPinnedClubs() as $club"
|
|
|
|
href="{$club->getURL()}"
|
|
|
|
class="link group_link">{$club->getName()}</a>
|
2020-06-26 12:32:30 +03:00
|
|
|
|
2021-12-04 23:59:21 +03:00
|
|
|
</div>
|
2021-12-05 00:03:30 +03:00
|
|
|
<a
|
2022-01-03 22:13:53 +03:00
|
|
|
n:if="OPENVK_ROOT_CONF['openvk']['preferences']['adPoster']['enable'] && $thisUser->getLeftMenuItemStatus('poster')"
|
2021-12-05 00:03:30 +03:00
|
|
|
href="{php echo OPENVK_ROOT_CONF['openvk']['preferences']['adPoster']['link']}" >
|
|
|
|
<img
|
|
|
|
src="{php echo OPENVK_ROOT_CONF['openvk']['preferences']['adPoster']['src']}"
|
|
|
|
alt="{php echo OPENVK_ROOT_CONF['openvk']['preferences']['adPoster']['caption']}"
|
2021-12-05 00:04:33 +03:00
|
|
|
class="psa-poster"
|
|
|
|
style="max-width: 100%; margin-top: 50px;" />
|
2021-12-05 00:03:30 +03:00
|
|
|
</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
{else}
|
2021-12-13 17:37:43 +03:00
|
|
|
<a href="/support" class="link">{_"menu_support"}</a>
|
|
|
|
<a href="/logout?hash={urlencode($csrfToken)}" class="link">{_"menu_logout"}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
{/if}
|
|
|
|
{else}
|
2021-01-27 21:00:30 +03:00
|
|
|
<form id="fastLogin" action="/login" method="POST" enctype="multipart/form-data">
|
2020-06-07 19:04:43 +03:00
|
|
|
<label for="login"><span>{_"email"}:</span></label>
|
|
|
|
<input id="login" type="text" name="login" required />
|
|
|
|
<label for="password"><span>{_"password"}:</span></label>
|
|
|
|
<input id="password" type="password" name="password" required />
|
2021-01-27 21:00:30 +03:00
|
|
|
<input type="hidden" name="jReturnTo" value="{$_SERVER['REQUEST_URI']}" />
|
2020-06-07 19:04:43 +03:00
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
|
|
<input type="submit" value="{_'log_in'}" class="button" style="display: inline-block;" />
|
2021-09-13 19:00:54 +03:00
|
|
|
<a n:if="OPENVK_ROOT_CONF['openvk']['preferences']['registration']['enable']" href="/reg" class="button" style="display: inline-block;" >{_registration}</a><br><br>
|
2021-12-31 07:28:57 +03:00
|
|
|
<a href="/restore">{_"forgot_password"}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
</form>
|
|
|
|
{/ifset}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="page_body">
|
|
|
|
<div id="wrapH">
|
|
|
|
<div id="wrapHI">
|
|
|
|
<div n:ifcontent class="page_yellowheader">
|
|
|
|
{include header}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-26 12:32:30 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
{ifset wrap}
|
|
|
|
{ifset $flashMessage}
|
|
|
|
<div class="msg msg_{$flashMessage->type}">
|
|
|
|
<b>{$flashMessage->title}</b><br/>
|
|
|
|
{$flashMessage->msg|noescape}
|
|
|
|
</div>
|
|
|
|
{/ifset}
|
|
|
|
|
|
|
|
{include wrap}
|
|
|
|
{else}
|
|
|
|
<div class="wrap2">
|
|
|
|
<div class="wrap1">
|
|
|
|
<div id="auth" class="page-wrap">
|
|
|
|
<div class="page_content">
|
|
|
|
{ifset $flashMessage}
|
|
|
|
<div class="msg msg_{$flashMessage->type}">
|
|
|
|
<b>{$flashMessage->title}</b><br/>
|
|
|
|
{$flashMessage->msg|noescape}
|
|
|
|
</div>
|
|
|
|
{/ifset}
|
|
|
|
|
|
|
|
{include content}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/ifset}
|
2020-06-26 12:32:30 +03:00
|
|
|
|
2020-06-07 19:04:43 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="page_footer">
|
|
|
|
{var dbVersion = \Chandler\Database\DatabaseConnection::i()->getConnection()->getPdo()->getAttribute(\PDO::ATTR_SERVER_VERSION)}
|
|
|
|
|
|
|
|
<div class="navigation_footer">
|
2022-01-03 18:31:55 +03:00
|
|
|
<a href="/about" class="link">{_footer_about_instance}</a>
|
2020-06-07 19:04:43 +03:00
|
|
|
<a href="/blog" class="link">{_footer_blog}</a>
|
|
|
|
<a href="/support" class="link">{_footer_help}</a>
|
|
|
|
<a href="/dev" target="_blank" class="link">{_footer_developers}</a>
|
|
|
|
<a href="/language" class="link">{_footer_choose_language}</a>
|
|
|
|
<a href="/privacy" class="link">{_footer_privacy}</a>
|
|
|
|
</div>
|
2021-10-31 14:29:52 +03:00
|
|
|
<p>OpenVK <a href="/about:openvk">{php echo OPENVK_VERSION}</a> | PHP: {phpversion()} | DB: {$dbVersion}</p>
|
2021-10-15 23:05:27 +03:00
|
|
|
<p n:ifcontent="ifcontent">
|
2020-06-07 19:04:43 +03:00
|
|
|
{php echo OPENVK_ROOT_CONF["openvk"]["appearance"]["motd"]}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2021-10-15 23:05:27 +03:00
|
|
|
{script "js/node_modules/msgpack-lite/dist/msgpack.min.js"}
|
|
|
|
{script "js/node_modules/soundjs/lib/soundjs.min.js"}
|
2020-06-07 19:04:43 +03:00
|
|
|
{script "js/node_modules/ky/umd.js"}
|
|
|
|
{script "js/messagebox.js"}
|
2021-10-14 22:21:10 +03:00
|
|
|
{script "js/notifications.js"}
|
2020-06-07 19:04:43 +03:00
|
|
|
{script "js/scroll.js"}
|
|
|
|
{script "js/al_wall.js"}
|
|
|
|
{script "js/al_api.js"}
|
|
|
|
|
2021-10-15 23:05:27 +03:00
|
|
|
{ifset $thisUser}
|
|
|
|
{script "js/al_notifs.js"}
|
|
|
|
{/ifset}
|
|
|
|
|
2022-01-06 02:39:43 +03:00
|
|
|
{if OPENVK_ROOT_CONF['openvk']['preferences']['bellsAndWhistles']['fartscroll']}
|
|
|
|
<script src="https://unpkg.com/fartscroll@1.0.0/fartscroll.js"></script>
|
|
|
|
<script>
|
|
|
|
fartscroll(400);
|
|
|
|
</script>
|
|
|
|
{/if}
|
2021-09-20 15:59:55 +03:00
|
|
|
|
|
|
|
<script n:if="OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['enable']"
|
2021-09-20 16:02:42 +03:00
|
|
|
async defer data-domain="{php echo OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['domain']}"
|
|
|
|
src="{php echo OPENVK_ROOT_CONF['openvk']['telemetry']['plausible']['server']}js/plausible.js"></script>
|
2021-10-07 11:48:55 +03:00
|
|
|
|
|
|
|
{ifset bodyScripts}
|
|
|
|
{include bodyScripts}
|
|
|
|
{/ifset}
|
2020-06-07 19:04:43 +03:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|
|
|
|
{if isset($parentModule) && substr($parentModule, 0, 21) !== 'libchandler:absolute.'}
|
|
|
|
<!-- INCLUDING TEMPLATE FROM PARENTMODULE: {$parentModule} -->
|
|
|
|
|
|
|
|
{include content}
|
|
|
|
{/if}
|