mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Groups: Fix tabs and div block
I have SO many questions...
This commit is contained in:
parent
77bda53ad9
commit
42f862eaec
1 changed files with 40 additions and 38 deletions
|
@ -2,39 +2,39 @@
|
||||||
{var iterator = $user->getClubs($page, $admin)}
|
{var iterator = $user->getClubs($page, $admin)}
|
||||||
{var count = $user->getClubCount($admin)}
|
{var count = $user->getClubCount($admin)}
|
||||||
|
|
||||||
{block title}{_"groups"}{/block}
|
{block title}
|
||||||
|
{_groups}
|
||||||
|
{/block}
|
||||||
|
|
||||||
{block header}
|
{block header}
|
||||||
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
||||||
{_my_groups}
|
{_my_groups}
|
||||||
{else}
|
{else}
|
||||||
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a> » {_"groups"}
|
<a href="{$user->getURL()}">{$user->getCanonicalName()}</a> » {_groups}
|
||||||
{/if}
|
{/if}
|
||||||
<div n:if="!is_null($thisUser) && $user->getId() === $thisUser->getId()" style="float:right;">
|
|
||||||
</div>
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{* BEGIN ELEMENTS DESCRIPTION *}
|
{* BEGIN ELEMENTS DESCRIPTION *}
|
||||||
|
|
||||||
{block tabs}
|
{block tabs}
|
||||||
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
||||||
<div {if !$admin}id="activetabs"{/if} class="tab">
|
<div {if !$admin}id="activetabs"{/if} class="tab">
|
||||||
<a {if !$admin}id="act_tab_a"{/if} href="/groups{$user->getId()}">
|
<a {if !$admin}id="act_tab_a"{/if} href="/groups{$user->getId()}">
|
||||||
{_groups}
|
{_groups}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div {if $admin}id="activetabs"{/if} class="tab">
|
<div {if $admin}id="activetabs"{/if} class="tab">
|
||||||
<a {if $admin}id="act_tab_a"{/if} href="/groups{$user->getId()}?act=managed">
|
<a {if $admin}id="act_tab_a"{/if} href="/groups{$user->getId()}?act=managed">
|
||||||
{_managed}
|
{_managed}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block size}
|
{block size}
|
||||||
<div style="padding-bottom: 0px;border-bottom: 0;" class="summaryBar">
|
<div style="padding-bottom: 0px;border-bottom: 0;" class="summaryBar">
|
||||||
<div class="summary">Найдено групп ({$thisUser->getClubCount()})</div>
|
<div class="summary">Найдено групп ({$thisUser->getClubCount()})</div>
|
||||||
</div>
|
</div>
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block link|strip|stripHtml}
|
{block link|strip|stripHtml}
|
||||||
|
@ -67,22 +67,24 @@
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block bottom}
|
{block bottom}
|
||||||
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
{if !is_null($thisUser) && $user->getId() === $thisUser->getId()}
|
||||||
<div class="groups_options">
|
<div class="groups_options">
|
||||||
<div id="gp_container" style="width: 200px;margin-right: 40px;">
|
<div id="gp_container" style="width: 200px;margin-right: 40px;">
|
||||||
<h4>{_"open_new_group"}</h4>
|
<h4>{_open_new_group}</h4>
|
||||||
<span>{_"open_group_desc"}</span>
|
<span>{_open_group_desc}</span>
|
||||||
<form action="/groups_create">
|
<form action="/groups_create">
|
||||||
<button class="button">{_"create_group"}</button></div>
|
<button class="button">{_create_group}</button>
|
||||||
</form>
|
</form>
|
||||||
<div id="gp_container" style="width: 344px;">
|
</div>
|
||||||
<h4>{_"search_group"}</h4>
|
<div id="gp_container" style="width: 344px;">
|
||||||
<span>{_"search_group_desc"}</span>
|
<h4>{_search_group}</h4>
|
||||||
<form action="/search">
|
<span>{_search_group_desc}</span>
|
||||||
<input name="type" type="hidden" value="groups">
|
<form action="/search">
|
||||||
<input name="query" class="header_search_input" value="" style="background: none;width: 155px;padding-left: 3px;">
|
<input name="type" type="hidden" value="groups">
|
||||||
<button class="button">{_"search_by_groups"}</button>
|
<input name="query" class="header_search_input" value="" style="background: none;width: 155px;padding-left: 3px;">
|
||||||
</form></div>
|
<button class="button">{_search_by_groups}</button>
|
||||||
</div>
|
</form>
|
||||||
{/if}
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
Loading…
Reference in a new issue