Skip to content

Commit

Permalink
[IMPROVED] Button respects admin user language -- finalising
Browse files Browse the repository at this point in the history
  • Loading branch information
clivebeckett committed Apr 16, 2020
1 parent 047ca2b commit 4ad0a5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin-addon-media-metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public function onTwigExtensions()
'MODAL' => $modal
];
$inlineJs .= PHP_EOL . 'var adminAddonMediaMetadata = ' . json_encode($jsConfig) . ';';
$inlineJs .= PHP_EOL . $this->grav['twig']->twig()->render('additionalInlineJS.html.twig');
$this->grav['assets']->addInlineJs($inlineJs, -1000);
$this->grav['assets']->addCss('plugin://admin-addon-media-metadata/admin-addon-media-metadata.css', -1000);
$this->grav['assets']->addJs('plugin://admin-addon-media-metadata/admin-addon-media-metadata.js', -1000);
Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Admin Addon Media Metadata
version: 1.0.1
version: 1.0.2
description: 'This plugin is an addon for the Grav CMS Admin plugin and lets you add and edit metadata for media files'
icon: plug
author:
Expand Down

0 comments on commit 4ad0a5a

Please sign in to comment.