[staticPage]
useContent = 1
default = 0

[localePicker]
forceUrl = 1

[account]
redirect = "index"
paramCode = "code"
forceSecure = 0
requirePassword = 0
view = "signin"

[session]
security = "all"

[notifications]
recordsPerPage = 7
includeAssets = 1
==
<?php
function onStart(){
    $this['phone'] = TPS\Birzha\Models\Settings::getValue('phone');
    $this['site_name'] = TPS\Birzha\Models\Settings::getValue('site_name');
    $this['dollar'] = TPS\Birzha\Models\Settings::getValue('dollar');
    $this['euro'] = TPS\Birzha\Models\Settings::getValue('euro');
    $this['gbp'] = TPS\Birzha\Models\Settings::getValue('gbp');
    $this['email'] = TPS\Birzha\Models\Settings::getValue('email');
    $this['address'] = TPS\Birzha\Models\Settings::getValue('address');
    $this['short_name'] = TPS\Birzha\Models\Settings::getValue('short_name');
}
?>
==
<!DOCTYPE html>
<html lang="{{activeLocale}}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap" rel="stylesheet">
    {% styles %}
    <link rel="stylesheet" href="{{'assets/css/main.css'|theme}}">
    <link rel="stylesheet" href="{{'assets/css/phone_box.css'|theme}}">
    <!--    <link href="{{ ['assets/css/main.css']|theme }}" rel="stylesheet">-->
<!--    <link rel="icon" href="{{'assets/images/icon/cropped-cropped-orienticon-32x32.png'|theme}}" sizes="32x32">-->
<!--    <link rel="icon" href="{{'assets/images/icon/cropped-cropped-orienticon-192x192.png'|theme}}" sizes="192x192">-->
<!--    <link rel="apple-touch-icon-precomposed" href="{{'assets/images/icon/cropped-cropped-orienticon-180x180.png'|theme}}">-->
<!--    <meta name="msapplication-TileImage" content="{{'assets/images/icon/cropped-cropped-orienticon-270x270.png'|theme}}">-->

    <title>{{this.page.title}}</title>

</head>
<body>
{% partial 'header' %}
{% page %}
{% partial 'footer' %}
<script src="{{'assets/js/jquery.js'|theme}}"></script>

{% framework extras %}
{% scripts %}
<script src="{{'assets/js/main.js'|theme}}"></script>
<script>
    $('.iti__country').click(function (e) {
        let flagClass = $(this).find('.iti__flag').attr("class").split(/\s+/)[1]

        let oldClasses = $('.phone_box-flag').attr("class").split(/\s+/);
        delete(oldClasses[2])

        $('.phone_box-flag').attr('class', oldClasses.join(' '))


        $('.phone_box-flag').addClass(flagClass)

        // todo code

        let code = $(this).find('.iti__dial-code').text()
        $('.phone_box-code').html(code)

    })

</script>
</body>
</html>