mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Enh: Reorganized WallEntry context menu
This commit is contained in:
parent
4d4107231f
commit
03f382bf05
@ -20,3 +20,4 @@ HumHub Change Log (DEVELOP)
|
||||
- Enh: Added Icon abstraction `humhub\modules\ui\icon\widgets\Icon`
|
||||
- Enh: Added `humhub\libs\Html::addPjaxPrevention()` for link options
|
||||
- Enh: Added obj support for `humhub\libs\Sort`
|
||||
- Enh: Reorganized WallEntry context menu
|
||||
|
@ -190,12 +190,12 @@ class WallEntry extends Widget
|
||||
$this->addControl($result, [EditLink::class, ['model' => $this->contentObject, 'mode' => $this->editMode, 'url' => $this->getEditUrl()], ['sortOrder' => 200]]);
|
||||
}
|
||||
|
||||
$this->addControl($result, [VisibilityLink::class, ['contentRecord' => $this->contentObject], ['sortOrder' => 250]]);
|
||||
$this->addControl($result, [NotificationSwitchLink::class, ['content' => $this->contentObject], ['sortOrder' => 300]]);
|
||||
$this->addControl($result, [PermaLink::class, ['content' => $this->contentObject], ['sortOrder' => 400]]);
|
||||
$this->addControl($result, [PinLink::class, ['content' => $this->contentObject], ['sortOrder' => 500]]);
|
||||
$this->addControl($result, [MoveContentLink::class, ['model' => $this->contentObject], ['sortOrder' => 550]]);
|
||||
$this->addControl($result, [ArchiveLink::class, ['content' => $this->contentObject], ['sortOrder' => 600]]);
|
||||
$this->addControl($result, [PermaLink::class, ['content' => $this->contentObject], ['sortOrder' => 300]]);
|
||||
$this->addControl($result, [VisibilityLink::class, ['contentRecord' => $this->contentObject], ['sortOrder' => 400]]);
|
||||
$this->addControl($result, [NotificationSwitchLink::class, ['content' => $this->contentObject], ['sortOrder' => 500]]);
|
||||
$this->addControl($result, [PinLink::class, ['content' => $this->contentObject], ['sortOrder' => 600]]);
|
||||
$this->addControl($result, [MoveContentLink::class, ['model' => $this->contentObject], ['sortOrder' => 700]]);
|
||||
$this->addControl($result, [ArchiveLink::class, ['content' => $this->contentObject], ['sortOrder' => 800]]);
|
||||
|
||||
if(isset($this->controlsOptions['add'])) {
|
||||
foreach ($this->controlsOptions['add'] as $linkOptions) {
|
||||
|
@ -48,8 +48,8 @@ class WallEntryControls extends \humhub\widgets\BaseStack
|
||||
*
|
||||
* [MyWidget::class, [...], [...]]
|
||||
*
|
||||
* @param type $menuItem
|
||||
* @return type
|
||||
* @param [] $menuItem
|
||||
* @return array
|
||||
*/
|
||||
protected function getWallEntryLinkDefinition($menuItem)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user