diff --git a/boot.php b/boot.php
index 8491538..af43068 100644
--- a/boot.php
+++ b/boot.php
@@ -19,6 +19,7 @@
use FriendsOfRedaxo\QuickNavigation\Button\FavoriteButton;
use FriendsOfRedaxo\QuickNavigation\Button\WatsonButton;
use FriendsOfRedaxo\QuickNavigation\Button\YformButton;
+use FriendsOfRedaxo\QuickNavigation\Media\QuickNavigationMedia;
use FriendsOfRedaxo\QuickNavigation\Minibar\ArticleHistoryElement;
use rex;
use rex_addon;
@@ -75,7 +76,7 @@
return '
' . $ep->getSubject();
});
rex_extension::register('PAGE_TITLE_SHOWN', QuickNavigation::LinkMapQuickNavigation(...));
- rex_extension::register('MEDIA_LIST_TOOLBAR', QuickNavigation::MediaHistory(...));
+ rex_extension::register('MEDIA_LIST_TOOLBAR', QuickNavigationMedia::MediaHistory(...));
}
}
diff --git a/lib/QuickNavigation/Button/CategoryButton.php b/lib/QuickNavigation/Button/CategoryButton.php
index 7308fdb..a4c4f92 100644
--- a/lib/QuickNavigation/Button/CategoryButton.php
+++ b/lib/QuickNavigation/Button/CategoryButton.php
@@ -17,7 +17,7 @@
class CategoryButton implements ButtonInterface
{
- public function renderCategoriesAsList(array $categoriesArray, int $depth = 0): array
+ public function RenderCategoriesAsList(array $categoriesArray, int $depth = 0): array
{
$listItems = [];
foreach ($categoriesArray as $item) {
@@ -39,7 +39,7 @@ public function renderCategoriesAsList(array $categoriesArray, int $depth = 0):
if (!empty($item['children'])) {
$fragment = new rex_fragment([
- 'listItems' => $this->renderCategoriesAsList($item['children'], $depth + 1),
+ 'listItems' => $this->RenderCategoriesAsList($item['children'], $depth + 1),
]);
$listItem .= $fragment->parse('QuickNavigation/List.php');
}
@@ -59,9 +59,9 @@ public function get(): string
}
$currentClangId = rex_clang::getCurrentId();
- $categoriesArray = BuildNavigationArray::generateBackendNavArray($currentClangId, $ignoreOffline, null);
+ $categoriesArray = BuildNavigationArray::GenerateBackendNavArray($currentClangId, $ignoreOffline, null);
- $listItems = $this->renderCategoriesAsList($categoriesArray);
+ $listItems = $this->RenderCategoriesAsList($categoriesArray);
$placeholder = rex_i18n::msg('quick_navigation_placeholder');
$fragment = new rex_fragment();
$fragment->setVar('id', 'quick-navigation-search');
diff --git a/lib/QuickNavigation/Media/QuickNavigationMedia.php b/lib/QuickNavigation/Media/QuickNavigationMedia.php
new file mode 100644
index 0000000..1349f40
--- /dev/null
+++ b/lib/QuickNavigation/Media/QuickNavigationMedia.php
@@ -0,0 +1,120 @@
+ $ep
+ */
+ public static function MediaHistory(rex_extension_point $ep): ?string
+ {
+ if (rex_be_controller::getCurrentPagePart(1) == 'mediapool') {
+ $subject = $ep->getSubject();
+ $drophistory = self::GenerateMediaHistoryList();
+ $custom_media_buttons = rex_extension::registerPoint(new rex_extension_point('QUICK_NAVI_CUSTOM_MEDIA', ''));
+ $button = $custom_media_buttons . '