Skip to content

Commit

Permalink
Merge branch 'release/2.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Feb 8, 2022
2 parents 1279cf2 + 9021b74 commit 48d4d93
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v2.1.3
## 02/08/2022

1. [](#improved)
* Shortcodes should use `rawHanders()` to support shortcodes/markdown

# v2.1.2
## 02/08/2022

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: Page Inject
type: plugin
slug: page-inject
version: 2.1.2
version: 2.1.3
description: "**Page Inject** is a powerful plugin that lets you inject entire pages or page content into other pages using simple markdown-style or shortcode syntax"
icon: trello
author:
Expand Down
4 changes: 2 additions & 2 deletions classes/shortcodes/PageInjectShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ class PageInjectShortcode extends Shortcode
{
public function init()
{
$this->shortcode->getHandlers()->add('page-inject', function(ShortcodeInterface $sc) {
$this->shortcode->getRawHandlers()->add('page-inject', function(ShortcodeInterface $sc) {
$path = $sc->getParameter('path') ?? $sc->getBbCode();
return PageInjectPlugin::getInjectedPageContent('page-inject', $path);
});

$this->shortcode->getHandlers()->add('content-inject', function(ShortcodeInterface $sc) {
$this->shortcode->getRawHandlers()->add('content-inject', function(ShortcodeInterface $sc) {
$path = $sc->getParameter('path') ?? $sc->getBbCode();
return PageInjectPlugin::getInjectedPageContent('content-inject', $path);
});
Expand Down

0 comments on commit 48d4d93

Please sign in to comment.