Skip to content

Commit 7fda81a

Browse files
megasteve19github-actions[bot]
authored andcommitted
Fix styling
1 parent 90b00f1 commit 7fda81a

26 files changed

Lines changed: 84 additions & 84 deletions

resources/php/bootstrap-five/attaches.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<div class="rounded d-flex gap-3 mb-3">
2-
<div class="bg-light text-uppercase fs-5 fw-bold p-4 rounded"><?php echo $data('file.extension'); ?></div>
2+
<div class="bg-light text-uppercase fs-5 fw-bold p-4 rounded"><?= $data('file.extension'); ?></div>
33
<div>
44
<p class="text-lg fw-bold mb-0">
55
<a
66
class="link-dark gap-1 d-inline-flex justify-content-center align-items-center"
7-
href="<?php echo $data('file.url'); ?>"
7+
href="<?= $data('file.url'); ?>"
88
target="_blank"
99
>
10-
<span><?php echo $data('title') ?? $data('file.name'); ?></span>
10+
<span><?= $data('title') ?? $data('file.name'); ?></span>
1111
<svg
1212
class="inline"
1313
fill="currentColor"
@@ -27,6 +27,6 @@ class="inline"
2727
</svg>
2828
</a>
2929
</p>
30-
<p class="fw-semibold text-secondary"><small><?php echo number_format($data('file.size') * 0.000001, 2); ?>MiB</small></p>
30+
<p class="fw-semibold text-secondary"><small><?= number_format($data('file.size') * 0.000001, 2); ?>MiB</small></p>
3131
</div>
3232
</div>

resources/php/bootstrap-five/checklist.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class="d-flex flex-column align-items-start pl-8 gap-1 mb-3"
44
>
55
<?php foreach($data('items', []) as $item): ?>
66
<li class="inline-flex justify-center align-items-center gap-2">
7-
<span class="bg-light rounded-circle <?php echo $item['checked'] ? 'text-secondary' : 'text-black'; ?>">
7+
<span class="bg-light rounded-circle <?= $item['checked'] ? 'text-secondary' : 'text-black'; ?>">
88
<svg
99
fill="currentColor"
1010
height="24"
@@ -19,9 +19,9 @@ class="d-flex flex-column align-items-start pl-8 gap-1 mb-3"
1919
</span>
2020

2121
<?php if($item['checked']): ?>
22-
<del><?php echo $item['text']; ?></del>
22+
<del><?= $item['text']; ?></del>
2323
<?php else: ?>
24-
<span><?php echo $item['text']; ?></span>
24+
<span><?= $item['text']; ?></span>
2525
<?php endif; ?>
2626
</li>
2727
<?php endforeach; ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="p-4 bg-light rounded mb-3">
22
<div class="overflow-x-auto w-full bg-white rounded p-3">
3-
<pre><?php echo $data('code'); ?></pre>
3+
<pre><?= $data('code'); ?></pre>
44
</div>
55
</div>

resources/php/bootstrap-five/embed.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<div class="mb-3 bg-light p-4 rounded">
22
<iframe
33
class="block mb-3 rounded bg-white"
4-
height="<?php echo $data('height'); ?>"
4+
height="<?= $data('height'); ?>"
55
loading="lazy"
6-
src="<?php echo $data('embed'); ?>"
6+
src="<?= $data('embed'); ?>"
77
width="100%"
88
></iframe>
99

1010
<p class="bg-white p-4 rounded mb-1">
11-
<?php echo $data('caption'); ?>
11+
<?= $data('caption'); ?>
1212

1313
</p>
1414

1515
<p>
1616
<small>
1717
<a
1818
class="link-secondary"
19-
href="<?php echo $data('source'); ?>"
19+
href="<?= $data('source'); ?>"
2020
target="_blank"
21-
><?php echo $data('source'); ?></a>
21+
><?= $data('source'); ?></a>
2222
</small>
2323
</p>
2424

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<?php switch($data('level')):
22
case (1): ?>
3-
<h1 class="fw-bold mb-3"><?php echo $data('text'); ?></h1>
3+
<h1 class="fw-bold mb-3"><?= $data('text'); ?></h1>
44
<?php break; ?>
55

66
<?php case (2): ?>
7-
<h2 class="fw-bold mb-3"><?php echo $data('text'); ?></h2>
7+
<h2 class="fw-bold mb-3"><?= $data('text'); ?></h2>
88
<?php break; ?>
99

1010
<?php case (3): ?>
11-
<h3 class="fw-bold mb-3"><?php echo $data('text'); ?></h3>
11+
<h3 class="fw-bold mb-3"><?= $data('text'); ?></h3>
1212
<?php break; ?>
1313

1414
<?php case (4): ?>
15-
<h4 class="fw-semibold mb-3"><?php echo $data('text'); ?></h4>
15+
<h4 class="fw-semibold mb-3"><?= $data('text'); ?></h4>
1616
<?php break; ?>
1717

1818
<?php case (5): ?>
19-
<h5 class="fw-semibold mb-3"><?php echo $data('text'); ?></h5>
19+
<h5 class="fw-semibold mb-3"><?= $data('text'); ?></h5>
2020
<?php break; ?>
2121

2222
<?php case (6): ?>
23-
<h6 class="fw-semibold mb-1"><?php echo $data('text'); ?></h6>
23+
<h6 class="fw-semibold mb-1"><?= $data('text'); ?></h6>
2424
<?php break; ?>
2525
<?php endswitch; ?>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<img
2-
alt="<?php echo $data('caption'); ?>"
3-
src="<?php echo $data('file.url'); ?>"
2+
alt="<?= $data('caption'); ?>"
3+
src="<?= $data('file.url'); ?>"
44
class="d-block mb-3 w-100 rounded"
55
>
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<div class="bg-light d-flex mb-3 rounded overflow-hidden flex-column flex-sm-row">
22
<img
3-
alt="<?php echo $data('meta.title'); ?>"
3+
alt="<?= $data('meta.title'); ?>"
44
width="100%"
5-
src="<?php echo $data('meta.image.url'); ?>"
5+
src="<?= $data('meta.image.url'); ?>"
66
style="object-fit: cover"
77
>
88
<div class="m-4 p-4 bg-white rounded flex-2">
9-
<h4 class="text-xl fw-semibold"><?php echo $data('meta.title'); ?></h4>
9+
<h4 class="text-xl fw-semibold"><?= $data('meta.title'); ?></h4>
1010
<p class="mb-3 text-sm">
1111
<small>
1212
<a
1313
class="link-dark fw-bold"
14-
href="<?php echo $data('link'); ?>"
14+
href="<?= $data('link'); ?>"
1515
target="_blank"
16-
><?php echo $data('link'); ?></a>
16+
><?= $data('link'); ?></a>
1717
</small>
1818
</p>
19-
<p class="mb-0"><?php echo $data('meta.description'); ?></p>
19+
<p class="mb-0"><?= $data('meta.description'); ?></p>
2020
</div>
2121
</div>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php if($data('style') === 'ordered'): ?>
22
<ol class="mb-3">
33
<?php foreach($data('items', []) as $item): ?>
4-
<li class="mb-1"><?php echo $item; ?></li>
4+
<li class="mb-1"><?= $item; ?></li>
55
<?php endforeach; ?>
66
</ol>
77
<?php else: ?>
88
<ul class="mb-3">
99
<?php foreach($data('items', []) as $item): ?>
10-
<li class="mb-1"><?php echo $item; ?></li>
10+
<li class="mb-1"><?= $item; ?></li>
1111
<?php endforeach; ?>
1212
</ul>
1313
<?php endif; ?>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<p class="mb-3"><?php echo $data('text'); ?></p>
1+
<p class="mb-3"><?= $data('text'); ?></p>
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<div class="bg-light d-flex mb-3 rounded overflow-hidden flex-column flex-sm-row">
22
<img
3-
alt="<?php echo $data('name'); ?>"
4-
src="<?php echo $data('photo'); ?>"
3+
alt="<?= $data('name'); ?>"
4+
src="<?= $data('photo'); ?>"
55
style="object-fit: cover"
66
width="100%"
77
>
88
<div class="m-4 p-4 bg-white rounded flex-2">
9-
<h4 class="text-xl fw-semibold"><?php echo $data('name'); ?></h4>
9+
<h4 class="text-xl fw-semibold"><?= $data('name'); ?></h4>
1010
<p class="mb-3 text-sm">
1111
<small>
1212
<a
1313
class="link-dark fw-bold"
14-
href="<?php echo $data('link'); ?>"
14+
href="<?= $data('link'); ?>"
1515
target="_blank"
16-
><?php echo $data('link'); ?></a>
16+
><?= $data('link'); ?></a>
1717
</small>
1818
</p>
19-
<p class="mb-0"><?php echo $data('description'); ?></p>
19+
<p class="mb-0"><?= $data('description'); ?></p>
2020
</div>
2121
</div>

0 commit comments

Comments
 (0)