-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed the module to SD Random Module.
- Loading branch information
Showing
16 changed files
with
102 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><title></title></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
class mod_sdrandommoduleInstallerScript // phpcs:ignore | ||
{ | ||
/** | ||
* Runs after installation. | ||
* | ||
* @return void | ||
*/ | ||
public function install(): void | ||
{ | ||
echo <<<HTML | ||
<style> | ||
.btn-sd { | ||
display: inline-block; | ||
background-color: #8f5ba1; | ||
color: #fff; | ||
padding: .5rem 1rem; | ||
margin-top: 1rem; | ||
} | ||
.btn-sd:hover { | ||
color: #fff; | ||
text-decoration: none; | ||
} | ||
.btn-outline-sd { | ||
border: 1px solid #8f5ba1; | ||
padding: .5rem 1rem; | ||
margin-top: 1rem; | ||
display: block; | ||
} | ||
</style> | ||
<div class="row" style="margin-bottom: 30px;"> | ||
<div class="span1"> </div> | ||
<div class="span3 col-md-4"> | ||
<img | ||
src="../media/mod_sdrandommodule/sd-random-module-logo.png" | ||
alt="SD Random Module Logo" | ||
style="width:100%" /> | ||
</div> | ||
<div class="span6 col-md-7"> | ||
<h2>SD Random Module</h2> | ||
SD Random Module shows a random module from a (custom) position of your | ||
site. This way you can easily show a random image, random streamer, | ||
random survey and more.<br> | ||
<ul class="inline list-inline"> | ||
<li class="list-inline-item"> | ||
<a | ||
href="https://docs.snoerendevelopment.com/sd-random-module" | ||
class="btn-outline-sd" | ||
target="_blank"> | ||
Getting started | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
HTML; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MOD_SDRANDOMMODULE="SD Random Module" | ||
MOD_SDRANDOMMODULE_DESC="Show a random module." | ||
|
||
MOD_SDRANDOMMODULE_OPTION_POSITION="Module Position" | ||
MOD_SDRANDOMMODULE_OPTION_POSITION_DESC="Select the module position to retrieve the modules from. This can be a custom position too. The Random Module module will then pick a random one from the list of modules." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
MOD_SDRANDOMMODULE="SD Random Module" | ||
MOD_SDRANDOMMODULE_DESC="Show a random module." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><title></title></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><title></title></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><title></title></html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!DOCTYPE html><html><title></title></html> |
This file was deleted.
Oops, something went wrong.