fix and prepare installer path for js includement
References #80 needs a special eg installer_editor.js file for JS events
This commit is contained in:
@@ -29,6 +29,8 @@ if (defined('S9Y_DATA_PATH')) {
|
|||||||
$data['basedir'] = $basedir;
|
$data['basedir'] = $basedir;
|
||||||
$data['phpversion'] = phpversion();
|
$data['phpversion'] = phpversion();
|
||||||
$data['versionInstalled'] = $serendipity['versionInstalled'];
|
$data['versionInstalled'] = $serendipity['versionInstalled'];
|
||||||
|
$data['templatePath'] = $serendipity['templatePath'];
|
||||||
|
$data['serendipityHTTPPath'] = dirname($_SERVER['PHP_SELF']) . '/';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks a return code constant if it's successfull or an error and return HTML code
|
* Checks a return code constant if it's successfull or an error and return HTML code
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
<meta charset="{$CONST.LANG_CHARSET}">
|
<meta charset="{$CONST.LANG_CHARSET}">
|
||||||
<title>{$CONST.SERENDIPITY_ADMIN_SUITE}</title>
|
<title>{$CONST.SERENDIPITY_ADMIN_SUITE}</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="stylesheet" href="{serendipity_getFile file='admin/style.css'}">
|
<link rel="stylesheet" href="{$serendipityHTTPPath}{serendipity_getFile file='admin/style.css'}">
|
||||||
|
<script src="{$serendipityHTTPPath}{$templatePath}jquery.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body id="serendipity_admin_page">
|
<body id="serendipity_admin_page">
|
||||||
<header id="top">
|
<header id="top">
|
||||||
@@ -287,5 +288,8 @@
|
|||||||
<footer id="meta">
|
<footer id="meta">
|
||||||
<p>{$ADMIN_FOOTER_POWERED_BY|sprintf:$versionInstalled:$phpversion}</p>
|
<p>{$ADMIN_FOOTER_POWERED_BY|sprintf:$versionInstalled:$phpversion}</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
{* <script src="{$serendipityHTTPPath}{serendipity_getFile file='admin/js/installer_editor.js'}"></script> *}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user