{extends "../@layout.xml"} {block title}{_my_settings}{/block} {block header} {_my_settings} {/block} {block content} {var $isMain = $mode === 'main'} {var $isSecurity = $mode === 'security'} {var $isPrivacy = $mode === 'privacy'} {var $isFinance = $mode === 'finance'} {var $isFinanceTU = $mode === 'finance.top-up'} {var $isInterface = $mode === 'interface'}
{_main}
{_security}
{_privacy}
{_points}
{_interface}
{if $isMain}

{_your_email_address}

{_current_email_address} {$user->getEmail()}
{_new_email_address}
{_password}
{_"2fa_code"}

{_your_page_address}

{_page_id} {$user->getId()}
{_page_address}

{_you_can_also} {_delete_your_page}.
{elseif $isSecurity}

{_change_password}

{_old_password}
{_new_password}
{_repeat_password}
{_"2fa_code"}


{_two_factor_authentication}

{if $user->is2faEnabled()} {else} {/if}
{_two_factor_authentication_enabled}
{_view_backup_codes} {_disable}
{_two_factor_authentication_disabled}
{_connect}

{_ui_settings_sessions}

{tr("end_all_sessions_description", OPENVK_ROOT_CONF['openvk']['appearance']['name'])}
{elseif $isPrivacy}
{_privacy_setting_access_page}
{_privacy_setting_read_info}
{_privacy_setting_see_groups}
{_privacy_setting_see_photos}
{_privacy_setting_see_videos}
{_privacy_setting_view_audio}
{_privacy_setting_see_notes}
{_privacy_setting_see_friends}
{_privacy_setting_add_to_friends}
{_privacy_setting_write_wall}
{_privacy_setting_write_messages}
{_profile_type}
{elseif $isFinance}
{presenter "openvk!Support->knowledgeBaseArticle", "points"}
{tr("also_you_can_transfer_points", $thisUser->getCoins(), rawurlencode($csrfToken))|noescape}
{_on_your_account}
{$thisUser->getCoins()}
{_points_count}
[{_have_voucher}?]
[{_transfer_trough_ton}]
{script "js/node_modules/textfit/textFit.min.js"} {elseif $isFinanceTU}

{_voucher_explanation} {_voucher_explanation_ex}

- - -

{elseif $isInterface}

{_ui_settings_interface}

{_avatars_style}
{_style}
{_ui_settings_rating}
{_ui_settings_nsfw_content}
{_ui_settings_view_of_posts}
{_ui_settings_main_page}
{_apply_style_for_this_device}

{_ui_settings_sidebar}

{_my_photos}
{_my_videos}
{_my_audios}
{_my_messages}
{_my_notes}
{_my_groups}
{_my_feed}
{_my_apps}
{_additional_links}
{_ad_poster}
{/if}
{/block}