83 lines
1.3 KiB
PHP
83 lines
1.3 KiB
PHP
//<?php
|
|
|
|
class nexus_hook_clientAreaLink extends _HOOK_CLASS_
|
|
{
|
|
|
|
/* !Hook Data - DO NOT REMOVE */
|
|
public static function hookData() {
|
|
return array_merge_recursive( array (
|
|
'userBar' =>
|
|
array (
|
|
1 =>
|
|
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=""}
|
|
{{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=""}
|
|
{{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() );
|
|
}
|
|
/* End Hook Data */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |