mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-08 18:44:30 +00:00
custom link section
This commit is contained in:
@@ -181,19 +181,14 @@ class RegistryFormManipulator
|
|||||||
],
|
],
|
||||||
'custom-links' => [
|
'custom-links' => [
|
||||||
[
|
[
|
||||||
'linkName' => 'Phraseanet store',
|
'linkName' => 'Phraseanet store',
|
||||||
'linkLanguage' => 'fr',
|
'linkLanguage' => 'all',
|
||||||
'linkUrl' => 'https://alchemy.odoo.com/shop',
|
'linkUrl' => 'https://store.alchemy.fr',
|
||||||
'linkLocation' => 'help-menu',
|
'linkLocation' => 'help-menu',
|
||||||
'linkOrder' => '1',
|
'linkOrder' => 1,
|
||||||
],
|
'linkBold' => false,
|
||||||
[
|
'linkColor' => ''
|
||||||
'linkName' => 'Phraseanet store',
|
]
|
||||||
'linkLanguage' => 'en',
|
|
||||||
'linkUrl' => 'https://alchemy.odoo.com/en_US/shop',
|
|
||||||
'linkLocation' => 'help-menu',
|
|
||||||
'linkOrder' => '1',
|
|
||||||
],
|
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@@ -153,6 +153,22 @@ class patch_410alpha28a implements patchInterface
|
|||||||
$app['conf']->set(['main', 'binaries', 'exiftool_timeout'], 60);
|
$app['conf']->set(['main', 'binaries', 'exiftool_timeout'], 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// custom-link section, remove default store
|
||||||
|
$app['conf']->remove(['registry', 'custom-links', 0]);
|
||||||
|
$app['conf']->remove(['registry', 'custom-links', 1]);
|
||||||
|
|
||||||
|
$customLinks = [
|
||||||
|
'linkName' => 'Phraseanet store',
|
||||||
|
'linkLanguage' => 'all',
|
||||||
|
'linkUrl' => 'https://store.alchemy.fr',
|
||||||
|
'linkLocation' => 'help-menu',
|
||||||
|
'linkOrder' => 1,
|
||||||
|
'linkBold' => false,
|
||||||
|
'linkColor' => ''
|
||||||
|
];
|
||||||
|
|
||||||
|
$app['conf']->set(['registry', 'custom-links', 0], $customLinks);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user