fix: friend link styles
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Baoshuo Ren 2022-09-23 21:51:36 +08:00
parent 4e1d156f0e
commit f75752397f
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -99,7 +99,12 @@
<?php if (!isset($REQUIRE_LIB['bootstrap5'])): ?>
<h4 class="card-title" style="font-size: 1.25rem">倒计时</h4>
<?php endif ?>
<ul class="list-unstyled mb-0">
<ul class="
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
list-unstyled
<?php else: ?>
pl-4
<?php endif ?> mb-0">
<?php foreach ($countdowns as $countdown): ?>
<?php
$enddate = strtotime($countdown['endtime']);
@ -130,10 +135,20 @@
<?php if (!isset($REQUIRE_LIB['bootstrap5'])): ?>
<h4 class="card-title" style="font-size: 1.25rem">友情链接</h4>
<?php endif ?>
<ul class="list-unstyled mb-0">
<ul class="
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
ps-3
<?php else: ?>
pl-4
<?php endif ?>
mb-0">
<?php foreach ($friend_links as $friend_link): ?>
<li>
<a href="<?= $friend_link['url'] ?>" target="_blank"><?= $friend_link['title'] ?></a>
<a
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
class="text-decoration-none"
<?php endif ?>
href="<?= $friend_link['url'] ?>" target="_blank"><?= $friend_link['title'] ?></a>
</li>
<?php endforeach ?>
</ul>