Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit eb408c3

Browse files
fix pattern library
1 parent 5f60c7d commit eb408c3

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog][Keep a Changelog] and this project adheres to [Semantic Versioning][Semantic Versioning].
55

6+
## [Unreleased]
7+
8+
### Fixed
9+
- Fixed Pattern Library syntax
10+
611
## [0.30.0] - 2022-05-17
712

813
### Added

pattern-library.php

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,15 @@
4747

4848
$bs_lorem_short = 'Lorem ipsum dolor sit amet';
4949

50-
$bs_lorem_long = 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque, ut. Repudiandae excepturi sequi quaerat ex eos dicta earum, fuga deleniti amet accusantium recusandae quia aperiam aut assumenda, quas ratione laborum.'
50+
$bs_lorem_long = 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque, ut. Repudiandae excepturi sequi quaerat ex eos dicta earum, fuga deleniti amet accusantium recusandae quia aperiam aut assumenda, quas ratione laborum.';
51+
52+
$bs_images_cols = array(
53+
'',
54+
'row-cols-md-2',
55+
'row-cols-md-3',
56+
'row-cols-md-2 row-cols-lg-4',
57+
'row-cols-md-3 row-cols-lg-6',
58+
);
5159

5260
?>
5361

@@ -198,19 +206,9 @@
198206

199207
<h2 class="border-bottom mb-5">Images</h2>
200208

201-
<?php
202-
203-
$row_cols = array(
204-
'',
205-
'row-cols-md-2',
206-
'row-cols-md-3',
207-
'row-cols-md-2 row-cols-lg-4',
208-
'row-cols-md-3 row-cols-lg-6',
209-
);
210-
211-
foreach ( $row_cols as $row_col ) { ?>
209+
<?php foreach ( $bs_images_cols as $col ) { ?>
212210

213-
<div class="row <?php echo esc_attr( $row_col ); ?> mb-5">
211+
<div class="row <?php echo esc_attr( $col ); ?> mb-5">
214212
<div class="col position-relative">
215213
<img class="img-fluid" src="https://dummyimage.com/1920x1080.jpg">
216214
<div class="img-details position-absolute top-0 mt-1 ms-1 px-2 py-1 bg-light">

0 commit comments

Comments
 (0)