diff --git a/Gruntfile.js b/Gruntfile.js index 1348dcc..35fc4f4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -248,6 +248,7 @@ module.exports = function(grunt) { // Run all tests. grunt.registerTask('test', [ + 'compile:min', 'clean:fixtures', 'phpunit', 'jasmine' diff --git a/NeatlineWaypointsPlugin.php b/NeatlineWaypointsPlugin.php index 35e1eb0..0b341af 100644 --- a/NeatlineWaypointsPlugin.php +++ b/NeatlineWaypointsPlugin.php @@ -69,7 +69,6 @@ public function hookNeatlinePublicTemplates($args) public function hookNeatlineEditorTemplates($args) { if ($args['exhibit']->hasWidget(self::ID)) { - echo get_view()->partial('waypoints/editor/strings.php'); echo get_view()->partial('waypoints/editor/form.php'); echo get_view()->partial('waypoints/editor/list.php'); } @@ -112,9 +111,7 @@ public function hookNeatlineEditorStatic($args) */ public function filterNeatlineExhibitWidgets($widgets) { - return array_merge($widgets, array( - self::NAME => self::ID - )); + return array_merge($widgets, array(self::NAME => self::ID)); } @@ -126,39 +123,38 @@ public function filterNeatlineExhibitWidgets($widgets) */ public function filterNeatlineRecordWidgets($widgets) { - return array_merge($widgets, array( - self::NAME => self::ID - )); + return array_merge($widgets, array(self::NAME => self::ID)); } /** - * Register ordering API endpoint on `Neatline.g`. + * Register the exhibit widget tab. * - * @param array $globals The array of global properties. - * @param array $args Array of arguments, with `exhibit`. + * @param array $tabs Tabs,