Skip to content

Commit 4c55259

Browse files
committed
Merge branch 'release/3.0.1'
2 parents ded716b + 2ff9e84 commit 4c55259

File tree

7 files changed

+13
-5
lines changed

7 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v3.0.1
2+
## 12/16/2021
3+
4+
1. [](#bugfix)
5+
* Various minor **ImageCompare** fixes
6+
17
# v3.0.0
28
## 11/04/2020
39

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Shortcode UI
22
slug: shortcode-ui
33
type: plugin
4-
version: 3.0.0
4+
version: 3.0.1
55
description: "This plugin provides several UI shortcodes"
66
icon: code
77
author:

classes/shortcodes/ImageCompareShortcode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function init()
1515

1616
$content = $sc->getContent();
1717

18-
preg_match_all('/<img.*(?:alt="(.*?)").*\/?>/', $content, $matches);
18+
preg_match_all("/<img\s[^>]*?alt\s*=\s*['\"]([^'\"]*?)['\"][^>]*?>/", $content, $matches);
1919

2020
if (count($matches) === 2 && count($matches[0]) === 2) {
2121
return $this->twig->processTemplate(

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "grav-plugin-shortcode-ui",
2+
"name": "getgrav/shortcode-ui",
33
"type": "grav-plugin",
44
"description": "Shortcode UI plugin for Grav CMS",
55
"keywords": ["shortcode"],

css/ui-cslider.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
height: 100%;
6565
width: auto;
6666
max-width: none;
67+
margin-top: 0 !important;
68+
margin-bottom: 0 !important;
6769
}
6870
.cd-resize-img .cd-image-label {
6971
right: auto;

scss/ui-accordion.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
padding: 0 15px;
5454
}
5555

56-
input:checked ~ article{
56+
input:checked ~ article {
5757
max-height: inherit;
5858
}
5959

templates/partials/ui-cslider.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
{{ matches[0][0]|raw }}
66
<span class="cd-image-label" data-type="modified">{{ matches[1][0]|raw }}</span>
77
</div>
8-
<span class="cd-handle"><i class="fa fa-fw fa-chevron-left"></i><i class="fa fa-fw fa-chevron-right"></i></span>
8+
<span class="cd-handle"></span>
99
</figure>

0 commit comments

Comments
 (0)