mirror of
https://github.com/jgonyea/grav-plugin-podcast.git
synced 2025-12-05 16:00:02 +01:00
Compare commits
5 Commits
8fa551e568
...
b547624cb6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b547624cb6 | ||
|
|
c7a6fbc15f | ||
|
|
98c37298aa | ||
|
|
b419964bc7 | ||
|
|
7cb127ec79 |
@@ -29,3 +29,14 @@ form:
|
||||
0: PLUGIN_ADMIN.DISABLED
|
||||
validate:
|
||||
type: bool
|
||||
autoIncludeAssets:
|
||||
type: toggle
|
||||
label: Always Include Assets
|
||||
help: "If false you will need to include the CSS and JS manually in your Twig templates when required"
|
||||
highlight: 1
|
||||
default: 1
|
||||
options:
|
||||
1: PLUGIN_ADMIN.ENABLED
|
||||
0: PLUGIN_ADMIN.DISABLED
|
||||
validate:
|
||||
type: bool
|
||||
|
||||
@@ -20,7 +20,10 @@ en:
|
||||
DOWNLOAD: Download Audio
|
||||
WARNING: Your browser does not support the audio tag.
|
||||
EMPTY: No content available.
|
||||
PUBLISHED: Published
|
||||
ADMIN:
|
||||
SETTINGS:
|
||||
AUTO_INLCUDE_ASSETS: "If false you will need to include the CSS and JS manually in your Twig templates when required"
|
||||
CHANNEL:
|
||||
CONTENT:
|
||||
TAB_TITLE: Podcast Page Content
|
||||
@@ -149,7 +152,10 @@ de:
|
||||
DOWNLOAD: Audio herunterladen
|
||||
WARNING: Ihr Browser unterstützt das Audiowiedergabe-Tag nicht.
|
||||
EMPTY: Kein Inhalt verfügbar.
|
||||
PUBLISHED: Veröffentlicht
|
||||
ADMIN:
|
||||
SETTINGS:
|
||||
AUTO_INLCUDE_ASSETS: Wenn deaktiviert bitte CSS von Hand in die Twig-Templates einbinden falls nötig
|
||||
CHANNEL:
|
||||
CONTENT:
|
||||
TAB_TITLE: Inhalt der Podcast-Seite
|
||||
|
||||
@@ -60,6 +60,7 @@ class PodcastPlugin extends Plugin
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add blueprint directory to page templates.
|
||||
*/
|
||||
@@ -84,7 +85,9 @@ class PodcastPlugin extends Plugin
|
||||
*/
|
||||
public function onTwigSiteVariables(): void
|
||||
{
|
||||
$this->grav['assets']->addCss('plugin://' . $this->name . '/assets/css/podcast.css');
|
||||
if ($this->config()['autoIncludeAssets']) {
|
||||
$this->grav['assets']->addCss('plugin://' . $this->name . '/assets/css/podcast.css');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user