Skip to content

Commit 906d461

Browse files
authored
Merge pull request #39 from mauricerenck/develop
Bugfixes
2 parents b683697 + 3016ffe commit 906d461

File tree

11 files changed

+35
-40
lines changed

11 files changed

+35
-40
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ You can now see your download stats in the panel. This currently works only, if
3838

3939
## Installation
4040

41+
View this [step by step guide](/docs/kirby-podcaster-starterkit.md) on how to setup the plugin with the Kirby Starterkit.
42+
4143
- `composer require mauricerenck/podcaster`
4244
- unzip [master.zip](https://github.com/mauricerenck/kirby-podcaster/releases/latest) as folder `site/plugins/kirby-podcaster`
4345
- `git submodule add https://github.com/mauricerenck/kirby-podcaster.git site/plugins/kirby-podcaster`

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mauricerenck/podcaster",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "A Kirby Podcast Plugin",
55
"type": "kirby-plugin",
66
"license": "MIT",

index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "podcaster",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "A Kirby Podcast Plugin",
55
"main": "index.js",
66
"author": "Maurice Renck",

snippets/podlove-player.php

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
<?php
2-
namespace Plugin\Podcaster;
32

4-
require_once __DIR__ . '/../utils/PodcasterUtils.php';
3+
namespace Plugin\Podcaster;
4+
5+
use str;
6+
use addslashes;
7+
8+
require_once __DIR__ . '/../utils/PodcasterUtils.php';
59

610
$podcasterUtils = new PodcasterUtils();
711
$podcasterUtils->setFeed($podcast);
812
$podcasterUtils->setCurrentEpisode($page);
913

1014
$cover = false;
11-
if($page->podcasterCover()->isNotEmpty()) {
15+
if ($page->podcasterCover()->isNotEmpty()) {
1216
$cover = $page->podcasterCover()->toFile()->resize(200)->url();
13-
} else if($podcast->podcasterCover()->isNotEmpty()) {
17+
} elseif ($podcast->podcasterCover()->isNotEmpty()) {
1418
$cover = $podcast->podcasterCover()->toFile()->resize(200)->url();
1519
}
1620

@@ -21,7 +25,7 @@
2125

2226
<script>
2327
podlovePlayer('#podlovePlayerContainer', {
24-
<?php if($podcast->podcasterPodloveMainColor()->isNotEmpty() && $podcast->podcasterPodloveHighlighColor()->isNotEmpty()) : ?>
28+
<?php if ($podcast->podcasterPodloveMainColor()->isNotEmpty() && $podcast->podcasterPodloveHighlighColor()->isNotEmpty()) : ?>
2529
theme: {
2630
main: '#<?php echo str_replace('#', '', $podcast->podcasterPodloveMainColor()); ?>',
2731
highlight: '#<?php echo str_replace('#', '', $podcast->podcasterPodloveHighlighColor()); ?>'
@@ -34,19 +38,19 @@
3438
audio: <?php echo ($podcast->podcasterPodloveTabsAudio()->isTrue()) ? 'true' : 'false'; ?>,
3539
download: <?php echo ($podcast->podcasterPodloveTabsDownload()->isTrue()) ? 'true' : 'false'; ?>
3640
},
37-
title: '<?php echo $page->podcasterTitle()->or($page->title()); ?>',
38-
subtitle: '<?php echo $page->podcasterSubtitle(); ?>',
39-
summary: '<?php echo $page->podcasterDescription(); ?>',
41+
title: '<?php echo addslashes(Str::replace(Str::unhtml($page->podcasterTitle()->or($page->title())), "\n", ' ')); ?>',
42+
subtitle: '<?php echo addslashes(Str::replace(Str::unhtml($page->podcasterSubtitle()), "\n", ' ')); ?>',
43+
summary: '<?php echo addslashes(Str::replace(Str::unhtml($page->podcasterDescription()), "\n", ' ')); ?>',
4044
publicationDate: '<?php echo date('r', $page->date()->toDate()); ?>',
41-
<?php if($cover !== false) : ?>
45+
<?php if ($cover !== false) : ?>
4246
poster: '<?php echo $cover; ?>',
4347
<?php endif; ?>
4448
link: '<?php echo $page->url(); ?>',
4549
show: {
46-
title: '<?php echo $podcast->podcasterTitle(); ?>',
47-
subtitle: '<?php echo $podcast->podcasterSubtitle(); ?>',
48-
summary: '<?php echo $podcast->podcasterDescription(); ?>',
49-
<?php if($cover !== false) : ?>
50+
title: '<?php echo addslashes(Str::replace(Str::unhtml(($podcast->podcasterTitle())), "\n", ' ')); ?>',
51+
subtitle: '<?php echo addslashes(Str::replace(Str::unhtml($podcast->podcasterSubtitle()), "\n", ' ')); ?>',
52+
summary: '<?php echo addslashes(Str::replace(Str::unhtml($podcast->podcasterDescription()), "\n", ' ')); ?>',
53+
<?php if ($cover !== false) : ?>
5054
poster: '<?php echo $cover; ?>',
5155
<?php endif; ?>
5256
link: '<?php echo $podcast->podcasterLink(); ?>'

src/components/Episode.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@ export default {
4343
this.getStats()
4444
},
4545
computed: {
46-
id() {
47-
return this.$store.state.form.current
48-
},
4946
pageValues() {
50-
return this.$store.getters['form/values'](this.id)
47+
return this.$store.getters['content/values'](this.id)
5148
},
5249
},
5350
watch: {

src/components/FeedStats.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@ export default {
2525
}
2626
},
2727
computed: {
28-
id() {
29-
return this.$store.state.form.current
30-
},
3128
pageValues() {
32-
return this.$store.getters['form/values'](this.id)
29+
return this.$store.getters['content/values'](this.id)
3330
},
3431
},
3532
mounted() {

src/components/TopTen.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ export default {
3535
});
3636
},
3737
computed: {
38-
id() {
39-
return this.$store.state.form.current
40-
},
4138
pageValues() {
42-
return this.$store.getters['form/values'](this.id)
39+
return this.$store.getters['content/values'](this.id)
4340
},
4441
},
4542
methods: {

src/components/Wizard.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ export default {
3636
this.headline = this.pageValues.podcasterWizardSrcFeed
3737
},
3838
computed: {
39-
id() {
40-
return this.$store.state.form.current
41-
},
4239
pageValues() {
43-
return this.$store.getters['form/values'](this.id)
40+
return this.$store.getters['content/values'](this.id)
4441
},
4542
},
4643
methods: {

src/components/YearGraph.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@ export default {
2424
}
2525
},
2626
computed: {
27-
id() {
28-
return this.$store.state.form.current
29-
},
3027
pageValues() {
31-
return this.$store.getters['form/values'](this.id)
28+
return this.$store.getters['content/values'](this.id)
3229
},
3330
},
3431
mounted() {

0 commit comments

Comments
 (0)