From 7c1502b4b920249436cab3f5f64e1850265b7cdc Mon Sep 17 00:00:00 2001 From: lalka2016 <99399973+lalka2016@users.noreply.github.com> Date: Sat, 3 Jun 2023 16:39:35 +0300 Subject: [PATCH] ok --- Web/Presenters/templates/Search/Index.xml | 8 +-- Web/Presenters/templates/User/View.xml | 51 +++++++++++-------- Web/Presenters/templates/components/video.xml | 6 +-- 3 files changed, 37 insertions(+), 28 deletions(-) diff --git a/Web/Presenters/templates/Search/Index.xml b/Web/Presenters/templates/Search/Index.xml index bf30bb35..e724e278 100644 --- a/Web/Presenters/templates/Search/Index.xml +++ b/Web/Presenters/templates/Search/Index.xml @@ -262,7 +262,7 @@ - {if $type !== "groups" && $type !== "apps"} {*В OpenVK не сохраняется дата создания группы*} + {if $type !== "groups" && $type !== "apps"} {* В OpenVK не сохраняется дата создания группы *}
{_s_by_date}
@@ -284,9 +284,9 @@ max={date('Y-m-d')}>

- {/if} + {/if} - {if $type === "users"} + {if $type === "users"}
{_main}
@@ -350,7 +350,7 @@
- {/if} + {/if} diff --git a/Web/Presenters/templates/User/View.xml b/Web/Presenters/templates/User/View.xml index 73e269f9..a2783b21 100644 --- a/Web/Presenters/templates/User/View.xml +++ b/Web/Presenters/templates/User/View.xml @@ -424,7 +424,7 @@ {_politViews}: - {var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"} + getPoliticalViews() != 0}href="/search?type=users&query=&politViews={$user->getPoliticalViews()}"{/if}>{var $pviews = $user->getPoliticalViews()}{_"politViews_$pviews"} {_birth_date}: @@ -485,44 +485,53 @@ {_interests}: - {var $interests = explode(", ", $user->getInterests())} - {foreach $interests as $interest} - {$interest}{if $interest != end($interests)},{/if} - {/foreach} + {var $interests = explode(", ", $user->getInterests())} + + {foreach $interests as $interest} + {$interest}{if $interest != end($interests)},{/if} + {/foreach} {_favorite_music}: - {var $musics = explode(", ", $user->getFavoriteMusic())} - {foreach $musics as $music} - {$music}{if $music != end($musics)},{/if} - {/foreach} + {var $musics = explode(", ", $user->getFavoriteMusic())} + + {foreach $musics as $music} + {$music}{if $music != end($musics)},{/if} + {/foreach} + {_favorite_films}: - {var $films = explode(", ", $user->getFavoriteFilms())} - {foreach $films as $film} - {$film}{if $film != end($films)},{/if} - {/foreach} + {var $films = explode(", ", $user->getFavoriteFilms())} + + {foreach $films as $film} + {$film}{if $film != end($films)},{/if} + {/foreach} + {_favorite_shows}: - {var $shows = explode(", ", $user->getFavoriteShows())} - {foreach $shows as $show} - {$show}{if $show != end($shows)},{/if} - {/foreach} + {var $shows = explode(", ", $user->getFavoriteShows())} + + {foreach $shows as $show} + {$show}{if $show != end($shows)},{/if} + {/foreach} + {_favorite_books}: - {var $books = explode(", ", $user->getFavoriteBooks())} - {foreach $books as $book} - {$book}{if $book != end($books)},{/if} - {/foreach} + {var $books = explode(", ", $user->getFavoriteBooks())} + + {foreach $books as $book} + {$book}{if $book != end($books)},{/if} + {/foreach} + {_favorite_quotes}: diff --git a/Web/Presenters/templates/components/video.xml b/Web/Presenters/templates/components/video.xml index 0b408f70..752191a1 100644 --- a/Web/Presenters/templates/components/video.xml +++ b/Web/Presenters/templates/components/video.xml @@ -10,9 +10,9 @@ - {ifset infotable} - {include infotable, x => $dat} - {else} + {ifset infotable} + {include infotable, x => $dat} + {else} {$video->getName()}