Skip to content

Commit 9cec27a

Browse files
committed
Fix Content API, Assets
1 parent 0d55937 commit 9cec27a

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

API/Content.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Content
4747
* @param object $grav Grav-instance
4848
* @param array $config Plugin configuration
4949
*/
50-
public function __construct(object $grav, array $config)
50+
public function __construct($grav, $config)
5151
{
5252
$this->grav = $grav;
5353
$this->config = $config;
@@ -293,7 +293,6 @@ public function interpretShortcodes($content)
293293
$name = $match['name'];
294294
$value = $match['bbCode'];
295295
$content = str_replace($match[0], '', $content);
296-
$this->grav['debugger']->addMessage($name);
297296
if (Utils::startsWith($name, 'class')) {
298297
$return['class'] = $value;
299298
} elseif (Utils::startsWith($name, 'hide')) {

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# v1.0.0-beta.2
2+
## 06-01-2019
3+
4+
1. [](#bugfix)
5+
* Assets
6+
* Content API instantiation
7+
18
# v1.0.0-beta.1
29
## 06-01-2019
310

blueprints.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Presentation
2-
version: 1.0.0-beta.1
2+
version: 1.0.0-beta.2
33
testing: true
44
description: Responsive navigational slideshows with Reveal.js
55
icon: arrows-alt

templates/presentation.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
{% do assets.addCss('plugin://presentation/css/transition.css', {'group': 'critical'}) %}
1717
{% endif %}
1818
{% if config.plugins['presentation'].builtin_css %}
19-
{% if uri.query('print-pdf') is not defined %}
20-
{% do assets.addCss('plugin://presentation/node_modules/reveal.js/css/reveal.css', {'group': 'presentation'}) %}
19+
{% if uri.query('print-pdf') != 'true' %}
2120
{% if config.plugins['presentation'].theme != 'none' %}
2221
{% do assets.addCss('user://plugins/presentation/node_modules/reveal.js/css/theme/' ~ config.plugins['presentation'].theme ~ '.css', {'group': 'presentation'}) %}
2322
{% endif %}
2423
{% do assets.addCss('plugin://presentation/css/presentation.css', {'group': 'presentation'}) %}
2524
{% else %}
25+
{% do assets.addCss('plugin://presentation/node_modules/reveal.js/css/reveal.css', {'group': 'presentation'}) %}
2626
{% do assets.addCss('plugin://presentation/node_modules/reveal.js/css/print/pdf.css', {'group': 'presentation'}) %}
2727
{% do assets.addCss('plugin://presentation/node_modules/reveal.js/css/print/paper.css', {'group': 'presentation'}) %}
2828
{% do assets.addInlineCss('embed, iframe, video, .pause-overlay, #snackbar {display: none;}.reveal pre code {padding: 0 !important;border: 0 !important;}', {'media': 'print'}) %}

0 commit comments

Comments
 (0)