xref: /dokuwiki/lib/plugins/styling/popup.php (revision 54cc7aa41e0f453bd6887b0e79242a139d84a47a)
16667cd87SAndreas Gohr<?php
2ced96239SAndreas Gohr// phpcs:disable PSR1.Files.SideEffects
3*54cc7aa4SAndreas Gohrif (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/../../../');
46667cd87SAndreas Gohrrequire_once(DOKU_INC . 'inc/init.php');
56667cd87SAndreas Gohr//close session
66667cd87SAndreas Gohrsession_write_close();
76667cd87SAndreas Gohrheader('Content-Type: text/html; charset=utf-8');
8d634152eSAnika Henkeheader('X-UA-Compatible: IE=edge,chrome=1');
96667cd87SAndreas Gohr
106667cd87SAndreas Gohr/** @var admin_plugin_styling $plugin */
116667cd87SAndreas Gohr$plugin = plugin_load('admin', 'styling');
12dda9db03SAndreas Gohrif (!$plugin->isAccessibleByCurrentUser()) die('only admins allowed');
136667cd87SAndreas Gohr$plugin->ispopup = true;
146667cd87SAndreas Gohr
156667cd87SAndreas Gohr// handle posts
166667cd87SAndreas Gohr$plugin->handle();
176667cd87SAndreas Gohr
186667cd87SAndreas Gohr// output plugin in a very minimal template:
19d634152eSAnika Henke?><!DOCTYPE html>
20d634152eSAnika Henke<html lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>">
216667cd87SAndreas Gohr<head>
22d634152eSAnika Henke    <meta charset="utf-8" />
236667cd87SAndreas Gohr    <title><?php echo $plugin->getLang('menu') ?></title>
246667cd87SAndreas Gohr    <?php tpl_metaheaders(false) ?>
25d634152eSAnika Henke    <meta name="viewport" content="width=device-width,initial-scale=1" />
26*54cc7aa4SAndreas Gohr    <?php echo tpl_favicon(['favicon']) ?>
276667cd87SAndreas Gohr</head>
28d634152eSAnika Henke<body class="dokuwiki">
296667cd87SAndreas Gohr    <?php $plugin->html() ?>
306667cd87SAndreas Gohr</body>
316667cd87SAndreas Gohr</html>
32