Skip to content

Commit

Permalink
Fix for Custom license should link to the license.md file saadbruno#9
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-Hopkinson committed Jan 12, 2024
1 parent f36d62e commit eca3e71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/views/plugin/partials/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@

<h6>License:</h6>
<i class="fas fa-balance-scale"></i>
<?php if ($plugin['licenseName']) { ?>
<a href="<?= $plugin['licenseUrl'] ?>" target="_blank" rel="noopener noreferrer"> <?= $plugin['licenseName'] ?> </a>
<?php if ($plugin['licenseName'] == 'Other') { ?>
<a href="<?= $plugin['url'] ?>/blob/master/LICENSE" target="_blank" rel="noopener noreferrer">Custom</a>
<?php } elseif ($plugin['licenseName']) { ?>
<a href="<?= $plugin['licenseUrl'] ?>" target="_blank" rel="noopener noreferrer"><?= $plugin['licenseName'] ?></a>
<?php } else { ?>
<i class="no-description">No license found</i>
<?php } ?>
Expand Down

0 comments on commit eca3e71

Please sign in to comment.