File tree 8 files changed +62
-44
lines changed
8 files changed +62
-44
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class TodoList {
9
9
public bool $ active = true ;
10
10
public int $ order = 5 ;
11
11
12
+ public string $ type = 'linkShortCut ' ;
13
+
12
14
public function __construct () {
13
15
$ this ->icon = './.repertoire_scanner/addons/TodoList/icon.png ' ;
14
16
}
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class GithubAddons {
9
9
public bool $ active = true ;
10
10
public int $ order = 3 ;
11
11
12
+ public string $ type = 'linkShortCut ' ;
13
+
12
14
public function __construct () {
13
15
14
16
$ this ->icon = './.repertoire_scanner/addons/GithubAddons/icon.png ' ;
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class googleAgenda {
9
9
public bool $ active = true ;
10
10
public int $ order = 2 ;
11
11
12
+ public string $ type = 'linkShortCut ' ;
13
+
12
14
public function __construct () {
13
15
14
16
$ this ->icon = './.repertoire_scanner/addons/googleAgenda/icon.png ' ;
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class googleMail {
9
9
public bool $ active = true ;
10
10
public int $ order = 1 ;
11
11
12
+ public string $ type = 'linkShortCut ' ;
13
+
12
14
public function __construct () {
13
15
14
16
$ this ->icon = './.repertoire_scanner/addons/googleMail/icon.png ' ;
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class hostinger {
9
9
public bool $ active = true ;
10
10
public int $ order = 4 ;
11
11
12
+ public string $ type = 'linkShortCut ' ;
13
+
12
14
public function __construct () {
13
15
14
16
$ this ->icon = './.repertoire_scanner/addons/hostinger/icon.png ' ;
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ class HyperPlanning {
9
9
public bool $ active = true ;
10
10
public int $ order = 0 ;
11
11
12
+ public string $ type = 'linkShortCut ' ;
13
+
12
14
public function __construct () {
13
15
$ this ->icon = './.repertoire_scanner/addons/HyperPlanning/icon.png ' ;
14
16
}
Original file line number Diff line number Diff line change @@ -32,23 +32,29 @@ private function addonsScanner() : void {
32
32
33
33
}
34
34
35
- public function getAddons () : array |bool {
35
+ public function getAddons (String $ type = ' linkShortCut ' ) : array |bool {
36
36
37
37
if ( empty ($ this ->addons ) ) {
38
38
$ this ->addonsScanner ();
39
39
}
40
40
41
41
if ( $ this ->scanStatus ) {
42
- return $ this ->addons ;
42
+ return array_filter (
43
+ $ this ->addons ,
44
+ function ($ addons ) use ($ type ) {
45
+ return ($ addons ->type === $ type ) ? $ addons : false ;
46
+ }
47
+ );
43
48
}
49
+
44
50
return $ this ->scanStatus ;
45
51
}
46
52
47
53
// #########################
48
54
// ##### DISPLAYER #########
49
55
// #########################
50
56
51
- public function displayAddonsBar () {
57
+ public function displayAddonsBar () : void {
52
58
53
59
echo '<div class="addons"> ' ;
54
60
foreach ( $ this ->getAddons () as $ value ) {
Original file line number Diff line number Diff line change 39
39
'_blank ' ,
40
40
'SQLgestion '
41
41
); ?>
42
- <a class="parameterBtn" > <img src=".repertoire_scanner/assets/images/addons/parameter.png" alt=""> </a>
42
+ <!-- <a class="parameterBtn" > <img src=".repertoire_scanner/assets/images/addons/parameter.png" alt=""> </a>-- >
43
43
</div>
44
44
45
45
</nav>
105
105
<!-- POP UP PARAMETER -->
106
106
<!-- ######################### -->
107
107
108
- <div class="pop-up-parameter">
109
-
110
- <div class="containeur-mid">
111
- <div class="leave">
112
- Leave
113
- </div>
114
-
115
- <div class="choise">
116
-
117
- <ul>
118
- <li open-zone="test1" class="active">test 1</li>
119
- <li open-zone="test2">test 2</li>
120
- <li open-zone="test3">test 3</li>
121
- </ul>
122
-
123
- </div>
124
-
125
- <div class="changeZone">
126
-
127
- <div class="test1">
128
- <h1>test 1</h1>
129
- </div>
130
-
131
- <div class="test2">
132
-
133
- <h1>test 2</h1>
134
-
135
- </div>
136
-
137
- <div class="test3">
138
-
139
- <h1>test 3</h1>
140
-
141
- </div>
142
-
143
- </div>
144
-
145
- </div>
146
-
147
- </div>
108
+ <!-- <div class="pop-up-parameter">-- >
109
+ <!---->
110
+ <!-- <div class="containeur-mid">-- >
111
+ <!-- <div class="leave">-- >
112
+ <!-- Leave-->
113
+ <!-- </div>-- >
114
+ <!---->
115
+ <!-- <div class="choise">-- >
116
+ <!---->
117
+ <!-- <ul>-- >
118
+ <!-- <li open-zone="test1" class="active">test 1</li>-- >
119
+ <!-- <li open-zone="test2">test 2</li>-- >
120
+ <!-- <li open-zone="test3">test 3</li>-- >
121
+ <!-- </ul>-- >
122
+ <!---->
123
+ <!-- </div>-- >
124
+ <!---->
125
+ <!-- <div class="changeZone">-- >
126
+ <!---->
127
+ <!-- <div class="test1">-- >
128
+ <!-- <h1>test 1</h1>-- >
129
+ <!-- </div>-- >
130
+ <!---->
131
+ <!-- <div class="test2">-- >
132
+ <!---->
133
+ <!-- <h1>test 2</h1>-- >
134
+ <!-- -->
135
+ <!-- </div>-- >
136
+ <!---->
137
+ <!-- <div class="test3">-- >
138
+ <!---->
139
+ <!-- <h1>test 3</h1>-- >
140
+ <!-- -->
141
+ <!-- </div>-- >
142
+ <!---->
143
+ <!-- </div>-- >
144
+ <!---->
145
+ <!-- </div>-- >
146
+ <!---->
147
+ <!-- </div>-- >
148
148
149
149
<!-- ######################### -->
150
150
<!-- ADDONS -->
You can’t perform that action at this time.
0 commit comments