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;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
h2 a {
|
||||||
|
color:black;
|
||||||
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,8 +42,9 @@ $whitelist_default = array(
|
||||||
"YoutubeBridge");
|
"YoutubeBridge");
|
||||||
|
|
||||||
if (!file_exists($whitelist_file)) {
|
if (!file_exists($whitelist_file)) {
|
||||||
$whitelist_selection = implode("\n", $whitelist_default);
|
$whitelist_selection = $whitelist_default;
|
||||||
file_put_contents($whitelist_file, $whitelist_selection);
|
$whitelist_write = implode("\n", $whitelist_default);
|
||||||
|
file_put_contents($whitelist_file, $whitelist_write);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$whitelist_selection = explode("\n", file_get_contents($whitelist_file));
|
$whitelist_selection = explode("\n", file_get_contents($whitelist_file));
|
||||||
|
@ -141,7 +142,7 @@ $formats = Format::searchInformation();
|
||||||
<?php foreach($bridges as $bridgeReference => $bridgeInformations): ?>
|
<?php foreach($bridges as $bridgeReference => $bridgeInformations): ?>
|
||||||
<?php if(BridgeWhitelist($whitelist_selection, $bridgeReference)) { ?>
|
<?php if(BridgeWhitelist($whitelist_selection, $bridgeReference)) { ?>
|
||||||
<section id="bridge-<?php echo $bridgeReference ?>" data-ref="<?php echo $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">
|
<p class="description">
|
||||||
<?php echo isset($bridgeInformations['description']) ? $bridgeInformations['description'] : 'No description provided' ?>
|
<?php echo isset($bridgeInformations['description']) ? $bridgeInformations['description'] : 'No description provided' ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -137,7 +137,7 @@ class Bridge{
|
||||||
|
|
||||||
$listBridge = array();
|
$listBridge = array();
|
||||||
|
|
||||||
$searchCommonPattern = array('maintainer', 'description', 'name');
|
$searchCommonPattern = array('maintainer', 'description', 'homepage', 'name');
|
||||||
|
|
||||||
$dirFiles = scandir($pathDirBridge);
|
$dirFiles = scandir($pathDirBridge);
|
||||||
if( $dirFiles !== false ){
|
if( $dirFiles !== false ){
|
||||||
|
|
Loading…
Reference in a new issue