-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path(aXen) Administrative bar 2.1.1.xml
148 lines (122 loc) · 5.07 KB
/
(aXen) Administrative bar 2.1.1.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="UTF-8"?>
<plugin name="(aXen) Administrative bar" version_long="20002" version_human="2.1.1" author="aXenDev" website="https://axendev.net/" update_check="http://axendev.net/myapps/plugins/administrativebar/check.php"><hooks><hook type="S" class="\IPS\Theme\class_core_front_global" filename="administrativebar"><![CDATA[//<?php
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
exit;
}
class hook184 extends _HOOK_CLASS_
{
/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
return array_merge_recursive( array (
'globalTemplate' =>
array (
0 =>
array (
'selector' => 'html > body',
'type' => 'add_inside_start',
'content' => '{{if ( \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'core\', \'modcp\' ) ) AND \IPS\Member::loggedIn()->modPermission() ) or \IPS\Member::loggedIn()->isAdmin()}}
<div class="ipsPadding:half ipsAreaBackground{{if settings.aXenAdminBar_mobile}} ipsResponsive_hidePhone{{endif}}">
<div class="ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsLayout_container">
{{if \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( \'core\', \'modcp\' ) ) AND \IPS\Member::loggedIn()->modPermission()}}
<span data-menuItem=\'modcp\'>
<a href=\'{url="app=core&module=modcp" seoTemplate="modcp"}\'>
{{if settings.aXenAdminBar_icon}}<i class="fa fa-shield"></i> {{endif}}{lang="menu_modcp"}
</a>
</span>
{{endif}}
{{if \IPS\Member::loggedIn()->isAdmin() AND \IPS\SHOW_ACP_LINK }}
<span data-menuItem=\'admincp\'>
<a href=\'{url="" base="admin"}\' target=\'_blank\' rel="noopener">
{{if settings.aXenAdminBar_icon}}<i class=\'fa fa-lock\'></i> {{endif}}{lang="menu_admincp"}
</a>
</span>
{{endif}}
</div>
</div>
{{endif}}',
),
),
), parent::hookData() );
}
/* End Hook Data */
}
]]></hook></hooks><settings><setting><key>aXenAdminBar_icon</key><default>1</default></setting><setting><key>aXenAdminBar_mobile</key><default>0</default></setting></settings><settingsCode><![CDATA[//<?php
$form->add( new \IPS\Helpers\Form\YesNo( 'aXenAdminBar_icon', \IPS\Settings::i()->aXenAdminBar_icon ) );
$form->add( new \IPS\Helpers\Form\YesNo( 'aXenAdminBar_mobile', \IPS\Settings::i()->aXenAdminBar_mobile ) );
if ( $values = $form->values() )
{
$form->saveAsSettings();
return TRUE;
}
return $form;]]></settingsCode><htmlFiles/><cssFiles/><jsFiles/><resourcesFiles/><lang><word key="aXenAdminBar_icon" js="0">Enable icons?</word><word key="aXenAdminBar_mobile" js="0">Hide in mobile?</word></lang><versions><version long="10000" human="1.0.0"/><version long="20000" human="2.0.0"><![CDATA[//<?php
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 2.0.0 Upgrade Code
*/
class ips_plugins_setup_upg_20000
{
/**
* ...
*
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
*/
public function step1()
{
return TRUE;
}
// You can create as many additional methods (step2, step3, etc.) as is necessary.
// Each step will be executed in a new HTTP request
}]]></version><version long="20001" human="2.1.0"><![CDATA[//<?php
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 2.1.0 Upgrade Code
*/
class ips_plugins_setup_upg_20001
{
/**
* ...
*
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
*/
public function step1()
{
return TRUE;
}
// You can create as many additional methods (step2, step3, etc.) as is necessary.
// Each step will be executed in a new HTTP request
}]]></version><version long="20002" human="2.1.1"><![CDATA[//<?php
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
exit;
}
/**
* 2.1.1 Upgrade Code
*/
class ips_plugins_setup_upg_20002
{
/**
* ...
*
* @return array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
*/
public function step1()
{
return TRUE;
}
// You can create as many additional methods (step2, step3, etc.) as is necessary.
// Each step will be executed in a new HTTP request
}]]></version></versions></plugin>