ajout d'un toggle pour désactiver le bandeau du haut de la page
This commit is contained in:
parent
c5ae72945d
commit
f771bb3f24
95 changed files with 22574 additions and 1 deletions
32
kirby/src/Panel/Ui/Buttons/SettingsButton.php
Normal file
32
kirby/src/Panel/Ui/Buttons/SettingsButton.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace Kirby\Panel\Ui\Buttons;
|
||||
|
||||
use Kirby\Cms\ModelWithContent;
|
||||
use Kirby\Toolkit\I18n;
|
||||
|
||||
/**
|
||||
* Settings view button for models
|
||||
*
|
||||
* @package Kirby Panel
|
||||
* @author Nico Hoffmann <nico@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier
|
||||
* @license https://getkirby.com/license
|
||||
* @since 5.0.0
|
||||
* @unstable
|
||||
*/
|
||||
class SettingsButton extends ViewButton
|
||||
{
|
||||
public function __construct(
|
||||
ModelWithContent $model
|
||||
) {
|
||||
parent::__construct(
|
||||
component: 'k-settings-view-button',
|
||||
class: 'k-settings-view-button',
|
||||
icon: 'cog',
|
||||
options: $model->panel()->url(true),
|
||||
title: I18n::translate('settings'),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue