xref: /dokuwiki/lib/plugins/styling/popup.php (revision ced96239e5e8a370ff7bb54016e287ae50fefcaa)
16667cd87SAndreas Gohr<?php
2*ced96239SAndreas Gohr// phpcs:disable PSR1.Files.SideEffects
36667cd87SAndreas Gohrif (!defined('DOKU_INC')) define('DOKU_INC', dirname(__FILE__) . '/../../../');
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');
126667cd87SAndreas Gohrif (!auth_isadmin()) 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" />
26d634152eSAnika Henke    <?php echo tpl_favicon(array('favicon')) ?>
276667cd87SAndreas Gohr</head>
28d634152eSAnika Henke<body class="dokuwiki">
296667cd87SAndreas Gohr    <?php $plugin->html() ?>
306667cd87SAndreas Gohr</body>
316667cd87SAndreas Gohr</html>
32