.
This commit is contained in:
@@ -39,7 +39,7 @@ namespace Site\Controller;
|
|||||||
|
|
||||||
trait Mods {
|
trait Mods {
|
||||||
public function getMenu(): array {
|
public function getMenu(): array {
|
||||||
return [
|
$menu = [
|
||||||
[
|
[
|
||||||
'class' => 'menu-item',
|
'class' => 'menu-item',
|
||||||
'href' => '/',
|
'href' => '/',
|
||||||
@@ -82,13 +82,18 @@ trait Mods {
|
|||||||
'text' => 'スタッフ限定',
|
'text' => 'スタッフ限定',
|
||||||
'show' => true,
|
'show' => true,
|
||||||
],
|
],
|
||||||
[
|
];
|
||||||
|
|
||||||
|
if (OPENPROVIDER_ENABLED) {
|
||||||
|
$menu[] = [
|
||||||
'class' => 'menu-item',
|
'class' => 'menu-item',
|
||||||
'href' => '/openprovider',
|
'href' => '/openprovider',
|
||||||
'page' => 'openprovider',
|
'page' => 'openprovider',
|
||||||
'text' => 'OpenProvider管理',
|
'text' => 'OpenProvider管理',
|
||||||
'show' => true,
|
'show' => true,
|
||||||
],
|
];
|
||||||
];
|
}
|
||||||
|
|
||||||
|
return $menu;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
2
sync.sh
2
sync.sh
@@ -7,5 +7,5 @@ HTTPHOME=/var/www/htdocs/LittleBeast
|
|||||||
rsync ${RSYNCOPT} *.php ${SRV}:${HTTPHOME}
|
rsync ${RSYNCOPT} *.php ${SRV}:${HTTPHOME}
|
||||||
rsync ${RSYNCOPT} blog ${SRV}:${HTTPHOME}
|
rsync ${RSYNCOPT} blog ${SRV}:${HTTPHOME}
|
||||||
#rsync ${RSYNCOPT} config ${SRV}:${HTTPHOME}
|
#rsync ${RSYNCOPT} config ${SRV}:${HTTPHOME}
|
||||||
rsync ${RSYNCOPT} src/Site/Controller ${SRV}:${HTTPHOME}/src/Site
|
rsync ${RSYNCOPT} src ${SRV}:${HTTPHOME}
|
||||||
rsync ${RSYNCOPT} view ${SRV}:${HTTPHOME}
|
rsync ${RSYNCOPT} view ${SRV}:${HTTPHOME}
|
||||||
Reference in New Issue
Block a user