quick fix; prepare homepage param
This commit is contained in:
parent
99b3168452
commit
614cde79a0
3 changed files with 9 additions and 4 deletions
|
@ -87,6 +87,10 @@ h2 {
|
|||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h2 a {
|
||||
color:black;
|
||||
}
|
||||
|
||||
form {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
|
|
@ -42,8 +42,9 @@ $whitelist_default = array(
|
|||
"YoutubeBridge");
|
||||
|
||||
if (!file_exists($whitelist_file)) {
|
||||
$whitelist_selection = implode("\n", $whitelist_default);
|
||||
file_put_contents($whitelist_file, $whitelist_selection);
|
||||
$whitelist_selection = $whitelist_default;
|
||||
$whitelist_write = implode("\n", $whitelist_default);
|
||||
file_put_contents($whitelist_file, $whitelist_write);
|
||||
}
|
||||
else {
|
||||
$whitelist_selection = explode("\n", file_get_contents($whitelist_file));
|
||||
|
@ -141,7 +142,7 @@ $formats = Format::searchInformation();
|
|||
<?php foreach($bridges as $bridgeReference => $bridgeInformations): ?>
|
||||
<?php if(BridgeWhitelist($whitelist_selection, $bridgeReference)) { ?>
|
||||
<section id="bridge-<?php echo $bridgeReference ?>" data-ref="<?php echo $bridgeReference ?>">
|
||||
<h2><?php echo $bridgeInformations['name'] ?></h2>
|
||||
<h2><?php echo isset($bridgeInformations['homepage']) ? '<a href="'.$bridgeInformations['homepage'].'">'.$bridgeInformations['name'].'</a>' : $bridgeInformations['name'] ?></h2>
|
||||
<p class="description">
|
||||
<?php echo isset($bridgeInformations['description']) ? $bridgeInformations['description'] : 'No description provided' ?>
|
||||
</p>
|
||||
|
|
|
@ -137,7 +137,7 @@ class Bridge{
|
|||
|
||||
$listBridge = array();
|
||||
|
||||
$searchCommonPattern = array('maintainer', 'description', 'name');
|
||||
$searchCommonPattern = array('maintainer', 'description', 'homepage', 'name');
|
||||
|
||||
$dirFiles = scandir($pathDirBridge);
|
||||
if( $dirFiles !== false ){
|
||||
|
|
Loading…
Reference in a new issue