Skip to content

Commit 4bcaebe

Browse files
basicManagement
1 parent a88b1b4 commit 4bcaebe

File tree

8 files changed

+62
-44
lines changed

8 files changed

+62
-44
lines changed

Diff for: .repertoire_scanner/addons/TodoList/TodoList.php

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class TodoList {
99
public bool $active = true;
1010
public int $order = 5;
1111

12+
public string $type = 'linkShortCut';
13+
1214
public function __construct() {
1315
$this->icon = './.repertoire_scanner/addons/TodoList/icon.png';
1416
}

Diff for: .repertoire_scanner/addons/githubAddons/githubAddons.php

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class GithubAddons {
99
public bool $active = true;
1010
public int $order = 3;
1111

12+
public string $type = 'linkShortCut';
13+
1214
public function __construct() {
1315

1416
$this->icon = './.repertoire_scanner/addons/GithubAddons/icon.png';

Diff for: .repertoire_scanner/addons/googleAgenda/googleAgenda.php

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class googleAgenda {
99
public bool $active = true;
1010
public int $order = 2;
1111

12+
public string $type = 'linkShortCut';
13+
1214
public function __construct() {
1315

1416
$this->icon = './.repertoire_scanner/addons/googleAgenda/icon.png';

Diff for: .repertoire_scanner/addons/googleMail/googleMail.php

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class googleMail {
99
public bool $active = true;
1010
public int $order = 1;
1111

12+
public string $type = 'linkShortCut';
13+
1214
public function __construct() {
1315

1416
$this->icon = './.repertoire_scanner/addons/googleMail/icon.png';

Diff for: .repertoire_scanner/addons/hostinger/hostinger.php

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class hostinger {
99
public bool $active = true;
1010
public int $order = 4;
1111

12+
public string $type = 'linkShortCut';
13+
1214
public function __construct() {
1315

1416
$this->icon = './.repertoire_scanner/addons/hostinger/icon.png';

Diff for: .repertoire_scanner/addons/hyperPlanning/hyperPlanning.php

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ class HyperPlanning {
99
public bool $active = true;
1010
public int $order = 0;
1111

12+
public string $type = 'linkShortCut';
13+
1214
public function __construct() {
1315
$this->icon = './.repertoire_scanner/addons/HyperPlanning/icon.png';
1416
}

Diff for: .repertoire_scanner/class/RepertoireAddons.php

+9-3
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,29 @@ private function addonsScanner() : void {
3232

3333
}
3434

35-
public function getAddons() : array|bool {
35+
public function getAddons(String $type = 'linkShortCut') : array|bool {
3636

3737
if ( empty($this->addons) ) {
3838
$this->addonsScanner();
3939
}
4040

4141
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+
);
4348
}
49+
4450
return $this->scanStatus;
4551
}
4652

4753
// #########################
4854
// ##### DISPLAYER #########
4955
// #########################
5056

51-
public function displayAddonsBar() {
57+
public function displayAddonsBar() : void {
5258

5359
echo '<div class="addons">';
5460
foreach( $this->getAddons() as $value ) {

Diff for: index.php

+41-41
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
'_blank',
4040
'SQLgestion'
4141
); ?>
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>-->
4343
</div>
4444

4545
</nav>
@@ -105,46 +105,46 @@
105105
<!-- POP UP PARAMETER -->
106106
<!-- ######################### -->
107107

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>-->
148148

149149
<!-- ######################### -->
150150
<!-- ADDONS -->

0 commit comments

Comments
 (0)