Version 4.1.19
This commit is contained in:
1 parent
28bd025b35
commit
2bd5025018
2674 files changed
+233518
-77766
No files matched your search
@@ -1,5 +1,11 @@
|
||||
//<?php
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
exit;
|
||||
}
|
||||
|
||||
class nexus_hook_clientAreaLink extends _HOOK_CLASS_
|
||||
{
|
||||
|
||||
@@ -12,26 +18,18 @@ public static function hookData() {
|
||||
array (
|
||||
'selector' => '#cUserLink',
|
||||
'type' => 'add_before',
|
||||
'content' => '{{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'nexus\', \'store\' ) )}}
|
||||
{template="cartHeader" app="nexus" group="store" params=""}
|
||||
'content' => '{{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'nexus\', \'store\' ) )}}
|
||||
{template="cartHeader" app="nexus" group="store" params=""}
|
||||
{{endif}}',
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'selector' => '#elSignInLink',
|
||||
'type' => 'add_before',
|
||||
'content' => '{{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'nexus\', \'store\' ) )}}
|
||||
{template="cartHeader" app="nexus" group="store" params=""}
|
||||
'content' => '{{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'nexus\', \'store\' ) )}}
|
||||
{template="cartHeader" app="nexus" group="store" params=""}
|
||||
{{endif}}',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'selector' => '#elAccountSettingsLink',
|
||||
'type' => 'add_after',
|
||||
'content' => '{{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'nexus\', \'clients\' ) )}}
|
||||
<li class=\'ipsMenu_item\'><a href=\'{url="app=nexus&module=clients&controller=splash" seoTemplate="clients" protocol="\IPS\Settings::i()->nexus_https"}\' title=\'{lang="module__nexus_clients"}\'>{lang="module__nexus_clients"}</a></li>
|
||||
{{endif}}',
|
||||
),
|
||||
)
|
||||
),
|
||||
), parent::hookData() );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user