diff --git a/static/img/star.png b/static/img/star.png new file mode 100644 index 0000000..6e21a20 Binary files /dev/null and b/static/img/star.png differ diff --git a/views/pages/Profile/Index.php b/views/pages/Profile/Index.php index ca7d4eb..016dda2 100644 --- a/views/pages/Profile/Index.php +++ b/views/pages/Profile/Index.php @@ -21,16 +21,22 @@ $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]); -

i('username') ?>

+

i('username') ?>i('admin') === 1) { echo ''; } ?>

+ i('id') === Auth::userid()) { ?>

Редактировать мой профиль

+ content('badge') !== null) { ?> +
content('badge'))?>

+
- +
+ + content('location') !== null) { ?> @@ -46,6 +52,109 @@ $userprofile = new User(explode('/', $_SERVER['REQUEST_URI'])[2]); + i('content'), true)['aboutbirthday']['value'] != null) { ?> + + + + + +
i('content'), true)['aboutlive']['value'] ?>
День рождения:i('content'), true)['aboutbirthday']['value'] ?>
+ + + + i('content'), true)['aboutlangs']['value'] != null) { ?> + + + + + + i('content'), true)['abouttelegram']['value'] != null) { ?> + + + + + + i('content'), true)['aboutvk']['value'] != null) { ?> + + + + + + i('content'), true)['abouttwitter']['value'] != null) { ?> + + + + + + i('content'), true)['aboutyoutube']['value'] != null) { ?> + + + + + + i('content'), true)['aboutemail']['value'] != null) { ?> + + + + + + i('content'), true)['aboutinstagram']['value'] != null) { ?> + + + + + + i('content'), true)['abouttransphoto']['value'] != null) { ?> + + + + + + i('content'), true)['aboutwebsite']['value'] != null) { ?> + + + + + +
Владение языками:i('content'), true)['aboutlangs']['value'] ?>
Telegram:i('content'), true)['abouttelegram']['value'] ?>
ВКонтакте:i('content'), true)['aboutvk']['value'] ?>
Twitter/X:i('content'), true)['abouttwitter']['value'] ?>
Twitter/X:i('content'), true)['aboutyoutube']['value'] ?>
Почта:i('content'), true)['aboutemail']['value'] ?>
Instagram:i('content'), true)['aboutinstagram']['value'] ?>
TransPhoto:i('content'), true)['abouttransphoto']['value'] ?>
Личный сайт:i('content'), true)['aboutwebsite']['value'] ?>
+ + + + i('content'), true)['aboutfavs_trains']['value'] != null) { ?> + + + + + + i('content'), true)['aboutfavs_countries']['value'] != null) { ?> + + + + + + i('content'), true)['aboutfavs_cities']['value'] != null) { ?> + + + + + +
Любимые модели поездов:i('content'), true)['aboutfavs_trains']['value'] ?>
Любимые страны:i('content'), true)['aboutfavs_countries']['value'] ?>
Любимые города:i('content'), true)['aboutfavs_cities']['value'] ?>
+ + + diff --git a/views/pages/Profile/LK/Profile.php b/views/pages/Profile/LK/Profile.php index 84991c7..b1fa5e3 100644 --- a/views/pages/Profile/LK/Profile.php +++ b/views/pages/Profile/LK/Profile.php @@ -34,7 +34,7 @@ $user = new User(Auth::userid()); dataType: 'text', beforeSubmit: function() { $('#applied').hide(); - + $('#errors').hide(); $('#submitBtn').val('Отправка данных...').prop('disabled', true); @@ -96,7 +96,7 @@ $user = new User(Auth::userid()); -

Ссылка на публичный профиль: i('username')?>

+

Ссылка на публичный профиль: i('username') ?>

@@ -106,21 +106,22 @@ $user = new User(Auth::userid()); - - - + + + i('content'), true)['aboutrid']['value']; return $result; } - - + + $selectedCountryId = getSelectedCountryId(); $optionsHtml = ' @@ -224,10 +225,11 @@ $user = new User(Auth::userid()); '; - function addSelectedAttribute($optionsHtml, $selectedValue) { + function addSelectedAttribute($optionsHtml, $selectedValue) + { return preg_replace_callback( '/'; }, @@ -239,28 +241,59 @@ $user = new User(Auth::userid());

Информация

- +
Страна:
Откуда:
- - + +
Дата рождения
+ +
Владение языками
+ +
Пол
+ - +

О себе

- - + +
+
Telegram
+ +
ВКонтакте
+ +
Twitter/X
+ +
YouTube
+ +
Почта
+ +
Instagram
+ +
TransPhoto
+ +
Личный сайт
+ +
Любимые модели поездов
+ +
Любимые страны
+ +
Любимые города
+
Фотография
@@ -284,7 +317,7 @@ $user = new User(Auth::userid());
- +
Дата регистрации: content('regdate')) ?>