diff --git a/extensions/sticky/js/Gulpfile.js b/extensions/sticky/js/forum/Gulpfile.js similarity index 100% rename from extensions/sticky/js/Gulpfile.js rename to extensions/sticky/js/forum/Gulpfile.js diff --git a/extensions/sticky/js/package.json b/extensions/sticky/js/forum/package.json similarity index 100% rename from extensions/sticky/js/package.json rename to extensions/sticky/js/forum/package.json diff --git a/extensions/sticky/js/src/addStickyBadge.js b/extensions/sticky/js/forum/src/addStickyBadge.js similarity index 100% rename from extensions/sticky/js/src/addStickyBadge.js rename to extensions/sticky/js/forum/src/addStickyBadge.js diff --git a/extensions/sticky/js/src/addStickyControl.js b/extensions/sticky/js/forum/src/addStickyControl.js similarity index 100% rename from extensions/sticky/js/src/addStickyControl.js rename to extensions/sticky/js/forum/src/addStickyControl.js diff --git a/extensions/sticky/js/src/addStickyExcerpt.js b/extensions/sticky/js/forum/src/addStickyExcerpt.js similarity index 94% rename from extensions/sticky/js/src/addStickyExcerpt.js rename to extensions/sticky/js/forum/src/addStickyExcerpt.js index 932f748d5..a08591f25 100644 --- a/extensions/sticky/js/src/addStickyExcerpt.js +++ b/extensions/sticky/js/forum/src/addStickyExcerpt.js @@ -17,7 +17,7 @@ export default function addStickyControl() { if (startPost) { const excerpt = {truncate(startPost.contentPlain(), 200)}; - items.add('excerpt', excerpt, 100); + items.add('excerpt', excerpt, -100); } } }); diff --git a/extensions/sticky/js/src/components/DiscussionStickiedNotification.js b/extensions/sticky/js/forum/src/components/DiscussionStickiedNotification.js similarity index 100% rename from extensions/sticky/js/src/components/DiscussionStickiedNotification.js rename to extensions/sticky/js/forum/src/components/DiscussionStickiedNotification.js diff --git a/extensions/sticky/js/src/components/DiscussionStickiedPost.js b/extensions/sticky/js/forum/src/components/DiscussionStickiedPost.js similarity index 100% rename from extensions/sticky/js/src/components/DiscussionStickiedPost.js rename to extensions/sticky/js/forum/src/components/DiscussionStickiedPost.js diff --git a/extensions/sticky/js/src/main.js b/extensions/sticky/js/forum/src/main.js similarity index 100% rename from extensions/sticky/js/src/main.js rename to extensions/sticky/js/forum/src/main.js diff --git a/extensions/sticky/less/extension.less b/extensions/sticky/less/forum/extension.less similarity index 100% rename from extensions/sticky/less/extension.less rename to extensions/sticky/less/forum/extension.less diff --git a/extensions/sticky/src/Listeners/AddClientAssets.php b/extensions/sticky/src/Listeners/AddClientAssets.php index 0d5d8d3bb..63ccb33f5 100755 --- a/extensions/sticky/src/Listeners/AddClientAssets.php +++ b/extensions/sticky/src/Listeners/AddClientAssets.php @@ -20,8 +20,8 @@ class AddClientAssets public function addAssets(BuildClientView $event) { $event->forumAssets([ - __DIR__.'/../../js/dist/extension.js', - __DIR__.'/../../less/extension.less' + __DIR__.'/../../js/forum/dist/extension.js', + __DIR__.'/../../less/forum/extension.less' ]); $event->forumBootstrapper('sticky/main');