Skip to content

Commit

Permalink
Merge branch 'release/3.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Dec 16, 2021
2 parents ded716b + 2ff9e84 commit 4c55259
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v3.0.1
## 12/16/2021

1. [](#bugfix)
* Various minor **ImageCompare** fixes

# v3.0.0
## 11/04/2020

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Shortcode UI
slug: shortcode-ui
type: plugin
version: 3.0.0
version: 3.0.1
description: "This plugin provides several UI shortcodes"
icon: code
author:
Expand Down
2 changes: 1 addition & 1 deletion classes/shortcodes/ImageCompareShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function init()

$content = $sc->getContent();

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

if (count($matches) === 2 && count($matches[0]) === 2) {
return $this->twig->processTemplate(
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "grav-plugin-shortcode-ui",
"name": "getgrav/shortcode-ui",
"type": "grav-plugin",
"description": "Shortcode UI plugin for Grav CMS",
"keywords": ["shortcode"],
Expand Down
2 changes: 2 additions & 0 deletions css/ui-cslider.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
height: 100%;
width: auto;
max-width: none;
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.cd-resize-img .cd-image-label {
right: auto;
Expand Down
2 changes: 1 addition & 1 deletion scss/ui-accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
padding: 0 15px;
}

input:checked ~ article{
input:checked ~ article {
max-height: inherit;
}

Expand Down
2 changes: 1 addition & 1 deletion templates/partials/ui-cslider.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
{{ matches[0][0]|raw }}
<span class="cd-image-label" data-type="modified">{{ matches[1][0]|raw }}</span>
</div>
<span class="cd-handle"><i class="fa fa-fw fa-chevron-left"></i><i class="fa fa-fw fa-chevron-right"></i></span>
<span class="cd-handle"></span>
</figure>

0 comments on commit 4c55259

Please sign in to comment.