| Revision 3731:3770620079d4,
722 bytes
checked in by franck <carnet.franck.paul@…>, 8 years ago
(diff) |
|
Simplify licence block at the beginning of each file
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * @brief blowupConfig, a plugin for Dotclear 2 |
|---|
| 4 | * |
|---|
| 5 | * @package Dotclear |
|---|
| 6 | * @subpackage Plugins |
|---|
| 7 | * |
|---|
| 8 | * @copyright Olivier Meunier & Association Dotclear |
|---|
| 9 | * @copyright GPL-2.0-only |
|---|
| 10 | */ |
|---|
| 11 | |
|---|
| 12 | if (!defined('DC_CONTEXT_ADMIN')) {return;} |
|---|
| 13 | |
|---|
| 14 | $core->addBehavior('adminCurrentThemeDetails', 'blowup_config_details'); |
|---|
| 15 | |
|---|
| 16 | if (!isset($__resources['help']['blowupConfig'])) { |
|---|
| 17 | $__resources['help']['blowupConfig'] = dirname(__FILE__) . '/help.html'; |
|---|
| 18 | } |
|---|
| 19 | |
|---|
| 20 | function blowup_config_details($core, $id) |
|---|
| 21 | { |
|---|
| 22 | if ($id == 'default' && $core->auth->check('admin', $core->blog->id)) { |
|---|
| 23 | return '<p><a href="' . $core->adminurl->get('admin.plugin.blowupConfig') . '" class="button submit">' . __('Configure theme') . '</a></p>'; |
|---|
| 24 | } |
|---|
| 25 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.