mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Ability to hide "My applications" from the menu (#937)
This commit is contained in:
parent
2939936534
commit
0ef413a5b9
4 changed files with 14 additions and 1 deletions
|
@ -462,6 +462,7 @@ class User extends RowModel
|
||||||
"news",
|
"news",
|
||||||
"links",
|
"links",
|
||||||
"poster",
|
"poster",
|
||||||
|
"apps"
|
||||||
],
|
],
|
||||||
])->get($id);
|
])->get($id);
|
||||||
}
|
}
|
||||||
|
@ -1026,6 +1027,7 @@ class User extends RowModel
|
||||||
"news",
|
"news",
|
||||||
"links",
|
"links",
|
||||||
"poster",
|
"poster",
|
||||||
|
"apps"
|
||||||
],
|
],
|
||||||
])->set($id, (int) $status)->toInteger();
|
])->set($id, (int) $status)->toInteger();
|
||||||
|
|
||||||
|
|
|
@ -481,6 +481,7 @@ final class UserPresenter extends OpenVKPresenter
|
||||||
"menu_novajoj" => "news",
|
"menu_novajoj" => "news",
|
||||||
"menu_ligiloj" => "links",
|
"menu_ligiloj" => "links",
|
||||||
"menu_standardo" => "poster",
|
"menu_standardo" => "poster",
|
||||||
|
"menu_aplikoj" => "apps"
|
||||||
];
|
];
|
||||||
foreach($settings as $checkbox => $setting)
|
foreach($settings as $checkbox => $setting)
|
||||||
$user->setLeftMenuItemStatus($setting, $this->checkbox($checkbox));
|
$user->setLeftMenuItemStatus($setting, $this->checkbox($checkbox));
|
||||||
|
|
|
@ -196,7 +196,7 @@
|
||||||
(<b>{$thisUser->getNotificationsCount()}</b>)
|
(<b>{$thisUser->getNotificationsCount()}</b>)
|
||||||
{/if}
|
{/if}
|
||||||
</a>
|
</a>
|
||||||
<a href="/apps?act=installed" class="link">{_my_apps}</a>
|
<a n:if="$thisUser->getLeftMenuItemStatus('apps')" href="/apps?act=installed" class="link">{_my_apps}</a>
|
||||||
<a href="/settings" class="link">{_my_settings}</a>
|
<a href="/settings" class="link">{_my_settings}</a>
|
||||||
|
|
||||||
{var $canAccessAdminPanel = $thisUser->getChandlerUser()->can("access")->model("admin")->whichBelongsTo(NULL)}
|
{var $canAccessAdminPanel = $thisUser->getChandlerUser()->can("access")->model("admin")->whichBelongsTo(NULL)}
|
||||||
|
|
|
@ -650,6 +650,16 @@
|
||||||
<td>
|
<td>
|
||||||
<span class="nobold">{_my_feed}</span>
|
<span class="nobold">{_my_feed}</span>
|
||||||
</td>
|
</td>
|
||||||
|
</tr><tr>
|
||||||
|
<td width="120" valign="top" align="right" align="right">
|
||||||
|
<input
|
||||||
|
n:attr="checked => $user->getLeftMenuItemStatus('apps')"
|
||||||
|
type="checkbox"
|
||||||
|
name="menu_aplikoj" />
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span class="nobold">{_my_apps}</span>
|
||||||
|
</td>
|
||||||
</tr><tr n:if="sizeof(OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links']) > 0">
|
</tr><tr n:if="sizeof(OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links']) > 0">
|
||||||
<td width="120" valign="top" align="right" align="right">
|
<td width="120" valign="top" align="right" align="right">
|
||||||
<input
|
<input
|
||||||
|
|
Loading…
Reference in a new issue